query-192c4678bfec14a5cdb6b1eb7d4cd502
Notable integers SELECT * WHERE { SELECT (SAMPLE(?item) as ?item) (SAMPLE(?itemLabel) as ?itemLabel) (SAMPLE(?value) as ?value) (GROUP_CONCAT(?class; SEPARATOR = " , ") AS ?classes) WHERE { ?item p:P31/ps:P31/wdt:P279* wd:Q12503. ?item p:P31 ?class. ?item wdt:P1181 ?value. SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } } GROUP BY ?item }
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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Notable integers
SELECT * WHERE {
SELECT
(SAMPLE(?item) as ?item)
(SAMPLE(?itemLabel) as ?itemLabel)
(SAMPLE(?value) as ?value)
(GROUP_CONCAT(?class; SEPARATOR = " , ") AS ?classes)
WHERE {
?item p:P31/ps:P31/wdt:P279* wd:Q12503.
?item p:P31 ?class.
?item wdt:P1181 ?value.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
GROUP BY ?item
}