Question: What is the number of genres that have the release date that is after 1959 or are the genre of Hercules (that has Roger Bart as a voice actor)?
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> "genre" .  { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1959 ) .  } UNION { ?e_1 <genre> ?e . ?e_1 <pred:name> "Hercules" . ?e_1 <voice_actor> ?e_2 . ?e_2 <pred:name> "Roger Bart" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1959
>
function: FilterConcept
dependencies: 1
inputs: genre
function: Find
inputs: Roger Bart
function: Relate
dependencies: 3
inputs: voice actor
backward
function: Find
inputs: Hercules
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: genre
forward
function: FilterConcept
dependencies: 7
inputs: genre
function: Or
dependencies: 2
8
function: Count
dependencies: 9