query-b1e0a34590cc6ddb6304697aab55047f

rq turtle/ttl

List items that are letters ("133492), order by number of statements

we should remove scholarly articles

Adapted from:

List items that have a Biografisch Portaal number (P651), but have fewer than 6 statements

The SPARQL database isn't completely up to date for the number of statements, so this query will return fewer or incorrect items.

SELECT ?item ?itemLabel ?itemDescription ?statementcount WHERE { ?item wdt:P31 wd:Q133492 . ?item wikibase:statements ?statementcount . MINUS { ?item wdt:P31 wd:Q13442814 . } FILTER (?statementcount > 6 ) SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de,it,fr,es" . }
} ORDER BY DESC(?statementcount)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# List items that are letters ("133492), order by number of statements
# we should remove scholarly articles
# Adapted from:
# List items that have a Biografisch Portaal number (P651), but have fewer than 6 statements
# The SPARQL database isn't completely up to date for the number of statements, so this query will return fewer or incorrect items.

SELECT ?item ?itemLabel ?itemDescription ?statementcount WHERE {
  ?item wdt:P31 wd:Q133492 .
  ?item wikibase:statements ?statementcount .
  MINUS {
    ?item wdt:P31 wd:Q13442814 . }
  FILTER (?statementcount > 6 )
    SERVICE wikibase:label {
        bd:serviceParam wikibase:language "en,de,it,fr,es" .
    }          
} ORDER BY DESC(?statementcount)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v1("?statementcount"):::projected c3(["wd:Q133492"]):::iri c5(["wd:Q13442814"]):::iri c7(["bd:serviceParam"]):::iri c9(["en,de,it,fr,es"]):::literal f0[["?statementcount > '6^^xsd:integer'"]] f0 --> v1 v2 --"wdt:P31"--> c3 v2 --"wikibase:statements"--> v1 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P31"--> c5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end