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
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
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
Answer: Quincy