From bc620a6b6ccfa9b677258405769dd59a436a5dd4 Mon Sep 17 00:00:00 2001 From: Jan Ainali Date: Sat, 20 Dec 2025 22:15:49 +0100 Subject: [PATCH] Add OSBDUs to USA --- queries/countries.rq | 2 +- queries/generators/united-states.rq | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/queries/countries.rq b/queries/countries.rq index c99c62165b7..a248a5e8a37 100644 --- a/queries/countries.rq +++ b/queries/countries.rq @@ -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.' '') diff --git a/queries/generators/united-states.rq b/queries/generators/united-states.rq index f035f8a51ff..b9987d29ccd 100644 --- a/queries/generators/united-states.rq +++ b/queries/generators/united-states.rq @@ -1,4 +1,4 @@ -# expected_result_count: 308 +# expected_result_count: 344 SELECT DISTINCT ?qid ?orgLabel @@ -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 . @@ -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