Question: What is the connection between Nantucket to Massachusetts (the one that is headed by attorney general)?
Choices:
lyrics by
record label
head of government
has contributing factor
natural product of taxon
located in the administrative territorial entity
chairperson
start point
lifestyle
discoverer or inventor
Answer: located in the administrative territorial entity
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Nantucket" . ?e_2 <pred:name> "Massachusetts" . ?e_2 <office_held_by_head_of_government> ?e_3 . ?e_3 <pred:name> "attorney general" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Nantucket
function: Find
inputs: attorney general
function: Relate
dependencies: 1
inputs: office held by head of government
backward
function: Find
inputs: Massachusetts
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4