Common Table Expressions in ActiveRecord: A Case Study of Quantiles
sonnym.github.io