( Fungi ( may ( have ( ( evolved ( from prokaryotes ) ) ( by endosymbiosis ) ) ) ) )
(ROOT (S (NP (NNP Fungi)) (VP (MD may) (VP (VB have) (VP (VBN evolved) (PP (IN from) (NP (NNS prokaryotes))) (PP (IN by) (NP (NNS endosymbiosis))))))))
Fungi may have evolved from prokaryotes by     endosymbiosis
(ROOT (S (NP (NNS Prokaryotes)) (VP (VBD were) (NP (NP (DT the) (JJ first) (NN living) (NNS things)) (SBAR (S (VP (TO to) (VP (VB evolve) (PP (IN on) (NP (NN earth))))))))) (. .)))