Complex sentence: The Yak-52 was designed originally as an aerobatic trainer for students in the Soviet DOSAAF training organisation, which trained both civilian sport pilots and military pilots.
Split into simpler sentences: The Yak-52 was designed originally as an aerobatic trainer for students in the Soviet DOSAAF training organisation. That organisation trained both civilian sport pilots and military pilots.