finishing up query spec