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