query-d15f15ebc422a39553e27e49f9a06f50
Propertiesinstance of (P31)main subject (P921)subclass of (P279)logo image (P154)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?talk ?talkLabel ?subjectLabel ?logo
WHERE
{
?talk wdt:P31 wd:Q23011722.
?talk wdt:P921 ?subject.
?subject wdt:P31/wdt:P279* wd:Q7397.
OPTIONAL {?subject wdt:P154 ?logo}.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?logo"):::projected
v2("?subject")
v1("?talk"):::projected
a1((" "))
c5(["wd:Q7397"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q23011722"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wdt:P921"--> v2
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P154".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end