original_string: public function getSelectQuery($select, $from, $where = false, $bind = array(), $orderBy = false, $groupBy = false, $limit = 0, $offset = 0)
      {
          $segmentExpression = $this->segmentExpression;
  
          $limitAndOffset = null;
          if($limit > 0) {
              $limitAndOffset = (int) $offset . ', ' . (int) $limit;
          }
  
          return $this->segmentQueryBuilder->getSelectQueryString($segmentExpression, $select, $from, $where, $bind,
              $groupBy, $orderBy, $limitAndOffset);
      }
code: public function getSelectQuery($select, $from, $where = false, $bind = array(), $orderBy = false, $groupBy = false, $limit = 0, $offset = 0)
      {
          $segmentExpression = $this->segmentExpression;
  
          $limitAndOffset = null;
          if($limit > 0) {
              $limitAndOffset = (int) $offset . ', ' . (int) $limit;
          }
  
          return $this->segmentQueryBuilder->getSelectQueryString($segmentExpression, $select, $from, $where, $bind,
              $groupBy, $orderBy, $limitAndOffset);
      }
code_tokens: public function getSelectQuery ( $ select , $ from , $ where = false , $ bind = array ( ) , $ orderBy = false , $ groupBy = false , $ limit = 0 , $ offset = 0 ) { $ segmentExpression = $ this -> segmentExpression ; $ limitAndOffset = null ; if ( $ limit > 0 ) { $ limitAndOffset = ( int ) $ offset . ', ' . ( int ) $ limit ; } return $ this -> segmentQueryBuilder -> getSelectQueryString ( $ segmentExpression , $ select , $ from , $ where , $ bind , $ groupBy , $ orderBy , $ limitAndOffset ) ; }
docstring: Extend an SQL query that aggregates data over one of the 'log_' tables with segment expressions.
  
  @param string $select The select clause. Should NOT include the **SELECT** just the columns, eg,
  `'t1.col1 as col1, t2.col2 as col2'`.
  @param array $from Array of table names (without prefix), eg, `array('log_visit', 'log_conversion')`.
  @param false|string $where (optional) Where clause, eg, `'t1.col1 = ? AND t2.col2 = ?'`.
  @param array|string $bind (optional) Bind parameters, eg, `array($col1Value, $col2Value)`.
  @param false|string $orderBy (optional) Order by clause, eg, `"t1.col1 ASC"`.
  @param false|string $groupBy (optional) Group by clause, eg, `"t2.col2"`.
  @param int $limit Limit number of result to $limit
  @param int $offset Specified the offset of the first row to return
  @param int If set to value >= 1 then the Select query (and All inner queries) will be LIMIT'ed by this value.
  Use only when you're not aggregating or it will sample the data.
  @return string The entire select query.
docstring_tokens: Extend an SQL query that aggregates data over one of the log_ tables with segment expressions .