DPR-614 - Intermediate SQL