check to see what the query looks like