Question: Which show has more seasons, Quincy (the one whose duration is 46 minute) or The X-Files (the one that has Cary Elwes as a cast member)?
Choices:
The X-Files
Game of Thrones
Dancing with the Stars
American Horror Story
Phineas and Ferb
Quincy
Six Feet Under
Robot Chicken
Saturday Night's Main Event
Seinfeld
Answer: The X-Files
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Quincy" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "46"^^xsd:double . } UNION { ?e <pred:name> "The X-Files" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Cary Elwes" . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Quincy
function: FilterNum
dependencies: 0
inputs: duration
46 minute
=
function: Find
inputs: Cary Elwes
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: The X-Files
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of seasons
greater