Query processing.