Question: Is there more area in San Marino with 7.09 sq km or in Amritsar?
Choices: San Marino
Abidjan
Kingston
Amritsar
Dundee
Kilkenny
Trieste
Cork
Bergen
Chihuahua
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "San Marino" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "7.09"^^xsd:double . } UNION { ?e <pred:name> "Amritsar" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: San Marino
function: FilterNum
dependencies: 0
inputs: area
7.09 square kilometre
=
function: Find
inputs: Amritsar
function: SelectBetween
dependencies: 1
2
inputs: area
greater
Answer: Amritsar