query-c9beb3db75b69ab3db20aaf8e5c08ad7

rq turtle/ttl

list of shipwrecksHi, I see that you added : (Q906512)shipwrecking (P360)is a list of (Q60541464)list of shipwrecks in 2019 and (Q852190)shipwreck (P360)is a list of (Q85851288)list of shipwrecks in 2020 More generally, see this query:

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?type (COUNT(?item) AS ?ct) WHERE {
  ?item wdt:P31 wd:Q13406463 ; rdfs:label ?itemLabelEN.
  FILTER((LANG(?itemLabelEN)) = "en")
  FILTER(REGEX(?itemLabelEN, "^list of shipwrecks"))
  ?item wdt:P360 ?type.
}
GROUP BY ?type

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?ct") v2("?item"):::projected v1("?itemLabelEN") v3("?type"):::projected c4(["wd:Q13406463"]):::iri f0[["regex(?itemLabelEN,'^list of shipwrecks')"]] f0 --> v1 f1[["?itemLabelEN = 'en'"]] f1 --> v1 v2 --"wdt:P31"--> c4 v2 --"rdfs:label"--> v1 v2 --"wdt:P360"--> v3 bind3[/"count(?item)"/] v2 --o bind3 bind3 --as--o v4