Question: For Shame, which was written by Ingmar Bergman, tell me its publication date.
Choices:
1995-11-17
1963-11-07
1984-05-18
1968-01-01
1985-02-20
1997-07-11
2003-12-04
1993-01-14
2002-10-28
2010-08-02
Program:
function: Find
inputs: Ingmar Bergman
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Shame
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: publication date
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Shame" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Ingmar Bergman" .  ?e <publication_date> ?pv .  }
Answer: 1968-01-01