Question: How many diseases are either the main subject of The Bourne Identity (shot in Greece) or are a symptom of Chrohn's disease?
Choices:
2
3
4
5
6
7
8
9
10
11
Program:
function: Find
inputs: Greece
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: The Bourne Identity
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: main subject
forward
function: FilterConcept
dependencies: 4
inputs: disease
function: Find
inputs: Crohn's disease
function: Relate
dependencies: 6
inputs: symptom of
backward
function: FilterConcept
dependencies: 7
inputs: disease
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> "disease" .  { ?e_1 <main_subject> ?e . ?e_1 <pred:name> "The Bourne Identity" . ?e_1 <filming_location> ?e_2 . ?e_2 <pred:name> "Greece" .  } UNION { ?e <symptom_of> ?e_1 . ?e_1 <pred:name> "Crohn's disease" .  } }
Answer: 2