updated relato find query to use a custom SQL