Question: Between Bremen in Germany or Rhineland-Palatinate, which takes up the smaller area?
Choices:
Brandenburg
Saxony
Rhineland-Palatinate
Bavaria
Lower Saxony
Thuringia
Schleswig-Holstein
Bremen
North Rhine-Westphalia
Mecklenburg-Vorpommern
Program:
function: Find
inputs: Germany
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Bremen
function: And
dependencies: 1
2
function: Find
inputs: Rhineland-Palatinate
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bremen" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Germany" .   } UNION { ?e <pred:name> "Rhineland-Palatinate" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Bremen