query button completed