original_string: protected function buildSubquery(callable $f)
      {
          $query = new SelectQuery();
          $query->getSelect()->clearFields();
          $f($query);
          $sql = $query->build();
          $this->values = array_merge($this->values, $query->getValues());
  
          return '('.$sql.')';
      }
code: protected function buildSubquery(callable $f)
      {
          $query = new SelectQuery();
          $query->getSelect()->clearFields();
          $f($query);
          $sql = $query->build();
          $this->values = array_merge($this->values, $query->getValues());
  
          return '('.$sql.')';
      }
code_tokens: protected function buildSubquery ( callable $ f ) { $ query = new SelectQuery ( ) ; $ query -> getSelect ( ) -> clearFields ( ) ; $ f ( $ query ) ; $ sql = $ query -> build ( ) ; $ this -> values = array_merge ( $ this -> values , $ query -> getValues ( ) ) ; return '(' . $ sql . ')' ; }
docstring: Builds a subquery.
  
  @param callable $f
  
  @return string
docstring_tokens: Builds a subquery .