create querygroup, delete guerygroup and add querygroup to table.