Question: Which non-metropolitan county is different from North Yorkshire (the one that shares border with Lancashire)?
Choices: Derbyshire
North Yorkshire
Windsor
Devon
Cambridgeshire
Dorset
Essex
Kent
Gloucestershire
Hampshire
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> "North Yorkshire" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "Lancashire" .   }
Program:
function: Find
inputs: Lancashire
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: North Yorkshire
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
Answer: North Yorkshire