User:Taravyvan Adijene/SPARQL

From Wikidata
Jump to navigation Jump to search

Пружаншчына[edit]

Нарадзіліся[edit]

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, place of birth (P19)  View with Reasonator View with SQID, located in the administrative territorial entity (P131)  View with Reasonator View with SQID, date of birth (P569)  View with Reasonator View with SQID, image (P18)  View with Reasonator View with SQID, VIAF ID (P214)  View with Reasonator View with SQID, IMDb ID (P345)  View with Reasonator View with SQID, coordinate location (P625)  View with Reasonator View with SQID
    # асобы, якія нарадзіліся на тэрыторыі Пружанскага раёну
    SELECT ?item ?itemLabel ?pic ?birthDate ?pobLabel ?coord ?statements (COUNT(DISTINCT ?sitelink) AS ?linkshere) ?VIAF ?IMDb WHERE {
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],be-tarask". }   # фарматаваньне метак вываду
      BIND(xsd:integer(STRAFTER(STR(?item), "Q")) AS ?qid)                                        
      ?item wikibase:statements ?statements.                                                      # дзеля падліку сьцьверджаньняў
      OPTIONAL {
        ?sitelink schema:about ?item.
        ?sitelink schema:inLanguage ?lang.
      }                                                                                           # дзеля падліку спасылак на элемэнт
      ?item wdt:P31 wd:Q5.                                                                        # толькі людзі
      { ?item wdt:P19 wd:Q1885543. }                                                              # месца нараджэньня — Пружанскі раён
      UNION
      {
        ?item wdt:P19 ?pob.
        ?pob wdt:P131* wd:Q1885543.
      }                                                                                           # альбо месца нараджэньня знаходзіцца ў Пружанскім раёне
      OPTIONAL { ?item wdt:P569 ?birthDate. }
      OPTIONAL { ?item wdt:P19 ?pob. }
      OPTIONAL { ?item wdt:P18 ?pic. }
      OPTIONAL { ?item wdt:P214 ?VIAF. }
      OPTIONAL { ?item wdt:P345 ?IMDb. }
      OPTIONAL { ?pob wdt:P625 ?coord. }
    }
    GROUP BY ?item ?statements ?itemLabel ?pic ?birthDate ?pobLabel ?coord ?VIAF ?IMDb
    ORDER BY DESC(?linkshere)
    

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, place of birth (P19)  View with Reasonator View with SQID, located in the administrative territorial entity (P131)  View with Reasonator View with SQID, date of birth (P569)  View with Reasonator View with SQID, image (P18)  View with Reasonator View with SQID, VIAF ID (P214)  View with Reasonator View with SQID, IMDb ID (P345)  View with Reasonator View with SQID, coordinate location (P625)  View with Reasonator View with SQID
    # асобы, якія нарадзіліся на тэрыторыі Пружанскага павету
    SELECT ?item ?itemLabel ?pic ?birthDate ?pobLabel ?coord ?statements (COUNT(DISTINCT ?sitelink) AS ?linkshere) ?VIAF ?IMDb WHERE {
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],be-tarask". }   # фарматаваньне метак вываду
      BIND(xsd:integer(STRAFTER(STR(?item), "Q")) AS ?qid)                                        
      ?item wikibase:statements ?statements.                                                      # дзеля падліку сьцьверджаньняў
      OPTIONAL {
        ?sitelink schema:about ?item.
        ?sitelink schema:inLanguage ?lang.
      }                                                                                           # дзеля падліку спасылак на элемэнт
      ?item wdt:P31 wd:Q5.                                                                        # толькі людзі
      { ?item wdt:P19 wd:Q4382545. }                                                              # месца нараджэньня — Пружанскі павет (Польшча)
      UNION
      {
        ?item wdt:P19 ?pob.
        ?pob wdt:P131* wd:Q4382545.
      }                                                                                           # альбо месца нараджэньня знаходзіцца ў Пружанскім павеце
      OPTIONAL { ?item wdt:P569 ?birthDate. }
      OPTIONAL { ?item wdt:P19 ?pob. }
      OPTIONAL { ?item wdt:P18 ?pic. }
      OPTIONAL { ?item wdt:P214 ?VIAF. }
      OPTIONAL { ?item wdt:P345 ?IMDb. }
      OPTIONAL { ?pob wdt:P625 ?coord. }
    }
    GROUP BY ?item ?statements ?itemLabel ?pic ?birthDate ?pobLabel ?coord ?VIAF ?IMDb
    ORDER BY DESC(?linkshere)
    

Населеныя пункты[edit]

The following query uses these:

Славутасьці[edit]

The following query uses these:

Features: map (Q24515275)  View with Reasonator View with SQID

#defaultView:Map
#Усе пружанскія славутасьці
SELECT ?item ?itemLabel ?image ?coord ?катLabel WHERE {
  ?item wdt:P1435 ?кат                        # славутасьці
  { ?item wdt:P131 wd:Q1885543. }             # у Пружанскім раёне
  UNION
  {
    ?item wdt:P131 ?loc.
    ?loc wdt:P131* wd:Q1885543.
  }                                           # або ў населеным пункце Пружанскага раёну
  OPTIONAL { ?item wdt:P625 ?coord. }
  OPTIONAL { ?item wdt:P18 ?image. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],be-tarask". }
}
GROUP BY ?item ?itemLabel ?image ?coord ?катLabel

Сядзібы[edit]

The following query uses these:

Features: map (Q24515275)  View with Reasonator View with SQID

#defaultView:Map
#Усе пружанскія сядзібы
SELECT ?item ?itemLabel ?image ?coord WHERE {
  { ?item wdt:P31 wd:Q16560. }                # палацы
  UNION
  { ?item wdt:P31 wd:Q23413. }                # замкі
  UNION
  { ?item wdt:P31 wd:Q57831. }                # фартэцыі
  UNION
  { ?item wdt:P31 wd:Q879050. }               # сядзібы
  UNION
  { ?item wdt:P31 wd:Q12292478. }             # сядзібы
  { ?item wdt:P131 wd:Q1885543. }             # у Пружанскім раёне
  UNION
  {
    ?item wdt:P131 ?loc.
    ?loc wdt:P131* wd:Q1885543.
  }                                           # або ў населеным пункце Пружанскага раёну
  OPTIONAL { ?item wdt:P625 ?coord. }
  OPTIONAL { ?item wdt:P18 ?image. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],be-tarask". }
}
GROUP BY ?item ?itemLabel ?image ?coord

Усё, што мае каардынаты[edit]

The following query uses these:

  • Properties: located in the administrative territorial entity (P131)  View with Reasonator View with SQID, coordinate location (P625)  View with Reasonator View with SQID
    #Нешта на Пружаншчыне з каардынатамі
    SELECT ?item ?itemLabel ?coord WHERE {
      { ?item wdt:P131 wd:Q1885543. }             # у Пружанскім раёне
      UNION
      {
        ?item wdt:P131 ?pob.
        ?pob wdt:P131* wd:Q1885543.
      }
      ?item wdt:P625 ?coord.                  # з каардынатамі
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],be-tarask". }
    }
    GROUP BY ?item ?itemLabel ?coord
    ORDER BY ?itemLabel ?item
    

Беларусь[edit]

Асобы[edit]

Нарадзіліся ў Беларусі[edit]

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, place of birth (P19)  View with Reasonator View with SQID, located in the administrative territorial entity (P131)  View with Reasonator View with SQID
    # найпапулярнейшыя ў ВікіЗьвестках асобы, народжаныя на тэрыторыі Беларусі
    SELECT ?item ?itemLabel ?statements ?itemDescription (COUNT(DISTINCT ?sitelink) AS ?linkshere) WHERE {
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],be-tarask". }   # фарматаваньне метак вываду
      BIND(xsd:integer(STRAFTER(STR(?item), "Q")) AS ?qid)                                        
      ?item wikibase:statements ?statements.                                                      # дзеля падліку сьцьверджаньняў
      OPTIONAL {
        ?sitelink schema:about ?item.
        ?sitelink schema:inLanguage ?lang.
      }                                                                                           # дзеля падліку спасылак на элемэнт
      ?item wdt:P31 wd:Q5.                                                                        # толькі людзі
      { ?item wdt:P19 wd:Q184. }                                                                  # месца нараджэньня — Беларусь
      UNION
      {
        ?item wdt:P19 ?pob.
        ?pob wdt:P131* wd:Q184.
      }                                                                                           # альбо месца нараджэньня знаходзіцца ў Беларусі
    }
    GROUP BY ?item ?statements ?itemLabel ?itemDescription
    ORDER BY DESC(?linkshere)
    LIMIT 100
    

Нарадзіліся ў гэты дзень[edit]

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, date of birth (P569)  View with Reasonator View with SQID, place of birth (P19)  View with Reasonator View with SQID, located in the administrative territorial entity (P131)  View with Reasonator View with SQID, country of citizenship (P27)  View with Reasonator View with SQID, date of death (P570)  View with Reasonator View with SQID, coordinate location (P625)  View with Reasonator View with SQID, image (P18)  View with Reasonator View with SQID
    #Нарадзіліся ў зададзены дзень
    SELECT ?элемэнт ?элемэнтLabel ?месцаНараджэньняLabel ?каардынаты ?выява ?датаСьмерці
    WHERE
    {
        BIND(MONTH(NOW()) AS ?месяцАдбору)
        BIND(DAY(NOW()) AS ?дзеньАдбору)
    
        ?элемэнт wdt:P31 wd:Q5.                                                 # толькі людзі
        ?элемэнт wdt:P569 ?date.
        { ?элемэнт wdt:P19 wd:Q184. }                                           # месца нараджэньня — Беларусь
        UNION
        { ?элемэнт wdt:P19/wdt:P131* wd:Q184. }                                 # альбо месца нараджэньня знаходзіцца ў Беларусі
        UNION
        { ?элемэнт wdt:P27 wd:Q184. }                                           # альбо грамадзянства — Беларусь
        OPTIONAL { ?элемэнт wdt:P570 ?датаСьмерці. }
        OPTIONAL { ?элемэнт wdt:P19 ?месцаНараджэньня. }
        OPTIONAL { ?месцаНараджэньня wdt:P625 ?каардынаты. }
        OPTIONAL { ?элемэнт wdt:P18 ?выява. }
        FILTER (MONTH(?date) = ?месяцАдбору && DAY(?date) = ?дзеньАдбору)
        SERVICE wikibase:label {
            bd:serviceParam wikibase:language "[AUTO_LANGUAGE],be-tarask,en".
        }
    }
    

Памерлі ў дату[edit]

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, date of death (P570)  View with Reasonator View with SQID, place of birth (P19)  View with Reasonator View with SQID, located in the administrative territorial entity (P131)  View with Reasonator View with SQID, country of citizenship (P27)  View with Reasonator View with SQID, date of birth (P569)  View with Reasonator View with SQID, coordinate location (P625)  View with Reasonator View with SQID, place of death (P20)  View with Reasonator View with SQID, image (P18)  View with Reasonator View with SQID
    #Памерлі ў гэты дзень
    SELECT ?элемэнт ?элемэнтLabel ?выява ?датаНараджэньня ?месцаНараджэньняLabel ?каардынатыНараджэньня ?месцаСьмерціLabel
    WHERE
    {
        BIND(MONTH(NOW()) AS ?месяцАдбору)
        BIND(DAY(NOW()) AS ?дзеньАдбору)
    
        ?элемэнт wdt:P31 wd:Q5.                                                 # толькі людзі
        ?элемэнт wdt:P570 ?date.
        { ?элемэнт wdt:P19 wd:Q184. }                                           # месца нараджэньня — Беларусь
        UNION
        { ?элемэнт wdt:P19/wdt:P131* wd:Q184. }                                 # альбо месца нараджэньня знаходзіцца ў Беларусі
        UNION
        { ?элемэнт wdt:P27 wd:Q184. }                                           # альбо грамадзянства — Беларусь
        OPTIONAL { ?элемэнт wdt:P569 ?датаНараджэньня. }
        OPTIONAL { ?элемэнт wdt:P19 ?месцаНараджэньня. }
    #    OPTIONAL { ?месцаНараджэньня wdt:P625 ?каардынатыНараджэньня. }
        OPTIONAL { ?элемэнт wdt:P20 ?месцаСьмерці. }
    #    OPTIONAL { ?месцаСьмерці wdt:P625 ?каардынатыСьмерці. }
        OPTIONAL { ?элемэнт wdt:P18 ?выява. }
        FILTER (MONTH(?date) = ?месяцАдбору && DAY(?date) = ?дзеньАдбору)
        SERVICE wikibase:label {
            bd:serviceParam wikibase:language "[AUTO_LANGUAGE],be-tarask,en".
        }
    }
    

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, date of death (P570)  View with Reasonator View with SQID, place of birth (P19)  View with Reasonator View with SQID, located in the administrative territorial entity (P131)  View with Reasonator View with SQID, country of citizenship (P27)  View with Reasonator View with SQID, place of death (P20)  View with Reasonator View with SQID, date of birth (P569)  View with Reasonator View with SQID, coordinate location (P625)  View with Reasonator View with SQID, image (P18)  View with Reasonator View with SQID, cause of death (P509)  View with Reasonator View with SQID
    #Памерлі 29—30 кастрычніка 1937
    # Навучыцца фільтраваць паўторныя элемэнты
    SELECT ?элемэнт ?элемэнтLabel ?выява (sample(?датаНараджэньня) as ?датаНараджэньня) ?месцаНараджэньняLabel ?каардынатыНараджэньня ?месцаСьмерціLabel ?прычынаLabel
    WHERE
    {
        BIND(1937 AS ?годАдбору)
        BIND(10 AS ?месяцАдбору)
        BIND(29 AS ?дзеньАдбору)
    
        ?элемэнт wdt:P31 wd:Q5.                                                 # толькі людзі
        ?элемэнт wdt:P570 ?date.
        { ?элемэнт wdt:P19/wdt:P131* wd:Q184. }                                 # альбо месца нараджэньня знаходзіцца ў Беларусі
        UNION
        { ?элемэнт wdt:P27 wd:Q184. }                                           # альбо грамадзянства — Беларусь
        UNION
        { ?элемэнт wdt:P19/wdt:P131* wd:Q2895. }                                # альбо месца нараджэньня знаходзіцца ў БССР
        UNION
        { ?элемэнт wdt:P19/wdt:P131* wd:Q1378225. }                             # альбо месца нараджэньня знаходзіцца ў Паўночна-Заходнім краі
        UNION
        { ?элемэнт wdt:P19/wdt:P131* wd:Q842199. }                              # альбо месца нараджэньня знаходзіцца ў БНР
        UNION
        { ?элемэнт wdt:P19/wdt:P131* wd:Q68678. }                               # альбо месца нараджэньня знаходзіцца ў ССРБ
        UNION
        { ?элемэнт wdt:P19/wdt:P131* wd:Q76236. }                               # альбо месца нараджэньня знаходзіцца ў ЛітБеле
        UNION
        { ?элемэнт wdt:P19/wdt:P131* wd:Q523380. }                              # альбо месца нараджэньня знаходзіцца ў Сярэдняй Літве
        UNION
        { ?элемэнт wdt:P20/wdt:P131* wd:Q184. }                                 # альбо месца сьмерці знаходзіцца ў Беларусі
        OPTIONAL { ?элемэнт wdt:P569 ?датаНараджэньня. }
        OPTIONAL { ?элемэнт wdt:P19 ?месцаНараджэньня. }
    #    OPTIONAL { ?месцаНараджэньня wdt:P625 ?каардынатыНараджэньня. }
        OPTIONAL { ?элемэнт wdt:P20 ?месцаСьмерці. }
    #    OPTIONAL { ?месцаСьмерці wdt:P625 ?каардынатыСьмерці. }
        OPTIONAL { ?элемэнт wdt:P18 ?выява. }
        OPTIONAL { ?элемэнт wdt:P509 ?прычына. }
        FILTER (YEAR(?date) = ?годАдбору && MONTH(?date) = ?месяцАдбору && DAY(?date) in (?дзеньАдбору, ?дзеньАдбору+1))
        SERVICE wikibase:label {
            bd:serviceParam wikibase:language "[AUTO_LANGUAGE],be-tarask,en".
        }
    }
    GROUP BY ?элемэнт ?элемэнтLabel ?выява ?датаНараджэньня ?месцаНараджэньняLabel ?каардынатыНараджэньня ?месцаСьмерціLabel ?прычынаLabel
    # ORDER BY
    

Тэнісісткі[edit]

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, sex or gender (P21)  View with Reasonator View with SQID, place of birth (P19)  View with Reasonator View with SQID, located in the administrative territorial entity (P131)  View with Reasonator View with SQID, country for sport (P1532)  View with Reasonator View with SQID, image (P18)  View with Reasonator View with SQID, occupation (P106)  View with Reasonator View with SQID, ranking (P1352)  View with Reasonator View with SQID, end time (P582)  View with Reasonator View with SQID, sport (P641)  View with Reasonator View with SQID
    # Беларускія тэнісісткі
    SELECT ?item ?itemLabel ?image (sample(?рэйтынг) as ?рэйтынг)
    WHERE {
      BIND(wd:Q10833314 AS ?тэнісістка)                                  # замяніць на любую іншую прафэсію
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],be-tarask,uk,pl,en". }   # фарматаваньне метак вываду
    
      ?item wdt:P31 wd:Q5.                                               # толькі людзі
      ?item wdt:P21 wd:Q6581072.                                         # жанчыны
      { ?item wdt:P19 wd:Q184. }                                         # месца нараджэньня — Беларусь
      UNION
      { ?item wdt:P19/wdt:P131* wd:Q184. }                               # альбо месца нараджэньня знаходзіцца ў Беларусі
      UNION
      { ?item wdt:P1532 wd:Q184. }                                       # альбо спартовае грамадзянства Беларусі
      ?item p:P106 ?прафэсія.                                            # маюць прафэсію
      ?прафэсія ps:P106 ?тэнісістка.                                     # …тэнісісткі
      FILTER NOT EXISTS { ?прафэсія pq:P582 ?x }                         # …бяз даты сканчэньня
      OPTIONAL { ?item wdt:P18 ?image. }                                 # выява
      OPTIONAL { ?item p:P1352 ?адзінкавы.                               # спартовы рэйтынг
                 ?адзінкавы ps:P1352 ?рэйтынг.
                 ?адзінкавы pq:P641 wd:Q18123880. }                      # адзінкавы
    }
    GROUP BY ?item ?itemLabel ?image ?рэйтынг
    ORDER BY ?itemLabel IF(BOUND(?рэйтынг), xsd:integer(?рэйтынг), 9999)
    

Паводле стаці[edit]

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, sex or gender (P21)  View with Reasonator View with SQID
    # Колькасьць артыкулаў пра розныя плоці ў беларускай Вікіпэдыі
    SELECT (COUNT(?sex) as ?count) ?sexLabel
    WHERE {
      ?item wdt:P31 wd:Q5. # людзі
      ?item wdt:P21 ?sex. # з пазначанай плоцьцю
    
      ?article schema:about ?item. # якія маюць артыкул
      ?article schema:isPartOf <https://be-tarask.wikipedia.org/>. # у *беларускай* Вікіпэдыі
    
      SERVICE wikibase:label { bd:serviceParam wikibase:language "be-tarask,uk,en,ru". }
    } GROUP BY ?sexLabel
    ORDER BY DESC(?count)
    

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, sex or gender (P21)  View with Reasonator View with SQID, image (P18)  View with Reasonator View with SQID, country of citizenship (P27)  View with Reasonator View with SQID, occupation (P106)  View with Reasonator View with SQID, ethnic group (P172)  View with Reasonator View with SQID
    #Усе трансы ў беларускай Вікіпэдыі
    SELECT ?item ?itemLabel ?pic ?stateLabel (GROUP_CONCAT(DISTINCT ?job; SEPARATOR=", ") AS ?jobs) ?nationLabel
    WHERE {
      ?item wdt:P31 wd:Q5. # людзі
      { ?item wdt:P21 wd:Q1052281. }   # транс
      UNION
      { ?item wdt:P21 wd:Q2449503. }   # транс
      OPTIONAL { ?item wdt:P18 ?pic. }
      OPTIONAL { ?item wdt:P27 ?state. }
      OPTIONAL { ?item wdt:P106 [rdfs:label ?job]. FILTER(LANG(?job)='be-tarask'). }
      OPTIONAL { ?item wdt:P172 ?nation. }
    
      ?article schema:about ?item. # якія маюць артыкул
      ?article schema:isPartOf <https://be-tarask.wikipedia.org/>. # у *беларускай* Вікіпэдыі
    
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],be-tarask,uk,en,ru". }
    }
    GROUP BY ?item ?itemLabel ?pic ?stateLabel ?nationLabel
    

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, place of birth (P19)  View with Reasonator View with SQID, country (P17)  View with Reasonator View with SQID, sex or gender (P21)  View with Reasonator View with SQID
    # Беларусы бяз стаці
    SELECT ?item ?itemLabel
    WHERE {
      ?item wdt:P31 wd:Q5.
      ?item wdt:P19 ?place.
      ?place wdt:P17 wd:Q184.
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],be-tarask,uk,pl,en". }
      FILTER(NOT EXISTS { ?item wdt:P21 _:b6. })
    }
    

Адсутныя[edit]

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, sex or gender (P21)  View with Reasonator View with SQID, country of citizenship (P27)  View with Reasonator View with SQID
    # Беларускія жанчыны, пра якіх няма артыкулу ў нашай вікі
    SELECT ?person ?personLabel ?personDescription (COUNT(DISTINCT ?sitelink) as ?linkcount) WHERE {
      ?person wdt:P31 wd:Q5 . # чалавек
      ?person wdt:P21 wd:Q6581072 . # жанчына
      ?person wdt:P27 wd:Q184 . # зь Беларусі
      ?sitelink schema:about ?person . # старонкі Вікімэдыі пра асобы
      FILTER NOT EXISTS {
        ?links schema:about ?person . # старонкі Вікімэдыі пра асобы
        ?links schema:isPartOf <https://be-tarask.wikipedia.org/> . # акрамя беларускай Вікіпэдыі.
      }
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],be-tarask,en,uk,pl,ru". }
    } GROUP BY ?person ?personLabel ?personDescription
    ORDER BY DESC(?linkcount) 
    LIMIT 1000
    

Адсутныя меткі[edit]

The following query uses these:

  • Properties: country of citizenship (P27)  View with Reasonator View with SQID
    # Элемэнты ВікіЗьвестак пра беларусаў, у якіх адсутнічае метка па-беларуску,
    # адсартаваныя паводле колькасьці спасылак.
    # Меткі выводзяцца мовамі, зададзенымі ў 8 радку (першая знойдзеная).
    # Калі запыт вісьне, трэба раскамэнтаваць 16 радок.
    SELECT ?item ?itemLabel ?itemDescription ?linkcount WHERE {
      ?item wdt:P27 wd:Q184.                                                      # грамадзяне Беларусі
      ?item wikibase:sitelinks ?linkcount.                                        # колькасьць спасылак
      SERVICE wikibase:label { bd:serviceParam wikibase:language "en,uk,pl,ru". } # вывесьці метку першай знойдзенай мовай
      FILTER(?linkcount >= 2)                                                     # вывесьці толькі калі больш за 2 спасылкі
      FILTER(NOT EXISTS {
        ?item rdfs:label ?lang_label.
        FILTER((LANG(?lang_label)) = "be-tarask")                                 # калі няма па-беларуску
      })
    }
    ORDER BY DESC(?linkcount)
    # LIMIT 100
    

Прычыны сьмерці[edit]

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, cause of death (P509)  View with Reasonator View with SQID, place of birth (P19)  View with Reasonator View with SQID, country (P17)  View with Reasonator View with SQID, date of birth (P569)  View with Reasonator View with SQID, date of death (P570)  View with Reasonator View with SQID
    #Беларусы паводле прычыны сьмерці
    SELECT ?pid ?прэзыдэнт ?прычына_сьмерці ?нарадзіўся ?памёр WHERE {
        ?pid wdt:P31 wd:Q5.
        ?pid wdt:P509 ?cid.
        ?pid wdt:P19 ?place.
        ?place wdt:P17 wd:Q184.
        ?pid wdt:P569 ?нарадзіўся.
        ?pid wdt:P570 ?памёр.
    
        OPTIONAL {
            ?pid rdfs:label ?прэзыдэнт filter (lang(?прэзыдэнт) = "be-tarask") .
        }
        OPTIONAL {
            ?cid rdfs:label ?прычына_сьмерці filter (lang(?прычына_сьмерці) = "be-tarask") .
        }
    }
    

Юбіляры[edit]

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, date of birth (P569)  View with Reasonator View with SQID, place of birth (P19)  View with Reasonator View with SQID, located in the administrative territorial entity (P131)  View with Reasonator View with SQID, country of citizenship (P27)  View with Reasonator View with SQID, place of death (P20)  View with Reasonator View with SQID, occupation (P106)  View with Reasonator View with SQID, date of death (P570)  View with Reasonator View with SQID
    #Нарадзіліся 100 гадоў таму
    SELECT ?асоба ?асобаLabel ?датаНараджэньня ?месцаНараджэньняLabel (GROUP_CONCAT(DISTINCT ?job; SEPARATOR=", ") AS ?jobs) 
    WHERE
    {
        BIND(YEAR(NOW()) AS ?годАдбору)
    
        ?асоба wdt:P31 wd:Q5.                                                 # толькі людзі
        ?асоба wdt:P569 ?date.
        { ?асоба wdt:P19 wd:Q184. }                                           # месца нараджэньня — Беларусь
        UNION
        { ?асоба wdt:P19/wdt:P131* wd:Q184. }                                 # альбо месца нараджэньня знаходзіцца ў Беларусі
        UNION
        { ?асоба wdt:P27 wd:Q184. }                                           # альбо грамадзянства — Беларусь
        UNION
        { ?асоба wdt:P19/wdt:P131* wd:Q2895. }                                # альбо месца нараджэньня знаходзіцца ў БССР
        UNION
        { ?асоба wdt:P19/wdt:P131* wd:Q1378225. }                             # альбо месца нараджэньня знаходзіцца ў Паўночна-Заходнім краі
        UNION
        { ?асоба wdt:P19/wdt:P131* wd:Q842199. }                              # альбо месца нараджэньня знаходзіцца ў БНР
        UNION
        { ?асоба wdt:P19/wdt:P131* wd:Q68678. }                               # альбо месца нараджэньня знаходзіцца ў ССРБ
        UNION
        { ?асоба wdt:P19/wdt:P131* wd:Q76236. }                               # альбо месца нараджэньня знаходзіцца ў ЛітБеле
        UNION
        { ?асоба wdt:P19/wdt:P131* wd:Q523380. }                              # альбо месца нараджэньня знаходзіцца ў Сярэдняй Літве
        UNION
        { ?асоба wdt:P20/wdt:P131* wd:Q184. }                                 # альбо месца сьмерці знаходзіцца ў Беларусі
    
        OPTIONAL { ?асоба wdt:P19 ?месцаНараджэньня. }
        OPTIONAL { ?асоба wdt:P106 [rdfs:label ?job]. FILTER(LANG(?job)='be-tarask'). }
    #    OPTIONAL { ?асоба wdt:P106 ?job. }
        OPTIONAL { ?асоба wdt:P569 ?датаНараджэньня. }
    #    OPTIONAL { ?асоба wdt:P570 ?датаСьмерці. }
        FILTER ((?годАдбору - YEAR(?date)) = 100)
    #    FILTER (floorMod(?годАдбору - YEAR(?date), 5) = 0)
        SERVICE wikibase:label {
            bd:serviceParam wikibase:language "[AUTO_LANGUAGE],be-tarask,en".
        }
    }
    GROUP BY ?асоба ?асобаLabel ?датаНараджэньня ?месцаНараджэньняLabel
    

Замкі, палацы ды фартэцыі[edit]

The following query uses these:

Features: map (Q24515275)  View with Reasonator View with SQID

#Усе беларускія палацы
#defaultView:Map
SELECT ?item ?itemLabel ?image ?coord WHERE {
  { ?item wdt:P31 wd:Q16560. }                # палацы
  UNION
  { ?item wdt:P31 wd:Q23413. }                # замкі
  UNION
  { ?item wdt:P31 wd:Q57831. }                # фартэцыі
  ?item wdt:P17 wd:Q184.                      # у Беларусі
  OPTIONAL { ?item wdt:P625 ?coord. }
  OPTIONAL { ?item wdt:P18 ?image. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],be-tarask". }
}

Насельніцтва суседніх дзяржаваў[edit]

The following query uses these:

  • Properties: shares border with (P47)  View with Reasonator View with SQID, population (P1082)  View with Reasonator View with SQID, point in time (P585)  View with Reasonator View with SQID
    #defaultView:LineChart
    # Насельніцтва краінаў-суседак
    SELECT ?country ?year ?population ?countryLabel WHERE {
      {
        SELECT ?country ?year (AVG(?population) AS ?population) WHERE {
          {
            SELECT ?country (str(YEAR(?date)) AS ?year) ?population WHERE {
              ?country wdt:P47 wd:Q184;   # shares border with Biełaruś
                       p:P1082 ?populationStatement.
              ?populationStatement ps:P1082 ?population;
                                   pq:P585 ?date.
            }
          }
        }
        GROUP BY ?country ?year
      }
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],be-tarask". }
    }
    

ВікіЭкспэдыцыі[edit]

Палесьсе — славутасьці[edit]

The following query uses these:

Features: map (Q24515275)  View with Reasonator View with SQID

#defaultView:Map
#Да вандроўкі на Палесьсе
SELECT ?item ?itemLabel ?image ?coord ?катLabel WHERE {
  ?item wdt:P1435 ?кат                        # славутасьці
  { ?item wdt:P131 wd:Q367015. }              # у Жыткавіцкім раёне
  UNION
  {
    ?item wdt:P131 ?loc.
    ?loc wdt:P131* wd:Q367015.
  }                                           # або ў населеным пункце Жыткавіцкага раёну
  UNION
  { ?item wdt:P131 wd:Q1885628. }             # у Лунінецкім раёне
  UNION
  {
    ?item wdt:P131 ?loc.
    ?loc wdt:P131* wd:Q367015.
  }                                           # або ў населеным пункце Лунінецкага раёну
  UNION
  { ?item wdt:P131 wd:Q1885570. }             # у Столінскім раёне
  UNION
  {
    ?item wdt:P131 ?loc.
    ?loc wdt:P131* wd:Q1885570.
  }                                           # або ў населеным пункце Столінскага раёну
  OPTIONAL { ?item wdt:P625 ?coord. }
  OPTIONAL { ?item wdt:P18 ?image. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],be-tarask". }
}
GROUP BY ?item ?itemLabel ?image ?coord ?катLabel

Палесьсе — усё з каардынатамі[edit]

The following query uses these:

  • Properties: located in the administrative territorial entity (P131)  View with Reasonator View with SQID, coordinate location (P625)  View with Reasonator View with SQID
    #Нешта на Палесьсі з каардынатамі
    SELECT ?item ?itemLabel ?coord WHERE {
      { ?item wdt:P131 wd:Q367015. }          # у Жыткавіцкім раёне
      UNION
      {
        ?item wdt:P131 ?loc.
        ?loc wdt:P131* wd:Q367015.
      }                                       # або ў населеным пункце Жыткавіцкага раёну
      UNION
      { ?item wdt:P131 wd:Q1885628. }         # у Лунінецкім раёне
      UNION
      {
        ?item wdt:P131 ?loc.
        ?loc wdt:P131* wd:Q367015.
      }                                       # або ў населеным пункце Лунінецкага раёну
      UNION
      { ?item wdt:P131 wd:Q1885570. }         # у Столінскім раёне
      UNION
      {
        ?item wdt:P131 ?loc.
        ?loc wdt:P131* wd:Q1885570.
      }                                       # або ў населеным пункце Столінскага раёну
      ?item wdt:P625 ?coord.                  # з каардынатамі
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],be-tarask". }
    }
    GROUP BY ?item ?itemLabel ?coord
    ORDER BY ?itemLabel ?item
    

Глядзіце таксама[edit]