Question: Which show has fewer seasons, Twin Peaks (the one whose end time is 1991-06-10) or Santa Barbara (the one whose distributor is New World Pictures)?
Choices:
Santa Barbara
Twin Peaks
Robot Chicken
Bleak House
Game of Thrones
Seinfeld
American Horror Story
Phineas and Ferb
Six Feet Under
Dancing with the Stars
Answer: Twin Peaks
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Twin Peaks" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "1991-06-10"^^xsd:date . } UNION { ?e <pred:name> "Santa Barbara" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "New World Pictures" . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Twin Peaks
function: FilterDate
dependencies: 0
inputs: end time
1991-06-10
=
function: Find
inputs: New World Pictures
function: Relate
dependencies: 2
inputs: distributor
backward
function: Find
inputs: Santa Barbara
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of seasons
less