Question: How is Barcelona (the one that is the twinned administrative body of Varna) related to Havana (the one whose population is 2,141,652) ?
Choices:
medical condition
follows
works in collection
permanent resident of
language used
broadcast by
game mode
twinned administrative body
territory overlaps
production company
Answer: twinned administrative body
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Barcelona" . ?e_3 <twinned_administrative_body> ?e_1 . ?e_3 <pred:name> "Varna" . ?e_2 <pred:name> "Havana" . ?e_2 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "2141652"^^xsd:double . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Varna
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: Find
inputs: Barcelona
function: And
dependencies: 1
2
function: Find
inputs: Havana
function: FilterNum
dependencies: 4
inputs: population
2141652
=
function: QueryRelation
dependencies: 3
5