Question: What is the connection between Greenland (the one that is headed by prime minister) to North America?
Choices:
voice type
culture
commander of
performer
update method
sport
genre
terminus
located in the administrative territorial entity
continent
Program:
function: Find
inputs: prime minister
function: Relate
dependencies: 0
inputs: office held by head of government
backward
function: Find
inputs: Greenland
function: And
dependencies: 1
2
function: Find
inputs: North America
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Greenland" . ?e_1 <office_held_by_head_of_government> ?e_3 . ?e_3 <pred:name> "prime minister" . ?e_2 <pred:name> "North America" . ?e_1 ?p ?e_2 .  }
Answer: continent