Test driver code for the qualifying query