Complex sentence: David Marks, the character based on Durst, was portrayed by Ryan Gosling, and his wife Katie based on Kathie Durst was portrayed by Kirsten Dunst.
Split into simpler sentences: David Marks, the character based on Durst, was portrayed by Ryan Gosling. Marks's wife Katie, based on Kathie Durst, was portrayed by Kirsten Dunst.