{
  "request_duration_ms": 55.63539400463924,
  "sum_trace_duration_ms": 53.113795031094924,
  "num_traces": 63,
  "traces": [
    {
      "type": "sql",
      "start": 213911.348617075,
      "end": 213911.349123038,
      "duration_ms": 0.505962991155684,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 964, in table_view_traced\n    resolved = await datasette.resolve_table(request)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 2314, in resolve_table\n    table_exists = await db.table_exists(table_name)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/database.py\", line 588, in table_exists\n    results = await self.execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select 1 from sqlite_master where type='table' and name=?",
      "params": [
        "facetable"
      ]
    },
    {
      "type": "sql",
      "start": 213911.349541573,
      "end": 213911.3500658,
      "duration_ms": 0.5242270126473159,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1389, in check_visibility\n    if not await self.allowed(action=action, resource=resource, actor=actor):\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1634, in allowed\n    result = await check_permission_for_resource(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/utils/actions_sql.py\", line 580, in check_permission_for_resource\n    result = await datasette.get_internal_database().execute(query, all_params)\n"
      ],
      "error": null,
      "database": "__INTERNAL__",
      "sql": "WITH\nall_rules AS (\n  SELECT parent, child, allow, reason, 'datasette.default_permissions' AS source_plugin FROM (\n                SELECT NULL AS parent, NULL AS child, 1 AS allow, :reason_9276980 AS reason\n            )\n),\nmatched_rules AS (\n  SELECT ar.*,\n    CASE\n      WHEN ar.child IS NOT NULL THEN 2  -- child-level (most specific)\n      WHEN ar.parent IS NOT NULL THEN 1  -- parent-level\n      ELSE 0                             -- root/global\n    END AS depth\n  FROM all_rules ar\n  WHERE (ar.parent IS NULL OR ar.parent = :_check_parent)\n    AND (ar.child IS NULL OR ar.child = :_check_child)\n),\nwinner AS (\n  SELECT *\n  FROM matched_rules\n  ORDER BY\n    depth DESC,                          -- specificity first (higher depth wins)\n    CASE WHEN allow=0 THEN 0 ELSE 1 END, -- then deny over allow\n    source_plugin                        -- stable tie-break\n  LIMIT 1\n)\nSELECT COALESCE((SELECT allow FROM winner), 0) AS is_allowed",
      "params": {
        "reason_9276980": "default allow for view-table",
        "action": "view-table",
        "actor": null,
        "actor_id": null,
        "_check_parent": "fixtures",
        "_check_child": "facetable"
      }
    },
    {
      "type": "sql",
      "start": 213911.350310895,
      "end": 213911.350877527,
      "duration_ms": 0.5666319921147078,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1393, in check_visibility\n    if not await self.allowed(action=action, resource=resource, actor=None):\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1634, in allowed\n    result = await check_permission_for_resource(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/utils/actions_sql.py\", line 580, in check_permission_for_resource\n    result = await datasette.get_internal_database().execute(query, all_params)\n"
      ],
      "error": null,
      "database": "__INTERNAL__",
      "sql": "WITH\nall_rules AS (\n  SELECT parent, child, allow, reason, 'datasette.default_permissions' AS source_plugin FROM (\n                SELECT NULL AS parent, NULL AS child, 1 AS allow, :reason_9276981 AS reason\n            )\n),\nmatched_rules AS (\n  SELECT ar.*,\n    CASE\n      WHEN ar.child IS NOT NULL THEN 2  -- child-level (most specific)\n      WHEN ar.parent IS NOT NULL THEN 1  -- parent-level\n      ELSE 0                             -- root/global\n    END AS depth\n  FROM all_rules ar\n  WHERE (ar.parent IS NULL OR ar.parent = :_check_parent)\n    AND (ar.child IS NULL OR ar.child = :_check_child)\n),\nwinner AS (\n  SELECT *\n  FROM matched_rules\n  ORDER BY\n    depth DESC,                          -- specificity first (higher depth wins)\n    CASE WHEN allow=0 THEN 0 ELSE 1 END, -- then deny over allow\n    source_plugin                        -- stable tie-break\n  LIMIT 1\n)\nSELECT COALESCE((SELECT allow FROM winner), 0) AS is_allowed",
      "params": {
        "reason_9276981": "default allow for view-table",
        "action": "view-table",
        "actor": null,
        "actor_id": null,
        "_check_parent": "fixtures",
        "_check_child": "facetable"
      }
    },
    {
      "type": "sql",
      "start": 213911.352670141,
      "end": 213911.353114307,
      "duration_ms": 0.44416601303964853,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 935, in table_view\n    response = await table_view_traced(datasette, request)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 988, in table_view_traced\n    view_data = await table_view_data(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 1372, in table_view_data\n    results = await db.execute(sql, params, truncate=True, **extra_args)\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable order by pk limit 101",
      "params": {}
    },
    {
      "type": "sql",
      "start": 213911.35484717,
      "end": 213911.355434432,
      "duration_ms": 0.5872619803994894,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1389, in check_visibility\n    if not await self.allowed(action=action, resource=resource, actor=actor):\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1634, in allowed\n    result = await check_permission_for_resource(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/utils/actions_sql.py\", line 580, in check_permission_for_resource\n    result = await datasette.get_internal_database().execute(query, all_params)\n"
      ],
      "error": null,
      "database": "__INTERNAL__",
      "sql": "WITH\nall_rules AS (\n  SELECT parent, child, allow, reason, 'datasette.default_permissions' AS source_plugin FROM (\n                SELECT NULL AS parent, NULL AS child, 1 AS allow, :reason_9276982 AS reason\n            )\n),\nmatched_rules AS (\n  SELECT ar.*,\n    CASE\n      WHEN ar.child IS NOT NULL THEN 2  -- child-level (most specific)\n      WHEN ar.parent IS NOT NULL THEN 1  -- parent-level\n      ELSE 0                             -- root/global\n    END AS depth\n  FROM all_rules ar\n  WHERE (ar.parent IS NULL OR ar.parent = :_check_parent)\n    AND (ar.child IS NULL OR ar.child = :_check_child)\n),\nwinner AS (\n  SELECT *\n  FROM matched_rules\n  ORDER BY\n    depth DESC,                          -- specificity first (higher depth wins)\n    CASE WHEN allow=0 THEN 0 ELSE 1 END, -- then deny over allow\n    source_plugin                        -- stable tie-break\n  LIMIT 1\n)\nSELECT COALESCE((SELECT allow FROM winner), 0) AS is_allowed",
      "params": {
        "reason_9276982": "default allow for view-table",
        "action": "view-table",
        "actor": null,
        "actor_id": null,
        "_check_parent": "fixtures",
        "_check_child": "facet_cities"
      }
    },
    {
      "type": "sql",
      "start": 213911.35580189,
      "end": 213911.356304431,
      "duration_ms": 0.5025410209782422,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1393, in check_visibility\n    if not await self.allowed(action=action, resource=resource, actor=None):\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1634, in allowed\n    result = await check_permission_for_resource(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/utils/actions_sql.py\", line 580, in check_permission_for_resource\n    result = await datasette.get_internal_database().execute(query, all_params)\n"
      ],
      "error": null,
      "database": "__INTERNAL__",
      "sql": "WITH\nall_rules AS (\n  SELECT parent, child, allow, reason, 'datasette.default_permissions' AS source_plugin FROM (\n                SELECT NULL AS parent, NULL AS child, 1 AS allow, :reason_9276983 AS reason\n            )\n),\nmatched_rules AS (\n  SELECT ar.*,\n    CASE\n      WHEN ar.child IS NOT NULL THEN 2  -- child-level (most specific)\n      WHEN ar.parent IS NOT NULL THEN 1  -- parent-level\n      ELSE 0                             -- root/global\n    END AS depth\n  FROM all_rules ar\n  WHERE (ar.parent IS NULL OR ar.parent = :_check_parent)\n    AND (ar.child IS NULL OR ar.child = :_check_child)\n),\nwinner AS (\n  SELECT *\n  FROM matched_rules\n  ORDER BY\n    depth DESC,                          -- specificity first (higher depth wins)\n    CASE WHEN allow=0 THEN 0 ELSE 1 END, -- then deny over allow\n    source_plugin                        -- stable tie-break\n  LIMIT 1\n)\nSELECT COALESCE((SELECT allow FROM winner), 0) AS is_allowed",
      "params": {
        "reason_9276983": "default allow for view-table",
        "action": "view-table",
        "actor": null,
        "actor_id": null,
        "_check_parent": "fixtures",
        "_check_child": "facet_cities"
      }
    },
    {
      "type": "sql",
      "start": 213911.356986866,
      "end": 213911.35732148,
      "duration_ms": 0.3346139856148511,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 1416, in table_view_data\n    await datasette.expand_foreign_keys(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1749, in expand_foreign_keys\n    results = await self.execute(database, sql, list(set(values)))\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select id, name\n            from facet_cities\n            where id in (?, ?, ?, ?)",
      "params": [
        1,
        2,
        3,
        4
      ]
    },
    {
      "type": "sql",
      "start": 213911.358249499,
      "end": 213911.361778838,
      "duration_ms": 3.5293390101287514,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 1857, in extra_view_definition\n    return await db.get_view_definition(table_name)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/database.py\", line 812, in get_view_definition\n    return await self.get_table_definition(view, \"view\")\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/database.py\", line 792, in get_table_definition\n    await self.execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select sql from sqlite_master where name = :n and type=:t",
      "params": {
        "n": "facetable",
        "t": "view"
      }
    },
    {
      "type": "sql",
      "start": 213911.35831774,
      "end": 213911.361968224,
      "duration_ms": 3.65048399544321,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/asyncinject/__init__.py\", line 132, in worker\n    res = await self._get_awaitable(name, results)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 1647, in run_display_columns_and_rows\n    display_columns, display_rows = await display_columns_and_rows(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 168, in display_columns_and_rows\n    await datasette.get_internal_database().execute(\n"
      ],
      "error": null,
      "database": "__INTERNAL__",
      "sql": "SELECT\n            column_name,\n            value\n          FROM metadata_columns\n          WHERE database_name = ?\n            AND resource_name = ?\n            AND key = 'description'",
      "params": [
        "fixtures",
        "facetable"
      ]
    },
    {
      "type": "sql",
      "start": 213911.358447531,
      "end": 213911.362141365,
      "duration_ms": 3.6938340053893626,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/asyncinject/__init__.py\", line 132, in worker\n    res = await self._get_awaitable(name, results)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 1774, in extra_metadata\n    tablemetadata = await datasette.get_resource_metadata(database_name, table_name)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 906, in get_resource_metadata\n    rows = await self.get_internal_database().execute(\n"
      ],
      "error": null,
      "database": "__INTERNAL__",
      "sql": "SELECT\n                key,\n                value\n              FROM metadata_resources\n              WHERE database_name = ?\n                AND resource_name = ?",
      "params": [
        "fixtures",
        "facetable"
      ]
    },
    {
      "type": "sql",
      "start": 213911.358495118,
      "end": 213911.362266211,
      "duration_ms": 3.7710930046159774,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/asyncinject/__init__.py\", line 132, in worker\n    res = await self._get_awaitable(name, results)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 1854, in extra_table_definition\n    return await db.get_table_definition(table_name)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/database.py\", line 792, in get_table_definition\n    await self.execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select sql from sqlite_master where name = :n and type=:t",
      "params": {
        "n": "facetable",
        "t": "table"
      }
    },
    {
      "type": "sql",
      "start": 213911.361528155,
      "end": 213911.363241506,
      "duration_ms": 1.713351026410237,
      "traceback": [
        "  File \"plugins/my_plugin.py\", line 174, in suggest\n    columns = await self.get_columns(self.sql, self.params)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 145, in get_columns\n    await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 0",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.362097567,
      "end": 213911.363500677,
      "duration_ms": 1.4031099854037166,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 1647, in run_display_columns_and_rows\n    display_columns, display_rows = await display_columns_and_rows(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 183, in display_columns_and_rows\n    column_types_map = await datasette.get_column_types(database_name, table_name)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1105, in get_column_types\n    rows = await self.get_internal_database().execute(\n"
      ],
      "error": null,
      "database": "__INTERNAL__",
      "sql": "SELECT column_name, column_type, config FROM column_types WHERE database_name = ? AND resource_name = ?",
      "params": [
        "fixtures",
        "facetable"
      ]
    },
    {
      "type": "sql",
      "start": 213911.362241888,
      "end": 213911.364010818,
      "duration_ms": 1.7689300002530217,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/asyncio/events.py\", line 80, in _run\n    self._context.run(self._callback, *self._args)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/asyncinject/__init__.py\", line 132, in worker\n    res = await self._get_awaitable(name, results)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 1776, in extra_metadata\n    rows = await datasette.get_internal_database().execute(\n"
      ],
      "error": null,
      "database": "__INTERNAL__",
      "sql": "SELECT\n                column_name,\n                value\n              FROM metadata_columns\n              WHERE database_name = ?\n                AND resource_name = ?\n                AND key = 'description'",
      "params": [
        "fixtures",
        "facetable"
      ]
    },
    {
      "type": "sql",
      "start": 213911.362357324,
      "end": 213911.364176111,
      "duration_ms": 1.8187870155088603,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/asyncinject/__init__.py\", line 132, in worker\n    res = await self._get_awaitable(name, results)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 1854, in extra_table_definition\n    return await db.get_table_definition(table_name)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/database.py\", line 802, in get_table_definition\n    await self.execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select sql from sqlite_master where tbl_name = :n and type='index' and sql is not null",
      "params": {
        "n": "facetable"
      }
    },
    {
      "type": "sql",
      "start": 213911.359775186,
      "end": 213911.365041211,
      "duration_ms": 5.26602499303408,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 1736, in extra_set_column_type_ui\n    if not await datasette.allowed(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1634, in allowed\n    result = await check_permission_for_resource(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/utils/actions_sql.py\", line 580, in check_permission_for_resource\n    result = await datasette.get_internal_database().execute(query, all_params)\n"
      ],
      "error": null,
      "database": "__INTERNAL__",
      "sql": "WITH\nall_rules AS (\n  SELECT NULL AS parent, NULL AS child, 0 AS allow, NULL AS reason, NULL AS source_plugin WHERE 0\n),\nmatched_rules AS (\n  SELECT ar.*,\n    CASE\n      WHEN ar.child IS NOT NULL THEN 2  -- child-level (most specific)\n      WHEN ar.parent IS NOT NULL THEN 1  -- parent-level\n      ELSE 0                             -- root/global\n    END AS depth\n  FROM all_rules ar\n  WHERE (ar.parent IS NULL OR ar.parent = :_check_parent)\n    AND (ar.child IS NULL OR ar.child = :_check_child)\n),\nwinner AS (\n  SELECT *\n  FROM matched_rules\n  ORDER BY\n    depth DESC,                          -- specificity first (higher depth wins)\n    CASE WHEN allow=0 THEN 0 ELSE 1 END, -- then deny over allow\n    source_plugin                        -- stable tie-break\n  LIMIT 1\n)\nSELECT COALESCE((SELECT allow FROM winner), 0) AS is_allowed",
      "params": {
        "_check_parent": "fixtures",
        "_check_child": "facetable"
      }
    },
    {
      "type": "sql",
      "start": 213911.36343886,
      "end": 213911.365768491,
      "duration_ms": 2.329631010070443,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 156, in suggest\n    columns = await self.get_columns(self.sql, self.params)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 145, in get_columns\n    await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 0",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.366152267,
      "end": 213911.367151305,
      "duration_ms": 0.9990379912778735,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 177, in suggest\n    distinct_values = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select pk as value, count(*) as n from limited\n                where value is not null\n                group by value\n                limit 31",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.367305409,
      "end": 213911.369807921,
      "duration_ms": 2.502512012142688,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 177, in suggest\n    distinct_values = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select created as value, count(*) as n from limited\n                where value is not null\n                group by value\n                limit 31",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.370405439,
      "end": 213911.370926819,
      "duration_ms": 0.5213800177443773,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 177, in suggest\n    distinct_values = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select planet_int as value, count(*) as n from limited\n                where value is not null\n                group by value\n                limit 31",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.371292579,
      "end": 213911.371608625,
      "duration_ms": 0.3160460037179291,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 177, in suggest\n    distinct_values = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select on_earth as value, count(*) as n from limited\n                where value is not null\n                group by value\n                limit 31",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.371867347,
      "end": 213911.372221485,
      "duration_ms": 0.35413799923844635,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 177, in suggest\n    distinct_values = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select state as value, count(*) as n from limited\n                where value is not null\n                group by value\n                limit 31",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.372567575,
      "end": 213911.373006858,
      "duration_ms": 0.4392830014694482,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 177, in suggest\n    distinct_values = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select _city_id as value, count(*) as n from limited\n                where value is not null\n                group by value\n                limit 31",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.373294093,
      "end": 213911.373764786,
      "duration_ms": 0.47069299034774303,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 177, in suggest\n    distinct_values = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select _neighborhood as value, count(*) as n from limited\n                where value is not null\n                group by value\n                limit 31",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.373992042,
      "end": 213911.374353063,
      "duration_ms": 0.36102099693380296,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 177, in suggest\n    distinct_values = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select tags as value, count(*) as n from limited\n                where value is not null\n                group by value\n                limit 31",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.374728079,
      "end": 213911.375078998,
      "duration_ms": 0.3509189991746098,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 177, in suggest\n    distinct_values = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select complex_array as value, count(*) as n from limited\n                where value is not null\n                group by value\n                limit 31",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.375368261,
      "end": 213911.375870566,
      "duration_ms": 0.502304988913238,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 177, in suggest\n    distinct_values = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select distinct_some_null as value, count(*) as n from limited\n                where value is not null\n                group by value\n                limit 31",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.376061056,
      "end": 213911.376492418,
      "duration_ms": 0.43136198655702174,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 177, in suggest\n    distinct_values = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select n as value, count(*) as n from limited\n                where value is not null\n                group by value\n                limit 31",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.376670901,
      "end": 213911.376894979,
      "duration_ms": 0.22407801588997245,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 472, in suggest\n    columns = await self.get_columns(self.sql, self.params)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 145, in get_columns\n    await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 0",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.377007146,
      "end": 213911.377522163,
      "duration_ms": 0.5150170181877911,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 485, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select date(pk) from (\n                    select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 100\n                ) where pk glob \"????-??-*\"",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.377687149,
      "end": 213911.378145511,
      "duration_ms": 0.45836198842152953,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 485, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select date(created) from (\n                    select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 100\n                ) where created glob \"????-??-*\"",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.378503566,
      "end": 213911.378904136,
      "duration_ms": 0.40057001751847565,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 485, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select date(planet_int) from (\n                    select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 100\n                ) where planet_int glob \"????-??-*\"",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.37903818,
      "end": 213911.379350363,
      "duration_ms": 0.31218299409374595,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 485, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select date(on_earth) from (\n                    select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 100\n                ) where on_earth glob \"????-??-*\"",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.379526226,
      "end": 213911.379887694,
      "duration_ms": 0.36146800266578794,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 485, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select date(state) from (\n                    select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 100\n                ) where state glob \"????-??-*\"",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.380090837,
      "end": 213911.380418892,
      "duration_ms": 0.3280550008639693,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 485, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select date(_city_id) from (\n                    select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 100\n                ) where _city_id glob \"????-??-*\"",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.380572741,
      "end": 213911.381028171,
      "duration_ms": 0.4554299812298268,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 485, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select date(_neighborhood) from (\n                    select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 100\n                ) where _neighborhood glob \"????-??-*\"",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.381156382,
      "end": 213911.381604126,
      "duration_ms": 0.4477440088521689,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 485, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select date(tags) from (\n                    select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 100\n                ) where tags glob \"????-??-*\"",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.381814605,
      "end": 213911.382161991,
      "duration_ms": 0.3473859978839755,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 485, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select date(complex_array) from (\n                    select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 100\n                ) where complex_array glob \"????-??-*\"",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.382303121,
      "end": 213911.382661041,
      "duration_ms": 0.357919983798638,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 485, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select date(distinct_some_null) from (\n                    select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 100\n                ) where distinct_some_null glob \"????-??-*\"",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.382815652,
      "end": 213911.383133726,
      "duration_ms": 0.3180739877279848,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 485, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select date(n) from (\n                    select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 100\n                ) where n glob \"????-??-*\"",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.383273316,
      "end": 213911.383593653,
      "duration_ms": 0.32033701427280903,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 311, in suggest\n    columns = await self.get_columns(self.sql, self.params)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 145, in get_columns\n    await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 0",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.383805679,
      "end": 213911.384248484,
      "duration_ms": 0.44280500151216984,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 329, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select distinct json_type(pk)\n                from limited\n                where pk is not null and pk != ''",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.384387872,
      "end": 213911.384788368,
      "duration_ms": 0.4004960064776242,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 329, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": "malformed JSON",
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select distinct json_type(created)\n                from limited\n                where created is not null and created != ''",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.385002155,
      "end": 213911.385429092,
      "duration_ms": 0.4269370110705495,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 329, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select distinct json_type(planet_int)\n                from limited\n                where planet_int is not null and planet_int != ''",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.385586267,
      "end": 213911.386029688,
      "duration_ms": 0.44342101318761706,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 329, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select distinct json_type(on_earth)\n                from limited\n                where on_earth is not null and on_earth != ''",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.386203652,
      "end": 213911.386660167,
      "duration_ms": 0.4565150011330843,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 329, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": "malformed JSON",
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select distinct json_type(state)\n                from limited\n                where state is not null and state != ''",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.386852003,
      "end": 213911.387285146,
      "duration_ms": 0.43314299546182156,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 329, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select distinct json_type(_city_id)\n                from limited\n                where _city_id is not null and _city_id != ''",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.387425459,
      "end": 213911.387758826,
      "duration_ms": 0.3333670028951019,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 329, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": "malformed JSON",
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select distinct json_type(_neighborhood)\n                from limited\n                where _neighborhood is not null and _neighborhood != ''",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.387925,
      "end": 213911.388298564,
      "duration_ms": 0.37356402026489377,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 329, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select distinct json_type(tags)\n                from limited\n                where tags is not null and tags != ''",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.38842094,
      "end": 213911.388932288,
      "duration_ms": 0.5113480146974325,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 342, in suggest\n    for v in await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select tags from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) where tags is not null and tags != '' and json_array_length(tags) > 0 limit 100",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.389315033,
      "end": 213911.389673082,
      "duration_ms": 0.3580490010790527,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 329, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select distinct json_type(complex_array)\n                from limited\n                where complex_array is not null and complex_array != ''",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.389783616,
      "end": 213911.3902161,
      "duration_ms": 0.43248399742878973,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 342, in suggest\n    for v in await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": null,
      "database": "fixtures",
      "sql": "select complex_array from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) where complex_array is not null and complex_array != '' and json_array_length(complex_array) > 0 limit 100",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.390374671,
      "end": 213911.390742833,
      "duration_ms": 0.3681620000861585,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 329, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": "malformed JSON",
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select distinct json_type(distinct_some_null)\n                from limited\n                where distinct_some_null is not null and distinct_some_null != ''",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.390859129,
      "end": 213911.391247355,
      "duration_ms": 0.388226006180048,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 91, in run_sequential\n    results.append(await fn)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/facets.py\", line 329, in suggest\n    results = await self.ds.execute(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1699, in execute\n    return await self.databases[db_name].execute(\n"
      ],
      "error": "malformed JSON",
      "database": "fixtures",
      "sql": "with limited as (select * from (select pk, created, planet_int, on_earth, state, _city_id, _neighborhood, tags, complex_array, distinct_some_null, n from facetable ) limit 1000)\n                select distinct json_type(n)\n                from limited\n                where n is not null and n != ''",
      "params": []
    },
    {
      "type": "sql",
      "start": 213911.391517897,
      "end": 213911.391779853,
      "duration_ms": 0.2619560109451413,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 988, in table_view_traced\n    view_data = await table_view_data(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 2018, in table_view_data\n    ct_map = await datasette.get_column_types(database_name, table_name)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1105, in get_column_types\n    rows = await self.get_internal_database().execute(\n"
      ],
      "error": null,
      "database": "__INTERNAL__",
      "sql": "SELECT column_name, column_type, config FROM column_types WHERE database_name = ? AND resource_name = ?",
      "params": [
        "fixtures",
        "facetable"
      ]
    },
    {
      "type": "sql",
      "start": 213911.392827389,
      "end": 213911.393262725,
      "duration_ms": 0.4353359981905669,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1623, in allowed\n    if not await self.allowed(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1634, in allowed\n    result = await check_permission_for_resource(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/utils/actions_sql.py\", line 580, in check_permission_for_resource\n    result = await datasette.get_internal_database().execute(query, all_params)\n"
      ],
      "error": null,
      "database": "__INTERNAL__",
      "sql": "WITH\nall_rules AS (\n  SELECT parent, child, allow, reason, 'datasette.default_permissions' AS source_plugin FROM (\n                SELECT NULL AS parent, NULL AS child, 1 AS allow, :reason_9276984 AS reason\n            )\n),\nmatched_rules AS (\n  SELECT ar.*,\n    CASE\n      WHEN ar.child IS NOT NULL THEN 2  -- child-level (most specific)\n      WHEN ar.parent IS NOT NULL THEN 1  -- parent-level\n      ELSE 0                             -- root/global\n    END AS depth\n  FROM all_rules ar\n  WHERE (ar.parent IS NULL OR ar.parent = :_check_parent)\n    AND (ar.child IS NULL OR ar.child = :_check_child)\n),\nwinner AS (\n  SELECT *\n  FROM matched_rules\n  ORDER BY\n    depth DESC,                          -- specificity first (higher depth wins)\n    CASE WHEN allow=0 THEN 0 ELSE 1 END, -- then deny over allow\n    source_plugin                        -- stable tie-break\n  LIMIT 1\n)\nSELECT COALESCE((SELECT allow FROM winner), 0) AS is_allowed",
      "params": {
        "reason_9276984": "default allow for view-database",
        "action": "view-database",
        "actor": null,
        "actor_id": null,
        "_check_parent": "fixtures",
        "_check_child": null
      }
    },
    {
      "type": "sql",
      "start": 213911.39355738,
      "end": 213911.394039211,
      "duration_ms": 0.48183099715970457,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/views/table.py\", line 1099, in table_view_traced\n    allow_execute_sql=await datasette.allowed(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1634, in allowed\n    result = await check_permission_for_resource(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/utils/actions_sql.py\", line 580, in check_permission_for_resource\n    result = await datasette.get_internal_database().execute(query, all_params)\n"
      ],
      "error": null,
      "database": "__INTERNAL__",
      "sql": "WITH\nall_rules AS (\n  SELECT parent, child, allow, reason, 'datasette.default_permissions' AS source_plugin FROM (\n                SELECT NULL AS parent, NULL AS child, 1 AS allow, :reason_9276985 AS reason\n            )\n),\nmatched_rules AS (\n  SELECT ar.*,\n    CASE\n      WHEN ar.child IS NOT NULL THEN 2  -- child-level (most specific)\n      WHEN ar.parent IS NOT NULL THEN 1  -- parent-level\n      ELSE 0                             -- root/global\n    END AS depth\n  FROM all_rules ar\n  WHERE (ar.parent IS NULL OR ar.parent = :_check_parent)\n    AND (ar.child IS NULL OR ar.child = :_check_child)\n),\nwinner AS (\n  SELECT *\n  FROM matched_rules\n  ORDER BY\n    depth DESC,                          -- specificity first (higher depth wins)\n    CASE WHEN allow=0 THEN 0 ELSE 1 END, -- then deny over allow\n    source_plugin                        -- stable tie-break\n  LIMIT 1\n)\nSELECT COALESCE((SELECT allow FROM winner), 0) AS is_allowed",
      "params": {
        "reason_9276985": "default allow for execute-sql",
        "action": "execute-sql",
        "actor": null,
        "actor_id": null,
        "_check_parent": "fixtures",
        "_check_child": null
      }
    },
    {
      "type": "sql",
      "start": 213911.394310997,
      "end": 213911.394485465,
      "duration_ms": 0.17446797573938966,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1972, in render_template\n    extra_script = await await_me_maybe(extra_script)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/utils/__init__.py\", line 169, in await_me_maybe\n    value = await value\n",
        "  File \"plugins/my_plugin.py\", line 96, in inner\n    await datasette.get_database().execute(\"select 3 * 5\")\n"
      ],
      "error": null,
      "database": "_memory",
      "sql": "select 3 * 5",
      "params": null
    },
    {
      "type": "sql",
      "start": 213911.39470442,
      "end": 213911.394871504,
      "duration_ms": 0.16708398470655084,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 2075, in _asset_urls\n    hook = await await_me_maybe(hook)\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/utils/__init__.py\", line 169, in await_me_maybe\n    value = await value\n",
        "  File \"plugins/my_plugin.py\", line 53, in inner\n    await datasette.get_database().execute(\"select 3 * 5\")\n"
      ],
      "error": null,
      "database": "_memory",
      "sql": "select 3 * 5",
      "params": null
    },
    {
      "type": "sql",
      "start": 213911.395636994,
      "end": 213911.396189352,
      "duration_ms": 0.5523579893633723,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1292, in _crumb_items\n    if await self.allowed(action=\"view-instance\", actor=actor):\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1634, in allowed\n    result = await check_permission_for_resource(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/utils/actions_sql.py\", line 580, in check_permission_for_resource\n    result = await datasette.get_internal_database().execute(query, all_params)\n"
      ],
      "error": null,
      "database": "__INTERNAL__",
      "sql": "WITH\nall_rules AS (\n  SELECT parent, child, allow, reason, 'datasette.default_permissions' AS source_plugin FROM (\n                SELECT NULL AS parent, NULL AS child, 1 AS allow, :reason_9276986 AS reason\n            )\n),\nmatched_rules AS (\n  SELECT ar.*,\n    CASE\n      WHEN ar.child IS NOT NULL THEN 2  -- child-level (most specific)\n      WHEN ar.parent IS NOT NULL THEN 1  -- parent-level\n      ELSE 0                             -- root/global\n    END AS depth\n  FROM all_rules ar\n  WHERE (ar.parent IS NULL OR ar.parent = :_check_parent)\n    AND (ar.child IS NULL OR ar.child = :_check_child)\n),\nwinner AS (\n  SELECT *\n  FROM matched_rules\n  ORDER BY\n    depth DESC,                          -- specificity first (higher depth wins)\n    CASE WHEN allow=0 THEN 0 ELSE 1 END, -- then deny over allow\n    source_plugin                        -- stable tie-break\n  LIMIT 1\n)\nSELECT COALESCE((SELECT allow FROM winner), 0) AS is_allowed",
      "params": {
        "reason_9276986": "default allow for view-instance",
        "action": "view-instance",
        "actor": null,
        "actor_id": null,
        "_check_parent": null,
        "_check_child": null
      }
    },
    {
      "type": "sql",
      "start": 213911.396555376,
      "end": 213911.397061178,
      "duration_ms": 0.5058019887655973,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1296, in _crumb_items\n    if await self.allowed(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1634, in allowed\n    result = await check_permission_for_resource(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/utils/actions_sql.py\", line 580, in check_permission_for_resource\n    result = await datasette.get_internal_database().execute(query, all_params)\n"
      ],
      "error": null,
      "database": "__INTERNAL__",
      "sql": "WITH\nall_rules AS (\n  SELECT parent, child, allow, reason, 'datasette.default_permissions' AS source_plugin FROM (\n                SELECT NULL AS parent, NULL AS child, 1 AS allow, :reason_9276987 AS reason\n            )\n),\nmatched_rules AS (\n  SELECT ar.*,\n    CASE\n      WHEN ar.child IS NOT NULL THEN 2  -- child-level (most specific)\n      WHEN ar.parent IS NOT NULL THEN 1  -- parent-level\n      ELSE 0                             -- root/global\n    END AS depth\n  FROM all_rules ar\n  WHERE (ar.parent IS NULL OR ar.parent = :_check_parent)\n    AND (ar.child IS NULL OR ar.child = :_check_child)\n),\nwinner AS (\n  SELECT *\n  FROM matched_rules\n  ORDER BY\n    depth DESC,                          -- specificity first (higher depth wins)\n    CASE WHEN allow=0 THEN 0 ELSE 1 END, -- then deny over allow\n    source_plugin                        -- stable tie-break\n  LIMIT 1\n)\nSELECT COALESCE((SELECT allow FROM winner), 0) AS is_allowed",
      "params": {
        "reason_9276987": "default allow for view-database",
        "action": "view-database",
        "actor": null,
        "actor_id": null,
        "_check_parent": "fixtures",
        "_check_child": null
      }
    },
    {
      "type": "sql",
      "start": 213911.397338106,
      "end": 213911.397749051,
      "duration_ms": 0.41094498010352254,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1310, in _crumb_items\n    if await self.allowed(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1634, in allowed\n    result = await check_permission_for_resource(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/utils/actions_sql.py\", line 580, in check_permission_for_resource\n    result = await datasette.get_internal_database().execute(query, all_params)\n"
      ],
      "error": null,
      "database": "__INTERNAL__",
      "sql": "WITH\nall_rules AS (\n  SELECT parent, child, allow, reason, 'datasette.default_permissions' AS source_plugin FROM (\n                SELECT NULL AS parent, NULL AS child, 1 AS allow, :reason_9276988 AS reason\n            )\n),\nmatched_rules AS (\n  SELECT ar.*,\n    CASE\n      WHEN ar.child IS NOT NULL THEN 2  -- child-level (most specific)\n      WHEN ar.parent IS NOT NULL THEN 1  -- parent-level\n      ELSE 0                             -- root/global\n    END AS depth\n  FROM all_rules ar\n  WHERE (ar.parent IS NULL OR ar.parent = :_check_parent)\n    AND (ar.child IS NULL OR ar.child = :_check_child)\n),\nwinner AS (\n  SELECT *\n  FROM matched_rules\n  ORDER BY\n    depth DESC,                          -- specificity first (higher depth wins)\n    CASE WHEN allow=0 THEN 0 ELSE 1 END, -- then deny over allow\n    source_plugin                        -- stable tie-break\n  LIMIT 1\n)\nSELECT COALESCE((SELECT allow FROM winner), 0) AS is_allowed",
      "params": {
        "reason_9276988": "default allow for view-table",
        "action": "view-table",
        "actor": null,
        "actor_id": null,
        "_check_parent": "fixtures",
        "_check_child": "facetable"
      }
    },
    {
      "type": "sql",
      "start": 213911.398152398,
      "end": 213911.398402586,
      "duration_ms": 0.25018799351528287,
      "traceback": [
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/default_menu_links.py\", line 7, in inner\n    if not await datasette.allowed(action=\"debug-menu\", actor=actor):\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/app.py\", line 1634, in allowed\n    result = await check_permission_for_resource(\n",
        "  File \"/usr/local/lib/python3.11/site-packages/datasette/utils/actions_sql.py\", line 580, in check_permission_for_resource\n    result = await datasette.get_internal_database().execute(query, all_params)\n"
      ],
      "error": null,
      "database": "__INTERNAL__",
      "sql": "WITH\nall_rules AS (\n  SELECT NULL AS parent, NULL AS child, 0 AS allow, NULL AS reason, NULL AS source_plugin WHERE 0\n),\nmatched_rules AS (\n  SELECT ar.*,\n    CASE\n      WHEN ar.child IS NOT NULL THEN 2  -- child-level (most specific)\n      WHEN ar.parent IS NOT NULL THEN 1  -- parent-level\n      ELSE 0                             -- root/global\n    END AS depth\n  FROM all_rules ar\n  WHERE (ar.parent IS NULL OR ar.parent = :_check_parent)\n    AND (ar.child IS NULL OR ar.child = :_check_child)\n),\nwinner AS (\n  SELECT *\n  FROM matched_rules\n  ORDER BY\n    depth DESC,                          -- specificity first (higher depth wins)\n    CASE WHEN allow=0 THEN 0 ELSE 1 END, -- then deny over allow\n    source_plugin                        -- stable tie-break\n  LIMIT 1\n)\nSELECT COALESCE((SELECT allow FROM winner), 0) AS is_allowed",
      "params": {
        "_check_parent": null,
        "_check_child": null
      }
    }
  ]
}