query-0f4a838bf1fc3ca317dff1591e67facc
Characters from the Mario franchise by games in which they appear
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#>
#defaultView:Graph
SELECT ?item ?itemLabel ?game ?gameLabel ("00FFFF" AS ?rgb) WHERE {
?item wdt:P31 wd:Q33093124.
?game wdt:P674 ?item;
wdt:P31 wd:Q7889.
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;
v2("?game"):::projected
v1("?item"):::projected
v3("?rgb")
c6(["bd:serviceParam"]):::iri
c4(["wd:Q7889"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q33093124"]):::iri
v1 --"wdt:P31"--> c2
v2 --"wdt:P674"--> v1
v2 --"wdt:P31"--> c4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind0[/"'00FFFF'"/]
bind0 --as--o v3