Specifying queries as relational expressions | Synapse