Return array of hashes from query_freq