Question: Which show has more episodes, Seven Brides for Seven Brothers (the one whose number of episodes is 22) or I Spy (the one whose genre is comedy-drama)?
Choices: Seinfeld
Six Feet Under
I Spy
Saturday Night's Main Event
Phineas and Ferb
Dancing with the Stars
Seven Brides for Seven Brothers
American Horror Story
Game of Thrones
Bleak House
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Seven Brides for Seven Brothers" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "22"^^xsd:double . } UNION { ?e <pred:name> "I Spy" . ?e <genre> ?e_1 . ?e_1 <pred:name> "comedy-drama" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Seven Brides for Seven Brothers
function: FilterNum
dependencies: 0
inputs: number of episodes
22
=
function: Find
inputs: comedy-drama
function: Relate
dependencies: 2
inputs: genre
backward
function: Find
inputs: I Spy
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of episodes
greater
Answer: I Spy