Question: Which one has a bigger area, Tasmania (which has the capital Hobart) or greater Poland Voivodeship?
Choices:
Lublin Voivodeship
Tasmania
Greater Poland Voivodeship
Chiapas
Punjab
Lower Austria
Upper Austria
England
Podlaskie Voivodeship
New South Wales
Program:
function: Find
inputs: Greater Poland Voivodeship
function: Find
inputs: Hobart
function: Relate
dependencies: 1
inputs: capital of
forward
function: Find
inputs: Tasmania
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Greater Poland Voivodeship" .  } UNION { ?e <pred:name> "Tasmania" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Hobart" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Tasmania