Added query task into task3