{ "tables": [ { "table_name": "dbo.County_Quick_Facts_Staging", "prompt": "### Table: dbo.County_Quick_Facts_Staging\nThis table contains quick facts about counties, including population data, geographic size, land distribution, and median home prices. It serves as a key component for analyzing county-level demographics, land use, and housing trends.\n\nKey details:\n- **County**: Name of the county (e.g., ADA, ADAMS).\n- **County_Population_2020_Census**: Total population of the county as recorded in the 2020 census.\n- **County_Population_2021_census_estimate**: Population estimate for the county in 2021.\n- **County_Size_square_miles**: Size of the county in square miles.\n- **Amount_of_State_Land_Acres**: Total state-owned land within the county in acres.\n- **Amount_of_Federal_Land_Acres**: Total federally-owned land within the county in acres.\n- **Median_Home_Price**: Median home price in the county, recorded as a monetary value.\n\nThis table is ideal for queries involving population trends, land use statistics, and housing market analysis.", "columns": [ { "column_name": "County", "prompt": "The column `County` (type: nvarchar, max length: 50, nullable) stores the name of the county. Examples include ADA, ADAMS, BANNOCK. This column is critical for identifying each record and correlating data with specific counties." }, { "column_name": "County_Population_2020_Census", "prompt": "The column `County_Population_2020_Census` (type: bigint, nullable) contains the total population of the county as recorded in the 2020 census. Examples of values are 494967 for ADA, 4379 for ADAMS. Use this column to analyze population data from the 2020 census." }, { "column_name": "County_Population_2021_census_estimate", "prompt": "The column `County_Population_2021_census_estimate` (type: bigint, nullable) holds the estimated population for the county in 2021. Examples include 511931 for ADA, 4625 for ADAMS. Use this column for comparing population growth or decline between 2020 and 2021." }, { "column_name": "County_Size_square_miles", "prompt": "The column `County_Size_square_miles` (type: decimal, nullable) represents the size of the county in square miles. For example, ADA is 1052.0 square miles, and ADAMS is 1363.0 square miles. Use this column for spatial analysis of counties." }, { "column_name": "Amount_of_State_Land_Acres", "prompt": "The column `Amount_of_State_Land_Acres` (type: decimal, nullable) stores the total acreage of state-owned land in the county. Example values are 297843.0 for ADA and 551206.0 for ADAMS. This column is useful for studying state land distribution." }, { "column_name": "Amount_of_Federal_Land_Acres", "prompt": "The column `Amount_of_Federal_Land_Acres` (type: decimal, nullable) holds the total acreage of federally-owned land within the county. Example values are 297843.0 for ADA and 213846.0 for BANNOCK. Use this column to examine federal land use." }, { "column_name": "Median_Home_Price", "prompt": "The column `Median_Home_Price` (type: money, nullable) provides the median home price in the county. Example values include $298,600.00 for ADA, $228,500.00 for ADAMS, and $167,300.00 for BANNOCK. This column is useful for analyzing housing affordability and market trends." } ] }, { "table_name": "ods.Entity", "prompt": "### Table: ods.Entity\nThis table contains metadata about various entities such as districts, water systems, and administrative units. It serves as a critical part of the database for managing information about different organizations, their classifications, and their fiscal attributes.\n\nKey details:\n- **EntityID**: A unique identifier for each entity (e.g., 1 for \"Lower Snake River Aquifer Recharge District\").\n- **EntityTypeID**: A classification of entities into types (e.g., 1 for recharge districts, 2 for pest extermination districts, 3 for water districts).\n- **EntityName**: The full name of the entity (e.g., \"Lower Snake River Aquifer Recharge District\").\n- **EntityEID**: An optional external identifier for entities, if available.\n- **EntityAddressStreet**: The street address of the entity, if applicable.\n- **EntityAddressCity**: The city in which the entity is located.\n- **EntityAddressState**: The state of the entity (e.g., \"ID\" for Idaho).\n- **EntityAddressZip**: The ZIP code of the entity’s address.\n- **EntityAuditRequired**: A flag indicating whether the entity requires an audit (e.g., False for all entities in the provided data).\n- **EntityFYStartMonth**: The starting month of the entity's fiscal year.\n- **EntityFYStartDay**: The starting day of the entity's fiscal year.\n- **EntityCurrentFiscalYear**: The current fiscal year of the entity (e.g., 2024 for all entities in the provided data).", "columns": [ { "column_name": "EntityID", "prompt": "The column `EntityID` (type: int, NOT NULL) is the primary key for the table. It uniquely identifies each entity in the database. Examples include: 1: Lower Snake River Aquifer Recharge District, 2: Ada County Pest Extermination District." }, { "column_name": "EntityTypeID", "prompt": "The column `EntityTypeID` (type: int, NOT NULL) categorizes entities into types. Examples include: 1: Recharge districts, 2: Pest extermination districts, 3: Water districts." }, { "column_name": "EntityName", "prompt": "The column `EntityName` (type: nvarchar, max length: 100, NOT NULL) stores the full name of each entity. Examples include: Lower Snake River Aquifer Recharge District, Ada County Pest Extermination District, Boise Warm Springs Water District." }, { "column_name": "EntityEID", "prompt": "The column `EntityEID` (type: nvarchar, max length: 50, NULLABLE) optionally stores an external identifier for the entity." }, { "column_name": "EntityAddressStreet", "prompt": "The column `EntityAddressStreet` (type: nvarchar, max length: 100, NULLABLE) stores the street address of the entity, if available." }, { "column_name": "EntityAddressCity", "prompt": "The column `EntityAddressCity` (type: nvarchar, max length: 50, NULLABLE) stores the city of the entity." }, { "column_name": "EntityAddressState", "prompt": "The column `EntityAddressState` (type: nvarchar, max length: 50, NOT NULL) specifies the state where the entity is located. In the provided data, all entities are located in \"ID\" (Idaho)." }, { "column_name": "EntityAddressZip", "prompt": "The column `EntityAddressZip` (type: nvarchar, max length: 50, NULLABLE) stores the ZIP code for the entity's address." }, { "column_name": "EntityAuditRequired", "prompt": "The column `EntityAuditRequired` (type: bit, NOT NULL) indicates whether the entity requires an audit. Examples include: False: No audit is required." }, { "column_name": "EntityFYStartMonth", "prompt": "The column `EntityFYStartMonth` (type: int, NULLABLE) stores the starting month of the entity's fiscal year." }, { "column_name": "EntityFYStartDay", "prompt": "The column `EntityFYStartDay` (type: int, NULLABLE) stores the starting day of the entity's fiscal year." }, { "column_name": "EntityCurrentFiscalYear", "prompt": "The column `EntityCurrentFiscalYear` (type: int, NULLABLE) specifies the current fiscal year of the entity. Example values include: 2024: The fiscal year for all entities in the provided data." } ] }, { "table_name": "ods.EntityType", "prompt": "### Table: ods.EntityType\nThis table contains metadata about various types of entities, categorizing them into distinct classifications such as districts, commissions, and boards. It serves as a lookup table, providing meaningful descriptions of entity types and their last updated timestamps.\n\nKey details:\n- **EntityTypeID**: A unique identifier for each entity type (e.g., 1 for Aquifer Recharge District, 2 for Pest Control District).\n- **EntityType**: A descriptive label for the type of entity (e.g., \"Aquifer Recharge District\", \"Pest Control District\").\n- **Last_Updated_Datetime**: The date when the entity type information was last updated (e.g., 2022-11-30 for all records in the provided data).", "columns": [ { "column_name": "EntityTypeID", "prompt": "The column `EntityTypeID` (type: int, NOT NULL) serves as the primary key for the table, uniquely identifying each entity type. Examples include: 1: Aquifer Recharge District, 2: Pest Control District." }, { "column_name": "EntityType", "prompt": "The column `EntityType` (type: nvarchar, max length: 50, NOT NULL) provides a descriptive label for each entity type. Examples include: Aquifer Recharge District, Pest Control District." }, { "column_name": "Last_Updated_Datetime", "prompt": "The column `Last_Updated_Datetime` (type: datetime, NOT NULL) records the date and time when the entity type data was last updated. Example: 2022-11-30." } ] }, { "table_name": "ods.CountyAnnualFacts", "prompt": "### Table: ods.CountyAnnualFacts\nThe `CountyAnnualFacts` table contains annual statistics for counties, including census population estimates and median home prices. This table is pivotal for analyzing trends in population growth and housing affordability at the county level across fiscal years.\n\nKey details:\n- **CountyID**: A unique identifier for each county (e.g., 518 for ADA County, 519 for ADAMS County).\n- **FiscalYear**: The fiscal year for which the data is recorded (e.g., 2021, 2023).\n- **CountyCensusEstimate**: The estimated population of the county during the given fiscal year.\n- **CountyMedianHomePrice**: The median home price in the county during the given fiscal year, recorded as a numeric value.", "columns": [ { "column_name": "CountyID", "prompt": "The column `CountyID` (type: int, NOT NULL) uniquely identifies each county in the dataset. Example values include: 518 for ADA, 519 for ADAMS." }, { "column_name": "FiscalYear", "prompt": "The column `FiscalYear` (type: int, NOT NULL) stores the fiscal year for which the data is relevant. Example values include: 2021, 2023." }, { "column_name": "CountyCensusEstimate", "prompt": "The column `CountyCensusEstimate` (type: bigint, nullable) contains the estimated population of the county for the given fiscal year." }, { "column_name": "CountyMedianHomePrice", "prompt": "The column `CountyMedianHomePrice` (type: money, nullable) holds the median home price for the county in the specified fiscal year." } ] }, { "table_name": "ods.CountyStaticFacts", "prompt": "### Table: ods.CountyStaticFacts\nThe `CountyStaticFacts` table provides static data about counties, including census population counts, land area, and details about state and federal land ownership. It is a foundational table for analyzing geographic and land-use statistics at the county level.\n\nKey details:\n- **CountyID**: A unique identifier for each county (e.g., 518 for ADA County, 519 for ADAMS County).\n- **CountyCensusFederal**: The population of the county based on federal census data.\n- **CountySquareMiles**: The total land area of the county in square miles.\n- **CountyStateLandAcres**: The total acreage of state-owned land in the county.\n- **CountyFedLandAcres**: The total acreage of federally-owned land in the county.\n- **PercentOfFedLand**: The percentage of the county's land area that is federally owned.\n\nThis table is ideal for queries involving land area analysis, federal land distribution, and static population data.", "columns": [ { "column_name": "CountyID", "prompt": "The column `CountyID` (type: int, NOT NULL) uniquely identifies each county in the database. It serves as the primary key when combined with other identifying data. Examples include:\n- 518: Represents ADA County\n- 519: Represents ADAMS County\n- 520: Represents BANNOCK County\nThis column is critical for joining with other tables containing county-related data." }, { "column_name": "CountyCensusFederal", "prompt": "The column `CountyCensusFederal` (type: int, NULLABLE) stores the federal census population count for the county. Examples include:\n- 494,967: Population for ADA County\n- 4,379: Population for ADAMS County\n- 87,018: Population for BANNOCK County\nThis column helps in analyzing static population trends based on federal data." }, { "column_name": "CountySquareMiles", "prompt": "The column `CountySquareMiles` (type: numeric, NULLABLE) represents the total land area of the county in square miles. Examples include:\n- 1,052.01: ADA County's land area\n- 1,362.81: ADAMS County's land area\n- 1,112.49: BANNOCK County's land area\nThis column is useful for geographic and spatial analysis of counties." }, { "column_name": "CountyStateLandAcres", "prompt": "The column `CountyStateLandAcres` (type: numeric, NULLABLE) stores the total acreage of state-owned land in the county. Examples include:\n- 297,843.0: ADA County\n- 551,206.0: ADAMS County\nThis column is critical for analyzing state land usage, though it is empty for some counties in the data provided." }, { "column_name": "CountyFedLandAcres", "prompt": "The column `CountyFedLandAcres` (type: numeric, NULLABLE) stores the total acreage of federally-owned land in the county. Examples include:\n- 297,843.0: ADA County\n- 213,846.0: BANNOCK County\n- 589,659.0: BONNEVILLE County\nThis column provides insight into federal land distribution within counties." }, { "column_name": "PercentOfFedLand", "prompt": "The column `PercentOfFedLand` (type: int, NULLABLE) represents the percentage of the county's total land area that is federally owned. Examples include:\n- 44%: ADA County\n- 63%: ADAMS County\n- 30%: BANNOCK County\nThis column is key for understanding the proportion of federal land within a county's boundaries." } ] }, { "table_name": "ods.CountyWebText", "prompt": "### Table: ods.CountyWebText\nThe `CountyWebText` table contains descriptive and narrative content for counties, including historical information, budget summaries, fund balance details, and official website URLs. This table is essential for generating detailed reports, providing insights into county history, governance, and financial management.\n\nKey details:\n- **CountyID**: A unique identifier for each county (e.g., 518 for ADA County, 519 for ADAMS County).\n- **AboutSummary**: A brief description of the county, including its history, significant events, and key facts.\n- **CountySubheading**: An extended narrative about the county’s history, culture, and features.\n- **TotalBudgetSummary**: A summary of the county’s annual budget preparation process, including its use of funds and fiscal accountability measures.\n- **TopFundBalance**: Details on how the county’s fund balances support operations, emergencies, and future projects.\n- **BudgetSheetSummary**: A high-level description of the county’s budget sheet and allocation priorities.\n- **FinancialAudit**: Information on the county’s financial audit processes and accountability.\n- **WebsiteNarrative**: A narrative about the county’s official website and its purpose.\n- **CountyURL**: The official URL of the county’s website for accessing more information.\n\nThis table supports applications requiring descriptive content for counties, such as generating website content, financial overviews, and detailed county reports.", "columns": [ { "column_name": "CountyID", "prompt": "The column `CountyID` (type: int, NOT NULL) uniquely identifies each county in the database. It serves as the primary key for the table. Examples include:\n- 518: Represents ADA County\n- 519: Represents ADAMS County\n- 520: Represents BANNOCK County\nThis column is essential for joining with other county-related tables." }, { "column_name": "AboutSummary", "prompt": "The column `AboutSummary` (type: text, NULLABLE) provides a concise description of the county’s history and key facts. Examples include:\n- ADA County: \"Ada County was created on December 22, 1864, and named after Ada Riggs, the daughter of legislative representative H.C. Riggs.\"\n- ADAMS County: \"Adams County was established on March 3, 1911, and named for the second U.S. President John Adams.\"\nThis column is useful for generating introductory content about each county." }, { "column_name": "CountySubheading", "prompt": "The column `CountySubheading` (type: text, NULLABLE) contains a detailed narrative about the county’s history, culture, and notable features. Examples include:\n- ADA County: Information about the Oregon Trail, agricultural heritage, and recreational opportunities.\n- ADAMS County: Details about the Council Valley settlement, mining history, and economic evolution.\nThis column supports in-depth content generation for county profiles." }, { "column_name": "TotalBudgetSummary", "prompt": "The column `TotalBudgetSummary` (type: text, NULLABLE) summarizes the county’s budget preparation process and financial management. Examples include:\n- ADA County: Details on balanced budgeting and property tax allocations for services like public safety and judicial services.\n- ADAMS County: Information about budget utilization for public services, road maintenance, and employee benefits.\nThis column helps describe financial governance practices." }, { "column_name": "TopFundBalance", "prompt": "The column `TopFundBalance` (type: text, NULLABLE) explains the county’s use of fund balances to ensure operational stability, handle emergencies, and support future projects. Examples include:\n- \"County fund balances aid in operating, emergencies, and future projects. These balances act as a financial safety net, allowing the county to handle unexpected costs and invest in long-term initiatives.\"\nThis column highlights the financial planning of the county." }, { "column_name": "BudgetSheetSummary", "prompt": "The column `BudgetSheetSummary` (type: text, NULLABLE) provides an overview of the county’s budget sheet and allocation priorities. This field is empty in the provided data but may contain detailed budget sheet information in the future." }, { "column_name": "FinancialAudit", "prompt": "The column `FinancialAudit` (type: text, NULLABLE) describes the county’s financial audit processes. This field is empty in the provided data but can include information on compliance, accountability, and audit results." }, { "column_name": "WebsiteNarrative", "prompt": "The column `WebsiteNarrative` (type: text, NULLABLE) provides a narrative about the county’s website, its purpose, and available resources. This field is empty in the provided data but may include website descriptions in the future." }, { "column_name": "CountyURL", "prompt": "The column `CountyURL` (type: nvarchar, max length: 1000, NULLABLE) stores the official URL of the county’s website. Examples include:\n- ADA County: https://adacounty.id.gov/\n- ADAMS County: https://www.co.adams.id.us/\nThis column provides direct access to the county’s official website for more information." } ] }, { "table_name": "rep.Fact_County_Budget", "prompt": "### Table: rep.Fact_County_Budget\nThe `rep.Fact_County_Budget` table contains financial data for county budgets, including amounts allocated to various programs for specific fiscal years. This table tracks budget details at the entity level and supports financial analysis, trend identification, and program-level reporting.\n\nKey details:\n- **Fact_ID**: A unique identifier for each budget fact record.\n- **RecordID**: Identifies the budget record type.\n- **EntityID**: A unique identifier for the county or entity associated with the budget record.\n- **ProgramID**: Identifies the program or category to which the budget amount is allocated.\n- **Fiscal_Year**: The fiscal year associated with the budget record.\n- **Amount**: The budget amount allocated for the specific program in the given fiscal year.\n- **Last_Updated_Datetime**: The date when the record was last updated.\n\nThis table is vital for analyzing budget trends, evaluating program funding across fiscal years, and tracking financial changes over time.", "columns": [ { "column_name": "Fact_ID", "prompt": "The column `Fact_ID` (type: int, NOT NULL) serves as the primary key for the table, uniquely identifying each budget record. Examples include:\n- 1: Represents the first budget record.\n- 3609: Represents a budget record for 2023.\nThis column is critical for ensuring data integrity and referencing specific records." }, { "column_name": "RecordID", "prompt": "The column `RecordID` (type: int, NOT NULL) identifies the budget record type. In the provided data, all records share the same value of `2`, indicating a specific type of budget record." }, { "column_name": "EntityID", "prompt": "The column `EntityID` (type: int, NOT NULL) uniquely identifies the county or entity associated with the budget record. In the provided data, all records are for EntityID `518`, which corresponds to ADA County. This column is essential for grouping and analyzing data at the county level." }, { "column_name": "ProgramID", "prompt": "The column `ProgramID` (type: int, NOT NULL) identifies the program or category receiving the budget allocation. Examples include:\n- 7: A program with an allocated budget amount of $1,617,496.00 in 2022 and $2,097,247.00 in 2023.\n- 12: A program with the highest allocation of $22,801,186.00 in 2022 and $27,681,338.00 in 2023.\nThis column allows program-specific budget analysis." }, { "column_name": "Fiscal_Year", "prompt": "The column `Fiscal_Year` (type: int, NOT NULL) specifies the fiscal year for the budget record. Examples include:\n- 2022: Budget data for the year 2022.\n- 2023: Budget data for the year 2023.\nThis column supports year-over-year financial trend analysis." }, { "column_name": "Amount", "prompt": "The column `Amount` (type: decimal, NULLABLE) stores the budget amount allocated for a specific program in the given fiscal year. Examples include:\n- $1,617,496.00: Amount for ProgramID 7 in 2022.\n- $27,681,338.00: Amount for ProgramID 12 in 2023.\nThis column is critical for analyzing financial allocation and program funding." }, { "column_name": "Last_Updated_Datetime", "prompt": "The column `Last_Updated_Datetime` (type: date, NULLABLE) indicates the date when the budget record was last updated. Examples include:\n- 2023-01-30: Records updated in January 2023.\n- 2024-05-29: Records updated in May 2024.\nThis column is useful for tracking updates and ensuring data accuracy." } ] } ] }