Question: Does The Office (that is in the situation comedy genre) or Back to the Future (that was released on 1991-09-07) have fewer episodes?
Choices:
Back to the Future
Dancing with the Stars
American Horror Story
Phineas and Ferb
Saturday Night's Main Event
Bleak House
The Office
Seinfeld
Game of Thrones
Six Feet Under
Answer: The Office
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Office" . ?e <genre> ?e_1 . ?e_1 <pred:name> "situation comedy" . } UNION { ?e <pred:name> "Back to the Future" . ?e <start_time> ?pv_1 . ?pv_1 <pred:date> "1991-09-07"^^xsd:date . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: situation comedy
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Office
function: And
dependencies: 1
2
function: Find
inputs: Back to the Future
function: FilterDate
dependencies: 4
inputs: start time
1991-09-07
=
function: SelectBetween
dependencies: 3
5
inputs: number of episodes
less