Thursday

Take a look at this example:

SELECT ?Paul_Gauguin ?image ?depicts ?depictsLabel ?Paul_GauguinLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?Paul_Gauguin wdt:P170 wd:Q37693.
OPTIONAL { ?Paul_Gauguin wdt:P18 ?image. }
?Paul_Gauguin wdt:P31 wd:Q3305213.
OPTIONAL { ?Paul_Gauguin wdt:P180 ?depicts. }
}
LIMIT 100