Question: Which area is smaller, Australia (the one that shares border with Eurasia) or Bohemia (the one that is a part of Czech Republic)?
Choices:
Antarctica
Bohemia
Lake District
Atlantic Canada
Transylvania
Pacific Ocean
Africa
Piedmont
South America
Australia
Program:
function: Find
inputs: Eurasia
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Australia
function: And
dependencies: 1
2
function: Find
inputs: Czech Republic
function: Relate
dependencies: 4
inputs: has part
forward
function: Find
inputs: Bohemia
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Australia" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Eurasia" .   } UNION { ?e <pred:name> "Bohemia" . ?e_2 <has_part> ?e . ?e_2 <pred:name> "Czech Republic" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Bohemia