Question: Which has less episodes, Infernal Affairs (whose number of episodes is 3) or Why We Fight (whose genre is propaganda film)?
Choices:
Ice Age
The Mummy
The Fast and the Furious
Final Destination
Rugrats
Dumb and Dumber
Infernal Affairs
Why We Fight
Star Wars
Die Hard
Answer: Infernal Affairs
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Infernal Affairs" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "3"^^xsd:double . } UNION { ?e <pred:name> "Why We Fight" . ?e <genre> ?e_1 . ?e_1 <pred:name> "propaganda film" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Infernal Affairs
function: FilterNum
dependencies: 0
inputs: number of episodes
3
=
function: Find
inputs: propaganda film
function: Relate
dependencies: 2
inputs: genre
backward
function: Find
inputs: Why We Fight
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of episodes
less