Question: What Virginia county shares a border with Williamsburg?
Choices:
Greene County
Loudoun County
York County
Northampton County
Prince William County
Frederick County
Albemarle County
Augusta County
Henrico County
Warren County
Program:
function: Find
inputs: Williamsburg
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: county of Virginia
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Virginia" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Williamsburg" .   }
Answer: York County