public function generateQuery(IDruidQueryParameters $params)
    {
        // @var ReferralsByCompanyGroupByQueryParameters $params
        $query = $this->queryTemplate;

        $query = str_replace('{DATASOURCE}',    $params->dataSource,    $query);
        $query = str_replace('{STARTINTERVAL}', $params->startInterval, $query);
        $query = str_replace('{ENDINTERVAL}',   $params->endInterval,   $query);

        return $query;
    }