Question: Which one is larger, Newport (the one whose ISO 3166-2 code is GB-CNW) or West Chester ?
Choices:
San Juan County
Kent County
Cass County
Delaware County
West Chester
African Union
Orange County
Greene County
Newport
Lee County
Program:
function: Find
inputs: Newport
function: FilterStr
dependencies: 0
inputs: ISO 3166-2 code
GB-CNW
function: Find
inputs: West Chester
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Newport" . ?e <ISO_3166-2_code> ?pv_1 . ?pv_1 <pred:value> "GB-CNW" . } UNION { ?e <pred:name> "West Chester" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Newport