A row of children in yellow hats are gazing into an exhibit.
A row of children are wearing hats.
A row of children in yellow hats are gazing into an exhibit can be simplified to a row of children are wearing hats.
(-x)
(-x)