Question: How many written works are derived from Catch-22 (the one that has Martin Balsam as a cast member) or is a skin cancer risk factor?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Martin Balsam
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Catch-22
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: based on
forward
function: FilterConcept
dependencies: 4
inputs: written work
function: Find
inputs: skin cancer
function: Relate
dependencies: 6
inputs: risk factor
backward
function: FilterConcept
dependencies: 7
inputs: written work
function: Or
dependencies: 5
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "written work" .  { ?e_1 <based_on> ?e . ?e_1 <pred:name> "Catch-22" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Martin Balsam" .  } UNION { ?e <risk_factor> ?e_1 . ?e_1 <pred:name> "skin cancer" .  } }
Answer: 2