Question: Which movie is shorter, The Last Airbender (the one whose subreddit is TheLastAirbender) or Dragon Ball Z: Dead Zone?
Choices:
Dragon Ball Z: Dead Zone
A Prairie Home Companion
Training Day
The Last Airbender
Talk to Her
The Hunchback of Notre Dame
Pleasantville
Rebecca
The Towering Inferno
Curse of the Golden Flower
Program:
function: Find
inputs: The Last Airbender
function: FilterStr
dependencies: 0
inputs: subreddit
TheLastAirbender
function: Find
inputs: Dragon Ball Z: Dead Zone
function: SelectBetween
dependencies: 1
2
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Last Airbender" . ?e <subreddit> ?pv_1 . ?pv_1 <pred:value> "TheLastAirbender" . } UNION { ?e <pred:name> "Dragon Ball Z: Dead Zone" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Dragon Ball Z: Dead Zone