Question: Which movie is shorter, Hercules (the one whose number of seasons is 2) or Crusade (the one that origins from United States of America)?
Choices:
The Cleveland Show
American Dad!
Tiny Toon Adventures
South Park
Hercules
Crusade
The Venture Bros.
Aladdin
Batman Beyond
Phineas and Ferb
Answer: Hercules
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hercules" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "2"^^xsd:double . } UNION { ?e <pred:name> "Crusade" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Hercules
function: FilterNum
dependencies: 0
inputs: number of seasons
2
=
function: Find
inputs: United States of America
function: Relate
dependencies: 2
inputs: country of origin
backward
function: Find
inputs: Crusade
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less