Question: Does Aargau or Saxony whose official name is Sachsen have less area?
Choices:
Saxony
Aargau
Chiapas
Lublin Voivodeship
Podlaskie Voivodeship
England
Greater Poland Voivodeship
Upper Austria
New South Wales
Punjab
Program:
function: Find
inputs: Aargau
function: Find
inputs: Saxony
function: FilterStr
dependencies: 1
inputs: official name
Sachsen
function: SelectBetween
dependencies: 0
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Aargau" . } UNION { ?e <pred:name> "Saxony" . ?e <official_name> ?pv_1 . ?pv_1 <pred:value> "Sachsen" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Aargau