query-a7e9753508b903ad7007583766ed5cb5
Q29052 is Vanderbilt University PREFIX target: http://www.wikidata.org/entity/Q29052
SELECT ?trial ?trialLabel ?PI ?PILabel WHERE { ?trial wdt:P31 wd:Q30612 . { ?trial wdt:P8329 ?PI .}
{ ?PI wdt:P108 [ wdt:P749 target: ] }
UNION
{ ?PI wdt:P1416 [ wdt:P749 target: ] }
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#>
# Q29052 is Vanderbilt University
PREFIX target: <http://www.wikidata.org/entity/Q29052>
SELECT ?trial ?trialLabel ?PI ?PILabel WHERE {
?trial wdt:P31 wd:Q30612 .
{ ?trial wdt:P8329 ?PI .}
{ ?PI wdt:P108 [ wdt:P749* target: ] }
UNION
{ ?PI wdt:P1416 [ wdt:P749* target: ] }
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("?PI"):::projected
v1("?trial"):::projected
a1((" "))
a2((" "))
c5(["wd:Q29052"]):::iri
c9(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q30612"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wdt:P8329"--> v2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
a2 --"wdt:P749"--> c5
v2 --"wdt:P1416"--> a2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
a1 --"wdt:P749"--> c5
v2 --"wdt:P108"--> a1
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end