Question: What country does the University of Kentucky's headquarter location in Lexington (the one whose elevation (above sea level) is 298 metre) belong to?
Choices:
Burkina Faso
Kingdom of Saxony
Russian Soviet Federative Socialist Republic
Ecuador
United States of America
Hungary
German Democratic Republic
Socialist Federal Republic of Yugoslavia
Suriname
Holy Roman Empire
Answer: United States of America
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "University of Kentucky" . ?e_2 <pred:name> "Lexington" . ?e_2 <elevation_above_sea_level> ?pv . ?pv <pred:unit> "metre" . ?pv <pred:value> "298"^^xsd:double . ?e_1 <headquarters_location> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <headquarters_location> ; <pred:fact_t> ?e_2 ] <country> ?qpv .  }
Program:
function: Find
inputs: University of Kentucky
function: Find
inputs: Lexington
function: FilterNum
dependencies: 1
inputs: elevation above sea level
298 metre
=
function: QueryRelationQualifier
dependencies: 0
2
inputs: headquarters location
country