Question: Which Pennsylvania county shares borders with Mercer County (the one whose official website is http://www.mcc.co.mercer.pa.us)?
Choices:
Butler County
Fayette County
Luzerne County
Trumbull County
Allegheny County
Warren County
Bucks County
Franklin County
Cumberland County
Mahoning County
Program:
function: Find
inputs: Mercer County
function: FilterStr
dependencies: 0
inputs: official website
http://www.mcc.co.mercer.pa.us
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: county of Pennsylvania
function: What
dependencies: 3
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Pennsylvania" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Mercer County" . ?e_1 <official_website> ?pv . ?pv <pred:value> "http://www.mcc.co.mercer.pa.us" .   }
Answer: Butler County