Question: What is the visual artwork that is named after John F. Kennedy?
Choices:
JFK
Rope
A Prairie Home Companion
Talk to Her
The Fifth Element
The Hunchback of Notre Dame
Pleasantville
Rebecca
Curse of the Golden Flower
The Towering Inferno
Program:
function: Find
inputs: John F. Kennedy
function: Relate
dependencies: 0
inputs: named after
backward
function: FilterConcept
dependencies: 1
inputs: visual artwork
function: FindAll
function: FilterStr
dependencies: 3
inputs: title
JFK
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 <named_after> ?e_1 . ?e_1 <pred:name> "John F. Kennedy" .  ?e <title> ?pv . ?pv <pred:value> "JFK" .  }
Answer: JFK