messaging: safely reduce Query objects