code: def compile(self, db):
          
          sql = self.expression
          if self.alias:
              sql += (' AS ' + db.quote_column(self.alias))
          return sql
docs: Building the sql expression
  
          :param db: the database instance