Question: Which area is larger, Bohemia (the one that has military conflicts with Swedish Empire) or Eurasia?
Choices:
Antarctica
Bohemia
Eurasia
Lake District
South America
Africa
Atlantic Canada
Piedmont
Transylvania
Southern California
Program:
function: Find
inputs: Swedish Empire
function: Relate
dependencies: 0
inputs: military conflicts
backward
function: Find
inputs: Bohemia
function: And
dependencies: 1
2
function: Find
inputs: Eurasia
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bohemia" . ?e <military_conflicts> ?e_1 . ?e_1 <pred:name> "Swedish Empire" .   } UNION { ?e <pred:name> "Eurasia" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Eurasia