Question: How is Montana, which is led by the Secretary of State, related to a mountain?
Choices:
original film format
office held by head of government
taxon rank
position played on team / speciality
named after
next lower rank
creator
vehicle normally used
uses
operating system
Program:
function: Find
inputs: Secretary of State
function: Relate
dependencies: 0
inputs: office held by head of government
backward
function: Find
inputs: Montana
function: And
dependencies: 1
2
function: Find
inputs: mountain
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Montana" . ?e_1 <office_held_by_head_of_government> ?e_3 . ?e_3 <pred:name> "Secretary of State" . ?e_2 <pred:name> "mountain" . ?e_1 ?p ?e_2 .  }
Answer: named after