-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.geo_census_tracts.census_tracts_massachusetts`
(
  state_fips_code STRING OPTIONS(description="Two digit FIPS code that uniquely identifies each state. State names and their corresponding FIPS codes are available as a BigQuery Public Dataset: bigquery-public-data.census_fips_codes.states_2016"),
  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_fips_codes.counties_2016"),
  tract_ce STRING OPTIONS(description="Current Census tract code"),
  geo_id STRING OPTIONS(description="Census tract identifier; a concatenation of Current state FIPS code, county FIPS code, and census tract code"),
  tract_name STRING OPTIONS(description="Current census tract name, this is the census tract code converted to an integer or integer plus 2- character decimal if the last two characters of the code are not both zeros."),
  lsad_name STRING OPTIONS(description="Current translated legal/statistical area description and the census tract name"),
  functional_status STRING OPTIONS(description="Current functional status of the Census tract"),
  area_land_meters INT64 OPTIONS(description="Current land area, in square meters"),
  area_water_meters INT64 OPTIONS(description="Current water area, in square meters"),
  internal_point_lat STRING OPTIONS(description="Latitude of the state's internal point, which is the point at or closest to the state's geographic center"),
  internal_point_lon STRING OPTIONS(description="Longitude of the state's internal point, which is the point at or closest to the state's geographic center"),
  internal_point_geo GEOGRAPHY OPTIONS(description="Geographic representation of the state's internal point, which is the point at or closest to the tract's geographic center"),
  tract_geom GEOGRAPHY OPTIONS(description="Geographical representation of the polygon that defines the perimeter of each Census tract. This column should be used as the GEO column for visualization in BigQuery Geo Viz")
);

INSERT INTO `bigquery-public-data.geo_census_tracts.census_tracts_massachusetts` (state_fips_code, county_fips_code, tract_ce, geo_id, tract_name, lsad_name, functional_status, area_land_meters, area_water_meters, internal_point_lat, internal_point_lon, internal_point_geo, tract_geom) VALUES ('25', '025', '000302', '25025000302', '3.02', 'Census Tract 3.02', 'S', 589877, 46101, '+42.3472585', '-071.1676864', 'POINT(-71.1676864 42.3472585)', 'POLYGON((-71.174708 42.350155, -71.174265 42.349584, -71.173418 42.348531, -71.173171 42.348208, -71.17232 42.347173, -71.171898 42.346655, -71.170003 42.344252, -71.169421 42.343531, -71.168323 42.342168, -71.168124 42.341917, -71.166989 42.340464, -71.166683 42.340104, -71.166687 42.340074, -71.166699 42.340009, -71.166567 42.340031, -71.166553 42.340039, -71.166126 42.340088, -71.166133 42.340434, -71.166123 42.340593, -71.166108 42.340814, -71.166099 42.341122, -71.166052 42.34147, -71.165999 42.341593, -71.16584 42.341872, -71.165325 42.342671, -71.164826 42.343295, -71.164426 42.343681, -71.164207 42.343926, -71.164033 42.344172, -71.163798 42.344585, -71.163616 42.344857, -71.163488 42.344992, -71.163359 42.345108, -71.163148 42.345253, -71.162892 42.34542, -71.162726 42.345576, -71.162461 42.345911, -71.162249 42.346223, -71.162118 42.346373, -71.162016 42.346509, -71.16168 42.347005, -71.16146 42.347346, -71.161311 42.347576, -71.160841 42.348346, -71.160437 42.348916, -71.161304 42.348965, -71.161622 42.348964, -71.162138 42.348989, -71.162425 42.348995, -71.162762 42.349023, -71.163093 42.349041, -71.163333 42.349115, -71.163385 42.349131, -71.163744 42.349328, -71.164268 42.349659, -71.164501 42.349812, -71.164733 42.349957, -71.16486 42.350042, -71.165129 42.350171, -71.165392 42.350272, -71.165549 42.350312, -71.166126 42.350431, -71.166644 42.3505, -71.167394 42.350575, -71.167605 42.350604, -71.167755 42.350617, -71.167884 42.350649, -71.168111 42.350663, -71.168347 42.350346, -71.168642 42.349978, -71.168846 42.349738, -71.168982 42.349643, -71.169371 42.349511, -71.169702 42.349411, -71.169927 42.349383, -71.170108 42.34939, -71.170303 42.349429, -71.170557 42.349503, -71.171104 42.3497, -71.171562 42.349852, -71.171729 42.349909, -71.17191 42.34995, -71.172175 42.349982, -71.172229 42.349988, -71.17244 42.350008, -71.172828 42.350046, -71.172869 42.350051, -71.174577 42.350242, -71.174708 42.350155))'), ('25', '025', '000502', '25025000502', '5.02', 'Census Tract 5.02', 'S', 847704, 334529, '+42.3315048', '-071.1574973', 'POINT(-71.1574973 42.3315048)', 'POLYGON((-71.169192 42.337883, -71.169122 42.337376, -71.168859 42.336304, -71.168886 42.335826, -71.16857 42.335143, -71.168471 42.335085, -71.16841 42.335022, -71.168191 42.334791, -71.168021 42.334426, -71.167565 42.333441, -71.166766 42.333528, -71.166461 42.333561, -71.165437 42.333672, -71.16519 42.333691, -71.164776 42.333747, -71.16431 42.333798, -71.164032 42.333829, -71.163667 42.33387, -71.162972 42.333947, -71.162732 42.333961, -71.162525 42.333966, -71.162298 42.333965, -71.162099 42.333944, -71.161721 42.333886, -71.161295 42.333783, -71.160917 42.333639, -71.160347 42.333365, -71.16026 42.333319, -71.16017 42.333272, -71.159723 42.333036, -71.159325 42.332768, -71.158956 42.332424, -71.158716 42.332162, -71.158546 42.331984, -71.157667 42.331059, -71.157508 42.330886, -71.157346 42.330714, -71.157113 42.330466, -71.157036 42.33039, -71.156262 42.330847, -71.154962 42.331616, -71.149853 42.334635, -71.149956 42.334691, -71.150461 42.334968, -71.150134 42.33521, -71.150104 42.335282, -71.150059 42.335393, -71.149652 42.335488, -71.1496 42.335501, -71.148526 42.335752, -71.148295 42.335807, -71.148474 42.336231, -71.148482 42.336253, -71.148492 42.336274, -71.148516 42.33633, -71.148555 42.336423, -71.14858 42.336487, -71.148711 42.33679, -71.148742 42.336866, -71.147266 42.337201, -71.147281 42.337262, -71.147346 42.337512, -71.147741 42.337455, -71.148701 42.337267, -71.148956 42.337196, -71.149197 42.33709, -71.149355 42.33699, -71.149476 42.336929, -71.150084 42.336842, -71.150309 42.336842, -71.150105 42.337193, -71.149839 42.337665, -71.150658 42.337495, -71.15162 42.337304, -71.152262 42.337185, -71.153192 42.338037, -71.153286 42.338117, -71.153365 42.338185, -71.153082 42.338333, -71.152961 42.338417, -71.15282 42.338542, -71.152741 42.338646, -71.152688 42.338715, -71.152587 42.338896, -71.152413 42.339254, -71.152268 42.339473, -71.152115 42.339693, -71.151942 42.339903, -71.151824 42.340025, -71.151624 42.340209, -71.151382 42.340423, -71.151648 42.340535, -71.151963 42.340598, -71.152195 42.340621, -71.152623 42.340628, -71.153111 42.340696, -71.15353 42.340793, -71.153778 42.340855, -71.154061 42.340979, -71.154462 42.341198, -71.154537 42.341225, -71.154623 42.341233, -71.154734 42.341206, -71.154909 42.340967, -71.155257 42.340432, -71.155288 42.340337, -71.155536 42.340262, -71.155679 42.34024, -71.156069 42.340158, -71.156618 42.34002, -71.157183 42.339872, -71.157528 42.339782, -71.157878 42.33973, -71.158964 42.339953, -71.159758 42.340058, -71.160616 42.340129, -71.161052 42.340144, -71.161087 42.340145, -71.16117 42.340148, -71.161473 42.34016, -71.161533 42.340162, -71.161586 42.34016, -71.161613 42.340161, -71.162884 42.3402, -71.163522 42.340216, -71.164126 42.340223, -71.164288 42.340225, -71.164579 42.340218, -71.164897 42.340211, -71.165558 42.340162, -71.166126 42.340088, -71.166553 42.340039, -71.166567 42.340031, -71.166699 42.340009, -71.16674 42.339854, -71.166808 42.33929, -71.167701 42.338965, -71.167729 42.338955, -71.168315 42.338742, -71.168633 42.338629, -71.168936 42.338449, -71.169087 42.338245, -71.169217 42.338068, -71.169192 42.337883))'), ('25', '001', '010100', '25001010100', '101', 'Census Tract 101', 'S', 25046218, 12765873, '+42.0598291', '-070.2004073', 'POINT(-70.2004073 42.0598291)', 'POLYGON((-70.250188 42.063367, -70.248424 42.05949, -70.246887 42.058171, -70.245211 42.056956, -70.241179 42.055583, -70.238584 42.055032, -70.235691 42.053815, -70.232093 42.051516, -70.22776 42.047748, -70.223795 42.044155, -70.221325 42.041947, -70.21928 42.037742, -70.216999 42.03365, -70.212267 42.02855, -70.206196 42.023825, -70.199922 42.019053, -70.19869 42.018214, -70.196212 42.017622, -70.192571 42.01702, -70.186358 42.017065, -70.183083 42.017386, -70.181763 42.017843, -70.176349 42.019184, -70.173679 42.020404, -70.168568 42.024494, -70.163518 42.029775, -70.162446 42.031931, -70.162063 42.034014, -70.162684 42.035819, -70.163798 42.037181, -70.165368 42.03794, -70.166605 42.038086, -70.167744 42.038028, -70.168586 42.037985, -70.169995 42.037794, -70.170695 42.037626, -70.171965 42.037072, -70.172702 42.036502, -70.172751 42.036465, -70.173858 42.035166, -70.176307 42.032567, -70.177849 42.031131, -70.178709 42.030732, -70.179925 42.030925, -70.181242 42.031973, -70.182199 42.032955, -70.18258 42.033431, -70.182633 42.033498, -70.185835 42.03346, -70.185895 42.033524, -70.186108 42.033546, -70.186351 42.033596, -70.186705 42.033777, -70.187043 42.033865, -70.187183 42.033963, -70.18733 42.0342, -70.187375 42.034326, -70.187316 42.034447, -70.187227 42.03448, -70.186896 42.034496, -70.186498 42.034441, -70.186351 42.034348, -70.186057 42.034194, -70.185902 42.034172, -70.185791 42.03421, -70.185791 42.034392, -70.186012 42.034617, -70.18616 42.034705, -70.186358 42.034897, -70.186631 42.035078, -70.186999 42.035243, -70.187168 42.035369, -70.187316 42.035523, -70.18764 42.035698, -70.187758 42.035852, -70.187927 42.035918, -70.187956 42.036044, -70.188008 42.036121, -70.188067 42.036159, -70.188104 42.03622, -70.188111 42.036346, -70.188067 42.036516, -70.187927 42.036933, -70.187964 42.037115, -70.188111 42.037285, -70.188332 42.0374, -70.188457 42.037477, -70.188502 42.037482, -70.188531 42.03751, -70.188966 42.037707, -70.189017 42.0379, -70.189209 42.038086, -70.189223 42.038218, -70.189164 42.038509, -70.189363 42.038998, -70.189496 42.03919, -70.189555 42.039245, -70.189731 42.039426, -70.189901 42.039585, -70.189982 42.039733, -70.189945 42.039881, -70.18979 42.040079, -70.189709 42.040249, -70.189732 42.040337, -70.189886 42.040469, -70.190011 42.04048, -70.190328 42.04026, -70.190387 42.04026, -70.190497 42.040293, -70.190667 42.040463, -70.190689 42.04054, -70.190608 42.04071, -70.190534 42.041078, -70.190534 42.041391, -70.190593 42.04155, -70.190785 42.041841, -70.190836 42.042044, -70.191028 42.042269, -70.191087 42.042429, -70.191035 42.042753, -70.190984 42.042868, -70.19094 42.043153, -70.190881 42.043258, -70.190814 42.043592, -70.190704 42.043807, -70.190681 42.044026, -70.190162 42.04388, -70.188796 42.04342, -70.188531 42.043898, -70.188384 42.044167, -70.189853 42.044741, -70.189755 42.044924, -70.188873 42.045832, -70.187662 42.047497, -70.18658 42.048453, -70.185395 42.049391, -70.183797 42.048606, -70.18256 42.048913, -70.181222 42.048766, -70.180499 42.049487, -70.180395 42.050195, -70.182365 42.052892, -70.182226 42.053084, -70.182168 42.053276, -70.182072 42.05337, -70.181763 42.053534, -70.181623 42.053699, -70.181461 42.053721, -70.181343 42.053809, -70.181247 42.053941, -70.180938 42.053985, -70.18082 42.054067, -70.180694 42.054094, -70.180238 42.054276, -70.180046 42.05421, -70.179855 42.054265, -70.179781 42.054243, -70.179486 42.054215, -70.179361 42.054248, -70.179273 42.054352, -70.179066 42.054451, -70.17889 42.054638, -70.178661 42.05472, -70.17861 42.054775, -70.178521 42.054786, -70.178433 42.05483, -70.178359 42.054923, -70.177807 42.055187, -70.177409 42.055291, -70.177254 42.055395, -70.177144 42.055483, -70.176967 42.055856, -70.176974 42.056147, -70.176908 42.056285, -70.176768 42.05635, -70.176562 42.056455, -70.176451 42.056493, -70.176396 42.056497, -70.176127 42.056515, -70.17584 42.056493, -70.175693 42.056449, -70.175626 42.056383, -70.175442 42.056312, -70.17531 42.056235, -70.17503 42.055993, -70.174831 42.05601, -70.174676 42.055966, -70.174588 42.05596, -70.174485 42.055977, -70.174308 42.055971, -70.174234 42.056015, -70.174197 42.056015, -70.174146 42.056103, -70.174212 42.056136, -70.174352 42.05624, -70.174484 42.056378, -70.174521 42.056383, -70.174543 42.056422, -70.174588 42.056438, -70.174669 42.056542, -70.174669 42.056707, -70.174558 42.056861, -70.17447 42.056883, -70.174352 42.057009, -70.174146 42.057102, -70.174094 42.057108, -70.173836 42.057064, -70.173718 42.057058, -70.1736 42.057102, -70.173527 42.057135, -70.173379 42.057223, -70.173365 42.05725, -70.17321 42.057305, -70.173114 42.057377, -70.173055 42.057382, -70.172937 42.057454, -70.172665 42.057569, -70.172451 42.057607, -70.172422 42.057591, -70.17181 42.057508, -70.171722 42.05747, -70.171376 42.057437, -70.17086 42.057453, -70.17072 42.057503, -70.170617 42.057558, -70.170565 42.057629, -70.17044 42.057706, -70.1703 42.057744, -70.170028 42.057722, -70.169711 42.057843, -70.16932 42.057898, -70.169144 42.057876, -70.168967 42.057876, -70.168679 42.057936, -70.168532 42.057941, -70.167869 42.057892, -70.167582 42.057903, -70.167346 42.057985, -70.167324 42.058007, -70.167228 42.058029, -70.166882 42.058232, -70.166712 42.05832, -70.166617 42.05838, -70.166337 42.058523, -70.165968 42.058644, -70.165689 42.058649, -70.165482 42.05866, -70.164591 42.058792, -70.164561 42.058819, -70.164443 42.059039, -70.164252 42.059105, -70.164171 42.059187, -70.163817 42.059407, -70.163508 42.059483, -70.163353 42.059544, -70.163176 42.059637, -70.163007 42.05967, -70.162557 42.059736, -70.162484 42.059725, -70.162277 42.059714, -70.161585 42.059642, -70.161099 42.05962, -70.160701 42.059527, -70.160458 42.059417, -70.160296 42.059219, -70.160126 42.059159, -70.159861 42.059104, -70.159243 42.059087, -70.158594 42.059081, -70.157556 42.059059, -70.157386 42.059015, -70.157114 42.058933, -70.156922 42.058851, -70.156871 42.058774, -70.156841 42.05862, -70.156694 42.058307, -70.156657 42.058285, -70.156591 42.058203, -70.156547 42.058181, -70.156539 42.058148, -70.156473 42.058109, -70.156267 42.057857, -70.156127 42.057659, -70.155987 42.057593, -70.155862 42.05761, -70.155825 42.057708, -70.155906 42.057917, -70.155913 42.058175, -70.155854 42.058362, -70.155611 42.058609, -70.155324 42.058735, -70.155139 42.058768, -70.154992 42.058817, -70.154764 42.058905, -70.154462 42.058927, -70.154204 42.058883, -70.15413 42.058811, -70.153769 42.058334, -70.153747 42.058246, -70.153828 42.058142, -70.154086 42.057906, -70.154197 42.057774, -70.154153 42.057669, -70.153851 42.057549, -70.153608 42.057494, -70.153313 42.057466, -70.152967 42.057515, -70.152724 42.057515, -70.152569 42.057257, -70.152231 42.056895, -70.152046 42.056686, -70.151803 42.056582, -70.151435 42.056505, -70.1512 42.056439, -70.150883 42.056367, -70.150699 42.056362, -70.150536 42.056395, -70.150352 42.05651, -70.15008 42.056746, -70.14991 42.057043, -70.149645 42.057284, -70.149578 42.057383, -70.149542 42.057394, -70.149519 42.057427, -70.149468 42.057443, -70.149453 42.057482, -70.149232 42.057602, -70.148915 42.057575, -70.148797 42.057591, -70.148532 42.057597, -70.148363 42.057553, -70.148348 42.057525, -70.148274 42.057487, -70.148017 42.057311, -70.147789 42.057058, -70.147671 42.056981, -70.147582 42.056959, -70.147553 42.056926, -70.147534 42.056919, -70.147421 42.061007, -70.14741 42.061652, -70.147384 42.062776, -70.147367 42.06353, -70.147367 42.063583, -70.147359 42.063871, -70.147103 42.064302, -70.146989 42.064496, -70.146907 42.06464, -70.146862 42.064708, -70.146545 42.065238, -70.146953 42.065859, -70.147911 42.067326, -70.14871 42.068546, -70.149626 42.069945, -70.150116 42.070692, -70.15138 42.072622, -70.153255 42.075489, -70.153886 42.076484, -70.154147 42.076909, -70.154443 42.07759, -70.154643 42.07793, -70.153566 42.080504, -70.160775 42.08286, -70.16921 42.083859, -70.176326 42.084739, -70.181347 42.085419, -70.185298 42.085609, -70.190521 42.085579, -70.2015 42.085494, -70.208865 42.085066, -70.217788 42.083873, -70.221403 42.08321, -70.232082 42.080249, -70.233922 42.079527, -70.237504 42.077737, -70.241139 42.075553, -70.244574 42.072793, -70.244612 42.072748, -70.24879 42.067702, -70.249592 42.06579, -70.250008 42.064099, -70.250188 42.063367))'), ('25', '025', '010104', '25025010104', '101.04', 'Census Tract 101.04', 'S', 281681, 5013, '+42.3494300', '-071.0937493', 'POINT(-71.0937493 42.34943)', 'POLYGON((-71.101143 42.347758, -71.100871 42.347724, -71.100622 42.347693, -71.100153 42.347663, -71.099802 42.347651, -71.098115 42.347637, -71.094846 42.34764, -71.092871 42.347643, -71.092402 42.347629, -71.092272 42.347629, -71.09212 42.347629, -71.091944 42.347629, -71.09155 42.347633, -71.090054 42.347652, -71.089636 42.347644, -71.089395 42.347626, -71.089095 42.347588, -71.088721 42.347523, -71.088303 42.347469, -71.088052 42.347456, -71.087916 42.347461, -71.08797 42.347561, -71.08803 42.347692, -71.088151 42.348136, -71.088322 42.348479, -71.088531 42.348883, -71.088623 42.349076, -71.088651 42.349131, -71.08871 42.349252, -71.088937 42.3497, -71.089119 42.350055, -71.0893 42.350459, -71.089497 42.350848, -71.089757 42.351363, -71.08982 42.351493, -71.089862 42.351576, -71.090407 42.351433, -71.090667 42.35137, -71.090965 42.351306, -71.091256 42.351238, -71.091467 42.35122, -71.091618 42.3512, -71.09207 42.351164, -71.092114 42.351158, -71.092183 42.351149, -71.092298 42.351133, -71.092585 42.351095, -71.092904 42.35104, -71.092948 42.351032, -71.093068 42.351006, -71.093191 42.35098, -71.093579 42.350897, -71.094323 42.350687, -71.094435 42.350663, -71.094682 42.35061, -71.094992 42.35057, -71.095307 42.350557, -71.09545 42.350558, -71.095833 42.350578, -71.098182 42.350735, -71.09778 42.350596, -71.097814 42.350406, -71.097809 42.350341, -71.097771 42.350276, -71.097619 42.35012, -71.097626 42.349983, -71.097608 42.349904, -71.097457 42.349592, -71.097168 42.348982, -71.097343 42.348801, -71.097621 42.348737, -71.097932 42.348658, -71.09826 42.348574, -71.098836 42.348401, -71.099221 42.348301, -71.099488 42.348231, -71.100564 42.347918, -71.100978 42.347804, -71.101143 42.347758))'), ('25', '025', '010203', '25025010203', '102.03', 'Census Tract 102.03', 'S', 365053, 1185, '+42.3453168', '-071.0968040', 'POINT(-71.096804 42.3453168)', 'POLYGON((-71.102472 42.343194, -71.102351 42.343056, -71.102068 42.342752, -71.101823 42.342503, -71.101071 42.341738, -71.10082 42.341493, -71.100767 42.341441, -71.100452 42.341161, -71.100415 42.341131, -71.100308 42.341046, -71.10018 42.34097, -71.099993 42.340881, -71.099795 42.340804, -71.099536 42.340704, -71.09926 42.340629, -71.099062 42.34061, -71.098876 42.340628, -71.098634 42.3407, -71.098408 42.340791, -71.098361 42.34081, -71.098188 42.34092, -71.097895 42.341154, -71.097516 42.341465, -71.097348 42.341585, -71.097162 42.341667, -71.096493 42.341843, -71.096605 42.342047, -71.0968 42.342432, -71.097015 42.342859, -71.097133 42.343079, -71.097224 42.34328, -71.097412 42.343694, -71.096507 42.343944, -71.095744 42.344146, -71.094932 42.344381, -71.094839 42.344413, -71.094768 42.344443, -71.094644 42.344549, -71.094612 42.34469, -71.094574 42.344854, -71.094451 42.345189, -71.094401 42.345325, -71.094303 42.345577, -71.094185 42.345701, -71.093295 42.346511, -71.093095 42.34667, -71.092903 42.346759, -71.092699 42.346836, -71.092488 42.346909, -71.092388 42.346959, -71.092295 42.347037, -71.09227 42.347111, -71.092231 42.346988, -71.092158 42.346928, -71.092123 42.346899, -71.092079 42.346872, -71.092044 42.34685, -71.09201 42.346829, -71.091854 42.346755, -71.091601 42.346681, -71.091368 42.346619, -71.091094 42.346571, -71.090902 42.346544, -71.0907 42.346535, -71.09055 42.34655, -71.090399 42.346576, -71.090087 42.346657, -71.090005 42.346679, -71.089413 42.346851, -71.089264 42.346887, -71.087758 42.3473, -71.087916 42.347461, -71.088052 42.347456, -71.088303 42.347469, -71.088721 42.347523, -71.089095 42.347588, -71.089395 42.347626, -71.089636 42.347644, -71.090054 42.347652, -71.09155 42.347633, -71.091944 42.347629, -71.09212 42.347629, -71.092272 42.347629, -71.092402 42.347629, -71.092871 42.347643, -71.094846 42.34764, -71.098115 42.347637, -71.098166 42.347599, -71.098575 42.347173, -71.098955 42.346815, -71.099347 42.346439, -71.099501 42.346273, -71.099702 42.346067, -71.100318 42.34547, -71.100595 42.345223, -71.100804 42.345036, -71.100982 42.344881, -71.101668 42.344221, -71.101824 42.344082, -71.101897 42.344013, -71.102422 42.343518, -71.102519 42.343375, -71.102472 42.343194))');