-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.geo_census_blockgroups.blockgroups_12`
(
  geo_id STRING OPTIONS(description="Unique identifier for each block group. Census block group identifier; a concatenation of the current state FIPS code, county FIPS code, census tract code, and block group number."),
  state_fips_code STRING OPTIONS(description="Two digit FIPS code that uniquely identifies each state. See https://www.census.gov/geo/reference/ansi_statetables.html for more information State names and their corresponding FIPS codes are available as a BigQuery Public Dataset: `bigquery-public-data.census_utility.fips_codes_states`"),
  county_fips_code STRING OPTIONS(description="Four-digit county FIPS code. County names and their corresponding FIPS codes can be found in BigQuery: `bigquery-public-data.census_utility.fips_codes_all`"),
  tract_ce STRING OPTIONS(description="Current Census tract code"),
  blockgroup_ce STRING OPTIONS(description="Current block group number"),
  lsad_name STRING OPTIONS(description="Current translated legal/statistical area description and the block group number"),
  mtfcc_feature_class_code STRING OPTIONS(description="MAF/TIGER feature class code (G5030)"),
  functional_status STRING OPTIONS(description="Current functional status"),
  area_land_meters INT64 OPTIONS(description="Current land area"),
  area_water_meters INT64 OPTIONS(description="Current water area"),
  internal_point_lat FLOAT64 OPTIONS(description="Latitude of the block group's internal point, which is the point at or closest to the block group's geographic center"),
  internal_point_lon FLOAT64 OPTIONS(description="Longitude of the block group's internal point, which is the point at or closest to the block group's geographic center"),
  internal_point_geom GEOGRAPHY OPTIONS(description="Geographical representation of the block group's internal point, which is the point at or closest to the block group's geographic center"),
  blockgroup_geom GEOGRAPHY OPTIONS(description="Geographical representation of the polygon that defines the perimeter of the block group. This column should be used as the GEO column for visualization in BigQuery Geo Viz")
);

INSERT INTO `bigquery-public-data.geo_census_blockgroups.blockgroups_12` (geo_id, state_fips_code, county_fips_code, tract_ce, blockgroup_ce, lsad_name, mtfcc_feature_class_code, functional_status, area_land_meters, area_water_meters, internal_point_lat, internal_point_lon, internal_point_geom, blockgroup_geom) VALUES ('120010015201', '12', '001', '001520', '1', 'Block Group 1', 'G5030', 'S', 1485238, 1715, 29.6376725, -82.3816852, 'POINT(-82.3816852 29.6376725)', 'POLYGON((-82.392022 29.63827, -82.392093 29.638057, -82.391722 29.637827, -82.391604 29.637754, -82.391253 29.637524, -82.389509 29.636573, -82.389583 29.63646, -82.389502 29.63641, -82.389138 29.636185, -82.388566 29.635826, -82.387988 29.635517, -82.387755 29.635409, -82.387652 29.635362, -82.38754 29.635306, -82.387208 29.635151, -82.386795 29.634972, -82.386661 29.63492, -82.386438 29.634819, -82.386089 29.634702, -82.385787 29.634582, -82.385645 29.634547, -82.385409 29.634489, -82.385129 29.63442, -82.385033 29.634396, -82.384952 29.634378, -82.384631 29.634305, -82.384064 29.63419, -82.38359 29.634119, -82.383279 29.634086, -82.38307 29.634061, -82.382806 29.63403, -82.382635 29.634014, -82.38235 29.633997, -82.381832 29.633966, -82.381109 29.634003, -82.380928 29.634, -82.379797 29.633993, -82.379743 29.633993, -82.379225 29.633977, -82.379011 29.633978, -82.37833 29.634001, -82.378124 29.634011, -82.377964 29.634018, -82.377698 29.634031, -82.377113 29.634055, -82.376968 29.63406, -82.376512 29.634078, -82.375872 29.634103, -82.375254 29.634129, -82.372599 29.634221, -82.372568 29.635122, -82.372599 29.637654, -82.372568 29.63875, -82.372563 29.639301, -82.372528 29.641256, -82.372517 29.641872, -82.372532 29.642217, -82.372533 29.64494, -82.372532 29.644991, -82.372522 29.645036, -82.373294 29.645038, -82.374145 29.64504, -82.374443 29.645041, -82.374555 29.645042, -82.375821 29.645053, -82.375722 29.644651, -82.3746 29.64385, -82.374027 29.643445, -82.374027 29.643045, -82.374641 29.64275, -82.376527 29.641845, -82.376666 29.64179, -82.380334 29.640401, -82.380787 29.640616, -82.383471 29.64189, -82.384532 29.642777, -82.385185 29.642694, -82.385818 29.642645, -82.389248 29.641203, -82.389834 29.640958, -82.391417 29.640072, -82.391565 29.639629, -82.39195 29.638482, -82.392022 29.63827))'), ('120010022071', '12', '001', '002207', '1', 'Block Group 1', 'G5030', 'S', 2659991, 10519, 29.6542803, -82.431342, 'POINT(-82.431342 29.6542803)', 'POLYGON((-82.439087 29.645672, -82.439093 29.645145, -82.437405 29.645131, -82.436742 29.645139, -82.434646 29.645138, -82.43372 29.645126, -82.431371 29.645128, -82.430696 29.645133, -82.429485 29.645131, -82.427724 29.645115, -82.42519 29.645127, -82.423837 29.645119, -82.422443 29.645129, -82.422429 29.646023, -82.422429 29.646163, -82.422432 29.648031, -82.422414 29.649181, -82.422415 29.649865, -82.422416 29.650286, -82.422417 29.651291, -82.422413 29.653087, -82.422412 29.653355, -82.422407 29.654162, -82.422406 29.654199, -82.422399 29.654721, -82.422395 29.655119, -82.422394 29.655283, -82.422386 29.656074, -82.422385 29.6562, -82.422386 29.656307, -82.422397 29.657184, -82.422392 29.657926, -82.42239 29.658438, -82.422389 29.658529, -82.422374 29.659587, -82.422369 29.65975, -82.424076 29.659772, -82.424744 29.659772, -82.425765 29.659795, -82.426225 29.659789, -82.427778 29.659812, -82.428113 29.659836, -82.428576 29.659889, -82.429757 29.660176, -82.430198 29.66029, -82.430589 29.66036, -82.430982 29.660407, -82.431521 29.6604, -82.433577 29.6604, -82.434334 29.660405, -82.436348 29.660396, -82.43676 29.660402, -82.43685 29.660401, -82.438111 29.660322, -82.438934 29.660262, -82.438935 29.660132, -82.438921 29.659195, -82.438929 29.657826, -82.438954 29.656881, -82.438958 29.656599, -82.438967 29.655889, -82.438957 29.654957, -82.438965 29.654443, -82.438972 29.653994, -82.438973 29.653724, -82.438975 29.653224, -82.438975 29.653168, -82.439002 29.652524, -82.439003 29.651954, -82.439017 29.651161, -82.439017 29.651134, -82.439021 29.650187, -82.43906 29.647514, -82.439051 29.646522, -82.43905 29.64637, -82.439087 29.645672))'), ('120010018141', '12', '001', '001814', '1', 'Block Group 1', 'G5030', 'S', 18212054, 411347, 29.7537617, -82.4326123, 'POINT(-82.4326123 29.7537617)', 'POLYGON((-82.454873 29.778354, -82.45482 29.774308, -82.454746 29.768748, -82.454744 29.767187, -82.454856 29.760291, -82.454869 29.752974, -82.45248 29.752018, -82.448737 29.750677, -82.446518 29.749127, -82.440071 29.744631, -82.437796 29.743044, -82.432586 29.739418, -82.425702 29.739391, -82.422068 29.739377, -82.422097 29.732616, -82.417369 29.732596, -82.417384 29.732534, -82.417416 29.732491, -82.417492 29.732447, -82.41759 29.732437, -82.417701 29.732434, -82.4178 29.73238, -82.417832 29.732272, -82.417918 29.730667, -82.417952 29.728918, -82.417466 29.728888, -82.416052 29.72884, -82.415347 29.728849, -82.414445 29.728861, -82.414008 29.728867, -82.413703 29.728871, -82.413132 29.728868, -82.409702 29.728848, -82.409687 29.732507, -82.409688 29.732546, -82.413641 29.732569, -82.414256 29.732572, -82.416711 29.732588, -82.416694 29.735739, -82.415839 29.735736, -82.415633 29.735735, -82.414331 29.735731, -82.413765 29.73573, -82.413763 29.736093, -82.414756 29.736095, -82.414751 29.737145, -82.414011 29.737144, -82.41401 29.737364, -82.414004 29.738837, -82.414744 29.738839, -82.414741 29.739301, -82.414684 29.739301, -82.411667 29.739305, -82.410587 29.739294, -82.410302 29.739295, -82.408531 29.739299, -82.408385 29.739299, -82.406131 29.739297, -82.405444 29.739305, -82.399863 29.739293, -82.39972 29.739293, -82.398659 29.739294, -82.397131 29.739295, -82.396708 29.739295, -82.39323 29.739298, -82.391023 29.739299, -82.389176 29.739303, -82.389014 29.739303, -82.38893 29.739304, -82.388776 29.739307, -82.388405 29.739304, -82.388376 29.739304, -82.386657 29.739303, -82.386022 29.739305, -82.384316 29.739304, -82.384258 29.739311, -82.38401 29.739345, -82.385033 29.740508, -82.385389 29.740901, -82.385581 29.741139, -82.385755 29.741312, -82.385936 29.741493, -82.385989 29.741546, -82.386456 29.742095, -82.387026 29.742723, -82.387931 29.743707, -82.388352 29.744189, -82.388443 29.744293, -82.388776 29.74467, -82.388828 29.744754, -82.388859 29.744803, -82.388881 29.744826, -82.388958 29.744907, -82.390361 29.746384, -82.390739 29.746789, -82.391227 29.747354, -82.391333 29.747465, -82.392593 29.748825, -82.393253 29.749581, -82.393647 29.749997, -82.394179 29.750608, -82.394659 29.751132, -82.396612 29.753329, -82.397604 29.754418, -82.39922 29.756197, -82.400604 29.757749, -82.401177 29.758405, -82.402037 29.759333, -82.403673 29.76076, -82.404595 29.761703, -82.405441 29.762439, -82.405681 29.762628, -82.406271 29.763039, -82.407166 29.76367, -82.407789 29.764064, -82.408053 29.76422, -82.408474 29.764457, -82.409409 29.764896, -82.409824 29.765062, -82.40992 29.765102, -82.410497 29.765342, -82.411275 29.76557, -82.411995 29.765827, -82.412349 29.765951, -82.41316 29.766152, -82.413265 29.766175, -82.413292 29.766181, -82.41474 29.766564, -82.415371 29.766751, -82.415564 29.766815, -82.416 29.766924, -82.418433 29.767563, -82.41878 29.767675, -82.419019 29.767746, -82.421431 29.768371, -82.422237 29.768572, -82.422507 29.76864, -82.423162 29.768804, -82.423479 29.768883, -82.423884 29.768993, -82.423945 29.769009, -82.424955 29.769283, -82.425191 29.769347, -82.425607 29.769443, -82.426159 29.769598, -82.427656 29.770019, -82.428103 29.77016, -82.428303 29.770218, -82.428641 29.770315, -82.429134 29.770442, -82.429604 29.770563, -82.429637 29.770572, -82.432387 29.771352, -82.43348 29.771667, -82.435368 29.772403, -82.439405 29.773952, -82.442391 29.775077, -82.444517 29.775951, -82.446928 29.776895, -82.449283 29.777871, -82.45299 29.779602, -82.454792 29.780455, -82.454809 29.779794, -82.454873 29.778354))'), ('120010017021', '12', '001', '001702', '1', 'Block Group 1', 'G5030', 'S', 1923003, 7308, 29.6636056, -82.3819563, 'POINT(-82.3819563 29.6636056)', 'POLYGON((-82.389146 29.659759, -82.389156 29.659578, -82.388939 29.659591, -82.387877 29.659579, -82.38653 29.659569, -82.38397 29.659551, -82.382621 29.659543, -82.38075 29.659531, -82.380071 29.659527, -82.379024 29.65952, -82.378663 29.659519, -82.378056 29.659515, -82.377066 29.659508, -82.376436 29.659504, -82.372406 29.659507, -82.3724 29.659844, -82.372404 29.66015, -82.372392 29.661265, -82.372397 29.66175, -82.372387 29.664501, -82.372386 29.664777, -82.372377 29.665113, -82.372378 29.665585, -82.37238 29.665802, -82.37237 29.66637, -82.372373 29.66677, -82.372743 29.666804, -82.373171 29.666905, -82.373566 29.667065, -82.374218 29.667374, -82.374903 29.667679, -82.375286 29.667858, -82.376817 29.668594, -82.377094 29.668721, -82.377358 29.668843, -82.378061 29.669177, -82.378621 29.669448, -82.379716 29.669951, -82.380632 29.670373, -82.381475 29.67073, -82.382338 29.67109, -82.383042 29.671396, -82.383821 29.671728, -82.385148 29.67232, -82.385824 29.672652, -82.386413 29.672914, -82.386966 29.673199, -82.388644 29.673956, -82.388981 29.674086, -82.388989 29.672808, -82.38901 29.672062, -82.388986 29.67113, -82.388986 29.671031, -82.38899 29.670093, -82.388991 29.669899, -82.388995 29.669013, -82.389001 29.668111, -82.389003 29.667574, -82.389006 29.667216, -82.389008 29.666706, -82.389021 29.665761, -82.389024 29.66494, -82.389027 29.664562, -82.389027 29.663397, -82.389046 29.662748, -82.389047 29.662606, -82.38905 29.662213, -82.389059 29.661221, -82.389061 29.661047, -82.389061 29.661025, -82.389066 29.660545, -82.389068 29.660387, -82.389146 29.659759))'), ('120010010001', '12', '001', '001000', '1', 'Block Group 1', 'G5030', 'S', 1116849, 3363, 29.6639238, -82.3456386, 'POINT(-82.3456386 29.6639238)', 'POLYGON((-82.353626 29.660646, -82.353656 29.659489, -82.352545 29.659472, -82.351495 29.659455, -82.350425 29.659437, -82.350172 29.659493, -82.34929 29.659486, -82.348454 29.659479, -82.347741 29.659473, -82.347185 29.659469, -82.346548 29.659457, -82.345747 29.659402, -82.344621 29.659422, -82.34208 29.659375, -82.341845 29.659376, -82.341381 29.659378, -82.341035 29.659369, -82.340481 29.659301, -82.339888 29.659216, -82.339378 29.659185, -82.339208 29.659186, -82.339216 29.66029, -82.33922 29.661215, -82.33922 29.662164, -82.339216 29.662543, -82.339212 29.663057, -82.33922 29.663803, -82.339208 29.664863, -82.339204 29.665126, -82.339216 29.666678, -82.340005 29.666705, -82.341946 29.666705, -82.343244 29.666711, -82.343345 29.666711, -82.344412 29.666716, -82.345543 29.666723, -82.346678 29.666726, -82.347478 29.666728, -82.34877 29.66673, -82.34906 29.666731, -82.349923 29.666732, -82.35137 29.666735, -82.352908 29.666737, -82.352957 29.666569, -82.353056 29.666184, -82.3531 29.666048, -82.353197 29.665743, -82.353288 29.665441, -82.35343 29.66503, -82.353495 29.664819, -82.353534 29.664691, -82.353559 29.664543, -82.353571 29.664471, -82.353603 29.664275, -82.353631 29.663922, -82.353616 29.663613, -82.353617 29.663567, -82.353623 29.663275, -82.35364 29.662776, -82.353628 29.662408, -82.353613 29.661646, -82.353613 29.661278, -82.353626 29.660646))');