Fixed unfinished query for testing