Question: Which one has more seasons, Paris (which uses the English language) or Chicago Fire which has the start time of 2012-10-10)
Choices:
Dancing with the Stars
Paris
Robot Chicken
Game of Thrones
Bleak House
Seinfeld
American Horror Story
Chicago Fire
Six Feet Under
Saturday Night's Main Event
Answer: Chicago Fire
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Paris" . ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "English" . } UNION { ?e <pred:name> "Chicago Fire" . ?e <start_time> ?pv_1 . ?pv_1 <pred:date> "2012-10-10"^^xsd:date . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: language of work or name
backward
function: Find
inputs: Paris
function: And
dependencies: 1
2
function: Find
inputs: Chicago Fire
function: FilterDate
dependencies: 4
inputs: start time
2012-10-10
=
function: SelectBetween
dependencies: 3
5
inputs: number of seasons
greater