query-22ccdab6fe72737904c8b4cbeea1ce1e

rq turtle/ttl

🪣 Most common fish in the invasion biology literature

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
#title: Most common fish in the invasion biology literature
#defaultView:BubbleChart

PREFIX target: <http://www.wikidata.org/prop/direct/P921>

SELECT ?count ?o ?taxonname 
WHERE {
   {
  SELECT (COUNT(?s) AS ?count) ?o WHERE {
    ?s target: ?o .
    ?o wdt:P105 wd:Q7432 .
    ?o wdt:P6104 wd:Q56241615 .
    ?o wdt:P938 ?fishbase .
  }
  GROUP BY ?o
  ORDER BY DESC(?count)
  LIMIT 100
}  ?o wdt:P225 ?taxonname .
}
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?count"):::projected v4("?fishbase") v3("?o"):::projected v2("?s") v5("?taxonname"):::projected c3(["wd:Q7432"]):::iri c5(["wd:Q56241615"]):::iri v2 --"wdt:P921"--> v3 v3 --"wdt:P105"--> c3 v3 --"wdt:P6104"--> c5 v3 --"wdt:P938"--> v4 bind1[/"count(?s)"/] v2 --o bind1 bind1 --as--o v5 v3 --"wdt:P225"--> v5