what is the {media legend} for {The Guardian} has {logo image} as {The Guardian 2018.svg} ?
Is the logo imagine for the media legend for The Guardian called The Guardian 2018.svg?
Is the media legend for The Guardian the logo image named The Guardian 2018.svg?
SELECT ?d WHERE { FILTER ( CONTAINS ( ?m , 'The Guardian 2018.svg' ) ) . resource:The_Guardian property:logo_image ?j . ?j property:logo_image ?m . ?j property:media_legend ?d }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q11148> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P154> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <The Guardian 2018.svg> .
?statement <http://www.wikidata.org/entity/P2096> ?value. 
} 

SELECT ?value WHERE { wd:Q11148 p:P154 ?s . ?s ps:P154 ?x filter(contains(?x , 'The Guardian 2018.svg')) . ?s pq:P2096 ?value}