Question: What is the official website for a county of Illinois that borders Monroe County, the one with 33,010 inhabitants ?
Choices:
http://www.hofstra.edu
http://www.townofchapelhill.org
http://www.pamtillis.com/
http://www.quinlanroad.com
http://www.ville.laval.qc.ca/
http://www.columbiasc.net
http://www.efb.dk/
http://www.santana.com
http://www.beerhunter.com/
http://www.co.st-clair.il.us
Answer: http://www.co.st-clair.il.us
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Illinois" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Monroe County" . ?e_1 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "33010"^^xsd:double . ?e <official_website> ?pv .  }
Program:
function: Find
inputs: Monroe County
function: FilterNum
dependencies: 0
inputs: population
33010
=
function: Relate
dependencies: 1
inputs: shares border with
forward
function: FilterConcept
dependencies: 2
inputs: county of Illinois
function: QueryAttr
dependencies: 3
inputs: official website