Question: Which one, The Diary of Anne Frank (the one whose end time is 2009-01-09) or The Mary Tyler Moore Show, has the greater number of seasons?
Choices:
The Mary Tyler Moore Show
Game of Thrones
The Diary of Anne Frank
Saturday Night's Main Event
Bleak House
Robot Chicken
Six Feet Under
Dancing with the Stars
American Horror Story
Seinfeld
Answer: The Mary Tyler Moore Show
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Diary of Anne Frank" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "2009-01-09"^^xsd:date . } UNION { ?e <pred:name> "The Mary Tyler Moore Show" . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Diary of Anne Frank
function: FilterDate
dependencies: 0
inputs: end time
2009-01-09
=
function: Find
inputs: The Mary Tyler Moore Show
function: SelectBetween
dependencies: 1
2
inputs: number of seasons
greater