Question: Which area is larger, Antarctica (the one whose demonym is Antarcticaine) or Middle East?
Choices:
Caribbean
Piedmont
Southern California
Atlantic Canada
Pacific Ocean
Lake District
Antarctica
Africa
South America
Transylvania
Program:
function: Find
inputs: Antarctica
function: FilterStr
dependencies: 0
inputs: demonym
Antarcticaine
function: Find
inputs: Middle East
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Antarctica" . ?e <demonym> ?pv_1 . ?pv_1 <pred:value> "Antarcticaine" . } UNION { ?e <pred:name> "Middle East" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Antarctica