query-806d526529c773903a8256ea4b4b9b7e

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT (COUNT(*) as ?count) ?n
WHERE
{
  ?prop wikibase:propertyType wikibase:ExternalId.
  ?prop wikibase:claim ?p .
  FILTER( ?prop != wd:P214 )
  FILTER( ?prop != wd:P1871 )
  wd:Q11922067 ?p ?st.
  ?st wikibase:rank ?goodrank .
  VALUES ?goodrank { wikibase:NormalRank wikibase:PreferredRank }
  wd:Q11922067 wikibase:identifiers ?n.
}
GROUP BY ?n

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?count") v5("?goodrank") v5("?n"):::projected v2("?p") v1("?prop") v3("?st") c6(["wd:Q11922067"]):::iri c4(["wikibase:ExternalId"]):::iri f0[["?prop != 'wd:P1871'"]] f0 --> v1 f1[["?prop != 'wd:P214'"]] f1 --> v1 v1 --"wikibase:propertyType"--> c4 v1 --"wikibase:claim"--> v2 c6 -->v2--> v3 v3 --"wikibase:rank"--> v5 bind2[/VALUES ?goodrank/] bind2-->v5 bind20(["wikibase:NormalRank"]) bind20 --> bind2 bind21(["wikibase:PreferredRank"]) bind21 --> bind2 c6 --"wikibase:identifiers"--> v5 bind4[/"count(*)"/] bind4 --as--o v6