Question: Is the larger area occupied by Lancashire or by Kent, classified by Dewey Decimal as 2--4223?
Choices:
Derbyshire
Warwickshire
Lancashire
Northumberland
Cumbria
Staffordshire
Kent
Somerset
Norfolk
West Midlands
Program:
function: Find
inputs: Lancashire
function: Find
inputs: Kent
function: FilterStr
dependencies: 1
inputs: Dewey Decimal Classification
2--4223
function: SelectBetween
dependencies: 0
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lancashire" . } UNION { ?e <pred:name> "Kent" . ?e <Dewey_Decimal_Classification> ?pv_1 . ?pv_1 <pred:value> "2--4223" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Kent