Question: Which one has a bigger area, Charlottesville or Alexandria (which has a local dialing code of 703)
Choices:
Suffolk
Roanoke
Fairfax
Lynchburg
Charlottesville
Winchester
Williamsburg
Falls Church
Hampton
Alexandria
Answer: Alexandria
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Charlottesville" . } UNION { ?e <pred:name> "Alexandria" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "703" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Charlottesville
function: Find
inputs: Alexandria
function: FilterStr
dependencies: 1
inputs: local dialing code
703
function: SelectBetween
dependencies: 0
2
inputs: area
greater