Question: What is the number of neighborhoods that share a boundary with Los Angeles and are the filming location of Halloween (that has Will Patton as a cast member)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "neighborhood" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Los Angeles" .  ?e_2 <filming_location> ?e . ?e_2 <pred:name> "Halloween" . ?e_2 <cast_member> ?e_3 . ?e_3 <pred:name> "Will Patton" .  }
Program:
function: Find
inputs: Los Angeles
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: neighborhood
function: Find
inputs: Will Patton
function: Relate
dependencies: 3
inputs: cast member
backward
function: Find
inputs: Halloween
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: filming location
forward
function: FilterConcept
dependencies: 7
inputs: neighborhood
function: And
dependencies: 2
8
function: Count
dependencies: 9