Question: How is St. Louis County (official website http://www.stlouisco.com) related to Madison County (bordering St. Louis)?
Choices: territory claimed by
product or material produced
mascot
derivative work
residence
shares border with
student of
has part
nominated for
cause of death
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "St. Louis County" . ?e_1 <official_website> ?pv . ?pv <pred:value> "http://www.stlouisco.com" . ?e_2 <pred:name> "Madison County" . ?e_2 <shares_border_with> ?e_3 . ?e_3 <pred:name> "St. Louis" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: St. Louis County
function: FilterStr
dependencies: 0
inputs: official website
http://www.stlouisco.com
function: Find
inputs: St. Louis
function: Relate
dependencies: 2
inputs: shares border with
backward
function: Find
inputs: Madison County
function: And
dependencies: 3
4
function: QueryRelation
dependencies: 1
5
Answer: shares border with