Question: What is the number of manifestations that are the distribution format of Shrek Forever After (that is released for PlayStation 3) or that received a Pulitzer Prize for Public Service?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "manifestation" .  { ?e_1 <distribution> ?e . ?e_1 <pred:name> "Shrek Forever After" . ?e_1 <platform> ?e_2 . ?e_2 <pred:name> "PlayStation 3" .  } UNION { ?e <award_received> ?e_1 . ?e_1 <pred:name> "Pulitzer Prize for Public Service" .  } }
Program:
function: Find
inputs: PlayStation 3
function: Relate
dependencies: 0
inputs: platform
backward
function: Find
inputs: Shrek Forever After
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: distribution
forward
function: FilterConcept
dependencies: 4
inputs: manifestation
function: Find
inputs: Pulitzer Prize for Public Service
function: Relate
dependencies: 6
inputs: award received
backward
function: FilterConcept
dependencies: 7
inputs: manifestation
function: Or
dependencies: 5
8
function: Count
dependencies: 9