query-ff7b38114a8a9b8bc167e2b79bc03d1e
Propertiesinstance of (P31)platform (P400)part of (P361)subclass of (P279)
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 DISTINCT ?item ?itemLabel ?handheld_platform ?handheld_platformLabel ?home_platform ?home_platformLabel ?generationLabel WHERE {
?item wdt:P31 wd:Q7889;
wdt:P400 ?home_platform, ?handheld_platform.
?home_platform wdt:P361 ?generation;
(wdt:P279*) wd:Q17589470.
?handheld_platform wdt:P361 ?generation;
(wdt:P279*) wd:Q941818.
?generation wdt:P31 wd:Q61697632.
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;
v4("?generation")
v3("?handheld_platform"):::projected
v2("?home_platform"):::projected
v1("?item"):::projected
c10(["bd:serviceParam"]):::iri
c6(["wd:Q17589470"]):::iri
c8(["wd:Q61697632"]):::iri
c2(["wd:Q7889"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c7(["wd:Q941818"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wdt:P400"--> v2
v1 --"wdt:P400"--> v3
v2 --"wdt:P361"--> v4
v2 --"wdt:P279"--> c6
v3 --"wdt:P361"--> v4
v3 --"wdt:P279"--> c7
v4 --"wdt:P31"--> c8
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end