defquery macro