Wikidata:WikiProject Sled dog racing/Queries

From Wikidata
Jump to navigation Jump to search

Home

 

Properties

 

Todo

 

Queries

 

SPARQL queries :

Mushers[edit]

All mushers[edit]

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, occupation (P106)  View with Reasonator View with SQID
    SELECT DISTINCT ?musher ?musherLabel WHERE {
      ?musher wdt:P31 wd:Q5 .
      ?musher wdt:P106 wd:Q500097 .
      SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en" . }
    }
    

Gender[edit]

All mushers without gender[edit]

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, occupation (P106)  View with Reasonator View with SQID, sex or gender (P21)  View with Reasonator View with SQID
    SELECT DISTINCT ?musher ?musherLabel WHERE {
      ?musher wdt:P31 wd:Q5 .
      ?musher wdt:P106 wd:Q500097 . 
      FILTER NOT EXISTS {
        ?musher wdt:P21 ?genre .
      }
      SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en" . }
    }
    

Names[edit]

All mushers without a valid given name[edit]

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, occupation (P106)  View with Reasonator View with SQID, given name (P735)  View with Reasonator View with SQID, subclass of (P279)  View with Reasonator View with SQID
    SELECT DISTINCT ?musher ?musherLabel WHERE {
      ?musher wdt:P31 wd:Q5 .
      ?musher wdt:P106 wd:Q500097 .
      FILTER NOT EXISTS {
        ?musher wdt:P735 ?prenom .
        ?prenom wdt:P31/wdt:P279* wd:Q202444
      }
      SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en" . }
    }
    

Mushers with a valid given name (with duplicates)[edit]

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, occupation (P106)  View with Reasonator View with SQID, given name (P735)  View with Reasonator View with SQID, subclass of (P279)  View with Reasonator View with SQID
    SELECT DISTINCT ?musher ?musherLabel WHERE {
      ?musher wdt:P31 wd:Q5 .
      ?musher wdt:P106 wd:Q500097 .
      ?musher wdt:P735 ?prenom .
      ?prenom wdt:P31/wdt:P279* wd:Q202444 .
      SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en" . }
    }
    

Mushers with several given names[edit]

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, occupation (P106)  View with Reasonator View with SQID, given name (P735)  View with Reasonator View with SQID, subclass of (P279)  View with Reasonator View with SQID
    SELECT DISTINCT ?musher ?musherLabel (COUNT(distinct ?prenom) as ?count_prenom) WHERE {
      ?musher wdt:P31 wd:Q5 .
      ?musher wdt:P106 wd:Q500097 .
      ?musher wdt:P735 ?prenom .
      ?prenom wdt:P31/wdt:P279* wd:Q202444 .
    
      SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en" . }
    
    } GROUP BY ?musher ?musherLabel
    HAVING (?count_prenom >1)
    ORDER BY DESC(?count_prenom)
    

Races[edit]

All races (?)[edit]

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, subclass of (P279)  View with Reasonator View with SQID
    SELECT DISTINCT ?race ?raceLabel WHERE {
      ?race wdt:P31/wdt:P279* wd:Q1968664 .
      SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en" . }
    }
    

Sleds[edit]

See Wikidata:WikiProject_Sports/reports/equipment/sleds