The pure SQL approach is impressive. Would be interesting to see performance comparisons with traditional QR libraries at scale.