query-ebb6c7fe2ab0b8336c9c54547a498aa3

rq turtle/ttl

All items of Sci-Fi films that were initially published between 1990 to 1999 and that have articles on the Hebrew Wikipedia 00:49, 6 February 2020 (UTC)) talk (WikiJunkieI tried to create the code by myself but haven't succeeded so far. 05:45, 6 February 2020 (UTC)) talk (Dipsacus fullonumTry this. I sought for items which either is science fiction films, or films with genre = science fiction films. But it seems that all science fiction film is registered as the latter. If you want a link to the Hebrew article, change the blank node _:article to a variable (?article) and add it to GROUP BY and both SELECT. --

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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?film ?filmLabel ?first_publication_date
WHERE
{
  {
    SELECT ?film (MIN(?publication_date) AS ?first_publication_date)
    WHERE
    {
      ?film wdt:P31/wdt:P279* wd:Q11424. # film
      ?film (wdt:P136)|(wdt:P31/wdt:P279*) wd:Q471839. # science fiction film
      _:article schema:about ?film; schema:isPartOf <https://he.wikipedia.org/>. # article on hewiki
      ?film wdt:P577 ?publication_date.
    }
    GROUP BY ?film
  }
  FILTER (?first_publication_date >= "1990-00-00"^^xsd:date && ?first_publication_date < "2000-00-00"^^xsd:dat)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],he,en" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?film"):::projected v4("?first_publication_date"):::projected v3("?publication_date") a3((" ")) a1((" ")) a2((" ")) c10([https://he.wikipedia.org/]):::iri c15(["#91;AUTO_LANGUAGE#93;,he,en"]):::literal c13(["bd:serviceParam"]):::iri c7(["wd:Q471839"]):::iri c5(["wd:Q11424"]):::iri f0[["?first_publication_date >= '1990-00-00^^xsd:date'?first_publication_date < s2000-00-00^^<http://www.w3.org/2001/XMLSchema#dat>'"]] f0 --> v4 v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c5 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> a2 a2 --"wdt:P279"--> c7 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P136"--> c7 end union0r <== or ==> union0l end a3 --"schema:about"--> v2 a3 --"schema:isPartOf"--> c10 v2 --"wdt:P577"--> v3 bind2[/"min(?publication_date)"/] v3 --o bind2 bind2 --as--o v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end