Question: Is Sex and the City, with Kyle MacLachlan as a cast member, or the 3-episode Sense and Sensibility shorter in duration?
Choices:
Saturday Night's Main Event
Phineas and Ferb
Robot Chicken
Seinfeld
American Horror Story
Six Feet Under
Game of Thrones
Sex and the City
Bleak House
Sense and Sensibility
Program:
function: Find
inputs: Kyle MacLachlan
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Sex and the City
function: And
dependencies: 1
2
function: Find
inputs: Sense and Sensibility
function: FilterNum
dependencies: 4
inputs: number of episodes
3
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sex and the City" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Kyle MacLachlan" . } UNION { ?e <pred:name> "Sense and Sensibility" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "3"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Sex and the City