Question: Which show has more seasons, Daredevil (the one that has Rosario Dawson as a cast member) or Nurse Jackie?
Choices:
American Horror Story
Saturday Night's Main Event
Daredevil
Bleak House
Game of Thrones
Phineas and Ferb
Robot Chicken
Nurse Jackie
Six Feet Under
Seinfeld
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: Nurse Jackie
function: SelectBetween
dependencies: 3
4
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> "Nurse Jackie" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Nurse Jackie