Question: Which has more people, Tempe or Newport (the one whose official website is http://www.cityofnewport.com)?
Choices:
Compton
Franklin
Waukegan
Oakland
New Haven
Tempe
Lansing
Boulder
Newport
Columbus
Answer: Tempe
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tempe" . } UNION { ?e <pred:name> "Newport" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.cityofnewport.com" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Tempe
function: Find
inputs: Newport
function: FilterStr
dependencies: 1
inputs: official website
http://www.cityofnewport.com
function: SelectBetween
dependencies: 0
2
inputs: population
greater