Visual query tool for finding patient cohorts from a clinical data warehouse of the partners HealthCare system