the correct query