Question: Does Bremen (whose NUTS code is DE5) or North Rhine-Westphalia have the larger area?
Choices:
Brandenburg
North Rhine-Westphalia
Bremen
Mecklenburg-Vorpommern
Bavaria
Rhineland-Palatinate
Lower Saxony
Thuringia
Saxony
Schleswig-Holstein
Program:
function: Find
inputs: Bremen
function: FilterStr
dependencies: 0
inputs: NUTS code
DE5
function: Find
inputs: North Rhine-Westphalia
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bremen" . ?e <NUTS_code> ?pv_1 . ?pv_1 <pred:value> "DE5" . } UNION { ?e <pred:name> "North Rhine-Westphalia" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: North Rhine-Westphalia