Question: How many animated feature films originated in the UK  or have the folk rock California as their theme music?
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> "animated feature film" .  { ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  } UNION { ?e <theme_music> ?e_1 . ?e_1 <pred:name> "California" . ?e_1 <genre> ?e_2 . ?e_2 <pred:name> "folk rock" .  } }
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country of origin
backward
function: FilterConcept
dependencies: 1
inputs: animated feature film
function: Find
inputs: folk rock
function: Relate
dependencies: 3
inputs: genre
backward
function: Find
inputs: California
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: theme music
backward
function: FilterConcept
dependencies: 7
inputs: animated feature film
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 5