Question: Are there less seasons in 24 with Anil Kapoor or in Charmed which ended on 2006-05-21?
Choices:
The Stand
Edge of Darkness
Charmed
The Diary of Anne Frank
Battlestar Galactica
George Washington
The Ten Commandments
24
The Pacific
The Civil War
Program:
function: Find
inputs: Anil Kapoor
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: 24
function: And
dependencies: 1
2
function: Find
inputs: Charmed
function: FilterDate
dependencies: 4
inputs: end time
2006-05-21
=
function: SelectBetween
dependencies: 3
5
inputs: number of seasons
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "24" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Anil Kapoor" . } UNION { ?e <pred:name> "Charmed" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "2006-05-21"^^xsd:date . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: 24