query-e08a53f92d66afc1b839a3ff0dad98bf

rq turtle/ttl

TODO

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT (count(DISTINCT ?item) as ?count)
WHERE
{
  VALUES ?place {wd:Q8692 wd:Q10313 wd:Q497801 wd:Q14318}
  ?item wdt:P291 ?place.
  ?item wdt:P577 ?publishing_date . 
  FILTER(?publishing_date >= "1700-01-01"^^xsd:date && ?publishing_date <= "1799-12-31"^^xsd:dat)
  BIND(YEAR(?publishing_date) as ?year_)
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?count") v3("?item"):::projected v2("?place") v1("?publishing_date") v4("?year_") f0[["?publishing_date >= '1700-01-01^^xsd:date'?publishing_date <= s1799-12-31^^<http://www.w3.org/2001/XMLSchema#dat>'"]] f0 --> v1 bind1[/VALUES ?place/] bind1-->v2 bind10(["wd:Q8692"]) bind10 --> bind1 bind11(["wd:Q10313"]) bind11 --> bind1 bind12(["wd:Q497801"]) bind12 --> bind1 bind13(["wd:Q14318"]) bind13 --> bind1 v3 --"wdt:P291"--> v2 v3 --"wdt:P577"--> v1 bind2[/"year-from-dateTime(?publishing_date)"/] v1 --o bind2 bind2 --as--o v4 bind4[/"count(?item)"/] v3 --o bind4 bind4 --as--o v5