Expanded class hierarchy of SelectQuery