-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.geo_census_blockgroups.blockgroups_18`
(
  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_18` (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 ('180899900000', '18', '089', '990000', '0', 'Block Group 0', 'G5030', 'S', 0, 287931703, 41.704665, -87.3498828, 'POINT(-87.3498828 41.704665)', 'POLYGON((-87.52432 41.718321, -87.524311 41.71821, -87.524231 41.717273, -87.524236 41.716979, -87.520732 41.718803, -87.517738 41.716322, -87.505419 41.706115, -87.501771 41.700419, -87.501116 41.70005, -87.500234 41.699555, -87.497258 41.697883, -87.494283 41.696211, -87.492647 41.69532, -87.487741 41.692647, -87.487322 41.692419, -87.485961 41.692167, -87.481145 41.691276, -87.478842 41.690851, -87.467156 41.686864, -87.462522 41.685283, -87.454614 41.682155, -87.45347 41.682698, -87.439788 41.689195, -87.430629 41.693109, -87.426566 41.692028, -87.417125 41.689517, -87.399982 41.677365, -87.399908 41.676772, -87.399908 41.676328, -87.400167 41.675624, -87.418034 41.659229, -87.420973 41.65732, -87.423912 41.655411, -87.419282 41.652906, -87.411608 41.648755, -87.404688 41.650189, -87.404584 41.650211, -87.399698 41.648562, -87.395242 41.647059, -87.381063 41.642275, -87.374698 41.641294, -87.358099 41.638736, -87.32407 41.633492, -87.312923 41.631696, -87.298822 41.631446, -87.286037 41.63122, -87.286117 41.627044, -87.276999 41.627717, -87.268544 41.62834, -87.26617 41.628516, -87.261658 41.628849, -87.261413 41.628868, -87.233739 41.631548, -87.222932 41.632596, -87.222523 41.656084, -87.221298 41.726547, -87.22089 41.750036, -87.220912 41.752206, -87.220978 41.758718, -87.221 41.760889, -87.250039 41.760616, -87.276807 41.760537, -87.375042 41.76025, -87.444234 41.760344, -87.500044 41.760421, -87.500044 41.760364, -87.500044 41.760195, -87.500044 41.760139, -87.50007 41.760139, -87.500998 41.76013, -87.50193 41.760121, -87.504788 41.760092, -87.518942 41.759953, -87.523661 41.759907, -87.52389 41.742767, -87.523941 41.738948, -87.523992 41.735128, -87.524142 41.723818, -87.524152 41.723134, -87.524154 41.722959, -87.524154 41.722445, -87.524163 41.721851, -87.524201 41.719512, -87.52432 41.718321))'), ('180919900000', '18', '091', '990000', '0', 'Block Group 0', 'G5030', 'S', 0, 18416421, 41.7471141, -86.9005804, 'POINT(-86.9005804 41.7471141)', 'POLYGON((-86.933361 41.752239, -86.933368 41.75004, -86.933316 41.746108, -86.933161 41.734312, -86.93311 41.730381, -86.933067 41.728092, -86.932938 41.721227, -86.932895 41.718939, -86.914451 41.728989, -86.914419 41.729007, -86.875334 41.742927, -86.875278 41.742953, -86.840466 41.758581, -86.83647 41.760376, -86.838356 41.760336, -86.841707 41.760266, -86.848371 41.760279, -86.868365 41.760321, -86.87503 41.760335, -86.88669 41.760474, -86.921673 41.760894, -86.933334 41.761035, -86.93334 41.758835, -86.933361 41.752239))'), ('181279900000', '18', '127', '990000', '0', 'Block Group 0', 'G5030', 'S', 0, 240184630, 41.7123097, -87.1003784, 'POINT(-87.1003784 41.7123097)', 'POLYGON((-87.222523 41.656084, -87.222932 41.632596, -87.221856 41.633007, -87.218818 41.633676, -87.206329 41.636427, -87.202167 41.637345, -87.198402 41.638174, -87.18711 41.640662, -87.183347 41.641492, -87.165705 41.647833, -87.149192 41.651345, -87.144556 41.651345, -87.139368 41.651345, -87.131253 41.65326, -87.120522 41.653473, -87.111787 41.6562, -87.085583 41.664381, -87.077111 41.667027, -87.076963 41.667073, -87.076587 41.667189, -87.074874 41.667713, -87.068951 41.669527, -87.068007 41.669817, -87.067562 41.669954, -87.066569 41.670279, -87.055584 41.674199, -87.048017 41.676901, -87.021307 41.68611, -87.009872 41.690053, -87.000032 41.693733, -86.994474 41.695824, -86.973567 41.703691, -86.948292 41.713166, -86.932895 41.718939, -86.932938 41.721227, -86.933067 41.728092, -86.93311 41.730381, -86.933161 41.734312, -86.933316 41.746108, -86.933368 41.75004, -86.933361 41.752239, -86.93334 41.758835, -86.933334 41.761035, -86.93354 41.761036, -86.93416 41.761039, -86.934367 41.76104, -86.9725 41.760868, -87.000033 41.760744, -87.086902 41.760522, -87.125036 41.760425, -87.125036 41.760613, -87.125036 41.761179, -87.125036 41.761368, -87.141583 41.761285, -87.191226 41.761038, -87.207774 41.760956, -87.210419 41.760942, -87.218354 41.760902, -87.221 41.760889, -87.220978 41.758718, -87.220912 41.752206, -87.22089 41.750036, -87.221298 41.726547, -87.222523 41.656084))'), ('180010302001', '18', '001', '030200', '1', 'Block Group 1', 'G5030', 'S', 13217348, 178130, 40.8467597, -84.9646769, 'POINT(-84.9646769 40.8467597)', 'POLYGON((-84.976649 40.833458, -84.976612 40.832229, -84.975652 40.832226, -84.964941 40.832258, -84.961755 40.832273, -84.958796 40.832253, -84.958067 40.83225, -84.956006 40.832266, -84.955963 40.832477, -84.955963 40.833402, -84.956742 40.83664, -84.956532 40.836964, -84.956229 40.837104, -84.955778 40.837108, -84.955205 40.836976, -84.954512 40.836663, -84.953818 40.836601, -84.952805 40.836651, -84.95261 40.836664, -84.95192 40.83671, -84.949451 40.836878, -84.94906 40.837084, -84.94867 40.837496, -84.947976 40.838228, -84.947664 40.838301, -84.947584 40.83832, -84.946621 40.838228, -84.945717 40.83832, -84.945489 40.838395, -84.94496 40.838581, -84.943894 40.839384, -84.943439 40.839664, -84.943152 40.839667, -84.943057 40.839668, -84.942539 40.839674, -84.941859 40.839675, -84.94017 40.8397, -84.939631 40.839708, -84.939452 40.839711, -84.93872 40.83972, -84.938396 40.839747, -84.937751 40.839749, -84.937237 40.839754, -84.936988 40.83977, -84.936624 40.839766, -84.935917 40.839776, -84.935526 40.839775, -84.934871 40.839792, -84.934443 40.839784, -84.933376 40.839803, -84.934122 40.843217, -84.935066 40.846653, -84.935642 40.848182, -84.935824 40.848558, -84.935919 40.848755, -84.93603 40.848755, -84.93663 40.848699, -84.937092 40.84862, -84.937474 40.848537, -84.937415 40.850209, -84.937465 40.850486, -84.937538 40.85078, -84.937632 40.851074, -84.937735 40.851349, -84.937881 40.851661, -84.938272 40.852446, -84.938827 40.853443, -84.938838 40.853567, -84.938921 40.853738, -84.939075 40.853993, -84.939405 40.854561, -84.93977 40.855206, -84.940223 40.856042, -84.941167 40.85769, -84.942255 40.859645, -84.942986 40.860963, -84.943328 40.861631, -84.94367 40.862262, -84.944661 40.863969, -84.944714 40.864059, -84.945764 40.865929, -84.946444 40.867159, -84.947225 40.868502, -84.947375 40.868734, -84.947935 40.869738, -84.948242 40.870215, -84.948574 40.87063, -84.948985 40.871111, -84.949377 40.871516, -84.949915 40.872008, -84.95009 40.872152, -84.951317 40.873128, -84.952639 40.87416, -84.954041 40.875237, -84.954166 40.875333, -84.955061 40.876021, -84.955149 40.876089, -84.955348 40.875981, -84.955446 40.875951, -84.955538 40.875923, -84.955727 40.8759, -84.955964 40.875882, -84.956422 40.875879, -84.9566 40.875878, -84.956794 40.875877, -84.957129 40.875881, -84.959137 40.875906, -84.961585 40.875897, -84.963903 40.875884, -84.965995 40.875894, -84.968023 40.875899, -84.969233 40.87589, -84.970804 40.875896, -84.97118 40.875894, -84.97216 40.875889, -84.972869 40.875896, -84.973099 40.875868, -84.97333 40.875825, -84.973527 40.87576, -84.973866 40.875581, -84.974643 40.875186, -84.975561 40.874719, -84.976204 40.874376, -84.975901 40.874066, -84.974951 40.873059, -84.974486 40.872566, -84.975164 40.872292, -84.97578 40.872058, -84.975999 40.871983, -84.976148 40.871895, -84.976277 40.871807, -84.976337 40.871681, -84.976373 40.871421, -84.976382 40.870532, -84.97639 40.870044, -84.97637 40.869131, -84.976389 40.867615, -84.976415 40.864271, -84.976402 40.86313, -84.976419 40.862568, -84.976419 40.861249, -84.976413 40.860767, -84.976437 40.86005, -84.976433 40.858718, -84.976429 40.857317, -84.976436 40.855076, -84.976446 40.853992, -84.976436 40.850294, -84.976447 40.848187, -84.976495 40.845609, -84.976493 40.844923, -84.97652 40.84321, -84.976562 40.839502, -84.976582 40.836385, -84.976649 40.833458))'), ('180010306001', '18', '001', '030600', '1', 'Block Group 1', 'G5030', 'S', 2924383, 17424, 40.6619376, -84.9627107, 'POINT(-84.9627107 40.6619376)', 'POLYGON((-84.974916 40.671795, -84.974901 40.671583, -84.974899 40.670521, -84.97489 40.669824, -84.974875 40.668129, -84.974863 40.667796, -84.974864 40.666299, -84.974851 40.664545, -84.974847 40.663945, -84.974853 40.662045, -84.97481 40.660306, -84.974802 40.659115, -84.974794 40.658626, -84.974774 40.657115, -84.974041 40.657145, -84.97379 40.657149, -84.973477 40.657153, -84.972579 40.657166, -84.972157 40.657175, -84.972033 40.657178, -84.971879 40.657181, -84.971711 40.657185, -84.971652 40.657186, -84.971102 40.657201, -84.970869 40.657207, -84.970734 40.65721, -84.970616 40.657214, -84.970035 40.657219, -84.969788 40.657235, -84.968703 40.657262, -84.968179 40.657261, -84.965705 40.657317, -84.965241 40.657328, -84.964435 40.65735, -84.963818 40.657388, -84.962968 40.657429, -84.962671 40.65744, -84.96147 40.657479, -84.960449 40.657531, -84.960193 40.657542, -84.959672 40.657564, -84.958909 40.657616, -84.958512 40.657626, -84.957354 40.657673, -84.956485 40.657729, -84.956196 40.657724, -84.955662 40.657749, -84.954832 40.657757, -84.953827 40.65778, -84.952726 40.6578, -84.952594 40.657798, -84.951532 40.657824, -84.951515 40.658772, -84.95152 40.659284, -84.951525 40.659725, -84.951504 40.660149, -84.951507 40.660573, -84.951476 40.661073, -84.951504 40.661427, -84.9515 40.661597, -84.951498 40.661708, -84.951484 40.662337, -84.951472 40.663224, -84.951461 40.664098, -84.95144 40.66456, -84.951413 40.665139, -84.951475 40.665138, -84.951676 40.665138, -84.95269 40.665103, -84.952822 40.665101, -84.953405 40.665089, -84.954494 40.665068, -84.955553 40.665048, -84.955586 40.665244, -84.955585 40.665502, -84.955582 40.666093, -84.95558 40.666561, -84.955596 40.668206, -84.955599 40.668502, -84.9556 40.668565, -84.9556 40.668603, -84.955608 40.669423, -84.955608 40.670335, -84.955608 40.670757, -84.955612 40.671025, -84.955628 40.671969, -84.955633 40.67231, -84.955872 40.672303, -84.956442 40.672302, -84.957371 40.672283, -84.958857 40.672273, -84.959474 40.672248, -84.960696 40.672212, -84.962765 40.672175, -84.963938 40.672157, -84.964739 40.67215, -84.965241 40.672123, -84.965777 40.672127, -84.966761 40.672082, -84.967989 40.672047, -84.96996 40.671965, -84.972142 40.671884, -84.972986 40.671868, -84.973896 40.671839, -84.974916 40.671795))');