Question: How many crimes are the main subject of Demolition Man (the one that has Denis Leary as a cast member) or  the work field of the Central Intelligence Agency?
Choices:
1
2
3
4
5
6
7
8
9
10
Program:
function: Find
inputs: Denis Leary
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Demolition Man
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: main subject
forward
function: FilterConcept
dependencies: 4
inputs: crime
function: Find
inputs: Central Intelligence Agency
function: Relate
dependencies: 6
inputs: field of work
forward
function: FilterConcept
dependencies: 7
inputs: crime
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> "crime" .  { ?e_1 <main_subject> ?e . ?e_1 <pred:name> "Demolition Man" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Denis Leary" .  } UNION { ?e_1 <field_of_work> ?e . ?e_1 <pred:name> "Central Intelligence Agency" .  } }
Answer: 2