code: function copyQuery(query) {
          var components = query.getComponents();
          var queryCopy = new Query(components.table);
          queryCopy.setComponents(components);
  
          return queryCopy;
      }
docs: Makes a copy of the QueryJS object