query-52a871df1624913db9da621c89f0ce2b
Tous les items qui sont produits en plus d'une langue et dont (un/un de ses) site-s web (est/sont) qualifié-s d'anglais. SELECT DISTINCT ?item ?itemLabel ?count WHERE { { SELECT DISTINCT ?item (COUNT(DISTINCT ?lang) AS ?count) WHERE { ?item wdt:P407 ?lang . ?item p:P856 ?statement . ?statement ps:P856 ?url . ?statement pq:P407 wd:Q1860 . } GROUP BY ?item } FILTER ( ?count > 1 ) SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . } } ORDER BY DESC(?count) ?itemL
Use at
- https://query.wikidata.org/sparql
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#>
#Tous les items qui sont produits en plus d'une langue et dont (un/un de ses) site-s web (est/sont) qualifié-s d'anglais.
SELECT DISTINCT ?item ?itemLabel ?count
WHERE
{
{
SELECT DISTINCT ?item (COUNT(DISTINCT ?lang) AS ?count) WHERE
{
?item wdt:P407 ?lang .
?item p:P856 ?statement .
?statement ps:P856 ?url .
?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"):::projected
v3("?item"):::projected
v2("?itemL")
v4("?lang")
v5("?statement")
v6("?url")
c8(["bd:serviceParam"]):::iri
c10(["en"]):::literal
c6(["wd:Q1860"]):::iri
f0[["?count > '1^^xsd:integer'"]]
f0 --> v7
v3 --"p:direct/P407"--> v4
v3 --"p:P856"--> v5
v5 --"p:statement/P856"--> v6
v5 --"p:qualifier/P407"--> c6
bind2[/"count(?lang)"/]
v4 --o bind2
bind2 --as--o v7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end