Adding 0P and 0A query structure to cohort