Question: Which website represents Genesee County, which borders Niagara County?
Choices:
http://www.westportct.gov
http://www.cityofgainesville.org/
http://www.clive-owen.org
http://www.stlouisco.com
http://www.sonypictures.com/movies/olivertwist/
https://www.chemnitz.de/
http://DavidJonline.com
http://www.charlesbronson.info/
http://www.co.genesee.ny.us
http://www.co.northampton.va.us
Program:
function: Find
inputs: Niagara County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Genesee County
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: official website
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Genesee County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Niagara County" .  ?e <official_website> ?pv .  }
Answer: http://www.co.genesee.ny.us