wrap branch query in parens