Question: Which show has fewer episodes, Egypt (the one whose genre is docudrama) or It (the one whose end time is 1990-11-20)?
Choices:
The Diary of Anne Frank
It
The Ten Commandments
The Pacific
The Stand
George Washington
Edge of Darkness
Roots
The Civil War
Egypt
Program:
function: Find
inputs: docudrama
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Egypt
function: And
dependencies: 1
2
function: Find
inputs: It
function: FilterDate
dependencies: 4
inputs: end time
1990-11-20
=
function: SelectBetween
dependencies: 3
5
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Egypt" . ?e <genre> ?e_1 . ?e_1 <pred:name> "docudrama" . } UNION { ?e <pred:name> "It" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "1990-11-20"^^xsd:date . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: It