Question: How many films are the genre of Scott Pilgrim vs. the World or have a publication date after 1983?
Choices:
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
Answer: 1779
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" .  { ?e_1 <genre> ?e . ?e_1 <pred:name> "Scott Pilgrim vs. the World" .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1983 ) .  } }
Program:
function: Find
inputs: Scott Pilgrim vs. the World
function: Relate
dependencies: 0
inputs: genre
forward
function: FilterConcept
dependencies: 1
inputs: film
function: FindAll
function: FilterYear
dependencies: 3
inputs: publication date
1983
>
function: FilterConcept
dependencies: 4
inputs: film
function: Or
dependencies: 2
5
function: Count
dependencies: 6