Question: Which one, York (the one whose official name is York) or Monrovia, has greater area?
Choices: Trieste
York
Santo Domingo
Dundee
Kingston
Abidjan
Monrovia
Bergen
Chihuahua
Cork
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "York" . ?e <official_name> ?pv_1 . ?pv_1 <pred:value> "York" . } UNION { ?e <pred:name> "Monrovia" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: York
function: FilterStr
dependencies: 0
inputs: official name
York
function: Find
inputs: Monrovia
function: SelectBetween
dependencies: 1
2
inputs: area
greater
Answer: York