Question: Which US city has postal code of 21740–21749?
Choices:
Elgin
New Haven
Beverly
Longview
Franklin
Arlington
Portland
Waukegan
Columbus
Hagerstown
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: postal code
21740–21749
function: FilterConcept
dependencies: 1
inputs: city of the United States
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e <postal_code> ?pv . ?pv <pred:value> "21740–21749" .  }
Answer: Hagerstown