query-c4c900a981947efb4e016e0805f716b5

rq turtle/ttl

Propertiesinstance of (P31)subclass of (P279)country (P17)number of records (P4876) Propertiesinstance of (P31)subclass of (P279)country (P17)number of records (P4876) Propertiesinstance of (P31)subclass of (P279)country (P17)number of records (P4876) Propertiesinstance of (P31)subclass of (P279)country (P17)number of records (P4876) Propertiesinstance of (P31)subclass of (P279)country (P17)number of records (P4876)

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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#>
SELECT DISTINCT ?item ?itemLabel ?number_of_records WHERE {
  ?item wdt:P31/wdt:P279* wd:Q18616576.
  ?item wdt:P17 wd:Q214.
  OPTIONAL { ?item wdt:P4876 ?number_of_records. }.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "sk,cz,en". }
} ORDER BY xsd:integer(SUBSTR(STR(?item),STRLEN('https://www.wikidata.org/entity/')+1))

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?number_of_records"):::projected a1((" ")) c7(["wd:Q214"]):::iri c10(["bd:serviceParam"]):::iri c12(["sk,cz,en"]):::literal c5(["wd:Q18616576"]):::iri v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c5 v1 --"wdt:P17"--> c7 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P4876".-> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end