Question: Which one of newcasts containing Stephen Colbert (who is present in The Colbert Report) is the longest ?
Choices:
Today
The Daily Show
Napoleonic Wars
Second Intifada
The Colbert Report
manufacturing
Western Desert Campaign
Orange
FreeBSD
Good Morning America
Program:
function: Find
inputs: The Colbert Report
function: Relate
dependencies: 0
inputs: present in work
backward
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: SelectAmong
dependencies: 5
inputs: duration
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "newscast" . ?e_1 <present_in_work> ?e . ?e_1 <pred:name> "Stephen Colbert" . ?e_1 <present_in_work> ?e_2 . ?e_2 <pred:name> "The Colbert Report" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Colbert Report