They did this to us.
( They ( ( ( did this ) ( to us ) ) . ) )
(ROOT (S (NP (PRP They)) (VP (VBD did) (NP (DT this)) (PP (TO to) (NP (PRP us)))) (. .)))
The practical joke was played on them.
( ( The ( practical joke ) ) ( ( was ( played ( on them ) ) ) . ) )
(ROOT (S (NP (DT The) (JJ practical) (NN joke)) (VP (VBD was) (VP (VBN played) (PP (IN on) (NP (PRP them))))) (. .)))