query-17539c4a516c390462f3a8e167017fb9

rq turtle/ttl

title:Relations connecting to Incorporated Educational Institution as tail entity SELECT ?prop (Sample(?propLabel) AS ?label) (COUNT(?prop) AS ?count) WHERE { { SELECT DISTINCT ?item ?prop WHERE { hint:Query hint:optimizer "None" . ?item ?p wd:Q11448283. ?prop wikibase:directClaim ?p . } } . OPTIONAL { ?prop rdfs:label ?propLabel filter (lang(?propLabel) = "ja") } } GROUP BY ?prop ORDER BY DESC(?count)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
#title:Relations connecting to Incorporated Educational Institution as tail entity
SELECT ?prop (Sample(?propLabel) AS ?label) (COUNT(?prop) AS ?count)
WHERE
{
  {
    SELECT DISTINCT ?item ?prop WHERE {

      ?item ?p wd:Q11448283.
      ?prop wikibase:directClaim ?p .
    }
  } .
  OPTIONAL { ?prop rdfs:label ?propLabel filter (lang(?propLabel) = "ja") }
}
GROUP BY ?prop
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?count") v3("?item") v6("?label") v4("?p") v5("?prop"):::projected v2("?propLabel"):::projected c2(["wd:Q11448283"]):::iri v3 -->v4--> c2 v5 --"wikibase:directClaim"--> v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v5 -."rdfs:label".-> v2 end bind2[/"sample(?propLabel)"/] v2 --o bind2 bind2 --as--o v6 bind3[/"count(?prop)"/] v5 --o bind3 bind3 --as--o v7