Question: What county of Virginia includes the capital of the independent city which is the birthplace of Tom Wolfe?
Choices:
Prince William County
Warren County
Augusta County
Northampton County
Henrico County
Virginia
Albemarle County
Frederick County
Loudoun County
Confederate States of America
Program:
function: Find
inputs: Tom Wolfe
function: Relate
dependencies: 0
inputs: place of birth
forward
function: FilterConcept
dependencies: 1
inputs: independent city
function: Relate
dependencies: 2
inputs: capital
backward
function: FilterConcept
dependencies: 3
inputs: county of Virginia
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Virginia" . ?e <capital> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "independent city" . ?e_2 <place_of_birth> ?e_1 . ?e_2 <pred:name> "Tom Wolfe" .   }
Answer: Henrico County