def query_conditions(query)
      if query.limit || query.links.any?
        query.to_subquery
      else
        query.conditions
      end
    end
def query_conditions(query)
      if query.limit || query.links.any?
        query.to_subquery
      else
        query.conditions
      end
    end
Extract conditions from a Query

 @param [Query] query
   the query with conditions

 @return [AbstractOperation]
   the operation

 @api private