How would one write the following SQL query using only Arel functions?
select array_to_string(array(select name from tags, taggings where tags.id=taggings.id), ', ')
Caveat: This is an SQL fragment that is supposed to be part of a larger correlated sub-query - it may not make sense in isolation.