Question: How many communication media derive The Grapes of Wrath (that received an Academy Award for Best Supporting Actress) or have the ISSN 0362-4331?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "communication medium" .  { ?e <derivative_work> ?e_1 . ?e_1 <pred:name> "The Grapes of Wrath" . ?e_1 <award_received> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Supporting Actress" .  } UNION { ?e <ISSN> ?pv . ?pv <pred:value> "0362-4331" .  } }
Program:
function: Find
inputs: Academy Award for Best Supporting Actress
function: Relate
dependencies: 0
inputs: award received
backward
function: Find
inputs: The Grapes of Wrath
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: derivative work
backward
function: FilterConcept
dependencies: 4
inputs: communication medium
function: FindAll
function: FilterStr
dependencies: 6
inputs: ISSN
0362-4331
function: FilterConcept
dependencies: 7
inputs: communication medium
function: Or
dependencies: 5
8
function: Count
dependencies: 9