If there are 2 records with the same GroupID where one is Bad and one is Good, and the Age points to the same Rating for both records, then choose the record that is Bad to Output.
However, if there are 2 records with the same GroupID where one is Bad and one is Good, but the Age "does not"...