query-b7e80776e6ee88dc024357d7f049a14f

rq turtle/ttl

TODO

Use at

PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/> 
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?player (count(?nationality) as ?count)
WHERE 
{
  wd:Q21011427 wdt:P527 ?player .
  OPTIONAL { ?player wdt:P569 ?birthday }.
  OPTIONAL { ?player wdt:P27 ?nationality }.
  OPTIONAL { ?player wdt:P1618 ?number } . 

  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "de" .
  }
} group by ?player

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?birthday") v5("?count") v3("?nationality"):::projected v4("?number") v1("?player"):::projected c9(["de"]):::literal c7(["bd:serviceParam"]):::iri c1(["wd:Q21011427"]):::iri c1 --"wdt:P527"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P569".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P27".-> v3 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P1618".-> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind1[/"count(?nationality)"/] v3 --o bind1 bind1 --as--o v5