Программирование Викиданных/Buckets and Balls
Buckets and Balls (русская версия скриптов)
# List of regions of the Russian Federation and images of heads of government
#defaultView:ImageGrid
SELECT DISTINCT ?region ?regionLabel ?head ?headLabel ?image
{
?region wdt:P31 wd:Q835714; # oblast of Russia
wdt:P6 ?head. # heads of government
?head wdt:P18 ?image. # images of heads of government
SERVICE wikibase:label { bd:serviceParam wikibase:language "ru"}
}