query-5a5a95e28794bd9f72bb9a67ba9fa6c4

rq turtle/ttl

Puestos de peruanos en las versiones de UCI World Ranking Puestos de peruanos en las versiones de UCI World Ranking Puestos de peruanos en las versiones de UCI World Ranking Plaatsen van Peruanen in de versies van UCI World Ranking

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT
  ?peruano
  ?peruanoLabel
  ?uci
  ?uciLabel
  ?puesto
{
  {?peruano wdt:P27 wd:Q419 }
  UNION
  {?peruano wdt:P19/wdt:P131* wd:Q419 }

  ?uci wdt:P361 wd:Q21857512.

  ?peruano wdt:P1344 ?uci;
           p:P1344 ?participación_enunciado.

  ?participación_enunciado ps:P1344 ?uci;
                           pq:P1352 ?puesto.

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
ORDER BY ASC(?puesto)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?participación_enunciado") v2("?peruano"):::projected v1("?puesto"):::projected v3("?uci"):::projected a1((" ")) c2(["wd:Q419"]):::iri c12(["bd:serviceParam"]):::iri c14(["#91;AUTO_LANGUAGE#93;"]):::literal c6(["wd:Q21857512"]):::iri subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 --"p:direct/P19"--> a1 a1 --"p:direct/P131"--> c2 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"p:direct/P27"--> c2 end union0r <== or ==> union0l end v3 --"p:direct/P361"--> c6 v2 --"p:direct/P1344"--> v3 v2 --"p:P1344"--> v4 v4 --"p:statement/P1344"--> v3 v4 --"p:qualifier/P1352"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end