Skip to content
Open
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 @@ -57,7 +57,7 @@ WHERE {
(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.' '')

(wd:Q30 'United States' 'united-states' 'Current content includes departments, Executive Office of the President, legislative branch agencies, representations, consulates, consulate generals and embassies.' 'New York|new-york,North Carolina|north-carolina')
(wd:Q30 'United States' 'united-states' 'Current content includes departments, Executive Office of the President, legislative branch agencies, representations, offices of small and disadvantaged business utilization, consulates, consulate generals and embassies.' 'New York|new-york,North Carolina|north-carolina')
(wd:Q1454 'North Carolina' 'united-states/north-carolina' 'Current content includes the general assembly, cabinet, council of state, counties, county election boards, state agencies, supreme and appellate courts.' '')
(wd:Q1384 'New York' 'united-states/new-york' 'Current content includes state agencies and counties.' '')

Expand Down
5 changes: 3 additions & 2 deletions queries/generators/united-states.rq
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# expected_result_count: 308
# expected_result_count: 344
SELECT DISTINCT
?qid
?orgLabel
Expand Down Expand Up @@ -29,6 +29,7 @@ WHERE {
VALUES ?type {
wd:Q910252 # Departments (15)
wd:Q115456878 # Legislative branch agencies in the USA (24)
wd:Q96397182 # OSDBUs (36)
}
?org wdt:P31 ?type ;
wdt:P17 ?country .
Expand All @@ -54,4 +55,4 @@ WHERE {
BIND(REPLACE(STR(?org), "http://www.wikidata.org/entity/", "") AS ?qid)
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,mul". }
}
ORDER BY DESC(?type) ?orgLabel
ORDER BY DESC(LCASE(?typeLabel)) ?orgLabel