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