Question: Which has greater elevation above sea level, Alexandria whose postal code is 71301-03, 06–07, 09, 11, 15 or Frederick whose population is 65239?
Choices:
New Haven
Lansing
Oakland
Boulder
Compton
Greenville
Franklin
Columbus
Waukegan
Frederick
Program:
function: Find
inputs: Alexandria
function: FilterStr
dependencies: 0
inputs: postal code
71301-03, 06–07, 09, 11, 15
function: Find
inputs: Frederick
function: FilterNum
dependencies: 2
inputs: population
65239
=
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alexandria" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "71301-03, 06–07, 09, 11, 15" . } UNION { ?e <pred:name> "Frederick" . ?e <population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "65239"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Frederick