Question: Who was replaced by Jimmy Carter, employed by Emory University, as President of the United States?
Choices:
John Tyler
Victoria
Joe Clark
Upper Normandy
James Callaghan
John Franklin Fort
Paul Martin
Gerald Ford
Tony Blair
John Tayler
Program:
function: Find
inputs: Emory University
function: Relate
dependencies: 0
inputs: employer
backward
function: Find
inputs: Jimmy Carter
function: And
dependencies: 1
2
function: Find
inputs: President of the United States
function: QueryRelationQualifier
dependencies: 3
4
inputs: position held
replaces
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Jimmy Carter" . ?e_1 <employer> ?e_3 . ?e_3 <pred:name> "Emory University" . ?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 .  }
Answer: Gerald Ford