query-abc667448c6410f8a780d1783ee859f0
Chess players with least number of statements:
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 schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT
?item
(Sample(?itemLabel) as ?itemLabel)
(Sample(?itemDescription) as ?itemDescription)
(Sample(?st) as ?st)
(Sample(?sl) as ?sl)
(Sample(?ids) as ?ids)
(Sample(?dob) as ?dob)
WHERE {
?item wdt:P31 wd:Q5 .
?item wdt:P106 wd:Q10873124 .
?item wikibase:statements ?st .
?item wikibase:sitelinks ?sl .
OPTIONAL { ?item wdt:P569 ?dob .}
OPTIONAL { ?item wikibase:identifiers ?ids . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en".
?item rdfs:label ?itemLabel .
?item schema:description ?itemDescription . }
}
GROUP BY ?item
ORDER BY ASC(?st) ?item
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?dob"):::projected
v8("?ids"):::projected
v2("?item"):::projected
v8("?itemDescription"):::projected
v8("?itemLabel"):::projected
v8("?sl"):::projected
v8("?st"):::projected
c12(["en"]):::literal
c10(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c4(["wd:Q10873124"]):::iri
v2 --"wdt:P31"--> c2
v2 --"wdt:P106"--> c4
v2 --"wikibase:statements"--> v8
v2 --"wikibase:sitelinks"--> v8
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P569".-> v8
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wikibase:identifiers".-> v8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
v2 --"rdfs:label"--> v8
v2 --"schema:description"--> v8
end
bind6[/"sample(?itemLabel)"/]
v8 --o bind6
bind6 --as--o v8
bind7[/"sample(?itemDescription)"/]
v8 --o bind7
bind7 --as--o v8
bind8[/"sample(?st)"/]
v8 --o bind8
bind8 --as--o v8
bind9[/"sample(?sl)"/]
v8 --o bind9
bind9 --as--o v8
bind10[/"sample(?ids)"/]
v8 --o bind10
bind10 --as--o v8
bind11[/"sample(?dob)"/]
v8 --o bind11
bind11 --as--o v8