Download this file
1 2 3 4 5 6
; cohortSummary (fn [exclude] (query {:select [:cohort [:%count.* :count]] :from [:dataset] :where [:not [:in :type exclude]] :group-by [:cohort]}))