A set of SPARQL examples that are used in LOTUS
Taxa. Generic names corresponding to more than 1 QID.
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
#title: Taxa. Generic names corresponding to more than 1 QID.
SELECT DISTINCT ?name (COUNT(DISTINCT ?id) AS ?count) WHERE {
  ?id wdt:P31 wd:Q16521;
    wdt:P105 wd:Q34740;
    wdt:P225 ?name.
}
GROUP BY ?name
HAVING ((COUNT(?id)) > 1 )
ORDER BY DESC (?count)
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v4("?_anon_10efdcdefe764c0e83a3bb88fbf012e7350")
  v5("?count")
  v2("?id"):::projected 
  v3("?name"):::projected 
  a1((" "))
  c5(["wd:Q34740"]):::iri 
  c3(["wd:Q16521"]):::iri 
  f0[[" > '1^^xsd:integer'"]]
  f0 --> a1
  v2 --"wdt:P31"-->  c3
  v2 --"wdt:P105"-->  c5
  v2 --"wdt:P225"-->  v3
  bind3[/"count(?id)"/]
  v2 --o bind3
  bind3 --as--o v4
  bind4[/"count(?id)"/]
  v2 --o bind4
  bind4 --as--o v5