query testbed