Raw query support