Question: How many counties in New York either have the Dewey Decimal Classification of 2--74735 or a population not equal to 5700??
Choices:
41
42
43
44
45
46
47
48
49
50
Answer: 45
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New York" .  { ?e <Dewey_Decimal_Classification> ?pv . ?pv <pred:value> "2--74735" .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "5700"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Dewey Decimal Classification
2--74735
function: FilterConcept
dependencies: 1
inputs: county of New York
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
5700
!=
function: FilterConcept
dependencies: 4
inputs: county of New York
function: Or
dependencies: 2
5
function: Count
dependencies: 6