private function getElements(array $queries, StorageInterface $storage)
    {
        $elements = [];
        foreach ($queries as $query) {
            $elements[] = $this->getInterpreter($query)->visit($query, $storage);
        }

        return $elements;
    }