Question: How many animated feature films are a part of National Treasure (which includes National Treasure: Book of Secrets as a part) or have a publication date before 2012?
Choices: 68
69
70
71
72
73
74
75
76
77
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated feature film" .  { ?e <part_of_the_series> ?e_1 . ?e_1 <pred:name> "National Treasure" . ?e_1 <has_part> ?e_2 . ?e_2 <pred:name> "National Treasure: Book of Secrets" .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2012 ) .  } }
Program:
function: Find
inputs: National Treasure: Book of Secrets
function: Relate
dependencies: 0
inputs: has part
backward
function: Find
inputs: National Treasure
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: part of the series
backward
function: FilterConcept
dependencies: 4
inputs: animated feature film
function: FindAll
function: FilterYear
dependencies: 6
inputs: publication date
2012
<
function: FilterConcept
dependencies: 7
inputs: animated feature film
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 69