Question: Which person influenced J. K. Rowling and received the Newbery Medal?
Choices:
Richard Gere
J. D. Salinger
Sylvia Plath
Lloyd Alexander
Neil Gaiman
Max Fleischer
C. S. Lewis
William Henry Harrison
David Byrne
Ursula K. Le Guin
Program:
function: Find
inputs: J. K. Rowling
function: Relate
dependencies: 0
inputs: influenced by
forward
function: FilterConcept
dependencies: 1
inputs: human
function: Find
inputs: Newbery Medal
function: Relate
dependencies: 3
inputs: award received
backward
function: FilterConcept
dependencies: 4
inputs: human
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <influenced_by> ?e . ?e_1 <pred:name> "J. K. Rowling" .  ?e <award_received> ?e_2 . ?e_2 <pred:name> "Newbery Medal" .  }
Answer: Lloyd Alexander