Talk:Q28026639

From Wikidata
Jump to navigation Jump to search

Autodescription — Christmas film (Q28026639)

description: film genre associated with Christmas
Useful links:
Classification of the class Christmas film (Q28026639)  View with Reasonator View with SQID
For help about classification, see Wikidata:Classification.
Parent classes (classes of items which contain this one item)
Subclasses (classes which contain special kinds of items of this class)
Christmas film⟩ on wikidata tree visualisation (external tool)(depth=1)
Generic queries for classes
See also


Queries[edit]

actors[edit]

# by Jura1; December 20, 2021 - Merry Xmas
#title:actors in Christmas movies: by frequency, with film titles and sample film item
#defaultView:ImageGrid
SELECT ?item ?itemLabel ?itemDescription 
  (SAMPLE(?img) AS ?image) 
  (COUNT(DISTINCT ?film) AS ?count) 
  (GROUP_CONCAT(DISTINCT ?title; SEPARATOR = "; ") AS ?films)
  (SAMPLE( ?film ) as ?sample_film)
WHERE 
{
  { ?film wdt:P136 wd:Q28026639 } UNION { ?film wdt:P9215 wd:Q3517772 ; wdt:P31 wd:Q11424 } 
  ?film wdt:P161 ?item.
  OPTIONAL { ?item wdt:P18 ?img }
  OPTIONAL { ?film wdt:P1476 ?title }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?item ?itemLabel ?itemDescription
ORDER BY DESC (?count)
LIMIT 100

Try it!

filming locations[edit]

# by Jura1; December 20, 2021 - Merry Xmas
#title:filming locations of Christmas movies,  with film titles and sample film item
#defaultView:Map{"hide":["?coor"]}
SELECT 
  ?item ?itemLabel ?itemDescription 
  ?coor  
  (SAMPLE ( ?img ) as ?image)
  (COUNT(DISTINCT ?film) AS ?count) 
  (GROUP_CONCAT(DISTINCT ?title; SEPARATOR = "; ") AS ?films)
  (SAMPLE( ?film ) as ?sample_film)
WHERE 
{
  { ?film wdt:P136 wd:Q28026639 } UNION { ?film wdt:P9215 wd:Q3517772 ; wdt:P31 wd:Q11424 } 
  ?film wdt:P915 ?item .
  ?item wdt:P625 ?coor .
  OPTIONAL { ?item wdt:P18 ?img }
  OPTIONAL { ?film wdt:P1476 ?title }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?item ?itemLabel ?itemDescription ?coor
ORDER BY DESC (?count)

Try it!

films lacking filming location[edit]

# by Jura1; December 20, 2021 - Merry Xmas
#title:recent Christmas movies lacking filming location
SELECT DISTINCT
  ?item ?itemLabel ?itemDescription (MIN(YEAR(?pub)) as ?year)
WHERE 
{
  { ?item wdt:P136 wd:Q28026639 } UNION { ?item wdt:P9215 wd:Q3517772 ; wdt:P31 wd:Q11424 } 
  MINUS { ?item wdt:P915 [] }
  ?item wdt:P577 ?pub .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?item ?itemLabel ?itemDescription
ORDER BY DESC(?year)
LIMIT 200

Try it!


Discussion[edit]