query-879d8596677e3ad2b5fe56ece4acdbb1
Campeones de formula 1 y nĂºmero de campeonatos ganados
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 ?piloto ?pilotoLabel (COUNT(?campeonatos_formula1) AS ?numero_campeonatos) WHERE
{
?campeonatos_formula1 wdt:P3450 wd:Q1968 .
?campeonatos_formula1 wdt:P1346 ?piloto .
?piloto wdt:P31 wd:Q5 .
SERVICE wikibase:label
{ bd:serviceParam wikibase:language "[AUTO_LANGUAGE],es". }
}
GROUP BY ?piloto ?pilotoLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?campeonatos_formula1"):::projected
v3("?numero_campeonatos")
v2("?piloto"):::projected
c7(["bd:serviceParam"]):::iri
c2(["wd:Q1968"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,es"]):::literal
c5(["wd:Q5"]):::iri
v1 --"wdt:P3450"--> c2
v1 --"wdt:P1346"--> v2
v2 --"wdt:P31"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind1[/"count(?campeonatos_formula1)"/]
v1 --o bind1
bind1 --as--o v3