first query finished