Question: Which one, Danville (the one whose Dewey Decimal Classification is 2--755666) or Staunton, has greater area?
Choices:
Falls Church
Roanoke
Fairfax
Staunton
Lynchburg
Danville
Winchester
Suffolk
Charlottesville
Williamsburg
Program:
function: Find
inputs: Danville
function: FilterStr
dependencies: 0
inputs: Dewey Decimal Classification
2--755666
function: Find
inputs: Staunton
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Danville" . ?e <Dewey_Decimal_Classification> ?pv_1 . ?pv_1 <pred:value> "2--755666" . } UNION { ?e <pred:name> "Staunton" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Danville