code: def select_fields_as_sql(self):
          
          return comma_join(list(self._fields) + ['%s AS %s' % (v, k) for k, v in self._calculated_fields.items()])
docs: Returns the selected fields or expressions as a SQL string.