Question: What is the connection between Kentucky (the one that use English as the official language) and Frankfort?
Choices:
capital
film distribute region
allegiance
month of the year
designed to carry
terminus
production designer
production company
child astronomical body
donated by
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: official language
backward
function: Find
inputs: Kentucky
function: And
dependencies: 1
2
function: Find
inputs: Frankfort
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Kentucky" . ?e_1 <official_language> ?e_3 . ?e_3 <pred:name> "English" . ?e_2 <pred:name> "Frankfort" . ?e_1 ?p ?e_2 .  }
Answer: capital