Fix query table example

Make implementation work (and match documentation) again.