Question: What country does Stanford where Stanford University's headquarter location is belong to?
Choices:
Sint Maarten
United States of America
Malaysia
Austria
Kingdom of Saxony
Greece
Ontario
Austria-Hungary
Slovakia
Saxe-Weimar-Eisenach
Program:
function: Find
inputs: Stanford University
function: Find
inputs: Stanford
function: QueryRelationQualifier
dependencies: 0
1
inputs: headquarters location
country
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Stanford University" . ?e_2 <pred:name> "Stanford" . ?e_1 <headquarters_location> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <headquarters_location> ; <pred:fact_t> ?e_2 ] <country> ?qpv .  }
Answer: United States of America