Question: What is the name of the nicknamed Tom that studied at Harvard University?
Choices:
Max Fleischer
Sylvester Stallone
Jon Vitti
Tom Scott
Tom Johnson
Richard Gere
David Byrne
William Henry Harrison
Brian Tyler
Cole Porter
Program:
function: Find
inputs: Harvard University
function: Relate
dependencies: 0
inputs: educated at
backward
function: FilterConcept
dependencies: 1
inputs: human
function: FindAll
function: FilterStr
dependencies: 3
inputs: nickname
Tom
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 <educated_at> ?e_1 . ?e_1 <pred:name> "Harvard University" .  ?e <nickname> ?pv . ?pv <pred:value> "Tom" .  }
Answer: Tom Johnson