query-63e451bc56e3a320623ef09ce5f223c6

rq turtle/ttl

How do I query the caption of images?I'm trying to find images with captions, but this query returns no results.

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?image ?caption  WHERE { 
  ?item wdt:P18 ?image. 
  ?image wdt:P2096 ?caption.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?caption"):::projected v2("?image"):::projected v1("?item"):::projected c4(["bd:serviceParam"]):::iri c6(["en"]):::literal v1 --"wdt:P18"--> v2 v2 --"wdt:P2096"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end