Question: How many Italian regions are the filming locations of April (filmed in Italian) or report ITF5 as their NUTS code ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "region of Italy" .  { ?e_1 <filming_location> ?e . ?e_1 <pred:name> "April" . ?e_1 <original_language_of_film_or_TV_show> ?e_2 . ?e_2 <pred:name> "Italian" .  } UNION { ?e <NUTS_code> ?pv . ?pv <pred:value> "ITF5" .  } }
Program:
function: Find
inputs: Italian
function: Relate
dependencies: 0
inputs: original language of film or TV show
backward
function: Find
inputs: April
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: filming location
forward
function: FilterConcept
dependencies: 4
inputs: region of Italy
function: FindAll
function: FilterStr
dependencies: 6
inputs: NUTS code
ITF5
function: FilterConcept
dependencies: 7
inputs: region of Italy
function: Or
dependencies: 5
8
function: Count
dependencies: 9