Question: Riyadh is the capital of Saudia Arabia, tel lme what or who got replaced.
Choices:
Gerald Ford
Honoré de Balzac
John C. Calhoun
Abel P. Upshur
Elizabeth II
Harry S. Truman
Jimmy Carter
Diriyah
Edward VII
Colin Powell
Program:
function: Find
inputs: Saudi Arabia
function: Find
inputs: Riyadh
function: QueryRelationQualifier
dependencies: 0
1
inputs: capital
replaces
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Saudi Arabia" . ?e_2 <pred:name> "Riyadh" . ?e_1 <capital> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <capital> ; <pred:fact_t> ?e_2 ] <replaces> ?qpv .  }
Answer: Diriyah