Question: Which movie is shorter, The Fall (the one whose Twitter username is TheFallTV) or Ben 10 (the one whose number of seasons is 4)?
Choices: Batman Beyond
American Dad!
Ben 10
South Park
The Fall
The Cleveland Show
Aladdin
Robot Chicken
Tiny Toon Adventures
Phineas and Ferb
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Fall" . ?e <Twitter_username> ?pv_1 . ?pv_1 <pred:value> "TheFallTV" . } UNION { ?e <pred:name> "Ben 10" . ?e <number_of_seasons> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "4"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: The Fall
function: FilterStr
dependencies: 0
inputs: Twitter username
TheFallTV
function: Find
inputs: Ben 10
function: FilterNum
dependencies: 2
inputs: number of seasons
4
=
function: SelectBetween
dependencies: 1
3
inputs: duration
less
Answer: Ben 10