query-8c192db9201329098dcb91e6703cd5be
Propertiesstock exchange (P414)instance of (P31)subclass of (P279)industry (P452)product or material produced or service provided (P1056)ticker symbol (P249)
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?seLabel ?sym WHERE {
?item wdt:P414 ?se;
p:P414 [pq:P249 ?sym].
?item (wdt:P31/wdt:P279*) wd:Q4830453.
{?item wdt:P452 wd:Q880371}
UNION {?item wdt:P1056 wd:Q7397}.
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;
v1("?item"):::projected
v2("?se")
v3("?sym"):::projected
a1((" "))
a2((" "))
c8(["wd:Q880371"]):::iri
c6(["wd:Q4830453"]):::iri
c10(["wd:Q7397"]):::iri
c12(["bd:serviceParam"]):::iri
c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:direct/P414"--> v2
a1 --"p:qualifier/P249"--> v3
v1 --"p:P414"--> a1
v1 --"p:direct/P31"--> a2
a2 --"p:direct/P279"--> c6
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"p:direct/P1056"--> c10
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"p:direct/P452"--> c8
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end