Question: How many cities in the US either have the postal code of 44052–44055 or was the working location of George W. Bush?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" .  { ?e <postal_code> ?pv . ?pv <pred:value> "44052–44055" .  } UNION { ?e_1 <work_location> ?e . ?e_1 <pred:name> "George W. Bush" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: postal code
44052–44055
function: FilterConcept
dependencies: 1
inputs: city of the United States
function: Find
inputs: George W. Bush
function: Relate
dependencies: 3
inputs: work location
forward
function: FilterConcept
dependencies: 4
inputs: city of the United States
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 3