Question: What visual artwork has the genre of romance film and has Ava Gardner as a cast member?
Choices:
Little Children
Snow Falling on Cedars
Around the World in 80 Days
Bolero
The Cassandra Crossing
Pride & Prejudice
Tyrannosaur
Singapore
The Crucible
The Killers
Program:
function: Find
inputs: romance film
function: Relate
dependencies: 0
inputs: genre
backward
function: FilterConcept
dependencies: 1
inputs: visual artwork
function: Find
inputs: Ava Gardner
function: Relate
dependencies: 3
inputs: cast member
backward
function: FilterConcept
dependencies: 4
inputs: visual artwork
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e <genre> ?e_1 . ?e_1 <pred:name> "romance film" .  ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Ava Gardner" .  }
Answer: Singapore