query-eb1326423b8442dd96f84c5cf2907ecb
Propertiespart of (P361)number of medical tests (P8011)affiliation (P1416)point in time (P585)
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
#defaultView:BarChart
SELECT ?tests ?date ?lab WHERE {
?x wdt:P361 wd:Q91004675.
?x wdt:P8011 ?tests.
?x wdt:P1416 ?aff.
?aff rdfs:label ?lab.
FILTER(LANG(?lab)="en")
?x p:P8011 ?sttest.
?sttest pq:P585 ?date.
?sttest ps:P8011 ?tests.
}
ORDER BY DESC(?test)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?aff")
v7("?date"):::projected
v2("?lab"):::projected
v6("?sttest")
v1("?test")
v4("?tests"):::projected
v3("?x")
c3(["wd:Q91004675"]):::iri
f0[["?lab = 'en'"]]
f0 --> v2
v3 --"p:direct/P361"--> c3
v3 --"p:direct/P8011"--> v4
v3 --"p:direct/P1416"--> v5
v5 --"rdfs:label"--> v2
v3 --"p:P8011"--> v6
v6 --"p:qualifier/P585"--> v7
v6 --"p:statement/P8011"--> v4