Question: How many non-metropolitan districts are the filming locations of The Lives of Others and Cyrano de Bergerac (the one whose is in black-and-white)?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "non-metropolitan district" .  { ?e_1 <filming_location> ?e . ?e_1 <pred:name> "The Lives of Others" .  } UNION { ?e_1 <filming_location> ?e . ?e_1 <pred:name> "Cyrano de Bergerac" . ?e_1 <color> ?e_2 . ?e_2 <pred:name> "black-and-white" .  } }
Program:
function: Find
inputs: The Lives of Others
function: Relate
dependencies: 0
inputs: filming location
forward
function: FilterConcept
dependencies: 1
inputs: non-metropolitan district
function: Find
inputs: black-and-white
function: Relate
dependencies: 3
inputs: color
backward
function: Find
inputs: Cyrano de Bergerac
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: filming location
forward
function: FilterConcept
dependencies: 7
inputs: non-metropolitan district
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 0