Question: What is the number of television series episodes whose filming is in Hawaii (that is the filming location of Forgetting Sarah Marshall) or director is Pamela Fryman?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Forgetting Sarah Marshall
function: Relate
dependencies: 0
inputs: filming location
forward
function: Find
inputs: Hawaii
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: filming location
backward
function: FilterConcept
dependencies: 4
inputs: television series episode
function: Find
inputs: Pamela Fryman
function: Relate
dependencies: 6
inputs: director
backward
function: FilterConcept
dependencies: 7
inputs: television series episode
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> "television series episode" .  { ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Hawaii" . ?e_2 <filming_location> ?e_1 . ?e_2 <pred:name> "Forgetting Sarah Marshall" .  } UNION { ?e <director> ?e_1 . ?e_1 <pred:name> "Pamela Fryman" .  } }
Answer: 4