assertThat(queryResult, everyResult(allVariants, withStudy(STUDY_NAME, withStats(StudyEntry.DEFAULT_COHORT, withMaf(gt(0.2))))));
int expectedCount = (int) VariantMatchers.count(allVariants.getResult(), withStudy(STUDY_NAME, withStats("cohort1", withMaf(gt(0.2)))));
numResults = count(new Query(STATS_MAF.key(), STUDY_NAME + ":cohort1>0.2"));
assertEquals(expectedCount, numResults);
queryResult = query(new Query(STUDY.key(), 1).append(STATS_MAF.key(), "10>0.2"), null);
assertEquals(expectedCount, queryResult.getNumResults());
assertThat(queryResult, everyResult(allVariants, withStudy(STUDY_NAME, withStats("cohort1", withMaf(gt(0.2))))));
assertThat(queryResult, everyResult(allVariants, withStudy(STUDY_NAME, withStats("cohort2", withMaf(gt(0.2))))));
withStats("cohort2", withMaf(gt(0.2))),
withStats("cohort1", withMaf(lt(0.2)))))));
withStats("cohort2", withMaf(gt(0.2))),
withStats("cohort1", withMaf(lt(0.2)))))));