Question: Which area is larger, Australia (the one that is the origin of the name South Australia) or Korea?
Choices:
Atlantic Canada
Pacific Ocean
Lake District
Australia
Korea
Antarctica
Africa
South America
Piedmont
Transylvania
Program:
function: Find
inputs: South Australia
function: Relate
dependencies: 0
inputs: named after
forward
function: Find
inputs: Australia
function: And
dependencies: 1
2
function: Find
inputs: Korea
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Australia" . ?e_1 <named_after> ?e . ?e_1 <pred:name> "South Australia" .   } UNION { ?e <pred:name> "Korea" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Australia