Filter rows based on subset of sample

Hi! I would like to filter annotated rows in a matrix table, based on a subset of my sample. Below is an example of what I’m trying to achieve, which doesn’t work:

mt_3 = mt.filter_rows((mt.is_singleton) & (mt.constraint.inGnomAD == True) & (~mt.constraint.indiscovEHR) & hl.is_defined(mt.phenotype.role == “parent”))

Thank you