Question: Who is the person that directed Beverly Hills, 90210 and attended Beverly Hills High School?
Choices:
Rob Reiner
Gina Gershon
Tori Spelling
William Henry Harrison
Angelina Jolie
Nora Ephron
Albert Brooks
Sylvester Stallone
Jack Bender
Max Fleischer
Program:
function: Find
inputs: Beverly Hills, 90210
function: Relate
dependencies: 0
inputs: director
forward
function: FilterConcept
dependencies: 1
inputs: human
function: Find
inputs: Beverly Hills High School
function: Relate
dependencies: 3
inputs: educated at
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 <director> ?e . ?e_1 <pred:name> "Beverly Hills, 90210" .  ?e <educated_at> ?e_2 . ?e_2 <pred:name> "Beverly Hills High School" .  }
Answer: Tori Spelling