Inferring a Tree from Lowest Common Ancestors with an Application to the Optimization of Relational Expressions | Synapse