Move out some common functionality from SelectQuery and add or/and to Queryable