Question: What non-metropolitan county is located in Hampshire that borders West Sussex?
Choices:
North Yorkshire
Dorset
Cambridgeshire
Kent
Essex
Gloucestershire
Devon
Derbyshire
Southampton
Hampshire
Answer: Hampshire
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "non-metropolitan county" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Hampshire" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "West Sussex" .   }
Program:
function: Find
inputs: West Sussex
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Hampshire
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: non-metropolitan county
function: What
dependencies: 5