Question: How many diseases are affected by the disease which was the main subject of Leaving Las Vegas?
Choices: 2
3
4
5
6
7
8
9
10
11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "disease" . ?e_1 <has_effect> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "disease" . ?e_2 <main_subject> ?e_1 . ?e_2 <pred:name> "Leaving Las Vegas" .   }
Program:
function: Find
inputs: Leaving Las Vegas
function: Relate
dependencies: 0
inputs: main subject
forward
function: FilterConcept
dependencies: 1
inputs: disease
function: Relate
dependencies: 2
inputs: has effect
forward
function: FilterConcept
dependencies: 3
inputs: disease
function: Count
dependencies: 4
Answer: 2