query-969a3faf9b8f9e35a5d0b767ae2ee824
355 (auxiliary) WFM Dictionary No.
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Genes associated with at least two diseases
#defaultView:BubbleChart
SELECT ?gene ?geneLabel ?count
WHERE
{
{
SELECT ?gene (COUNT(?disease) AS ?count)
WHERE {
?gene wdt:P2293 ?disease .
?disease wdt:P31 wd:Q12136 .
}
GROUP BY ?gene
HAVING (?count > 1)
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
ORDER BY DESC(?count)
LIMIT 500
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count"):::projected
v3("?disease")
v2("?gene"):::projected
c6(["bd:serviceParam"]):::iri
c8(["en"]):::literal
c4(["wd:Q12136"]):::iri
f0[["?count > '1^^xsd:integer'"]]
f0 --> v4
v2 --"wdt:P2293"--> v3
v3 --"wdt:P31"--> c4
bind2[/"count(?disease)"/]
v3 --o bind2
bind2 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end