finishing queries