Question: What is the connection between Kentucky (the one that shares border with West Virginia) to attorney general?
Choices:
country
tributary
office held by head of government
head of government
terminus
has effect
material used
different from
donated by
famous people
Answer: office held by head of government
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Kentucky" . ?e_1 <shares_border_with> ?e_3 . ?e_3 <pred:name> "West Virginia" . ?e_2 <pred:name> "attorney general" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: West Virginia
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Kentucky
function: And
dependencies: 1
2
function: Find
inputs: attorney general
function: QueryRelation
dependencies: 3
4