Question: How many counties of Massachusetts are there whose Dewey Decimal Classification is 2--74492 or whose capital is Springfield (local dialing code 413) ?
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> "county of Massachusetts" .  { ?e <Dewey_Decimal_Classification> ?pv . ?pv <pred:value> "2--74492" .  } UNION { ?e <capital> ?e_1 . ?e_1 <pred:name> "Springfield" . ?e_1 <local_dialing_code> ?pv . ?pv <pred:value> "413" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Dewey Decimal Classification
2--74492
function: FilterConcept
dependencies: 1
inputs: county of Massachusetts
function: Find
inputs: Springfield
function: FilterStr
dependencies: 3
inputs: local dialing code
413
function: Relate
dependencies: 4
inputs: capital
backward
function: FilterConcept
dependencies: 5
inputs: county of Massachusetts
function: Or
dependencies: 2
6
function: Count
dependencies: 7
Answer: 2