The rock cycle consists of the production and transformation of one type of rock into another: lava hardens to form an igneous rock, which subsequently is eroded into a sedimentary rock, which in turn can transform into a metamorphic rock.
(lava; to form; an igneous rock, which subsequently is eroded into a sedimentary rock,) (an igneous rock; is eroded; T:subsequently) (a sedimentary rock; can transform; into a metamorphic rock)
lava an igneous rock a sedimentary rock
to form is eroded can transform
an igneous rock, which subsequently is eroded into a sedimentary rock,
T:subsequently
into a metamorphic rock