Return real query for reference query, test passed.