Question: What person is the spouse of Imelda Staunton and has the occupation of actor?
Choices:
Bill Maher
Drew Barrymore
William Henry Harrison
Sylvester Stallone
Richard Gere
Sofia Coppola
William Shatner
Jim Carter
Judy Garland
Emma Thompson
Answer: Jim Carter
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <spouse> ?e_1 . ?e_1 <pred:name> "Imelda Staunton" .  ?e <occupation> ?e_2 . ?e_2 <pred:name> "actor" .  }
Program:
function: Find
inputs: Imelda Staunton
function: Relate
dependencies: 0
inputs: spouse
backward
function: FilterConcept
dependencies: 1
inputs: human
function: Find
inputs: actor
function: Relate
dependencies: 3
inputs: occupation
backward
function: FilterConcept
dependencies: 4
inputs: human
function: And
dependencies: 2
5
function: What
dependencies: 6