Question: Which show has fewer seasons, Into the West (the one whose number of seasons is 1) or Sex and the City (the one that has James Remar as a cast member)?
Choices:
Edge of Darkness
Roots
Into the West
Battlestar Galactica
Sex and the City
George Washington
The Diary of Anne Frank
The Civil War
The Stand
The Pacific
Program:
function: Find
inputs: Into the West
function: FilterNum
dependencies: 0
inputs: number of seasons
1
=
function: Find
inputs: James Remar
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Sex and the City
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of seasons
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Into the West" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1"^^xsd:double . } UNION { ?e <pred:name> "Sex and the City" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "James Remar" . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Into the West