Complex sentence: The written law comprises the Torah and the rest of the Tanakh, and the Oral Law was ultimately redacted in the Talmud and Midrash.
Split into simpler sentences: The written law comprises the Torah and the rest of the Tanakh. The Oral Law was ultimately redacted in the Talmud and Midrash.