Question: Does Charlie's Angels (the one whose end time is 1981-06-24) or 24 (the one that has Michelle Forbes as a cast member) have greater number of episodes ?
Choices: Dancing with the Stars
Bleak House
24
Phineas and Ferb
Game of Thrones
Seinfeld
Six Feet Under
Robot Chicken
American Horror Story
Saturday Night's Main Event
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Charlie's Angels" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "1981-06-24"^^xsd:date . } UNION { ?e <pred:name> "24" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Michelle Forbes" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Charlie's Angels
function: FilterDate
dependencies: 0
inputs: end time
1981-06-24
=
function: Find
inputs: Michelle Forbes
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: 24
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of episodes
greater
Answer: 24