Question: Which place has more people, Ireland (the one that has Northern Ireland as a part) or Bali (the one whose area is 5416 square kilometre)?
Choices: Long Island
Newfoundland
Maui
Hawaii
Guernsey
Ireland
Tasmania
Trinidad
Cyprus
Bali
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ireland" . ?e_1 <part_of> ?e . ?e_1 <pred:name> "Northern Ireland" . } UNION { ?e <pred:name> "Bali" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "5416"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Northern Ireland
function: Relate
dependencies: 0
inputs: part of
forward
function: Find
inputs: Ireland
function: And
dependencies: 1
2
function: Find
inputs: Bali
function: FilterNum
dependencies: 4
inputs: area
5416 square kilometre
=
function: SelectBetween
dependencies: 3
5
inputs: population
greater
Answer: Ireland