Question: Which has more episodes, I Spy that has 3 seasons or 24 that stars Anil Kapoor?
Choices:
I Spy
Seinfeld
Game of Thrones
Phineas and Ferb
Bleak House
Dancing with the Stars
American Horror Story
Six Feet Under
Saturday Night's Main Event
24
Program:
function: Find
inputs: I Spy
function: FilterNum
dependencies: 0
inputs: number of seasons
3
=
function: Find
inputs: Anil Kapoor
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: 24
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "I Spy" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "3"^^xsd:double . } UNION { ?e <pred:name> "24" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Anil Kapoor" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: I Spy