Question: Which show has more seasons, The Young and the Restless or It (the one that mainly depicts supernatural)?
Choices:
The Young and the Restless
Seinfeld
It
Game of Thrones
Bleak House
American Horror Story
Saturday Night's Main Event
Phineas and Ferb
Six Feet Under
Robot Chicken
Answer: The Young and the Restless
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Young and the Restless" .  } UNION { ?e <pred:name> "It" . ?e <main_subject> ?e_1 . ?e_1 <pred:name> "supernatural" .   } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Young and the Restless
function: Find
inputs: supernatural
function: Relate
dependencies: 1
inputs: main subject
backward
function: Find
inputs: It
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of seasons
greater