Question: Which historic English county has a city, which is the origin of the name Cambridge (and the birthplace of Charles Sanders Peirce), as its capital ?
Choices:
public administration
Cambridgeshire
MeTV
Sussex
Beauty and the Beast
Middlesex
Cambridge
Coming Home
University of Nottingham
Yorkshire
Program:
function: Find
inputs: Charles Sanders Peirce
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Cambridge
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: named after
forward
function: FilterConcept
dependencies: 4
inputs: city
function: Relate
dependencies: 5
inputs: capital
backward
function: FilterConcept
dependencies: 6
inputs: historic county of England
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "historic county of England" . ?e <capital> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city" . ?e_3 <named_after> ?e_1 . ?e_3 <pred:name> "Cambridge" . ?e_4 <place_of_birth> ?e_3 . ?e_4 <pred:name> "Charles Sanders Peirce" .   }
Answer: Cambridgeshire