Query works