Question: Which historic English county borders both Hertfordshire and Northamptonshire?
Choices: Hugo
Wuthering Heights
George Miller
Yorkshire
Sussex
Middlesex
Tony Richardson
Buckinghamshire
Cambridgeshire
Hogan Sheffer
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "historic county of England" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Hertfordshire" .  ?e <shares_border_with> ?e_2 . ?e_2 <pred:name> "Northamptonshire" .  }
Program:
function: Find
inputs: Hertfordshire
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: historic county of England
function: Find
inputs: Northamptonshire
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: historic county of England
function: And
dependencies: 2
5
function: What
dependencies: 6
Answer: Cambridgeshire