Filtering for trait code equal QMGS