query-d4d2e556d71a5db320d844b3a8e76bce

rq turtle/ttl

avoir posé la question sur le Bistro de Wikidata]note 3[]note 4[(P407)language of work or name ]note 5[

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 ?item ?itemLabel
WHERE
{
{
  SELECT ?item (COUNT(DISTINCT ?lang) AS ?count) WHERE
{ 
  ?item wdt:P407 wd:Q1860 .
  ?item wdt:P407 ?lang .
  ?item p:P856 ?statement .
  ?statement ps:P856 ?url .
  MINUS {?statement pq:P407 wd:Q1860 . }
}
  GROUP BY ?item
}
FILTER ( ?count = 1 )
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
ORDER BY DESC(?count) ?itemL

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?count") v3("?item"):::projected v2("?itemL") v4("?lang") v5("?statement") v6("?url") c8(["bd:serviceParam"]):::iri c10(["en"]):::literal c3(["wd:Q1860"]):::iri f0[["?count = '1^^xsd:integer'"]] f0 --> v7 v3 --"p:direct/P407"--> c3 v3 --"p:direct/P407"--> v4 v3 --"p:P856"--> v5 v5 --"p:statement/P856"--> v6 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v5 --"p:qualifier/P407"--> c3 end bind3[/"count(?lang)"/] v4 --o bind3 bind3 --as--o v7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end