Question: Which movie is shorter, The Beatles (the one whose nickname is The White Album) or David Bowie (the one whose title is David Bowie)?
Choices:
Bedtime Stories
Metallica
The Beatles
Neil Young
Shakira
David Bowie
Illinois
Led Zeppelin
Friends
Peter Gabriel
Program:
function: Find
inputs: The Beatles
function: FilterStr
dependencies: 0
inputs: nickname
The White Album
function: Find
inputs: David Bowie
function: FilterStr
dependencies: 2
inputs: title
David Bowie
function: SelectBetween
dependencies: 1
3
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Beatles" . ?e <nickname> ?pv_1 . ?pv_1 <pred:value> "The White Album" . } UNION { ?e <pred:name> "David Bowie" . ?e <title> ?pv_2 . ?pv_2 <pred:value> "David Bowie" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: David Bowie