query-e76b2a104da6ca071c904520033409e9

rq turtle/ttl

¿Cuál es la cantidad de obras literaria publicadas por cada peruane? ¿Cuál es la cantidad de obras literaria publicadas por cada peruane? ¿Cuál es la cantidad de obras literaria publicadas por cada peruane? Wat is het aantal literaire werken dat door een Peruaan is gepubliceerd?

Use at

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
  ?peruane
  ?peruaneLabel
  ?conteo
{
   {
  SELECT ?peruane (COUNT(*) AS ?conteo) {
     {
  SELECT DISTINCT ?peruane {
    {?peruane wdt:P27 wd:Q419}
    UNION
    {?peruane wdt:P19/wdt:P131* wd:Q419}
    UNION
    {?peruane wdt:P1532 wd:Q419}
  }
}
    [] wdt:P50 ?peruane;
       wdt:P31/wdt:P279* wd:Q7725634.
  }
  GROUP BY ?peruane
}
  SERVICE wikibase:label {bd:serviceParam wikibase:language "es"}.
}
ORDER BY DESC(?conteo)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?conteo"):::projected v2("?peruane"):::projected a2((" ")) a1((" ")) a3((" ")) c9(["wd:Q7725634"]):::iri c2(["wd:Q419"]):::iri c13(["es"]):::literal c11(["bd:serviceParam"]):::iri subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P1532"--> c2 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P19"--> a1 a1 --"wdt:P131"--> c2 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P27"--> c2 end union0r <== or ==> union0l end a2 --"wdt:P50"--> v2 a2 --"wdt:P31"--> a3 a3 --"wdt:P279"--> c9 bind1[/"count(*)"/] bind1 --as--o v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end