Question: Who is the person that is both Julia Roberts' spouse and also a member of the cast of Cookie's Fortune?
Choices:
Rahul Dev Burman
Sylvester Stallone
Lyle Lovett
Richard Gere
Patricia Neal
David Byrne
William Henry Harrison
Simon Cowell
Glenn Close
Max Fleischer
Program:
function: Find
inputs: Cookie's Fortune
function: Relate
dependencies: 0
inputs: cast member
forward
function: FilterConcept
dependencies: 1
inputs: human
function: Find
inputs: Julia Roberts
function: Relate
dependencies: 3
inputs: spouse
forward
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 <cast_member> ?e . ?e_1 <pred:name> "Cookie's Fortune" .  ?e_2 <spouse> ?e . ?e_2 <pred:name> "Julia Roberts" .  }
Answer: Lyle Lovett