Optimization of extended database query languages | Synapse