Question: Is the episode count lower for Tinker Tailor Soldier Spy, with 7 episodes, or Titanic, featuring Catherine Zeta-Jones as cast member?
Choices:
Tinker Tailor Soldier Spy
Edge of Darkness
The Civil War
George Washington
The Ten Commandments
Roots
The Stand
Battlestar Galactica
Titanic
The Pacific
Answer: Titanic
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tinker Tailor Soldier Spy" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "7"^^xsd:double . } UNION { ?e <pred:name> "Titanic" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Catherine Zeta-Jones" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Tinker Tailor Soldier Spy
function: FilterNum
dependencies: 0
inputs: number of episodes
7
=
function: Find
inputs: Catherine Zeta-Jones
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Titanic
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of episodes
less