Question: Which area is smaller, Australia (the one that is the origin of the name South Australia) or Lake District?
Choices:
Caribbean
Piedmont
Lake District
Africa
Southern California
Pacific Ocean
South America
Antarctica
Atlantic Canada
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: Lake District
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Australia" . ?e_1 <named_after> ?e . ?e_1 <pred:name> "South Australia" .   } UNION { ?e <pred:name> "Lake District" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Lake District