Question: Which area is larger, Basra or Barcelona (the one whose demonym is Barcelonais)?
Choices:
Tianjin
Barcelona
İzmir
Busan
Alexandria
Dallas Stars
Odessa
Basra
Fremantle
Gibraltar
Answer: Basra
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Basra" . } UNION { ?e <pred:name> "Barcelona" . ?e <demonym> ?pv_1 . ?pv_1 <pred:value> "Barcelonais" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Basra
function: Find
inputs: Barcelona
function: FilterStr
dependencies: 1
inputs: demonym
Barcelonais
function: SelectBetween
dependencies: 0
2
inputs: area
greater