Question: Of visual artworks written by Ian Fleming, author of From Russia with Love, which is shortest?
Choices:
You Only Live Twice
Casino Royale
Thunderball
On Her Majesty's Secret Service
Goldfinger
Dr. No
Never Say Never Again
Live and Let Die
The Spy Who Loved Me
Diamonds Are Forever
Answer: Casino Royale
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e <after_a_work_by> ?e_1 . ?e_1 <pred:name> "Ian Fleming" . ?e_2 <after_a_work_by> ?e_1 . ?e_2 <pred:name> "From Russia with Love" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: From Russia with Love
function: Relate
dependencies: 0
inputs: after a work by
forward
function: Find
inputs: Ian Fleming
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: after a work by
backward
function: FilterConcept
dependencies: 4
inputs: visual artwork
function: SelectAmong
dependencies: 5
inputs: duration
smallest