Question: Who replaced James Monroe as the President of the United States because of his death due to tuberculosis?
Choices: Hillary Clinton
Barack Obama
Bill Clinton
James Madison
Lyndon B. Johnson
Frederick John Robinson, 1st Viscount Goderich
Henry Addington, 1st Viscount Sidmouth
Jimmy Carter
Harry S. Truman
Upper Normandy
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "James Monroe" . ?e_1 <cause_of_death> ?e_3 . ?e_3 <pred:name> "tuberculosis" . ?e_2 <pred:name> "President of the United States" . ?e_1 <position_held> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <position_held> ; <pred:fact_t> ?e_2 ] <replaces> ?qpv .  }
Program:
function: Find
inputs: tuberculosis
function: Relate
dependencies: 0
inputs: cause of death
backward
function: Find
inputs: James Monroe
function: And
dependencies: 1
2
function: Find
inputs: President of the United States
function: QueryRelationQualifier
dependencies: 3
4
inputs: position held
replaces
Answer: James Madison