update example to use new defquery syntax