Question: Which one has more seasons among the newscasts that has Stephen Colbert (the Irish American) as a cast member?
Choices:
Second Intifada
Android
Orange
Today
The Daily Show
Good Morning America
Napoleonic Wars
manufacturing
Western Desert Campaign
The Colbert Report
Answer: The Daily Show
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "newscast" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Stephen Colbert" . ?e_1 <ethnic_group> ?e_2 . ?e_2 <pred:name> "Irish Americans" .  ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Irish Americans
function: Relate
dependencies: 0
inputs: ethnic group
backward
function: Find
inputs: Stephen Colbert
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: cast member
backward
function: FilterConcept
dependencies: 4
inputs: newscast
function: SelectAmong
dependencies: 5
inputs: number of seasons
largest