Wikidata SPARQL GND: Difference between revisions
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
SELECT ?id | SELECT ?id | ||
{ | { | ||
?item wdt:P31 wd:Q5. | |||
?item wdt:P227 ?id. | |||
?item wikibase:sitelinks ?sl. | |||
FILTER (?sl >= 1). | |||
} | |||
https://w.wiki/Rkt | |||
SELECT (COUNT(DISTINCT(?item)) AS ?count_item) (COUNT(DISTINCT(?id)) AS ?count_did) (COUNT(?id) AS ?count_id) | |||
{ | |||
?item wdt:P31 wd:Q5. | |||
?item wdt:P227 ?id. | |||
} | } |
Revision as of 2023-06-07T22:17:20
SELECT ?id { ?item wdt:P31 wd:Q5. ?item wdt:P227 ?id. ?item wikibase:sitelinks ?sl. FILTER (?sl >= 1). }
SELECT (COUNT(DISTINCT(?item)) AS ?count_item) (COUNT(DISTINCT(?id)) AS ?count_did) (COUNT(?id) AS ?count_id) { ?item wdt:P31 wd:Q5. ?item wdt:P227 ?id. }