How do I do a query loop and populate a repeater

I will make the required corrections but can the results also be used to determine the items of the dataset within the loop?