User:EmericusPetro/sandbox/List of national Red Cross Societies

From OpenStreetMap Wiki
Jump to navigation Jump to search
Red Cross, Red Crescent, Red Crystal logo

Wikidata

Query 1

Based on Wikidata:WikiProject IFRC (https://www.wikidata.org/wiki/Wikidata:WikiProject_IFRC)

SELECT ?item ?itemLabel
WHERE{
  ?item wdt:P31/wdt:P279* wd:Q1968122 .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Run it (edit query)

Query 2

SELECT ?item ?itemLabel ?country ?countryLabel
WHERE{
  ?item wdt:P31/wdt:P279* wd:Q1968122 .
  OPTIONAL { ?item wdt:P17 ?country. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Run it (edit query)