Question: How many diseases result from alcoholism or were a major incident for Paul Simon, Carrie Fisher's husband?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: alcoholism
function: Relate
dependencies: 0
inputs: has cause
backward
function: FilterConcept
dependencies: 1
inputs: disease
function: Find
inputs: Carrie Fisher
function: Relate
dependencies: 3
inputs: spouse
backward
function: Find
inputs: Paul Simon
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: significant event
forward
function: FilterConcept
dependencies: 7
inputs: disease
function: Or
dependencies: 2
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "disease" .  { ?e <has_cause> ?e_1 . ?e_1 <pred:name> "alcoholism" .  } UNION { ?e_1 <significant_event> ?e . ?e_1 <pred:name> "Paul Simon" . ?e_1 <spouse> ?e_2 . ?e_2 <pred:name> "Carrie Fisher" .  } }
Answer: 3