query-6118bca13c5f32dbac4a7a27fe7afbad
COVID-19 pandemic
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
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#>
SELECT
DISTINCT
?item ?title
(REPLACE(STR(?item), ".*Q", "Q") AS ?qid)
("P921" AS ?property)
("Q81068910" AS ?ReplaceWithYourTargetID)
("S887" AS ?heuristic)
("Q69652283" AS ?deduced)
WHERE {
hint:Query hint:optimizer "None".
{ SERVICE wikibase:mwapi {
bd:serviceParam wikibase:api "Search";
wikibase:endpoint "www.wikidata.org";
mwapi:srsearch ""covid-19" pandemic haswbstatement:P31=Q13442814 -haswbstatement:P921=Q81068910".
?page_title wikibase:apiOutput mwapi:title.
}
}
BIND(IRI(CONCAT(STR(wd:), ?page_title)) AS ?item)
?item wdt:P1476 ?title.
FILTER CONTAINS(LCASE(?title), "covid-19").
FILTER CONTAINS(LCASE(?title), "pandemic").
}