-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.sdoh_hud_pit_homelessness.hud_pit_by_coc`
(
  CoC_Number STRING OPTIONS(description="Number of the Continuum of Care Area"),
  CoC_Name STRING OPTIONS(description="Name of the Continuum of Care Area"),
  CoC_Category STRING OPTIONS(description="Only for 2018"),
  Overall_Homeless INT64 OPTIONS(description="Total Homeless Population"),
  Sheltered_ES_Homeless INT64 OPTIONS(description="Homeless in Emergency Shelters"),
  Sheltered_TH_Homeless INT64 OPTIONS(description="Homeless in Transitional Housing"),
  Sheltered_SH_Homeless INT64 OPTIONS(description="Homeless in Safe Haven Housing"),
  Sheltered_Total_Homeless INT64 OPTIONS(description="Total Sheltered Homeless"),
  Unsheltered_Homeless INT64,
  Homeless_Individuals INT64 OPTIONS(description="Individuals not with Families"),
  Sheltered_ES_Homeless_Individuals INT64 OPTIONS(description="Emergency Shelter"),
  Sheltered_TH_Homeless_Individuals INT64 OPTIONS(description="Transitional Housing"),
  Sheltered_SH_Homeless_Individuals INT64 OPTIONS(description="Safe Haven Housing"),
  Sheltered_Total_Homeless_Individuals INT64,
  Unsheltered_Homeless_Individuals INT64,
  Homeless_People_in_Families INT64,
  Sheltered_ES_Homeless_People_in_Families INT64 OPTIONS(description="Emergency Shelter"),
  Sheltered_TH_Homeless_People_in_Families INT64 OPTIONS(description="Transitional Housing"),
  Sheltered_Total_Homeless_People_in_Families INT64,
  Unsheltered_Homeless_People_in_Families INT64,
  Homeless_Family_Households INT64,
  Sheltered_ES_Homeless_Family_Households INT64 OPTIONS(description="Emergency Shelter"),
  Sheltered_TH_Homeless_Family_Households INT64 OPTIONS(description="Transitional Housing"),
  Sheltered_Total_Homeless_Family_Households INT64,
  Unsheltered_Homeless_Family_Households INT64,
  Chronically_Homeless INT64 OPTIONS(description="Homelessness for a Year"),
  Sheltered_ES_Chronically_Homeless INT64 OPTIONS(description="Emergency Shelter; Homelessness for a Year"),
  Sheltered_SH_Chronically_Homeless INT64 OPTIONS(description="Homelessness for a Year"),
  Sheltered_Total_Chronically_Homeless INT64 OPTIONS(description="Homelessness for a Year"),
  Unsheltered_Chronically_Homeless INT64 OPTIONS(description="Homelessness for a Year"),
  Chronically_Homeless_Individuals INT64 OPTIONS(description="Homelessness for a Year"),
  Sheltered_ES_Chronically_Homeless_Individuals INT64 OPTIONS(description="Emergency Shelter; Homelessness for a Year"),
  Sheltered_SH_Chronically_Homeless_Individuals INT64 OPTIONS(description="Safe Haven Housing; Homelessness for a Year"),
  Sheltered_Total_Chronically_Homeless_Individuals INT64 OPTIONS(description="Homelessness for a Year"),
  Unsheltered_Chronically_Homeless_Individuals INT64 OPTIONS(description="Homelessness for a Year"),
  Chronically_Homeless_People_in_Families INT64 OPTIONS(description="Homelessness for a Year"),
  Sheltered_ES_Chronically_Homeless_People_in_Families INT64 OPTIONS(description="Emergency Shelter; Homelessness for a Year"),
  Sheltered_Total_Chronically_Homeless_People_in_Families INT64 OPTIONS(description="Homelessness for a Year"),
  Unsheltered_Chronically_Homeless_People_in_Families INT64 OPTIONS(description="Homelessness for a Year"),
  Homeless_Veterans INT64,
  Sheltered_ES_Homeless_Veterans INT64 OPTIONS(description="Emergency Shelter; after 2013"),
  Sheltered_TH_Homeless_Veterans INT64 OPTIONS(description="Transitional Housing; after 2013"),
  Sheltered_SH_Homeless_Veterans INT64 OPTIONS(description="Safe Haven Housing; after 2013"),
  Sheltered_Total_Homeless_Veterans INT64,
  Unsheltered_Homeless_Veterans INT64,
  Homeless_Unaccompanied_Youth_Under_25 INT64 OPTIONS(description="after 2014"),
  Sheltered_ES_Homeless_Unaccompanied_Youth_Under_25 INT64 OPTIONS(description="Emergency Shelter; after 2014"),
  Sheltered_TH_Homeless_Unaccompanied_Youth_Under_25 INT64 OPTIONS(description="Transitional Housing; after 2014"),
  Sheltered_SH_Homeless_Unaccompanied_Youth_Under_25 INT64 OPTIONS(description="Safe Haven Housing; after 2014"),
  Sheltered_Total_Homeless_Unaccompanied_Youth_Under_25 INT64 OPTIONS(description="after 2014"),
  Unsheltered_Homeless_Unaccompanied_Youth_Under_25 INT64 OPTIONS(description="after 2014"),
  Homeless_Unaccompanied_Youth_Under_18 INT64 OPTIONS(description="after 2014"),
  Sheltered_ES_Homeless_Unaccompanied_Youth_Under_18 INT64 OPTIONS(description="Emergency Shelter; after 2014"),
  Sheltered_TH_Homeless_Unaccompanied_Youth_Under_18 INT64 OPTIONS(description="Transitional Housing; after 2014"),
  Sheltered_SH_Homeless_Unaccompanied_Youth_Under_18 INT64 OPTIONS(description="Safe Haven Housing; after 2014"),
  Sheltered_Total_Homeless_Unaccompanied_Youth_Under_18 INT64 OPTIONS(description="after 2014"),
  Unsheltered_Homeless_Unaccompanied_Youth_Under_18 INT64 OPTIONS(description="after 2014"),
  Homeless_Unaccompanied_Youth_Age_18_24 INT64 OPTIONS(description="after 2014"),
  Sheltered_ES_Homeless_Unaccompanied_Youth_Age_18_24 INT64 OPTIONS(description="Emergency Shelter; after 2014"),
  Sheltered_TH_Homeless_Unaccompanied_Youth_Age_18_24 INT64 OPTIONS(description="Transitional Housing; after 2014"),
  Sheltered_SH_Homeless_Unaccompanied_Youth_Age_18_24 INT64 OPTIONS(description="Safe Haven Housing; after 2014"),
  Sheltered_Total_Homeless_Unaccompanied_Youth_Age_18_24 INT64 OPTIONS(description="after 2014"),
  Unsheltered_Homeless_Unaccompanied_Youth_Age_18_24 INT64 OPTIONS(description="after 2014"),
  Homeless_Parenting_Youth_Under_25 INT64 OPTIONS(description="after 2014"),
  Sheltered_ES_Homeless_Parenting_Youth_Under_25 INT64 OPTIONS(description="Emergency Shelter; after 2014"),
  Sheltered_TH_Homeless_Parenting_Youth_Under_25 INT64 OPTIONS(description="Transitional Housing; after 2014"),
  Sheltered_Total_Homeless_Parenting_Youth_Under_25 INT64 OPTIONS(description="after 2014"),
  Unsheltered_Homeless_Parenting_Youth_Under_25 INT64 OPTIONS(description="after 2014"),
  Homeless_Parenting_Youth_Under_18 INT64 OPTIONS(description="after 2014"),
  Sheltered_ES_Homeless_Parenting_Youth_Under_18 INT64 OPTIONS(description="Emergency Shelter; after 2014"),
  Sheltered_TH_Homeless_Parenting_Youth_Under_18 INT64 OPTIONS(description="Transitional Housing; after 2014"),
  Sheltered_Total_Homeless_Parenting_Youth_Under_18 INT64 OPTIONS(description="after 2014"),
  Unsheltered_Homeless_Parenting_Youth_Under_18 INT64 OPTIONS(description="after 2014"),
  Homeless_Parenting_Youth_Age_18_24 INT64 OPTIONS(description="after 2014"),
  Sheltered_ES_Homeless_Parenting_Youth_Age_18_24 INT64 OPTIONS(description="Emergency Shelter; after 2014"),
  Sheltered_TH_Homeless_Parenting_Youth_Age_18_24 INT64 OPTIONS(description="Transitional Housing; after 2014"),
  Sheltered_Total_Homeless_Parenting_Youth_Age_18_24 INT64 OPTIONS(description="after 2014"),
  Unsheltered_Homeless_Parenting_Youth_Age_18_24 INT64 OPTIONS(description="after 2014"),
  Homeless_Children_of_Parenting_Youth INT64 OPTIONS(description="after 2014"),
  Sheltered_ES_Homeless_Children_of_Parenting_Youth INT64 OPTIONS(description="Emergency Shelter; after 2014"),
  Sheltered_TH_Homeless_Children_of_Parenting_Youth INT64 OPTIONS(description="Transitional Housing; after 2014"),
  Sheltered_Total_Homeless_Children_of_Parenting_Youth INT64 OPTIONS(description="after 2014"),
  Unsheltered_Homeless_Children_of_Parenting_Youth INT64 OPTIONS(description="after 2014"),
  Count_Year INT64 OPTIONS(description="Year the Count took Place (January)")
)
OPTIONS(
  description="Methodology: https://files.hudexchange.info/resources/documents/PIT-Count-Methodology-Guide.pdf; this table combines count information from 2012 through 2018",
  labels=[("freebqcovid", "")]
);

INSERT INTO `bigquery-public-data.sdoh_hud_pit_homelessness.hud_pit_by_coc` (CoC_Number, CoC_Name, CoC_Category, Overall_Homeless, Sheltered_ES_Homeless, Sheltered_TH_Homeless, Sheltered_SH_Homeless, Sheltered_Total_Homeless, Unsheltered_Homeless, Homeless_Individuals, Sheltered_ES_Homeless_Individuals, Sheltered_TH_Homeless_Individuals, Sheltered_SH_Homeless_Individuals, Sheltered_Total_Homeless_Individuals, Unsheltered_Homeless_Individuals, Homeless_People_in_Families, Sheltered_ES_Homeless_People_in_Families, Sheltered_TH_Homeless_People_in_Families, Sheltered_Total_Homeless_People_in_Families, Unsheltered_Homeless_People_in_Families, Homeless_Family_Households, Sheltered_ES_Homeless_Family_Households, Sheltered_TH_Homeless_Family_Households, Sheltered_Total_Homeless_Family_Households, Unsheltered_Homeless_Family_Households, Chronically_Homeless, Sheltered_ES_Chronically_Homeless, Sheltered_SH_Chronically_Homeless, Sheltered_Total_Chronically_Homeless, Unsheltered_Chronically_Homeless, Chronically_Homeless_Individuals, Sheltered_ES_Chronically_Homeless_Individuals, Sheltered_SH_Chronically_Homeless_Individuals, Sheltered_Total_Chronically_Homeless_Individuals, Unsheltered_Chronically_Homeless_Individuals, Chronically_Homeless_People_in_Families, Sheltered_ES_Chronically_Homeless_People_in_Families, Sheltered_Total_Chronically_Homeless_People_in_Families, Unsheltered_Chronically_Homeless_People_in_Families, Homeless_Veterans, Sheltered_ES_Homeless_Veterans, Sheltered_TH_Homeless_Veterans, Sheltered_SH_Homeless_Veterans, Sheltered_Total_Homeless_Veterans, Unsheltered_Homeless_Veterans, Homeless_Unaccompanied_Youth_Under_25, Sheltered_ES_Homeless_Unaccompanied_Youth_Under_25, Sheltered_TH_Homeless_Unaccompanied_Youth_Under_25, Sheltered_SH_Homeless_Unaccompanied_Youth_Under_25, Sheltered_Total_Homeless_Unaccompanied_Youth_Under_25, Unsheltered_Homeless_Unaccompanied_Youth_Under_25, Homeless_Unaccompanied_Youth_Under_18, Sheltered_ES_Homeless_Unaccompanied_Youth_Under_18, Sheltered_TH_Homeless_Unaccompanied_Youth_Under_18, Sheltered_SH_Homeless_Unaccompanied_Youth_Under_18, Sheltered_Total_Homeless_Unaccompanied_Youth_Under_18, Unsheltered_Homeless_Unaccompanied_Youth_Under_18, Homeless_Unaccompanied_Youth_Age_18_24, Sheltered_ES_Homeless_Unaccompanied_Youth_Age_18_24, Sheltered_TH_Homeless_Unaccompanied_Youth_Age_18_24, Sheltered_SH_Homeless_Unaccompanied_Youth_Age_18_24, Sheltered_Total_Homeless_Unaccompanied_Youth_Age_18_24, Unsheltered_Homeless_Unaccompanied_Youth_Age_18_24, Homeless_Parenting_Youth_Under_25, Sheltered_ES_Homeless_Parenting_Youth_Under_25, Sheltered_TH_Homeless_Parenting_Youth_Under_25, Sheltered_Total_Homeless_Parenting_Youth_Under_25, Unsheltered_Homeless_Parenting_Youth_Under_25, Homeless_Parenting_Youth_Under_18, Sheltered_ES_Homeless_Parenting_Youth_Under_18, Sheltered_TH_Homeless_Parenting_Youth_Under_18, Sheltered_Total_Homeless_Parenting_Youth_Under_18, Unsheltered_Homeless_Parenting_Youth_Under_18, Homeless_Parenting_Youth_Age_18_24, Sheltered_ES_Homeless_Parenting_Youth_Age_18_24, Sheltered_TH_Homeless_Parenting_Youth_Age_18_24, Sheltered_Total_Homeless_Parenting_Youth_Age_18_24, Unsheltered_Homeless_Parenting_Youth_Age_18_24, Homeless_Children_of_Parenting_Youth, Sheltered_ES_Homeless_Children_of_Parenting_Youth, Sheltered_TH_Homeless_Children_of_Parenting_Youth, Sheltered_Total_Homeless_Children_of_Parenting_Youth, Unsheltered_Homeless_Children_of_Parenting_Youth, Count_Year) VALUES ('AK-500', 'Anchorage CoC', NULL, 1023, 665, 305, 0, 970, 53, 736, 530, 158, 0, 688, 48, 287, 135, 147, 282, 5, 102, 52, 48, 100, 2, 101, 59, 0, 59, 42, 94, 56, 0, 56, 38, 7, 3, 3, 4, 138, 92, 28, 0, 120, 18, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 2014), ('AK-500', 'Anchorage CoC', NULL, 1122, 676, 394, 0, 1070, 52, 844, 553, 239, 0, 792, 52, 278, 123, 155, 278, 0, 87, 38, 49, 87, 0, 89, 68, 0, 68, 21, 83, 62, 0, 62, 21, 6, 6, 6, 0, 144, NULL, NULL, NULL, 138, 6, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 2013), ('AK-500', 'Anchorage CoC', NULL, 1147, 704, 393, 0, 1097, 50, 791, 561, 195, 0, 756, 35, 356, 143, 198, 341, 15, 126, 41, 81, 122, 4, 114, 109, 0, 109, 5, 113, 108, 0, 108, 5, 1, 1, 1, 0, 174, NULL, NULL, NULL, 167, 7, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 2012), ('AK-501', 'Alaska Balance of State CoC', NULL, 761, 474, 195, 0, 669, 92, 473, 318, 103, 0, 421, 52, 288, 156, 92, 248, 40, 91, 56, 23, 79, 12, 105, 78, 0, 78, 27, 88, 63, 0, 63, 25, 17, 15, 15, 2, 40, 27, 13, 0, 40, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 2014), ('AK-501', 'Alaska Balance of State CoC', NULL, 824, 461, 210, 0, 671, 153, 518, 282, 134, 0, 416, 102, 306, 179, 76, 255, 51, 109, 67, 28, 95, 14, 95, 70, 0, 70, 25, 83, 62, 0, 62, 21, 12, 8, 8, 4, 66, NULL, NULL, NULL, 50, 16, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 2013);