Question: The politician Ted Kennedy studied at which school of law?
Choices: Brooklyn Law School
University of Virginia School of Law
University of Michigan Law School
University of Virginia
Harvard College
Fordham University School of Law
New York Law School
Harvard University
New York University School of Law
Harvard Law School
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "law school" . ?e_1 <educated_at> ?e . ?e_1 <pred:name> "Ted Kennedy" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "politician" .   }
Program:
function: Find
inputs: politician
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Ted Kennedy
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: educated at
forward
function: FilterConcept
dependencies: 4
inputs: law school
function: What
dependencies: 5
Answer: University of Virginia School of Law