Explanation: The phrase 'by the time I got there' indicates an action that was completed before another past action. This requires the past perfect passive. The structure is 'had been + past participle'. The past participle of 'sell' is 'sold'.
Answer: No, they had all been sold by the time I got there.