refactor untranslated query to return AR relation