YOU SAID:
the cat sat the mat wearing a hat
INTO JAPANESE
猫は帽子をかぶってマットに座っていた
BACK INTO ENGLISH
The cat was sitting on the mat wearing a hat.
INTO JAPANESE
猫は帽子をかぶってマットの上に座っていた。
BACK INTO ENGLISH
The cat was sitting on the mat wearing a hat.
Well done, yes, well done!