query display demo corrected