Question: Among the television series that has John Corbett (the one that has the occupation of songwriter) as a cast member, which one has the smallest duration?
Choices:
Seinfeld
Game of Thrones
Six Feet Under
American Horror Story
Saturday Night's Main Event
Sex and the City
Phineas and Ferb
Robot Chicken
Bleak House
Northern Exposure
Answer: Sex and the City
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "John Corbett" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "songwriter" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: songwriter
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: John Corbett
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: cast member
backward
function: FilterConcept
dependencies: 4
inputs: television series
function: SelectAmong
dependencies: 5
inputs: duration
smallest