Question: how is Joseph Ferdinand of Bavaria and Leopold I, Holy Roman Emperor related?
Sentence (from "Joseph Ferdinand of Bavaria"): Joseph Ferdinand Leopold of Bavaria (28 October 1692 – 6 February 1699) was the son of Maximilian II Emanuel, Elector of Bavaria (1679–1705, 1714–1726) and his first wife, Maria Antonia of Austria, daughter of Leopold I, Holy Roman Emperor, maternal granddaughter of King Felipe IV of Spain.
Relevant evidence: Yes