Added sql for cohorts demographic