-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.geo_census_tracts.census_tracts_puerto_rico`
(
  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_puerto_rico` (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 ('72', '127', '000400', '72127000400', '4', 'Census Tract 4', 'S', 117212, 211039, '+18.4688707', '-066.1154577', 'POINT(-66.1154577 18.4688707)', 'POLYGON((-66.11841 18.469086, -66.118342 18.46856, -66.118266 18.468463, -66.118031 18.468452, -66.117886 18.468448, -66.117164 18.468697, -66.11686 18.468674, -66.116386 18.468636, -66.116278 18.468616, -66.116194 18.4686, -66.11614 18.468397, -66.116044 18.468241, -66.116006 18.468167, -66.116006 18.468114, -66.116001 18.468061, -66.115905 18.467632, -66.11575 18.46699, -66.115593 18.466376, -66.115539 18.466392, -66.1153 18.466449, -66.115218 18.46647, -66.114555 18.466624, -66.114349 18.466675, -66.114296 18.466688, -66.113457 18.466897, -66.113271 18.466949, -66.11259 18.467112, -66.111898 18.467289, -66.112074 18.467557, -66.112296 18.467716, -66.112505 18.467794, -66.112342 18.468059, -66.112556 18.46833, -66.112469 18.468511, -66.112539 18.468557, -66.112672 18.468639, -66.11274 18.468661, -66.112939 18.46872, -66.11314 18.469451, -66.113872 18.472126, -66.114289 18.472213, -66.116142 18.472998, -66.117135 18.473419, -66.118205 18.473872, -66.118464 18.470568, -66.118464 18.470529, -66.118444 18.470066, -66.118426 18.469604, -66.118388 18.469406, -66.118367 18.469311, -66.118335 18.469119, -66.118625 18.469136, -66.11841 18.469086))'), ('72', '127', '000506', '72127000506', '5.06', 'Census Tract 5.06', 'S', 392669, 114024, '+18.4656393', '-066.1176498', 'POINT(-66.1176498 18.4656393)', 'POLYGON((-66.124044 18.461053, -66.123992 18.461002, -66.123811 18.460802, -66.120872 18.46261, -66.118748 18.463122, -66.118318 18.46329, -66.117847 18.463335, -66.11644 18.463481, -66.115754 18.463552, -66.115865 18.46387, -66.115722 18.463862, -66.115308 18.463948, -66.115223 18.463963, -66.115048 18.464004, -66.11502 18.46401, -66.114238 18.464258, -66.114121 18.464297, -66.113102 18.464634, -66.112522 18.464921, -66.112544 18.464961, -66.111793 18.465394, -66.111782 18.465716, -66.111819 18.465811, -66.111819 18.466266, -66.111819 18.466314, -66.111767 18.466379, -66.111593 18.466438, -66.111627 18.466566, -66.111898 18.467289, -66.11259 18.467112, -66.113271 18.466949, -66.113457 18.466897, -66.114296 18.466688, -66.114349 18.466675, -66.114555 18.466624, -66.115218 18.46647, -66.1153 18.466449, -66.115539 18.466392, -66.115593 18.466376, -66.11575 18.46699, -66.115905 18.467632, -66.116001 18.468061, -66.116006 18.468114, -66.116006 18.468167, -66.116044 18.468241, -66.11614 18.468397, -66.116194 18.4686, -66.116278 18.468616, -66.116386 18.468636, -66.11686 18.468674, -66.117164 18.468697, -66.117886 18.468448, -66.118031 18.468452, -66.118266 18.468463, -66.118342 18.46856, -66.11841 18.469086, -66.118625 18.469136, -66.119036 18.469173, -66.119247 18.469201, -66.119416 18.469216, -66.119464 18.469143, -66.119507 18.469073, -66.119832 18.46904, -66.120006 18.469019, -66.119982 18.46897, -66.119885 18.468927, -66.119399 18.46869, -66.119386 18.468346, -66.120845 18.468058, -66.12092 18.468026, -66.121066 18.468262, -66.121275 18.468152, -66.121857 18.467679, -66.121596 18.467331, -66.120859 18.466487, -66.120846 18.466378, -66.120943 18.466303, -66.12066 18.466266, -66.120075 18.465862, -66.120056 18.465851, -66.120136 18.465711, -66.120214 18.465575, -66.124554 18.461551, -66.124044 18.461053))'), ('72', '127', '000600', '72127000600', '6', 'Census Tract 6', 'S', 694427, 1069889, '+18.4630413', '-066.1129845', 'POINT(-66.1129845 18.4630413)', 'POLYGON((-66.123711 18.460691, -66.122676 18.459768, -66.121812 18.458974, -66.120913 18.457897, -66.120076 18.457049, -66.119339 18.456102, -66.118917 18.45556, -66.118432 18.455004, -66.118365 18.454934, -66.116046 18.455954, -66.115378 18.456289, -66.113333 18.457313, -66.109528 18.459229, -66.105911 18.461011, -66.105725 18.461104, -66.102109 18.460741, -66.102003 18.460731, -66.101987 18.460729, -66.098091 18.460262, -66.097555 18.460196, -66.097358 18.461273, -66.097314 18.461515, -66.097329 18.461987, -66.097272 18.462298, -66.097258 18.46238, -66.097165 18.462921, -66.096995 18.4639, -66.096875 18.464451, -66.097364 18.464522, -66.098285 18.464656, -66.098187 18.465195, -66.098175 18.465268, -66.098806 18.465339, -66.099996 18.465461, -66.100072 18.465472, -66.101299 18.465627, -66.101907 18.465713, -66.102396 18.465845, -66.102633 18.465932, -66.103515 18.465899, -66.103645 18.465901, -66.103862 18.465903, -66.104175 18.465895, -66.104507 18.465882, -66.105885 18.465837, -66.107535 18.465777, -66.108626 18.465743, -66.108733 18.465737, -66.109517 18.465684, -66.110147 18.465517, -66.110197 18.465504, -66.111282 18.465217, -66.111717 18.465104, -66.112194 18.46499, -66.112522 18.464921, -66.113102 18.464634, -66.114121 18.464297, -66.114238 18.464258, -66.11502 18.46401, -66.115048 18.464004, -66.115223 18.463963, -66.115308 18.463948, -66.115722 18.463862, -66.115865 18.46387, -66.115754 18.463552, -66.11644 18.463481, -66.117847 18.463335, -66.118318 18.46329, -66.118748 18.463122, -66.120872 18.46261, -66.123811 18.460802, -66.123711 18.460691))'), ('72', '127', '000700', '72127000700', '7', 'Census Tract 7', 'S', 833610, 722215, '+18.4653067', '-066.0962000', 'POINT(-66.0962 18.4653067)', 'POLYGON((-66.112522 18.464921, -66.112194 18.46499, -66.111717 18.465104, -66.111282 18.465217, -66.110197 18.465504, -66.110147 18.465517, -66.109517 18.465684, -66.108733 18.465737, -66.108626 18.465743, -66.107535 18.465777, -66.105885 18.465837, -66.104507 18.465882, -66.104175 18.465895, -66.103862 18.465903, -66.103645 18.465901, -66.103515 18.465899, -66.102633 18.465932, -66.102396 18.465845, -66.101907 18.465713, -66.101299 18.465627, -66.100072 18.465472, -66.099996 18.465461, -66.098806 18.465339, -66.098175 18.465268, -66.098187 18.465195, -66.098285 18.464656, -66.097364 18.464522, -66.096875 18.464451, -66.096995 18.4639, -66.097165 18.462921, -66.097258 18.46238, -66.097272 18.462298, -66.097329 18.461987, -66.097314 18.461515, -66.097358 18.461273, -66.097555 18.460196, -66.097163 18.460148, -66.09388 18.459745, -66.090356 18.459422, -66.087256 18.459112, -66.087136 18.459099, -66.086291 18.459024, -66.085916 18.458969, -66.085802 18.459602, -66.08573 18.460003, -66.085723 18.460155, -66.085712 18.460431, -66.085257 18.460743, -66.084671 18.461182, -66.083997 18.461702, -66.083411 18.462187, -66.083878 18.462529, -66.08383 18.462575, -66.083811 18.462584, -66.083811 18.462607, -66.083836 18.462641, -66.083864 18.462671, -66.083907 18.462744, -66.084042 18.462965, -66.084059 18.463004, -66.084132 18.463157, -66.084181 18.463231, -66.084225 18.463231, -66.084253 18.463203, -66.084263 18.463166, -66.084244 18.463111, -66.084215 18.463065, -66.084186 18.463038, -66.084152 18.46302, -66.084124 18.462983, -66.084109 18.462946, -66.084124 18.462928, -66.084141 18.462918, -66.084166 18.462914, -66.084228 18.462914, -66.084421 18.462943, -66.084455 18.462937, -66.084518 18.462946, -66.084574 18.462975, -66.084609 18.463029, -66.084594 18.463098, -66.084594 18.463217, -66.084584 18.463323, -66.084579 18.463368, -66.084571 18.463515, -66.084531 18.46359, -66.084508 18.463639, -66.084486 18.463704, -66.084469 18.463749, -66.084458 18.463861, -66.08446 18.463877, -66.084464 18.463928, -66.084484 18.464029, -66.084577 18.464186, -66.084599 18.464225, -66.08465 18.46434, -66.084695 18.464437, -66.084828 18.464692, -66.084902 18.464826, -66.084936 18.464849, -66.084969 18.46484, -66.085018 18.464834, -66.085037 18.464831, -66.08507 18.464813, -66.085229 18.464597, -66.085325 18.464482, -66.085412 18.464414, -66.085516 18.464377, -66.08564 18.464331, -66.085659 18.464327, -66.085719 18.464327, -66.085747 18.464354, -66.085753 18.4644, -66.085772 18.464446, -66.085809 18.464474, -66.085892 18.464495, -66.085938 18.4645, -66.08607 18.464524, -66.086229 18.46457, -66.086325 18.464615, -66.086445 18.46468, -66.086586 18.464811, -66.086675 18.464887, -66.086736 18.464936, -66.086946 18.46491, -66.087044 18.465006, -66.087086 18.46516, -66.087216 18.46535, -66.087331 18.465472, -66.087579 18.465646, -66.087739 18.465705, -66.087709 18.465172, -66.087661 18.464348, -66.087721 18.464255, -66.087998 18.464079, -66.088393 18.46424, -66.088635 18.463712, -66.089046 18.462682, -66.089611 18.462899, -66.090154 18.463104, -66.090599 18.463279, -66.092609 18.464066, -66.092687 18.464095, -66.093299 18.464332, -66.093495 18.464433, -66.092879 18.465872, -66.092974 18.46589, -66.092816 18.466189, -66.092706 18.466243, -66.092583 18.466594, -66.09202 18.467533, -66.092146 18.469293, -66.092084 18.470553, -66.09463 18.470027, -66.094622 18.470239, -66.096132 18.469485, -66.101114 18.469997, -66.103108 18.470191, -66.106089 18.470508, -66.106693 18.470634, -66.106708 18.469873, -66.106725 18.469112, -66.106747 18.468078, -66.107029 18.467959, -66.107235 18.467815, -66.107335 18.46768, -66.107321 18.467602, -66.107223 18.467539, -66.107152 18.467516, -66.107061 18.467438, -66.107076 18.467296, -66.107152 18.467104, -66.107727 18.466922, -66.108132 18.466814, -66.108288 18.466774, -66.109256 18.466652, -66.10993 18.466462, -66.110268 18.466307, -66.110453 18.466293, -66.111391 18.466442, -66.111593 18.466438, -66.111767 18.466379, -66.111819 18.466314, -66.111819 18.466266, -66.111819 18.465811, -66.111782 18.465716, -66.111793 18.465394, -66.112544 18.464961, -66.112522 18.464921))'), ('72', '127', '000900', '72127000900', '9', 'Census Tract 9', 'S', 514996, 975406, '+18.4587832', '-066.0763587', 'POINT(-66.0763587 18.4587832)', 'POLYGON((-66.086282 18.458957, -66.08625 18.458708, -66.086102 18.458419, -66.08589 18.458218, -66.085633 18.458113, -66.084979 18.457972, -66.084692 18.45787, -66.084139 18.457677, -66.083926 18.457608, -66.083651 18.457522, -66.083362 18.457438, -66.083154 18.457386, -66.082899 18.457334, -66.082547 18.45726, -66.082249 18.457207, -66.081993 18.457167, -66.081688 18.457113, -66.081418 18.457057, -66.081239 18.457015, -66.081084 18.45698, -66.080901 18.456934, -66.080707 18.456866, -66.080442 18.456765, -66.080191 18.456658, -66.079849 18.456479, -66.079708 18.456391, -66.079429 18.456195, -66.079237 18.456049, -66.079044 18.455884, -66.078849 18.455694, -66.078591 18.455425, -66.078322 18.455158, -66.078221 18.455061, -66.07807 18.454929, -66.077709 18.454647, -66.077526 18.45453, -66.077347 18.454427, -66.077093 18.454286, -66.076945 18.454224, -66.076743 18.454156, -66.074754 18.453622, -66.07448 18.45355, -66.074079 18.453442, -66.07372 18.453343, -66.073743 18.453256, -66.073787 18.453087, -66.073875 18.452896, -66.074098 18.452617, -66.073807 18.452548, -66.07259 18.452471, -66.072104 18.452443, -66.071682 18.452345, -66.071482 18.452262, -66.071188 18.452266, -66.071086 18.452308, -66.070471 18.45202, -66.070861 18.45227, -66.071216 18.452502, -66.071226 18.452602, -66.071177 18.45273, -66.071141 18.452747, -66.070749 18.452821, -66.069802 18.452706, -66.069784 18.452704, -66.069457 18.452672, -66.069346 18.453589, -66.069261 18.454141, -66.069256 18.454189, -66.069139 18.455213, -66.070373 18.455614, -66.071647 18.456022, -66.070995 18.456924, -66.070661 18.457336, -66.07059 18.457177, -66.070494 18.457113, -66.070374 18.457049, -66.070032 18.456925, -66.069884 18.456897, -66.069726 18.456874, -66.069519 18.456861, -66.06937 18.456861, -66.069264 18.45687, -66.069125 18.456874, -66.06901 18.456884, -66.068934 18.45687, -66.068923 18.460083, -66.068912 18.461784, -66.075049 18.46232, -66.080135 18.465109, -66.083411 18.462187, -66.083997 18.461702, -66.084671 18.461182, -66.085257 18.460743, -66.085712 18.460431, -66.085723 18.460155, -66.08573 18.460003, -66.085802 18.459602, -66.085916 18.458969, -66.086291 18.459024, -66.086282 18.458957))');