Question: Which movie is shorter, Illinois (the one whose genre is indie folk) or Peter Gabriel (the one whose duration is 2732 second)?
Choices:
Led Zeppelin
Friends
David Bowie
Peter Gabriel
Bedtime Stories
Illinois
Metallica
Shakira
Neil Young
The Beatles
Program:
function: Find
inputs: indie folk
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Illinois
function: And
dependencies: 1
2
function: Find
inputs: Peter Gabriel
function: FilterNum
dependencies: 4
inputs: duration
2732 second
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Illinois" . ?e <genre> ?e_1 . ?e_1 <pred:name> "indie folk" . } UNION { ?e <pred:name> "Peter Gabriel" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "second" . ?pv_1 <pred:value> "2732"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Peter Gabriel