Which file contains the query for category products?

I’m trying to track down which .php builds the list of products that appear in a category. Is anyone familiar with that?

thanks,

Glen