WIP toward query_all method.