Question: How many movies published later than 1998 were released in Peru?
Choices:
110
111
112
113
114
115
116
117
118
119
Answer: 114
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1998 ) . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Peru" .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1998
>
function: FilterConcept
dependencies: 1
inputs: film
function: Find
inputs: Peru
function: Relate
dependencies: 3
inputs: film release region
backward
function: FilterConcept
dependencies: 4
inputs: film
function: And
dependencies: 2
5
function: Count
dependencies: 6