Question: How many newscasts feature Stephen Colbert, who himself appears on The Colbert Report?
Choices: 2
3
4
5
6
7
8
9
10
11
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_2 <characters> ?e_1 . ?e_2 <pred:name> "The Colbert Report" .   }
Program:
function: Find
inputs: The Colbert Report
function: Relate
dependencies: 0
inputs: characters
forward
function: Find
inputs: Stephen Colbert
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: present in work
forward
function: FilterConcept
dependencies: 4
inputs: newscast
function: Count
dependencies: 5
Answer: 2