All of queries should return correct result even if including large number
#30000

kamipo wants to merge kamipo:all_of_queries_should_return_correct_result into rails:master

We do not currently have an analysis of these two commits