Question: Does Daredevil (that has Rosario Dawson as a cast member) or Bewitched (whose genre is soap opera) have more seasons?
Choices:
Dancing with the Stars
Bleak House
Game of Thrones
American Horror Story
Bewitched
Daredevil
Seinfeld
Robot Chicken
Phineas and Ferb
Six Feet Under
Program:
function: Find
inputs: Rosario Dawson
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Daredevil
function: And
dependencies: 1
2
function: Find
inputs: soap opera
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Bewitched
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of seasons
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Daredevil" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Rosario Dawson" .   } UNION { ?e <pred:name> "Bewitched" . ?e <genre> ?e_2 . ?e_2 <pred:name> "soap opera" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bewitched