What idiots girls are! 
( ( What ( ( idiots girls ) are ) ) ! )
(ROOT (FRAG (SBAR (WHNP (WP What)) (S (NP (NNS idiots) (NNS girls)) (VP (VBP are)))) (. !)))
They believed girls to be the more intelligent gender.
( They ( ( ( believed girls ) ( to ( be ( the ( ( more intelligent ) gender ) ) ) ) ) . ) )
(ROOT (S (NP (PRP They)) (VP (VBD believed) (NP (NNS girls)) (S (VP (TO to) (VP (VB be) (NP (DT the) (ADJP (RBR more) (JJ intelligent)) (NN gender)))))) (. .)))