Question: Which has more seasons, Eve with 3 seasons or Torchwood?
Choices:
Robot Chicken
Seinfeld
Bleak House
Game of Thrones
Six Feet Under
Torchwood
Dancing with the Stars
Saturday Night's Main Event
American Horror Story
Eve
Program:
function: Find
inputs: Eve
function: FilterNum
dependencies: 0
inputs: number of seasons
3
=
function: Find
inputs: Torchwood
function: SelectBetween
dependencies: 1
2
inputs: number of seasons
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Eve" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "3"^^xsd:double . } UNION { ?e <pred:name> "Torchwood" . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Torchwood