query spec