Question: Which has more area, Saxony-Anhalt that is located in the German Democratic Republic or the Australian Capital Territory?
Choices:
Saxony-Anhalt
England
Podlaskie Voivodeship
Chiapas
Greater Poland Voivodeship
Punjab
Minas Gerais
Lublin Voivodeship
Upper Austria
New South Wales
Program:
function: Find
inputs: German Democratic Republic
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Saxony-Anhalt
function: And
dependencies: 1
2
function: Find
inputs: Australian Capital Territory
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Saxony-Anhalt" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "German Democratic Republic" .   } UNION { ?e <pred:name> "Australian Capital Territory" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Saxony-Anhalt