Which ruler was the grandfather of Philip V of Spain?
A. Charles II of Spain
B. Leopold I of Austria
C. Louis XIV of France
D. William III of England