Question: What is the relationship between Beirut (the one whose publication date is 2018-08-10) and Lebanon (the one whose nominal GDP is 21796351575.4561 United States dollar)?
Choices:
has contributing factor
basic form of government
field of this occupation
draft pick from school
narrative location
voice type
designed by
legislative body
partially contains
record label
Answer: narrative location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Beirut" . ?e_1 <publication_date> ?pv . ?pv <pred:date> "2018-08-10"^^xsd:date . ?e_2 <pred:name> "Lebanon" . ?e_2 <nominal_GDP> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> "21796351575.4561"^^xsd:double . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Beirut
function: FilterDate
dependencies: 0
inputs: publication date
2018-08-10
=
function: Find
inputs: Lebanon
function: FilterNum
dependencies: 2
inputs: nominal GDP
21796351575.4561 United States dollar
=
function: QueryRelation
dependencies: 1
3