use activesupport to_query since it's already there