Extracted query executor interface.