Question: What is the connection between Valencia (the one whose official name is Valencia) to Bologna?
Choices:
currency
is a list of
drug used for treatment
located on terrain feature
owner of
coextensive with
conflict
twinned administrative body
place of origin (Switzerland)
employer
Answer: twinned administrative body
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Valencia" . ?e_1 <official_name> ?pv . ?pv <pred:value> "Valencia" . ?e_2 <pred:name> "Bologna" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Valencia
function: FilterStr
dependencies: 0
inputs: official name
Valencia
function: Find
inputs: Bologna
function: QueryRelation
dependencies: 1
2