Question: Is the larger area occupied by Kelowna or by Jerusalem, whose native label is ירושלים?
Choices:
Santo Domingo
Kilkenny
Cork
Jerusalem
Trieste
Abidjan
Chihuahua
Bergen
Kelowna
Dundee
Program:
function: Find
inputs: Kelowna
function: Find
inputs: Jerusalem
function: FilterStr
dependencies: 1
inputs: native label
ירושלים
function: SelectBetween
dependencies: 0
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kelowna" . } UNION { ?e <pred:name> "Jerusalem" . ?e <native_label> ?pv_1 . ?pv_1 <pred:value> "ירושלים" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Kelowna