Question: Is there a greater area in Newburgh or Quincy (the one whose official name is Quincy)?
Choices: Boulder
Newburgh
Lansing
Columbus
Waukegan
Franklin
Quincy
Compton
New Haven
Greenville
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Newburgh" . } UNION { ?e <pred:name> "Quincy" . ?e <official_name> ?pv_1 . ?pv_1 <pred:value> "Quincy" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Newburgh
function: Find
inputs: Quincy
function: FilterStr
dependencies: 1
inputs: official name
Quincy
function: SelectBetween
dependencies: 0
2
inputs: area
greater
Answer: Quincy