query to pull definitions