Question: How many films are a part of Die Hard published in 1988 or originally aired on HBO?
Choices:
5
6
7
8
9
10
11
12
13
14
Program:
function: Find
inputs: Die Hard
function: FilterYear
dependencies: 0
inputs: publication date
1988
=
function: Relate
dependencies: 1
inputs: has part
forward
function: FilterConcept
dependencies: 2
inputs: film
function: Find
inputs: HBO
function: Relate
dependencies: 4
inputs: original network
backward
function: FilterConcept
dependencies: 5
inputs: film
function: Or
dependencies: 3
6
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" .  { ?e_1 <has_part> ?e . ?e_1 <pred:name> "Die Hard" . ?e_1 <publication_date> ?pv . ?pv <pred:year> 1988 .  } UNION { ?e <original_network> ?e_1 . ?e_1 <pred:name> "HBO" .  } }
Answer: 12