Wikidata:WikiProject Las Imprescindibles/Queries

Home

 

Lists

 

Todo

 

Queries

 

SPARQL queries :

Women with the most sitelinks by nationalityEdit

(in this example, France, adapt as you want)

The following query uses these:

  • Properties: sex or gender (P21)     , country of citizenship (P27)     
    SELECT DISTINCT ?item ?itemLabel (COUNT(?article) AS ?count)
    WHERE {
      ?item wdt:P21 wd:Q6581072 ;
            wdt:P27 wd:Q142 .
    	?article schema:about ?item .
    	SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
    }
    GROUP BY ?item ?itemLabel
    ORDER BY DESC(?count)