query-0f450891d6801ce7ec9b5a2d63169c4e

rq turtle/ttl

TODO

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item  ?itemLabel ?date ?qqLabel ?v ?vLabel
WHERE {
  ?item wdt:P31 wd:Q19930933. 
  ?item wdt:P577 ?date. FILTER(?date >= "2024-01-01"^^xsd:dat) 
  ?item p:P527 ?hp.    
  ?hp a wikibase:BestRank .
  ?hp ?q ?v . filter (?q in (pq:P50, pq:P7122))
  ?qq wikibase:qualifier ?q .

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ASC(?date)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?date"):::projected v4("?hp") v3("?item"):::projected v2("?q") v6("?qq") v5("?v"):::projected c9(["wikibase:BestRank"]):::iri c5(["wd:Q19930933"]):::iri c12(["bd:serviceParam"]):::iri c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal list0c2(["p:qualifier/P7122"]):::iri list0c1(["p:qualifier/P50"]):::iri list0c1 --o f0 list0c2 --o f0 f0[[" in "]] f0 --> v2 f1[["?date >= s2024-01-01^^<http://www.w3.org/2001/XMLSchema#dat>'"]] f1 --> v1 v3 --"p:direct/P31"--> c5 v3 --"p:direct/P577"--> v1 v3 --"p:P527"--> v4 v4 --"a"--> c9 v4 -->v2--> v5 v6 --"wikibase:qualifier"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end