@WikidataFacts

843 Followers
1 Following
195 Posts
facts and queries about @wikidata; run by WMDE employee @LucasWerkmeister – not an official #Wikidata account
pronounshe/him or they/them
time zoneCentral European Time

with several caveats that I’ll point out in the following posts: an attempt at a map of countries colored by whether their national anthem includes their country name (blue) or not (red)

https://query.wikidata.org/embed.html#%23title%3A%28flawed%29%20map%20of%20countries%20%28UN%20member%20states%29%20colored%20by%20whether%20their%20national%20anthem%20includes%20their%20country%20name%20%28%E2%80%9CO%20Canada%E2%80%9D%29%20or%20not%20%28%E2%80%9CStar-Spangled%20Banner%E2%80%9D%29%0A%23%20looks%20at%20%E2%80%9Cnamed%20after%E2%80%9D%20on%20the%20anthem%2C%20whether%20the%20anthem%E2%80%99s%20title%20or%20native%20label%20contains%20the%20country%E2%80%99s%20native%20label%2C%20and%20whether%20the%20anthem%E2%80%99s%20label%20in%20the%20UI%20language%20contains%20the%20country%E2%80%99s%20label%20in%20the%20UI%20language%0A%23%20results%20will%20thus%20vary%20based%20on%20the%20UI%20language%21%20also%2C%20for%20various%20reasons%20%28including%20Q35%20%E2%89%A0%20Q756617%29%20the%20map%20doesn%E2%80%99t%20cover%20all%20land%0A%23defaultView%3AMap%7B%22hide%22%3A%5B%22%3Flayer%22%2C%20%22%3Frgb%22%2C%20%22%3Fshape_%22%5D%7D%0ASELECT%0A%3Fstate%0A%3FstateLabel%0A%3Fanthem%0A%3FanthemLabel%0A%28MAX%28%0A%20%20COALESCE%28%3FanthemNamedAfterState%2C%20false%29%20%7C%7C%0A%20%20COALESCE%28CONTAINS%28%3FanthemNativeLabel%2C%20%3FstateNativeLabel%29%2C%20false%29%20%7C%7C%0A%20%20COALESCE%28CONTAINS%28%3FanthemTitle%2C%20%3FstateNativeLabel%29%2C%20false%29%20%7C%7C%0A%20%20CONTAINS%28%3FanthemLabel%2C%20%3FstateLabel%29%0A%20%29%20AS%20%3Flayer%29%0A%28IF%28%3Flayer%2C%20%2236c%22%2C%20%22bf3c2c%22%29%20AS%20%3Frgb%29%0A%28SAMPLE%28%3Fshape%29%20AS%20%3Fshape_%29%0AWITH%20%7B%0A%20%20SELECT%20DISTINCT%20%3Fstate%20WHERE%20%7B%0A%20%20%20%20%3Fstate%20wdt%3AP31%2Fwdt%3AP279%2a%20wd%3AQ3624078%3B%0A%20%20%20%20%20%20%20%20%20%20%20p%3AP463%20%3FmemberOfStatement.%0A%20%20%20%20%3FmemberOfStatement%20a%20wikibase%3ABestRank%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ps%3AP463%20wd%3AQ1065.%0A%20%20%20%20MINUS%20%7B%20%3FmemberOfStatement%20pq%3AP582%20%3FendTime.%20%7D%0A%20%20%20%20MINUS%20%7B%20%3Fstate%20wdt%3AP576%7Cwdt%3AP582%20%3Fend.%20%7D%0A%20%20%7D%0A%7D%20AS%20%25states%20WHERE%20%7B%0A%20%20INCLUDE%20%25states.%0A%20%20%3Fstate%20wdt%3AP85%20%3Fanthem%3B%0A%20%20%20%20%20%20%20%20%20wdt%3AP3896%20%3Fshape.%0A%20%20OPTIONAL%20%7B%0A%20%20%20%20%3Fanthem%20wdt%3AP138%20%3Fstate.%0A%20%20%20%20BIND%28true%20AS%20%3FanthemNamedAfterState%29%0A%20%20%7D%0A%20%20OPTIONAL%20%7B%20%3Fstate%20wdt%3AP1705%20%3FstateNativeLabel.%20%7D%0A%20%20OPTIONAL%20%7B%20%3Fanthem%20wdt%3AP1705%20%3FanthemNativeLabel.%20%7D%0A%20%20OPTIONAL%20%7B%20%3Fanthem%20wdt%3AP1476%20%3FanthemTitle.%20%7D%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%0A%20%20%20%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cmul%2Cen%22.%20%0A%20%20%20%20%3Fstate%20rdfs%3Alabel%20%3FstateLabel.%0A%20%20%20%20%3Fanthem%20rdfs%3Alabel%20%3FanthemLabel.%0A%20%20%7D%0A%7D%0AGROUP%20BY%20%3Fstate%20%3FstateLabel%20%3Fanthem%20%3FanthemLabel

J. R. R. Tolkien famously called one of his fictional peoples “Dwarves”, rather than the customary English plural “dwarfs”. What if more English words formed their plurals this way? :) https://query.wikidata.org/embed.html#%23title%3ATolkien%20plurals%0ASELECT%20%3Flexeme%20%3Fsingular%20%3Fplural%20%3FtolkienPlural%20WHERE%20%7B%0A%20%20%3Flexeme%20dct%3Alanguage%20wd%3AQ1860%3B%0A%20%20%20%20%20%20%20%20%20%20wikibase%3AlexicalCategory%20wd%3AQ1084%3B%0A%20%20%20%20%20%20%20%20%20%20ontolex%3AlexicalForm%20%3FsingularForm%2C%20%3FpluralForm.%0A%20%20%3FsingularForm%20wikibase%3AgrammaticalFeature%20wd%3AQ110786%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ontolex%3Arepresentation%20%3Fsingular.%0A%20%20%3FpluralForm%20wikibase%3AgrammaticalFeature%20wd%3AQ146786%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20ontolex%3Arepresentation%20%3Fplural.%0A%20%20FILTER%28STRENDS%28%3Fsingular%2C%20%22f%22%29%29%0A%20%20FILTER%28STRENDS%28%3Fplural%2C%20%22fs%22%29%29%0A%20%20BIND%28STRLANG%28CONCAT%28IF%28STRENDS%28%3Fplural%2C%20%22ffs%22%29%2C%20SUBSTR%28%3Fplural%2C%201%2C%20STRLEN%28%3Fplural%29%20-%203%29%2C%20SUBSTR%28%3Fplural%2C%201%2C%20STRLEN%28%3Fplural%29%20-%202%29%29%2C%20%22ves%22%29%2C%20LANG%28%3Fplural%29%29%20AS%20%3FtolkienPlural%29%0A%20%20MINUS%20%7B%0A%20%20%20%20%3Flexeme%20ontolex%3AlexicalForm%20%3FtolkienPluralForm.%0A%20%20%20%20%3FtolkienPluralForm%20wikibase%3AgrammaticalFeature%20wd%3AQ146786%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ontolex%3Arepresentation%20%3FtolkienPlural.%0A%20%20%7D%0A%7D%0AORDER%20BY%20MD5%28%3Fsingular%29

#Wikidata #Tolkien

guess the item!
guess the item lol
guess the lexeme! :)

https://query.wikidata.org/embed.html#%23defaultView%3AImageGrid%7B%22hide%22%3A[%22%3FplaceOfBirthCoordinates%22%2C%20%22%3Fsignature%22]%7D%0A%23view%3AMap%7B%22hide%22%3A[%22%3FplaceOfBirthCoordinates%22]%7D%0ASELECT%20%3Fperson%20%3FpersonLabel%20%3Fsignature%20%3FplaceOfBirthCoordinates%20WITH%20%7B%0A%20%20%23%20get%20all%20the%20actual%20data%0A%20%20SELECT%20%3Fperson%20%28SAMPLE%28%3Fsignature_%29%20AS%20%3Fsignature%29%20%28SAMPLE%28%3FplaceOfBirthCoordinates_%29%20AS%20%3FplaceOfBirthCoordinates%29%20WHERE%20%7B%0A%20%20%20%20%23%20get%20some%20random%20signature%20image%20statements%0A%20%20%20%20SERVICE%20bd%3Asample%20%7B%0A%20%20%20%20%20%20%3Fperson%20wdt%3AP109%20%3Fsignature_.%0A%20%20%20%20%20%20bd%3AserviceParam%20bd%3Asample.limit%20110%20.%20%23%20a%20bit%20over%20100%20in%20case%20some%20of%20them%20happen%20to%20be%20non-humans%0A%20%20%20%20%7D%0A%20%20%20%20%23%20ensure%20they%E2%80%99re%20humans%20%28most%20are%20but%20there%20are%20some%20exceptions%29%0A%20%20%20%20%3Fperson%20wdt%3AP31%20wd%3AQ5.%0A%20%20%20%20%23%20for%20the%20map%20display%2C%20optionally%20add%20the%20place%20of%20birth%0A%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%3Fperson%20wdt%3AP19%20%3FplaceOfBirth.%0A%20%20%20%20%20%20%3FplaceOfBirth%20wdt%3AP625%20%3FplaceOfBirthCoordinates_.%0A%20%20%20%20%7D%0A%20%20%7D%0A%20%20GROUP%20BY%20%3Fperson%20%23%20avoid%20multiple%20results%20in%20case%20of%20multiple%20signature%20%2F%20place%20of%20death%20%28coordinate%29%20statements%0A%20%20LIMIT%20100%0A%7D%20AS%20%25results%20WHERE%20%7B%0A%20%20%23%20add%20labels%0A%20%20INCLUDE%20%25results.%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22[AUTO_LANGUAGE]%2Cen%22.%20%7D%0A%7D

Change the view to “map” (sidebar on the left) to see the signatures arranged by the person’s place of birth!

Inspired by Depths of Wikipedia: https://twitter.com/depthsofwiki/status/1504135362440007681

Wikidata Query Service