QueryOcc: Query-based Self-Supervision for 3D Semantic Occupancy