Question: Does Marshall, Texas or the Midland with local telephone code 989 have the higher population count?
Choices:
Waukegan
Boulder
Lansing
New Haven
Franklin
Columbus
Marshall, Texas
Compton
Midland
Greenville
Answer: Midland
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Marshall, Texas" . } UNION { ?e <pred:name> "Midland" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "989" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Marshall, Texas
function: Find
inputs: Midland
function: FilterStr
dependencies: 1
inputs: local dialing code
989
function: SelectBetween
dependencies: 0
2
inputs: population
greater