Question: What movie was the director of She's Having a Baby a cast member of?
Choices:
I Now Pronounce You Chuck and Larry
A Prairie Home Companion
All Quiet on the Western Front
50 First Dates
Four Rooms
Flags of Our Fathers
Ferris Bueller's Day Off
Coriolanus
Ragtime
Shadowlands
Program:
function: Find
inputs: She's Having a Baby
function: Relate
dependencies: 0
inputs: director
forward
function: FilterConcept
dependencies: 1
inputs: human
function: Relate
dependencies: 2
inputs: cast member
backward
function: FilterConcept
dependencies: 3
inputs: film
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <cast_member> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_3 <director> ?e_1 . ?e_3 <pred:name> "She's Having a Baby" .   }
Answer: Ferris Bueller's Day Off