query-d4706d5b12155277e7174872e02be4e0
title: Genes involved in the immune response to tuberculosis SELECT ?gene ?geneLabel WHERE { ?item wdt:P31 wd:Q4915012 ; wdt:P527 ?gene ; wdt:P1050 wd:Q12204 . ?gene wdt:P31 wd:Q7187 . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
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#>
#title: Genes involved in the immune response to tuberculosis
SELECT ?gene ?geneLabel WHERE {
?item wdt:P31 wd:Q4915012 ;
wdt:P527 ?gene ;
wdt:P1050 wd:Q12204 .
?gene wdt:P31 wd:Q7187 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?gene"):::projected
v1("?item")
c8(["bd:serviceParam"]):::iri
c2(["wd:Q4915012"]):::iri
c6(["wd:Q7187"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c5(["wd:Q12204"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wdt:P527"--> v2
v1 --"wdt:P1050"--> c5
v2 --"wdt:P31"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end