query-76d563b5dc2185b8d8103a384472d7d6
Drugs used as treatment in family medicine SELECT DISTINCT ?item WHERE { ?item wdt:P31 wd:Q12140 . ?item wdt:P2175 ?condition . ?condition wdt:P1995 wd:Q6451760.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } } LIMIT 5000
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#>
#Drugs used as treatment in family medicine
SELECT DISTINCT ?item
WHERE {
?item wdt:P31 wd:Q12140 .
?item wdt:P2175 ?condition .
?condition wdt:P1995 wd:Q6451760.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
LIMIT 5000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?condition")
v1("?item"):::projected
c7(["bd:serviceParam"]):::iri
c2(["wd:Q12140"]):::iri
c5(["wd:Q6451760"]):::iri
c9(["en"]):::literal
v1 --"wdt:P31"--> c2
v1 --"wdt:P2175"--> v2
v2 --"wdt:P1995"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end