Using common subexpressions to optimize multiple queries | Synapse