Question: When was P.S. I Love You written by Paul McCartney and performed by the folk rock band The Beatles published?
Choices: 2014-10-04
2009-03-06
2009-08-01
1967-08-04
2006-05-17
2010-11-11
2011-06-02
1986-09-01
1962-10-05
1988-09-09
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "P.S. I Love You" . ?e_1 <lyrics_by> ?e_3 . ?e_3 <pred:name> "Paul McCartney" . ?e_2 <pred:name> "The Beatles" . ?e_2 <genre> ?e_4 . ?e_4 <pred:name> "folk rock" . ?e_1 <performer> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <performer> ; <pred:fact_t> ?e_2 ] <publication_date> ?qpv .  }
Program:
function: Find
inputs: Paul McCartney
function: Relate
dependencies: 0
inputs: lyrics by
backward
function: Find
inputs: P.S. I Love You
function: And
dependencies: 1
2
function: Find
inputs: folk rock
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: The Beatles
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: performer
publication date
Answer: 1962-10-05