Question: Which area is larger, Nancy (the one whose official name is Nancy) or Wollongong?
Choices:
Fort Smith
Dnipro
Aachen
Bordeaux
Utrecht
Halle (Saale)
Wollongong
Stuttgart
Wuppertal
Lyon
Answer: Wollongong
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nancy" . ?e <official_name> ?pv_1 . ?pv_1 <pred:value> "Nancy" . } UNION { ?e <pred:name> "Wollongong" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Nancy
function: FilterStr
dependencies: 0
inputs: official name
Nancy
function: Find
inputs: Wollongong
function: SelectBetween
dependencies: 1
2
inputs: area
greater