Question: How many schools served as the filming location of American Pie (with Malta as the release region) and are also the military branch of British Army ?
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> "school" . ?e_1 <filming_location> ?e . ?e_1 <pred:name> "American Pie" . ?e_1 <film_release_region> ?e_2 . ?e_2 <pred:name> "Malta" .  ?e <military_branch> ?e_3 . ?e_3 <pred:name> "British Army" .  }
Program:
function: Find
inputs: Malta
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: American Pie
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: filming location
forward
function: FilterConcept
dependencies: 4
inputs: school
function: Find
inputs: British Army
function: Relate
dependencies: 6
inputs: military branch
backward
function: FilterConcept
dependencies: 7
inputs: school
function: And
dependencies: 5
8
function: Count
dependencies: 9