Question: How many United States cities have a postal code of 90058 or are located in the United States of America?
Choices:
495
496
497
498
499
500
501
502
503
504
Answer: 497
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> "90058" .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: postal code
90058
function: FilterConcept
dependencies: 1
inputs: city of the United States
function: Find
inputs: United States of America
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: city of the United States
function: Or
dependencies: 2
5
function: Count
dependencies: 6