Support for simple queries