User:PAC2/Gérard

From Wikidata
Jump to navigation Jump to search
SELECT ?item ?itemLabel (YEAR(?birthdate) AS ?birthyear) ?gender ?genderLabel ?movie ?movieLabel ?distribution ?distributionLabel (YEAR(?date) AS ?year) WHERE {
  ?item (wdt:P106/(wdt:P279*)) wd:Q3455803;
    wdt:P27 wd:Q142;
    wdt:P21 ?gender;
    wdt:P569 ?birthdate;
    rdfs:label ?itemLabel.
  FILTER((YEAR(?birthdate)) > 1930 )
  FILTER((LANG(?itemLabel)) = "[AUTO_LANGUAGE]")
  ?gender rdfs:label ?genderLabel.
  FILTER((LANG(?genderLabel)) = "[AUTO_LANGUAGE]")
  ?movie wdt:P57 ?item;
    wdt:P577 ?date;
    wdt:P161 ?distribution;
    rdfs:label ?movieLabel.
  FILTER((LANG(?movieLabel)) = "[AUTO_LANGUAGE]")
  ?distribution rdfs:label ?distributionLabel.
  FILTER((LANG(?distributionLabel)) = "[AUTO_LANGUAGE]")
}
LIMIT 10
Try it!

Liste de films réalisés par des réalisatrices ou realisateurs de nationalité française nés après 1930 avec ou sans Gérard Depardieu.

SELECT DISTINCT ?item ?itemLabel (YEAR(?birthdate) AS ?birthyear) ?gender ?genderLabel ?movie ?movieLabel ?gerard WHERE {
  ?item (wdt:P106/(wdt:P279*)) wd:Q3455803;
    wdt:P27 wd:Q142;
    wdt:P21 ?gender;
    wdt:P569 ?birthdate;
    rdfs:label ?itemLabel.
  FILTER((YEAR(?birthdate)) > 1930 )
  FILTER((LANG(?itemLabel)) = "[AUTO_LANGUAGE]")
  ?gender rdfs:label ?genderLabel.
  FILTER((LANG(?genderLabel)) = "[AUTO_LANGUAGE]")
  ?movie wdt:P57 ?item;
    wdt:P577 ?date;
    wdt:P161 ?distribution;
    rdfs:label ?movieLabel.
  BIND(wd:Q106508 IN(?distribution) AS ?gerard)
  FILTER((LANG(?movieLabel)) = "[AUTO_LANGUAGE]")
  ?distribution rdfs:label ?distributionLabel.
  FILTER((LANG(?distributionLabel)) = "[AUTO_LANGUAGE]")
}
LIMIT 1000
Try it!

Version simplifiée

SELECT DISTINCT ?item ?itemLabel ?gender ?movie ?gerard WHERE {
  ?item (wdt:P106/(wdt:P279*)) wd:Q3455803;
    wdt:P27 wd:Q142;
    wdt:P21 ?gender;
    wdt:P569 ?birthdate;
    rdfs:label ?itemLabel.
  FILTER((YEAR(?birthdate)) > 1930 )
  FILTER((LANG(?itemLabel)) = "[AUTO_LANGUAGE]")
  ?movie wdt:P57 ?item;
    wdt:P161 ?distribution.
  BIND(wd:Q106508 IN(?distribution) AS ?gerard)
}
Try it!