Question: How many newscasts are there that include Stephen Colbert (whose video is Stephen Colbert Testifying in front of Congress.webm) and have 10 seasons?
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> "newscast" . ?e_1 <present_in_work> ?e . ?e_1 <pred:name> "Stephen Colbert" . ?e_1 <video> ?pv . ?pv <pred:value> "Stephen Colbert Testifying in front of Congress.webm" .  ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> ?v . FILTER ( ?v != "10"^^xsd:double ) .  }
Program:
function: Find
inputs: Stephen Colbert
function: FilterStr
dependencies: 0
inputs: video
Stephen Colbert Testifying in front of Congress.webm
function: Relate
dependencies: 1
inputs: present in work
forward
function: FilterConcept
dependencies: 2
inputs: newscast
function: FindAll
function: FilterNum
dependencies: 4
inputs: number of seasons
10
!=
function: FilterConcept
dependencies: 5
inputs: newscast
function: And
dependencies: 3
6
function: Count
dependencies: 7
Answer: 1