Question: What is the connection between Province of Cagliari to Sardinia (the one that contains Province of Cagliari)?
Choices:
office held by head of government
feast day
illustrator
significant event
participant of
notable work
named after
derivative work
located in the administrative territorial entity
tributary
Answer: located in the administrative territorial entity
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Province of Cagliari" . ?e_2 <pred:name> "Sardinia" . ?e_3 <located_in_the_administrative_territorial_entity> ?e_2 . ?e_3 <pred:name> "Province of Cagliari" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Province of Cagliari
function: Find
inputs: Province of Cagliari
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Sardinia
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4