Question: What is the connection between Idaho (the one whose nickname is Gem State) to Wyoming (the one that contains the administrative division Fremont County)?
Choices:
quotes work
sexual orientation
subsidiary
depicts
collection
shares border with
instrumentation
place of publication
director/manager
different from
Answer: shares border with
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Idaho" . ?e_1 <nickname> ?pv . ?pv <pred:value> "Gem State" . ?e_2 <pred:name> "Wyoming" . ?e_2 <contains_administrative_territorial_entity> ?e_3 . ?e_3 <pred:name> "Fremont County" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Idaho
function: FilterStr
dependencies: 0
inputs: nickname
Gem State
function: Find
inputs: Fremont County
function: Relate
dependencies: 2
inputs: contains administrative territorial entity
backward
function: Find
inputs: Wyoming
function: And
dependencies: 3
4
function: QueryRelation
dependencies: 1
5