Work with multiple queries

#yolo