Question: Of ceremonial English counties bordering Surrey, which in turn borders Greater London, which takes up the biggest area?
Choices:
Northumberland
Kent
Warwickshire
East Sussex
Cumbria
Hampshire
Derbyshire
West Sussex
Somerset
Berkshire
Answer: Hampshire
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ceremonial county of England" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Surrey" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "Greater London" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Greater London
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Surrey
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: ceremonial county of England
function: SelectAmong
dependencies: 5
inputs: area
largest