-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.geo_census_blockgroups.blockgroups_15`
(
  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_15` (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 ('150019916000', '15', '001', '991600', '0', 'Block Group 0', 'G5030', 'S', 0, 32566140, 19.5672695, -156.0012434, 'POINT(-156.0012434 19.5672695)', 'POLYGON((-156.033929 19.594293, -156.030277 19.587478, -156.029921 19.58651, -156.02583 19.575382, -156.022997 19.563632, -156.022699 19.561306, -156.021589 19.552615, -156.021246 19.549934, -156.019858 19.541947, -156.019396 19.539285, -156.009698 19.538264, -156.008961 19.538186, -156.000001 19.537243, -155.98151 19.535287, -155.977659 19.534879, -155.967226 19.533776, -155.970119 19.537525, -155.970155 19.537626, -155.970241 19.537861, -155.974062 19.548356, -155.975985 19.550803, -155.978978 19.554612, -155.979107 19.554776, -155.980972 19.56089, -155.979609 19.56365, -155.978047 19.566817, -155.980014 19.571856, -155.982922 19.581605, -155.983779 19.590412, -155.983917 19.591478, -155.984728 19.597713, -155.985426 19.601033, -155.992713 19.60002, -155.995126 19.599684, -156 19.599008, -156.016964 19.596651, -156.024228 19.595641, -156.033929 19.594293))'), ('150019907000', '15', '001', '990700', '0', 'Block Group 0', 'G5030', 'S', 0, 22253288, 19.7708683, -155.0400086, 'POINT(-155.0400086 19.7708683)', 'POLYGON((-155.087561 19.746759, -155.087389 19.745967, -155.086622 19.745926, -155.086378 19.745921, -155.083345 19.745859, -155.082334 19.745839, -155.082065 19.745915, -155.081261 19.746145, -155.080993 19.746222, -155.079642 19.746935, -155.077847 19.747376, -155.077697 19.747412, -155.074707 19.748147, -155.070616 19.748639, -155.068689 19.748877, -155.067249 19.749054, -155.066635 19.74913, -155.063728 19.748973, -155.062213 19.749238, -155.060812 19.749879, -155.047791 19.75584, -155.000331 19.777569, -155.000002 19.77772, -154.992254 19.781261, -154.984507 19.784802, -154.985888 19.785507, -154.987489 19.786126, -154.99472 19.788924, -154.996757 19.78917, -155.000002 19.789563, -155.006073 19.790149, -155.007044 19.790243, -155.013697 19.79093, -155.024311 19.790226, -155.025523 19.790146, -155.02669 19.790709, -155.029914 19.792067, -155.029999 19.792101, -155.040948 19.78522, -155.061009 19.772616, -155.068307 19.768288, -155.073999 19.76491, -155.085121 19.758312, -155.085754 19.755868, -155.08599 19.754962, -155.087238 19.748442, -155.087561 19.746759))'), ('150019910000', '15', '001', '991000', '0', 'Block Group 0', 'G5030', 'S', 0, 92232742, 20.0840256, -155.3479491, 'POINT(-155.3479491 20.0840256)', 'POLYGON((-155.432862 20.145207, -155.432851 20.135898, -155.432851 20.135104, -155.43284 20.125001, -155.43284 20.124972, -155.432633 20.107973, -155.432521 20.098665, -155.425051 20.095788, -155.40803 20.089234, -155.40264 20.087161, -155.399529 20.085965, -155.395849 20.083089, -155.390113 20.078606, -155.389972 20.078496, -155.388744 20.078124, -155.367494 20.0717, -155.363824 20.070046, -155.355854 20.066456, -155.354929 20.065874, -155.352155 20.064128, -155.351231 20.063546, -155.345937 20.060213, -155.330056 20.050214, -155.324763 20.046882, -155.322857 20.045682, -155.317139 20.042083, -155.316334 20.041576, -155.315234 20.040883, -155.314233 20.040253, -155.308806 20.03784, -155.299885 20.033874, -155.288995 20.029876, -155.28231 20.027423, -155.275427 20.0339, -155.266155 20.042626, -155.254779 20.053331, -155.25 20.057829, -155.248948 20.058818, -155.247897 20.059808, -155.248422 20.060063, -155.248505 20.060104, -155.24961 20.061341, -155.25 20.061777, -155.252399 20.063448, -155.254621 20.064435, -155.258443 20.066054, -155.259998 20.066709, -155.261643 20.067403, -155.265294 20.068678, -155.269036 20.069871, -155.271708 20.070783, -155.276345 20.072081, -155.279276 20.073424, -155.284336 20.075921, -155.286998 20.077257, -155.291232 20.078833, -155.291626 20.07898, -155.294741 20.080157, -155.298301 20.081514, -155.301516 20.083209, -155.301671 20.083291, -155.305216 20.085328, -155.306409 20.086163, -155.307602 20.086998, -155.309894 20.088835, -155.31211 20.090076, -155.314418 20.091234, -155.317083 20.092485, -155.320469 20.093583, -155.321483 20.094109, -155.322865 20.094828, -155.325362 20.095565, -155.326838 20.096069, -155.327499 20.096294, -155.327876 20.096461, -155.329721 20.09728, -155.330958 20.09773, -155.332003 20.09811, -155.332215 20.098187, -155.335244 20.099191, -155.337457 20.100601, -155.34021 20.101939, -155.342486 20.103326, -155.343398 20.103882, -155.345964 20.105555, -155.348435 20.107481, -155.35199 20.109092, -155.3551 20.110522, -155.357324 20.111423, -155.359371 20.112234, -155.362313 20.113151, -155.364711 20.11431, -155.367743 20.115229, -155.369702 20.115953, -155.37156 20.117185, -155.37305 20.118834, -155.373579 20.119228, -155.375 20.120286, -155.377078 20.121918, -155.378513 20.122865, -155.383727 20.125003, -155.383947 20.125003, -155.384608 20.125003, -155.384829 20.125003, -155.387315 20.126536, -155.390963 20.128664, -155.393924 20.130349, -155.394256 20.130538, -155.397547 20.132833, -155.400219 20.134028, -155.405565 20.135996, -155.409755 20.137198, -155.412073 20.137885, -155.414207 20.139499, -155.418127 20.141122, -155.422405 20.142578, -155.422804 20.142711, -155.424455 20.143263, -155.429451 20.144046, -155.431593 20.144226, -155.432862 20.145207))'), ('150019908000', '15', '001', '990800', '0', 'Block Group 0', 'G5030', 'S', 0, 95613903, 19.8533542, -155.0675452, 'POINT(-155.0675452 19.8533542)', 'POLYGON((-155.122951 19.905147, -155.120343 19.902249, -155.120325 19.902201, -155.116139 19.891116, -155.114744 19.887422, -155.112944 19.885775, -155.112346 19.885227, -155.106591 19.882192, -155.104434 19.881055, -155.10304 19.879848, -155.098858 19.876227, -155.097464 19.875021, -155.096073 19.873831, -155.095722 19.873531, -155.092412 19.873594, -155.092201 19.871891, -155.092007 19.870324, -155.091835 19.870143, -155.088126 19.866734, -155.084547 19.86147, -155.084489 19.861359, -155.082754 19.858002, -155.075659 19.853142, -155.075728 19.845357, -155.079447 19.842074, -155.078058 19.834105, -155.078799 19.832955, -155.08258 19.827094, -155.084512 19.824216, -155.08459 19.823133, -155.084122 19.820065, -155.082718 19.810862, -155.08225 19.807795, -155.082547 19.802021, -155.082936 19.794487, -155.0837 19.790333, -155.083081 19.78479, -155.082441 19.779045, -155.081701 19.776444, -155.082607 19.775038, -155.085258 19.770925, -155.085168 19.762688, -155.085122 19.758419, -155.085121 19.758312, -155.073999 19.76491, -155.068307 19.768288, -155.061009 19.772616, -155.040948 19.78522, -155.029999 19.792101, -155.033315 19.793421, -155.033286 19.794221, -155.033171 19.797473, -155.033603 19.807319, -155.033734 19.810281, -155.03384 19.811683, -155.033849 19.811806, -155.033877 19.812176, -155.033887 19.8123, -155.034321 19.818027, -155.034748 19.820463, -155.034707 19.822067, -155.032941 19.828013, -155.030278 19.839463, -155.030299 19.848995, -155.030649 19.857674, -155.031522 19.866089, -155.034618 19.875, -155.032994 19.875, -155.03162 19.875, -155.037401 19.882876, -155.041831 19.889371, -155.046811 19.897704, -155.055552 19.906672, -155.062642 19.912711, -155.062752 19.912804, -155.063597 19.91339, -155.066487 19.915398, -155.067451 19.916068, -155.070843 19.918425, -155.07133 19.919586, -155.072665 19.922765, -155.076109 19.928598, -155.07992 19.933167, -155.081796 19.935415, -155.08317 19.937459, -155.091126 19.930996, -155.114994 19.911609, -155.122951 19.905147))'), ('150019917000', '15', '001', '991700', '0', 'Block Group 0', 'G5030', 'S', 0, 38661691, 19.5028831, -155.9858143, 'POINT(-155.9858143 19.5028831)', 'POLYGON((-156.019396 19.539285, -156.016907 19.532641, -156.016806 19.531701, -156.015774 19.522086, -156.014375 19.51068, -156.01366 19.507812, -156.011808 19.500376, -156.011809 19.5, -156.01202 19.5, -156.012653 19.5, -156.012864 19.5, -156.010271 19.49414, -156.007959 19.488914, -156.002939 19.476373, -156.000559 19.470425, -156.00028 19.470438, -156 19.47045, -155.98818 19.470983, -155.969334 19.471835, -155.951046 19.472661, -155.938668 19.473221, -155.938988 19.473662, -155.939951 19.474985, -155.940272 19.475426, -155.943665 19.480089, -155.949032 19.481994, -155.953002 19.483251, -155.957698 19.484739, -155.96025 19.490957, -155.958461 19.4972, -155.959088 19.506102, -155.968601 19.513678, -155.970707 19.521038, -155.971518 19.52387, -155.965413 19.531426, -155.967226 19.533776, -155.977659 19.534879, -155.98151 19.535287, -156.000001 19.537243, -156.008961 19.538186, -156.009698 19.538264, -156.019396 19.539285))');