Question: Which city has more households,  City of London or Shiraz (the one whose Dewey Decimal Classification is 2--5572)?
Choices:
Cork
Santo Domingo
Abidjan
Kilkenny
City of London
Kingston
Trieste
Bergen
Shiraz
Dundee
Answer: Shiraz
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "City of London" . } UNION { ?e <pred:name> "Shiraz" . ?e <Dewey_Decimal_Classification> ?pv_1 . ?pv_1 <pred:value> "2--5572" . } ?e <number_of_households> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: City of London
function: Find
inputs: Shiraz
function: FilterStr
dependencies: 1
inputs: Dewey Decimal Classification
2--5572
function: SelectBetween
dependencies: 0
2
inputs: number of households
greater