private function buildSelectQuery(TimelineProviderInterface $provider, $context, array $args)
    {
        $data = $provider->fetchQuery($context, $args);
        
        return sprintf(
                'SELECT %s AS id, '
                . '%s AS "date", '
                . "'%s' AS type "
                . 'FROM %s '
                . 'WHERE %s',
                $data['id'],
                $data['date'],
                $data['type'],
                $data['FROM'],
                $data['WHERE']);
    }