-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.the_met.vision_api_data`
(
  object_id INT64,
  faceAnnotations ARRAY<STRUCT<headwearLikelihood STRING, underExposedLikelihood STRING, surpriseLikelihood STRING, boundingPoly STRUCT<vertices ARRAY<STRUCT<y INT64, x INT64>>>, fdBoundingPoly STRUCT<vertices ARRAY<STRUCT<y INT64, x INT64>>>, rollAngle FLOAT64, sorrowLikelihood STRING, panAngle FLOAT64, blurredLikelihood STRING, landmarks ARRAY<STRUCT<position STRUCT<z FLOAT64, y FLOAT64, x FLOAT64>, type STRING>>, detectionConfidence FLOAT64, angerLikelihood STRING, landmarkingConfidence FLOAT64, tiltAngle FLOAT64, joyLikelihood STRING>>,
  landmarkAnnotations ARRAY<STRUCT<properties ARRAY<STRING>, locations ARRAY<STRUCT<latLng STRUCT<longitude FLOAT64, latitude FLOAT64>>>, boundingPoly STRUCT<vertices ARRAY<STRUCT<y INT64, x INT64>>>, topicality INT64, confidence INT64, score FLOAT64, description STRING, locale STRING, mid STRING>>,
  cropHintsAnnotation STRUCT<cropHints ARRAY<STRUCT<importanceFraction FLOAT64, confidence FLOAT64, boundingPoly STRUCT<vertices ARRAY<STRUCT<y INT64, x INT64>>>>>>,
  logoAnnotations ARRAY<STRING>,
  labelAnnotations ARRAY<STRUCT<properties ARRAY<STRING>, locations ARRAY<STRING>, boundingPoly STRING, topicality INT64, confidence INT64, score FLOAT64, description STRING, locale STRING, mid STRING>>,
  textAnnotations ARRAY<STRING>,
  fullTextAnnotation STRING,
  imagePropertiesAnnotation STRUCT<dominantColors STRUCT<colors ARRAY<STRUCT<pixelFraction FLOAT64, score FLOAT64, color STRUCT<alpha STRING, blue INT64, green INT64, red INT64>>>>>,
  safeSearchAnnotation STRING,
  webDetection STRUCT<partialMatchingImages ARRAY<STRUCT<score INT64, url STRING>>, pagesWithMatchingImages ARRAY<STRUCT<score INT64, url STRING>>, fullMatchingImages ARRAY<STRUCT<score INT64, url STRING>>, webEntities ARRAY<STRUCT<description STRING, score FLOAT64, entityId STRING>>>
);

INSERT INTO `bigquery-public-data.the_met.vision_api_data` (object_id, faceAnnotations, landmarkAnnotations, cropHintsAnnotation, logoAnnotations, labelAnnotations, textAnnotations, fullTextAnnotation, imagePropertiesAnnotation, safeSearchAnnotation, webDetection) VALUES (556940, '[]', '[]', {'cropHints': "[{'importanceFraction': 1.0, 'confidence': 0.7999999523162842, 'boundingPoly': {'vertices': array([{'y': 0, 'x': 0}, {'y': 0, 'x': 143}, {'y': 140, 'x': 143},\n        {'y': 140, 'x': 0}], dtype=object)}}                                                                                                                  ]"}, '[]', '[]', '[]', NULL, {'dominantColors': {'colors': "[{'pixelFraction': 0.11135523021221161, 'score': 0.4077293872833252, 'color': {'alpha': None, 'blue': 25, 'green': 43, 'red': 75}}\n {'pixelFraction': 0.04498149827122688, 'score': 0.21682845056056976, 'color': {'alpha': None, 'blue': 6, 'green': 17, 'red': 52}}\n {'pixelFraction': 0.06348288804292679, 'score': 0.1445544809103012, 'color': {'alpha': None, 'blue': 49, 'green': 69, 'red': 99}}\n {'pixelFraction': 0.029370952397584915, 'score': 0.08077114820480347, 'color': {'alpha': None, 'blue': 5, 'green': 7, 'red': 39}}\n {'pixelFraction': 0.0544634610414505, 'score': 0.07756346464157104, 'color': {'alpha': None, 'blue': 60, 'green': 80, 'red': 103}}\n {'pixelFraction': 0.04937557876110077, 'score': 0.026323601603507996, 'color': {'alpha': None, 'blue': 91, 'green': 109, 'red': 130}}\n {'pixelFraction': 0.01641998067498207, 'score': 0.023415060713887215, 'color': {'alpha': None, 'blue': 32, 'green': 53, 'red': 75}}\n {'pixelFraction': 0.01503237709403038, 'score': 0.01297138910740614, 'color': {'alpha': None, 'blue': 2, 'green': 3, 'red': 22}}\n {'pixelFraction': 0.14222942292690277, 'score': 0.004530331119894981, 'color': {'alpha': None, 'blue': 130, 'green': 146, 'red': 164}}\n {'pixelFraction': 0.002775208093225956, 'score': 0.002446424216032028, 'color': {'alpha': None, 'blue': 83, 'green': 101, 'red': 132}}]"}}, NULL, {'partialMatchingImages': '[]', 'pagesWithMatchingImages': '[]', 'fullMatchingImages': '[]', 'webEntities': "[{'description': 'Iron', 'score': 0.9233344197273254, 'entityId': '/m/025rw19'}\n {'description': 'Brown', 'score': 0.9096999168395996, 'entityId': '/m/09q2t'}]"}), (569681, '[]', '[]', {'cropHints': "[{'importanceFraction': 1.0, 'confidence': 0.7999999523162842, 'boundingPoly': {'vertices': array([{'y': 0, 'x': 0}, {'y': 0, 'x': 929}, {'y': 684, 'x': 929},\n        {'y': 684, 'x': 0}], dtype=object)}}                                                                                                                  ]"}, '[]', '[]', '[]', NULL, {'dominantColors': {'colors': "[{'pixelFraction': 0.21642731130123138, 'score': 0.45509493350982666, 'color': {'alpha': None, 'blue': 83, 'green': 83, 'red': 83}}\n {'pixelFraction': 0.06821617484092712, 'score': 0.22136424481868744, 'color': {'alpha': None, 'blue': 115, 'green': 115, 'red': 115}}\n {'pixelFraction': 0.10827664285898209, 'score': 0.17629987001419067, 'color': {'alpha': None, 'blue': 60, 'green': 60, 'red': 60}}\n {'pixelFraction': 0.046611238270998, 'score': 0.0709240511059761, 'color': {'alpha': None, 'blue': 154, 'green': 154, 'red': 154}}\n {'pixelFraction': 0.10191483795642853, 'score': 0.06745322793722153, 'color': {'alpha': None, 'blue': 193, 'green': 193, 'red': 193}}\n {'pixelFraction': 0.4581758677959442, 'score': 0.008237610571086407, 'color': {'alpha': None, 'blue': 236, 'green': 236, 'red': 236}}\n {'pixelFraction': 0.0003779289545491338, 'score': 0.000626041553914547, 'color': {'alpha': None, 'blue': 35, 'green': 35, 'red': 35}}]"}}, NULL, {'partialMatchingImages': '[]', 'pagesWithMatchingImages': '[]', 'fullMatchingImages': '[]', 'webEntities': "[{'description': 'Poster', 'score': 0.7296000123023987, 'entityId': '/m/01n5jq'}\n {'description': 'Ostracon', 'score': 0.7208899855613708, 'entityId': '/m/04crtb'}\n {'description': 'Printing', 'score': 0.708620011806488, 'entityId': '/m/0c5mq'}\n {'description': 'Iron', 'score': 0.5676550269126892, 'entityId': '/m/025rw19'}]"}), (58733, '[]', '[]', {'cropHints': "[{'importanceFraction': 1.0, 'confidence': 0.7999999523162842, 'boundingPoly': {'vertices': array([{'y': 0, 'x': 0}, {'y': 0, 'x': 748}, {'y': 647, 'x': 748},\n        {'y': 647, 'x': 0}], dtype=object)}}                                                                                                                  ]"}, '[]', '[]', '[]', NULL, {'dominantColors': {'colors': "[{'pixelFraction': 0.2664806544780731, 'score': 0.35308292508125305, 'color': {'alpha': None, 'blue': 53, 'green': 50, 'red': 50}}\n {'pixelFraction': 0.02772933430969715, 'score': 0.07847362756729126, 'color': {'alpha': None, 'blue': 134, 'green': 153, 'red': 178}}\n {'pixelFraction': 0.18619927763938904, 'score': 0.19279126822948456, 'color': {'alpha': None, 'blue': 30, 'green': 26, 'red': 26}}\n {'pixelFraction': 0.20584815740585327, 'score': 0.16071252524852753, 'color': {'alpha': None, 'blue': 79, 'green': 82, 'red': 83}}\n {'pixelFraction': 0.1181257963180542, 'score': 0.0783446654677391, 'color': {'alpha': None, 'blue': 111, 'green': 116, 'red': 113}}\n {'pixelFraction': 0.03493779897689819, 'score': 0.03402059152722359, 'color': {'alpha': None, 'blue': 99, 'green': 120, 'red': 138}}\n {'pixelFraction': 0.0073828622698783875, 'score': 0.021604634821414948, 'color': {'alpha': None, 'blue': 15, 'green': 29, 'red': 41}}\n {'pixelFraction': 0.01592838019132614, 'score': 0.01946837082505226, 'color': {'alpha': None, 'blue': 63, 'green': 82, 'red': 92}}\n {'pixelFraction': 0.00970817357301712, 'score': 0.017350615933537483, 'color': {'alpha': None, 'blue': 31, 'green': 46, 'red': 57}}\n {'pixelFraction': 0.011219625361263752, 'score': 0.016555938869714737, 'color': {'alpha': None, 'blue': 168, 'green': 195, 'red': 211}}]"}}, NULL, {'partialMatchingImages': '[]', 'pagesWithMatchingImages': '[]', 'fullMatchingImages': '[]', 'webEntities': "[{'description': 'Iron', 'score': 0.9515364766120911, 'entityId': '/m/025rw19'}]"}), (565031, '[]', '[]', {'cropHints': "[{'importanceFraction': 1.0, 'confidence': 0.7999999523162842, 'boundingPoly': {'vertices': array([{'y': 0, 'x': 0}, {'y': 0, 'x': 2089}, {'y': 2999, 'x': 2089},\n        {'y': 2999, 'x': 0}], dtype=object)}}                                                                                                                    ]"}, '[]', '[]', '[]', NULL, {'dominantColors': {'colors': "[{'pixelFraction': 0.23206348717212677, 'score': 0.35601210594177246, 'color': {'alpha': None, 'blue': 147, 'green': 156, 'red': 154}}\n {'pixelFraction': 0.18799999356269836, 'score': 0.1851189136505127, 'color': {'alpha': None, 'blue': 186, 'green': 194, 'red': 193}}\n {'pixelFraction': 0.12533333897590637, 'score': 0.1810157597064972, 'color': {'alpha': None, 'blue': 113, 'green': 121, 'red': 119}}\n {'pixelFraction': 0.09428571164608002, 'score': 0.10328637063503265, 'color': {'alpha': None, 'blue': 78, 'green': 86, 'red': 84}}\n {'pixelFraction': 0.09974603354930878, 'score': 0.08837547898292542, 'color': {'alpha': None, 'blue': 44, 'green': 52, 'red': 50}}\n {'pixelFraction': 0.0907936543226242, 'score': 0.044864024966955185, 'color': {'alpha': None, 'blue': 220, 'green': 228, 'red': 227}}\n {'pixelFraction': 0.1697777807712555, 'score': 0.041327349841594696, 'color': {'alpha': None, 'blue': 21, 'green': 29, 'red': 27}}]"}}, NULL, {'partialMatchingImages': '[]', 'pagesWithMatchingImages': '[]', 'fullMatchingImages': '[]', 'webEntities': "[{'description': 'Wah Cantonment', 'score': 1.5234400033950806, 'entityId': '/m/07mttv'}\n {'description': 'Linen', 'score': 0.7386999726295471, 'entityId': '/m/0fkqd'}\n {'description': 'Shawl', 'score': 0.7186700105667114, 'entityId': '/m/04d1p3'}\n {'description': 'Iron', 'score': 0.6440681219100952, 'entityId': '/m/025rw19'}\n {'description': 'Weaving', 'score': 0.543470025062561, 'entityId': '/m/0dp7g'}]"}), (504243, '[]', '[]', {'cropHints': "[{'importanceFraction': 1.0, 'confidence': 0.7999999523162842, 'boundingPoly': {'vertices': array([{'y': 0, 'x': 0}, {'y': 0, 'x': 370}, {'y': 1384, 'x': 370},\n        {'y': 1384, 'x': 0}], dtype=object)}}                                                                                                                  ]"}, '[]', '[]', '[]', NULL, {'dominantColors': {'colors': "[{'pixelFraction': 0.03400000184774399, 'score': 0.2895156741142273, 'color': {'alpha': None, 'blue': 159, 'green': 159, 'red': 159}}\n {'pixelFraction': 0.812166690826416, 'score': 0.2101140171289444, 'color': {'alpha': None, 'blue': 237, 'green': 237, 'red': 237}}\n {'pixelFraction': 0.012666666880249977, 'score': 0.126815527677536, 'color': {'alpha': None, 'blue': 52, 'green': 52, 'red': 52}}\n {'pixelFraction': 0.040833331644535065, 'score': 0.22333389520645142, 'color': {'alpha': None, 'blue': 122, 'green': 122, 'red': 122}}\n {'pixelFraction': 0.059166666120290756, 'score': 0.08785087615251541, 'color': {'alpha': None, 'blue': 92, 'green': 92, 'red': 92}}\n {'pixelFraction': 0.040166664868593216, 'score': 0.041793059557676315, 'color': {'alpha': None, 'blue': 178, 'green': 178, 'red': 178}}\n {'pixelFraction': 0.0010000000474974513, 'score': 0.02057693898677826, 'color': {'alpha': None, 'blue': 29, 'green': 29, 'red': 29}}]"}}, NULL, {'partialMatchingImages': '[]', 'pagesWithMatchingImages': '[]', 'fullMatchingImages': '[]', 'webEntities': '[]'});