query-33a48aefbcdf93275a48e00db1939c54

rq turtle/ttl

title: Pays de nationalité système (requête par Nicolas Vigneron) SELECT ?lieuLabel ?contLabel (COUNT(DISTINCT ?researcher) AS ?nb) WHERE { VALUES ?univ { wd:Q392189 wd:Q273527 wd:Q273619 wd:Q1054216 wd:Q67182995 wd:Q2945760 wd:Q3152656 wd:Q3151984 wd:Q3145326 wd:Q3145180 } ?researcher (wdt:P108|wdt:P463|wdt:P1416) ?univ . ?researcher wdt:P27 ?lieu . #?lieu wdt:P30 ?cont . #continent enlevé car certains pays sont sur plusieurs continents (utiliser Prefered rank pour corriger) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?lieuLabel ?contLabel ORDER BY DESC (?nb)

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#>
#title: Pays de nationalité système (requête par Nicolas Vigneron)
SELECT ?lieuLabel ?contLabel (COUNT(DISTINCT ?researcher) AS ?nb) WHERE {
  VALUES ?univ { wd:Q392189 wd:Q273527 wd:Q273619 wd:Q1054216 wd:Q67182995 wd:Q2945760 wd:Q3152656 wd:Q3151984 wd:Q3145326 wd:Q3145180 }
  ?researcher (wdt:P108|wdt:P463|wdt:P1416) ?univ .
  ?researcher wdt:P27 ?lieu .
  #?lieu wdt:P30 ?cont .  #continent enlevé car certains pays sont sur plusieurs continents (utiliser Prefered rank pour corriger)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?lieuLabel ?contLabel
ORDER BY DESC (?nb)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?lieu") v5("?nb") v3("?researcher"):::projected v2("?univ") c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/VALUES ?univ/] bind0-->v2 bind00(["wd:Q392189"]) bind00 --> bind0 bind01(["wd:Q273527"]) bind01 --> bind0 bind02(["wd:Q273619"]) bind02 --> bind0 bind03(["wd:Q1054216"]) bind03 --> bind0 bind04(["wd:Q67182995"]) bind04 --> bind0 bind05(["wd:Q2945760"]) bind05 --> bind0 bind06(["wd:Q3152656"]) bind06 --> bind0 bind07(["wd:Q3151984"]) bind07 --> bind0 bind08(["wd:Q3145326"]) bind08 --> bind0 bind09(["wd:Q3145180"]) bind09 --> bind0 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; v3 --"wdt:P1416"--> v2 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P463"--> v2 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P108"--> v2 end union0r <== or ==> union0l end v3 --"wdt:P27"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end bind2[/"count(?researcher)"/] v3 --o bind2 bind2 --as--o v5