DPR-759 - Intermediate SQL