add brackets to validate query block