Question: Who is Laurence Olivier's spouse (the end time of this statement is 1989)?
Choices:
Joan Plowright
James E. Reilly
Rahul Dev Burman
Max Fleischer
David Byrne
William Henry Harrison
Laurence Olivier
Richard Gere
Sylvester Stallone
Simon Cowell
Program:
function: Find
inputs: Laurence Olivier
function: Relate
dependencies: 0
inputs: spouse
forward
function: QFilterYear
dependencies: 1
inputs: end time
1989
=
function: FilterConcept
dependencies: 2
inputs: human
function: What
dependencies: 3
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <spouse> ?e . ?e_1 <pred:name> "Laurence Olivier" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <spouse> ; <pred:fact_t> ?e ] <end_time> ?qpv . ?qpv <pred:year> 1989 .  }
Answer: Joan Plowright