code: def from_table(table, fields=None):
      
      if fields is None:
        fields = '*'
      elif isinstance(fields, list):
        fields = ','.join(fields)
      return Query('SELECT %s FROM %s' % (fields, table._repr_sql_()))
docs: Return a Query for the given Table object
  
      Args:
        table: the Table object to construct a Query out of
        fields: the fields to return. If None, all fields will be returned. This can be a string
            which will be injected into the Query after SELECT, or a list of field names.
  
      Returns:
        A Query object that will return the specified fields from the records in the Table.