code: def merge(self, query):
          
          self.columns += query.columns
          self.joins += query.joins
          self.wheres += query.wheres
          self.groups += query.groups
          self.havings += query.havings
          self.orders += query.orders
          self.distinct_ = query.distinct_
  
          if self.columns:
              self.columns = Collection(self.columns).unique().all()
  
          if query.limit_:
              self.limit_ = query.limit_
  
          if query.offset_:
              self.offset_ = None
  
          self.unions += query.unions
  
          if query.union_limit:
              self.union_limit = query.union_limit
  
          if query.union_offset:
              self.union_offset = query.union_offset
  
          self.union_orders += query.union_orders
  
          self.merge_bindings(query)
docs: Merge current query with another.
  
          :param query: The query to merge with
          :type query: QueryBuilder