Query engine.