Question: Which has more area, Africa whose demonym is աֆրիկացի or Oceania?
Choices:
Oceania
Lake District
Africa
Antarctica
Caribbean
South America
Atlantic Canada
Pacific Ocean
Transylvania
Southern California
Program:
function: Find
inputs: Africa
function: FilterStr
dependencies: 0
inputs: demonym
աֆրիկացի
function: Find
inputs: Oceania
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Africa" . ?e <demonym> ?pv_1 . ?pv_1 <pred:value> "աֆրիկացի" . } UNION { ?e <pred:name> "Oceania" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Africa