Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion queries/countries.rq
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ WHERE {
(wd:Q229 'Cyprus' 'cyprus' 'Current content includes ministries, deputy ministries, government departments, government agencies, districts and municipalities.' '')
(wd:Q17 'Japan' 'japan' 'Current content includes ministries, prefectures, embassies and permanent missions.' '')
(wd:Q219 'Bulgaria' 'bulgaria' 'Current content includes ministries, state agencies, executive agencies, administrative structures, oblasts, municipalities, kmetstvos, municipal districts and specialized local administrations.' '')
(wd:Q1050 'Eswatini' 'eswatini' 'Current content includes ministries, regions and tinkhundla' '')
(wd:Q1050 'Eswatini' 'eswatini' 'Current content includes ministries, agencies abroad, regions and tinkhundla' '')

(wd:Q145 'United Kingdom' 'united-kingdom' 'Current content includes ministerial departments.' 'Scotland|scotland')
(wd:Q22 'Scotland' 'united-kingdom/scotland' 'Current content includes executive agencies, executive non-departmental public bodies, advisory non-departmental public bodies, non-ministerial offices,local authorities, NHS boards, courts, public corporations, tribunals, parole boards, King\'s printer, commissioners, ombudsmen, Health and social care partnerships and government of Scotland.' '')
Expand Down
21 changes: 16 additions & 5 deletions queries/generators/eswatini.rq
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
# expected_result_count: 79
# expected_result_count: 98
SELECT DISTINCT
?qid
?orgLabel
?type
?typeLabel
?country
WHERE {
BIND(wd:Q1050 AS ?country)

BIND(wd:Q1050 AS ?country)
{
VALUES ?type {
wd:Q138877126 # ministry of Eswatini (20/20)
wd:Q1069042 # region of Eswatini (4/4)
wd:Q2280192 # inkhundla (55/55)
wd:Q2280192 # inkhundla (59/59)
# wd:Q284663 # umphakatsi (0/385)
}

?org wdt:P31 ?type .
}
UNION
{
VALUES ?type {
wd:Q3917681 # embassy (8/8)
wd:Q2360219 # permanent mission (2/2)
wd:Q7843791 # consulate (1/1)
wd:Q12143816 # commisson (4/4)
}
?org wdt:P31 ?type ;
wdt:P137 ?country .
}

MINUS { ?org wdt:P576 [] }
MINUS { ?org wdt:P1366 [] }
Expand Down
Loading