Use respond

Can we still have a type signature for `queryVarRequired`, please?