Question: Which movie is shorter, Led Zeppelin (the one that is collected in Museum of Modern Art) or David Bowie (the one whose title is David Bowie)?
Choices:
Shakira
Illinois
Bedtime Stories
David Bowie
Friends
Led Zeppelin
The Beatles
Peter Gabriel
Metallica
Neil Young
Program:
function: Find
inputs: Museum of Modern Art
function: Relate
dependencies: 0
inputs: collection
backward
function: Find
inputs: Led Zeppelin
function: And
dependencies: 1
2
function: Find
inputs: David Bowie
function: FilterStr
dependencies: 4
inputs: title
David Bowie
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Led Zeppelin" . ?e <collection> ?e_1 . ?e_1 <pred:name> "Museum of Modern Art" . } UNION { ?e <pred:name> "David Bowie" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "David Bowie" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Led Zeppelin