{"ok": true, "database": "openregs", "query_name": "spending_by_agency", "rows": [["Department of Education", "Department of Education", "grants", 37212, 814879012032.65, 21898285.822655328], ["Department of Energy", "Department of Energy", "contracts", 23483, 772955875510.12, 32915550.632803306], ["Department of Veterans Affairs", "Department of Veterans Affairs", "contracts", 43708, 443298012915.06, 10142262.581565388], ["Department of Transportation", "Federal Highway Administration", "grants", 32405, 355586186702.01, 10973188.912266934], ["National Aeronautics and Space Administration", "National Aeronautics and Space Administration", "contracts", 47024, 288660578050.18, 6138579.832642481], ["Department of Homeland Security", "Federal Emergency Management Agency", "grants", 38598, 272557008563.95, 7061428.275142495], ["Department of Transportation", "Federal Transit Administration", "grants", 6083, 217347138458.0, 35730254.554989316], ["Department of Housing and Urban Development", "Assistant Secretary for Community Planning and Development", "grants", 23552, 162771879967.37, 6911170.17524499], ["Department of Labor", "Employment and Training Administration", "grants", 12366, 105313724121.06, 8516393.669825327], ["Department of Energy", "Department of Energy", "grants", 23199, 92825049892.9, 4001252.2045303676], ["Department of Transportation", "Federal Railroad Administration", "grants", 462, 77081010651.95, 166842014.39816016], ["Department of Housing and Urban Development", "Assistant Secretary for Public and Indian Housing", "grants", 26682, 73883235208.77, 2769029.1285799416], ["Department of Transportation", "Federal Aviation Administration", "grants", 31259, 73004708832.75, 2335478.06496529], ["Department of Homeland Security", "U.S. Customs and Border Protection", "contracts", 5761, 67076611928.38, 11643223.733445581], ["Department of Transportation", "Federal Aviation Administration", "contracts", 47564, 66925081255.7, 1407053.2599381886], ["Environmental Protection Agency", "Environmental Protection Agency", "grants", 6949, 65704080662.0, 9455185.013958843], ["Department of Commerce", "National Institute of Standards and Technology", "grants", 3163, 48596104301.94, 15363928.011994943], ["Department of Homeland Security", "Office of Procurement Operations", "contracts", 7388, 44342693637.89, 6001988.851907147], ["Department of Justice", "Office of Justice Programs", "grants", 27573, 43022263021.84, 1560304.0300961083], ["Department of Homeland Security", "U.S. Coast Guard", "contracts", 10237, 42786085956.44, 4179553.1851558075], ["Department of Education", "Department of Education", "contracts", 6666, 35909520892.1, 5386966.83049805], ["Department of Homeland Security", "U.S. Immigration and Customs Enforcement", "contracts", 3327, 35232983923.69, 10590016.207902014], ["Department of Homeland Security", "Federal Emergency Management Agency", "contracts", 35939, 31285511111.17, 870517.0180352819], ["Department of Veterans Affairs", "Under Secretary for Health/Veterans Health Administration", "grants", 8867, 30507727599.16, 3440591.8122431487], ["Department of Labor", "Office of the Assistant Secretary for Administration and Management", "contracts", 9887, 25890885611.39, 2618679.6410832405], ["Department of Homeland Security", "Transportation Security Administration", "contracts", 2393, 25739424546.24, 10756132.280083578], ["Department of Commerce", "National Oceanic and Atmospheric Administration", "contracts", 38620, 24938992088.73, 645753.2907490938], ["Department of Justice", "Federal Bureau of Investigation", "contracts", 7317, 21615033463.38, 2954084.114169742], ["Department of Justice", "Federal Prison System / Bureau of Prisons", "contracts", 22844, 21185798636.81, 927411.9522329716], ["Department of the Interior", "U.S. Fish and Wildlife Service", "grants", 31195, 20584327671.76, 659859.8388126302], ["Department of Justice", "Offices, Boards and Divisions", "contracts", 9241, 18313236257.19, 1981737.5021307217], ["Department of Commerce", "National Oceanic and Atmospheric Administration", "grants", 10552, 18220052798.86, 1726691.887685747], ["Department of Health and Human Services", "Food and Drug Administration", "contracts", 20028, 18169299571.7, 907194.9057169963], ["National Aeronautics and Space Administration", "National Aeronautics and Space Administration", "grants", 23715, 15232777829.24, 642326.7058503057], ["Department of Homeland Security", "U.S. Citizenship and Immigration Services", "contracts", 1326, 15228830423.73, 11484789.15816742], ["Department of Transportation", "Federal Highway Administration", "contracts", 6715, 13685410058.55, 2038035.749597915], ["Department of Justice", "U.S. Marshals Service", "contracts", 4241, 13167779434.7, 3104876.0751473713], ["Department of Housing and Urban Development", "Department of Housing and Urban Development", "contracts", 4642, 12534056759.81, 2700141.482078845], ["Department of Commerce", "U.S. Patent and Trademark Office", "contracts", 3326, 10497137801.88, 3156084.726963319], ["Department of Commerce", "U.S. Census Bureau", "contracts", 2732, 10256908637.42, 3754358.9448828697], ["Department of Commerce", "Economic Development Administration", "grants", 6637, 9419131384.05, 1419185.0812189241], ["Department of Justice", "Offices, Boards and Divisions", "grants", 12695, 8865884619.19, 698376.102338716], ["Environmental Protection Agency", "Environmental Protection Agency", "contracts", 6308, 8849687874.33, 1402930.8614980977], ["Department of Transportation", "Maritime Administration", "contracts", 4887, 8326117307.51, 1703727.707695928], ["Department of Transportation", "National Highway Traffic Safety Administration", "grants", 6074, 7406498969.64, 1219377.5057029964], ["Department of Justice", "Drug Enforcement Administration", "contracts", 4063, 5797783914.59, 1426971.1825227665], ["Department of Commerce", "Office of the Secretary", "contracts", 8559, 5342952599.19, 624249.6318717139], ["Small Business Administration", "Small Business Administration", "contracts", 3227, 4757362801.63, 1474237.0008149985], ["Department of Labor", "Employment and Training Administration", "contracts", 577, 4755204720.45, 8241256.014644714], ["Department of Transportation", "Immediate Office of the Secretary of Transportation", "contracts", 2437, 3932439231.54, 1613639.4056380796], ["Department of Commerce", "National Institute of Standards and Technology", "contracts", 8136, 3788644099.06, 465664.2206317601], ["Department of the Interior", "U.S. Fish and Wildlife Service", "contracts", 29410, 3437467397.38, 116880.90436518191], ["Department of Justice", "Bureau of Alcohol, Tobacco, Firearms and Explosives Acquisition and Property Management Division", "contracts", 1349, 3262729208.51, 2418628.0270644925], ["Department of Transportation", "Federal Motor Carrier Safety Administration", "grants", 385, 3230096455.29, 8389860.922831168], ["Department of Homeland Security", "U.S. Secret Service", "contracts", 1186, 3177677720.49, 2679323.541728499], ["Small Business Administration", "Small Business Administration", "grants", 5155, 3172626744.33, 615446.5071445198], ["Department of Homeland Security", "Federal Law Enforcement Training Center", "contracts", 633, 3147737010.94, 4972728.295323854], ["Department of Agriculture", "Animal and Plant Health Inspection Service", "grants", 10557, 3012604287.6, 285365.5666950838], ["Department of Labor", "Veterans Employment and Training Services", "grants", 2184, 2896185548.61, 1326092.284162088], ["Department of Transportation", "Maritime Administration", "grants", 155, 2827283169.12, 18240536.574967742], ["Department of Transportation", "National Highway Traffic Safety Administration", "contracts", 2355, 2688861775.91, 1141767.2084543523], ["Department of Health and Human Services", "Food and Drug Administration", "grants", 2089, 2676527800.1, 1281248.3485399713], ["Department of Agriculture", "Animal and Plant Health Inspection Service", "contracts", 15957, 2472777053.13, 154965.03435044183], ["Department of Commerce", "National Telecommunications and Information Administration", "grants", 280, 2454396233.85, 8765700.83517857], ["Department of Justice", "Federal Prison Industries / Unicor", "contracts", 3692, 2323746550.24, 629400.4740628385], ["Department of Housing and Urban Development", "Office of Lead Hazard Control and Healthy Homes", "grants", 808, 2318991757.16, 2870039.3034158414], ["Department of Justice", "Office of Justice Programs", "contracts", 838, 2053546949.89, 2450533.3530906923], ["Department of Labor", "Occupational Safety and Health Administration", "grants", 1883, 1806232292.07, 959231.1694476898], ["Department of Housing and Urban Development", "Assistant Secretary for Housing--Federal Housing Commissioner", "grants", 913, 1678531722.62, 1838479.4333187293], ["Department of Transportation", "Federal Transit Administration", "contracts", 1294, 1586382840.65, 1225952.736205564], ["Department of Homeland Security", "U.S. Coast Guard", "grants", 840, 1256887317.01, 1496294.4250119047], ["Department of Energy", "Federal Energy Regulatory Commission", "contracts", 1241, 1231433485.16, 992291.2853827559], ["Department of Transportation", "Federal Railroad Administration", "contracts", 1115, 1032993980.02, 926452.0000179372], ["Department of Transportation", "Immediate Office of the Secretary of Transportation", "grants", 130, 1029304848.02, 7917729.600153846], ["Department of Transportation", "Federal Motor Carrier Safety Administration", "contracts", 495, 992940356.6800001, 2005940.1145050507], ["Department of Transportation", "Pipeline and Hazardous Materials Safety Administration", "grants", 90, 779805872.2, 8664509.691111112], ["Department of Labor", "Bureau of Labor Statistics", "grants", 1021, 698973702.44, 684597.1620372185], ["Department of Veterans Affairs", "Directory/National Cemetery Administration", "grants", 224, 626674245.11, 2797652.8799553574], ["Department of Transportation", "Pipeline and Hazardous Materials Safety Administration", "contracts", 401, 599397362.94, 1494756.5160598506], ["Department of Homeland Security", "Office of the Inspector General", "contracts", 126, 428704858.71, 3402419.5135714286], ["Department of Homeland Security", "Countering Weapons of Mass Destruction", "grants", 112, 422765290.27, 3774690.0916964286], ["Department of Housing and Urban Development", "Assistant Secretary for Fair Housing and Equal Opportunity", "grants", 368, 395702635.28, 1075278.9002173913], ["Department of Commerce", "Minority Business Development Agency", "grants", 339, 377588483.31, 1113830.3342477877], ["Department of Labor", "Office of the Assistant Secretary for Administration and Management", "grants", 139, 294045510.42, 2115435.32676259], ["Department of Homeland Security", "Office of the Under Secretary for Science and Technology", "grants", 69, 271293603.18, 3931791.350434783], ["Department of Homeland Security", "Cybersecurity and Infrastructure Security Agency", "grants", 23, 224087364.35, 9742928.884782609], ["Department of Housing and Urban Development", "Assistant Secretary for Policy Development and Research", "grants", 97, 222611460.63, 2294963.5116494843], ["Department of Labor", "Bureau of Labor Statistics", "contracts", 836, 159629774.68, 190944.70655502393], ["Department of Homeland Security", "Immediate Office of the Under Secretary for Management", "grants", 220, 144134557.42, 655157.0791818182], ["Department of Transportation", "Saint Lawrence Seaway Development Corporation", "contracts", 117, 144078954.83, 1231444.0583760685], ["Department of Labor", "Office of Inspector General", "contracts", 676, 118173938.03, 174813.517795858], ["Department of Labor", "Mine Safety and Health Administration", "grants", 584, 105859095.44, 181265.57438356164], ["Department of Homeland Security", "Department of Homeland Security", "grants", 71, 104669860.58, 1474223.3884507043], ["Department of Labor", "President's Committee on Employment of the Handicapped", "grants", 16, 101827386.87, 6364211.679375], ["Department of Homeland Security", "U.S. Citizenship and Immigration Services", "grants", 291, 88242712.59, 303239.56216494844], ["Department of Energy", "Assistant Secretary for Fossil Energy", "grants", 66, 72754501.84, 1102340.936969697], ["Department of Justice", "Office of the Inspector General", "contracts", 97, 39379978.24, 405979.1571134021], ["Department of Labor", "Mine Safety and Health Administration", "contracts", 688, 36020512.81, 52355.3965261628], ["Department of Labor", "Office of Job Corps", "grants", 26, 25379855.72, 976148.2969230769], ["Department of Veterans Affairs", "Department of Veterans Affairs", "grants", 17, 25250886.0, 1485346.2352941176], ["Department of Homeland Security", "U.S. Secret Service", "grants", 1, 21850000.0, 21850000.0], ["Department of Energy", "Assistant Secretary for Conservation and Renewable Energy", "grants", 19, 19550516.63, 1028974.5594736842], ["Department of Commerce", "Department of Commerce", "contracts", 5, 15347694.87, 3069538.974], ["Department of Commerce", "International Trade Administration", "grants", 53, 11754375.31, 221780.6662264151], ["Department of Veterans Affairs", "Under Secretary for Benefits/Veterans Benefits Administration", "grants", 41, 11641910.68, 283949.04097560974], ["Department of Commerce", "U.S. Census Bureau", "grants", 5, 5283764.51, 1056752.902], ["Department of Homeland Security", "Office of Procurement Operations", "grants", 2, 2799249.6100000003, 1399624.8050000002], ["Department of Homeland Security", "U.S. Immigration and Customs Enforcement", "grants", 2, 2438201.91, 1219100.955], ["Department of Housing and Urban Development", "Chief Procurement Officer", "contracts", 1, 1152672.0, 1152672.0], ["Department of Housing and Urban Development", "Department of Housing and Urban Development", "grants", 1, 576808.0, 576808.0], ["Department of Energy", "Assistant Secretary for Congressional and Intergovernmental Affairs", "grants", 3, 360307.0, 120102.33333333333]], "truncated": false, "columns": ["agency", "sub_agency", "award_category", "award_count", "total_amount", "avg_amount"], "query": {"sql": "SELECT agency, sub_agency, award_category, award_count, total_amount, avg_amount FROM spending_by_agency ORDER BY total_amount DESC", "params": {}}, "error": null, "private": false, "allow_execute_sql": true, "query_ms": 11.958239134401083, "source": "Federal Register API & Regulations.gov API", "source_url": "https://www.federalregister.gov/developers/api/v1", "license": "Public Domain (U.S. Government data)", "license_url": "https://www.regulations.gov/faq"}