Question: What country does American University of Beirut's headquarters location (the one that is the headquarter location of Hezbollah) belong to?
Choices:
Ukraine
Slovenia
Albania
British Empire
Lebanon
Kenya Colony
Iceland
West Germany
Holy Roman Empire
Ontario
Answer: Lebanon
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "American University of Beirut" . ?e_2 <pred:name> "Beirut" . ?e_3 <headquarters_location> ?e_2 . ?e_3 <pred:name> "Hezbollah" . ?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: American University of Beirut
function: Find
inputs: Hezbollah
function: Relate
dependencies: 1
inputs: headquarters location
forward
function: Find
inputs: Beirut
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: headquarters location
country