What is {lyracist} of {Imagine}, that has {label} is {EMI} ?
Who is the lyricist of the EMI label produced music 'Imagine'
Who is the lyricist of the EMI label produced song 'Imagine'?
SELECT ?g WHERE { resource:Imagine property:lyrics_by ?g . ?g property:record_label resource:EMI }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1971> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P676>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P264> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q183412> . }
SELECT ?answer WHERE { wd:Q1971 wdt:P676 ?answer . ?answer wdt:P264 wd:Q183412}
John Lennon