Figured out how to do query in one shot.