Question: What is the connection between Kentucky (the one that contains Louisville metropolitan area) to Franklin County (the one that contains Frankfort)?
Choices:
copyright representative
contains administrative territorial entity
filmography
costume designer
sponsor
next lower rank
diplomatic relation
follows
studies
religious order
Answer: contains administrative territorial entity
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Kentucky" . ?e_3 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_3 <pred:name> "Louisville metropolitan area" . ?e_2 <pred:name> "Franklin County" . ?e_4 <located_in_the_administrative_territorial_entity> ?e_2 . ?e_4 <pred:name> "Frankfort" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Louisville metropolitan area
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Kentucky
function: And
dependencies: 1
2
function: Find
inputs: Frankfort
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Franklin County
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7