-- original SQL --
select * from (
WITH
  -- Source side should expose explicit deletions (tombstones)
  -- Use state_with_tombstones to include rows with NULL snapshot_content
  s AS (
    SELECT entity_id, schema_key, file_id, change_id, commit_id, version_id, snapshot_content
    FROM state_with_tombstones
    WHERE version_id = '01920000-0000-7000-8000-000000000026'
  ),
  t AS (
    SELECT entity_id, schema_key, file_id, change_id, commit_id, version_id
    FROM state_by_version
    WHERE version_id = '01920000-0000-7000-8000-000000000044'
  ),
  joined AS (
    SELECT
      COALESCE(s.entity_id, t.entity_id) AS entity_id,
      COALESCE(s.schema_key, t.schema_key) AS schema_key,
      COALESCE(s.file_id, t.file_id) AS file_id,
      t.version_id AS before_version_id,
      t.change_id AS before_change_id,
      t.commit_id AS before_commit_id,
      s.version_id AS after_version_id,
      s.change_id AS after_change_id,
      s.commit_id AS after_commit_id,
      CASE
        -- Explicit delete in source (tombstone) only matters if the target had the entity.
        -- Longer term we should derive this from the true lowest common ancestor, but until then
        -- checking for a target change_id approximates the same intent.
        WHEN s.snapshot_content IS NULL AND t.change_id IS NOT NULL THEN 'removed'
        -- Added in source only (live row)
        WHEN t.change_id IS NULL AND s.snapshot_content IS NOT NULL THEN 'added'
        -- Both present and different (live row in source)
        WHEN t.change_id IS NOT NULL AND s.snapshot_content IS NOT NULL AND s.change_id != t.change_id THEN 'modified'
        -- Both present and same (live row in source), or tombstone without a target baseline
        ELSE 'unchanged'
      END AS status
    FROM s
    LEFT JOIN t ON t.entity_id = s.entity_id AND t.schema_key = s.schema_key AND t.file_id = s.file_id
    UNION ALL
    SELECT
      COALESCE(s.entity_id, t.entity_id) AS entity_id,
      COALESCE(s.schema_key, t.schema_key) AS schema_key,
      COALESCE(s.file_id, t.file_id) AS file_id,
      t.version_id AS before_version_id,
      t.change_id AS before_change_id,
      t.commit_id AS before_commit_id,
      -- For target-only rows (no source contribution), mirror target values for after_*
      -- This represents entities that exist in target but were never in source
      t.version_id AS after_version_id,
      t.change_id AS after_change_id,
      t.commit_id AS after_commit_id,
      CASE
        -- Target-only: entity exists in target but never existed in source (no explicit delete)
        -- Treated as unchanged since source doesn't modify it
        WHEN s.change_id IS NULL AND t.change_id IS NOT NULL THEN 'unchanged'
        ELSE 'unchanged'
      END AS status
    FROM t
    LEFT JOIN s ON s.entity_id = t.entity_id AND s.schema_key = t.schema_key AND s.file_id = t.file_id
    WHERE s.change_id IS NULL
  )
SELECT *
FROM joined
    ) as "diff" where "diff"."status" != ?

-- rewritten SQL --
SELECT *
FROM (WITH s AS (
  SELECT
    entity_id,
    schema_key,
    file_id,
    change_id,
    commit_id,
    version_id,
    snapshot_content
  FROM (SELECT
    entity_id,
    schema_key,
    file_id,
    version_id,
    snapshot_content,
    change_id,
    commit_id
  FROM (
  WITH
    wanted_versions AS (
      SELECT '01920000-0000-7000-8000-000000000026' AS version_id
    )
  SELECT
    "w"."entity_id" as "entity_id", "w"."schema_key" as "schema_key", "w"."file_id" as "file_id", "w"."version_id" as "version_id", "w"."snapshot_content" as "snapshot_content", "w"."change_id" as "change_id", "w"."commit_id" as "commit_id"
  FROM (
    SELECT
      c.entity_id AS entity_id,
      c.schema_key AS schema_key,
      c.file_id AS file_id,
      c.snapshot_content AS snapshot_content,
      c.version_id AS version_id,
      c.created_at AS created_at,
      c.change_id AS change_id,
      c.commit_id AS commit_id,
      c.priority AS priority,
      ROW_NUMBER() OVER (
              PARTITION BY c.file_id, c.schema_key, c.entity_id, c.version_id
              ORDER BY c.priority, c.created_at DESC, c.file_id, c.schema_key, c.entity_id, c.version_id, c.change_id
            ) AS rn
    FROM (
        SELECT
          unt.entity_id AS entity_id,
          unt.schema_key AS schema_key,
          unt.file_id AS file_id,
          json(unt.snapshot_content) AS snapshot_content,
          unt.version_id AS version_id,
          unt.created_at AS created_at,
          'untracked' AS change_id,
          'untracked' AS commit_id,
          2 AS priority
        FROM lix_internal_state_all_untracked unt
        JOIN wanted_versions wv_unt ON wv_unt.version_id = unt.version_id

            UNION ALL

        		SELECT
            cache.entity_id AS entity_id,
            cache.schema_key AS schema_key,
            cache.file_id AS file_id,
            json(cache.snapshot_content) AS snapshot_content,
            cache.version_id AS version_id,
            cache.created_at AS created_at,
            cache.change_id AS change_id,
            cache.commit_id AS commit_id,
            3 AS priority
        		FROM (SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_version_descriptor"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_stored_schema"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_key_value"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_active_account"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_commit"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_commit_edge"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_version_tip"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_change_set"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_change_set_element"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_label"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_test_bench_diff_entity") cache
        		JOIN wanted_versions wv_cache ON wv_cache.version_id = cache.version_id

            UNION ALL

        		SELECT
            cache.entity_id AS entity_id,
            cache.schema_key AS schema_key,
            cache.file_id AS file_id,
            json(cache.snapshot_content) AS snapshot_content,
            vi.version_id AS version_id,
            cache.created_at AS created_at,
            cache.change_id AS change_id,
            cache.commit_id AS commit_id,
            4 AS priority
        		FROM (
        SELECT '01920000-0000-7000-8000-000000000026' AS version_id, 'global' AS ancestor_version_id
        ) AS vi
        		JOIN wanted_versions wv_vi ON wv_vi.version_id = vi.version_id
        		JOIN (SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_version_descriptor"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_stored_schema"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_key_value"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_active_account"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_commit"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_commit_edge"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_version_tip"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_change_set"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_change_set_element"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_label"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_test_bench_diff_entity") cache ON cache.version_id = vi.ancestor_version_id
        		WHERE cache.is_tombstone = 0
        		  AND cache.snapshot_content IS NOT NULL

            UNION ALL

        		SELECT
            unt.entity_id AS entity_id,
            unt.schema_key AS schema_key,
            unt.file_id AS file_id,
            json(unt.snapshot_content) AS snapshot_content,
            vi.version_id AS version_id,
            unt.created_at AS created_at,
            'untracked' AS change_id,
            'untracked' AS commit_id,
            5 AS priority
        		FROM (
        SELECT '01920000-0000-7000-8000-000000000026' AS version_id, 'global' AS ancestor_version_id
        ) AS vi
        		JOIN wanted_versions wv_vi ON wv_vi.version_id = vi.version_id
        		JOIN lix_internal_state_all_untracked unt ON unt.version_id = vi.ancestor_version_id
        		WHERE unt.is_tombstone = 0
        		  AND unt.snapshot_content IS NOT NULL
    ) AS c
  ) AS w



  WHERE w.rn = 1
  ) AS "lix_internal_state_vtable") AS state_with_tombstones
  WHERE version_id = '01920000-0000-7000-8000-000000000026'
),
t AS (
  SELECT
    entity_id,
    schema_key,
    file_id,
    change_id,
    commit_id,
    version_id
  FROM (SELECT
    entity_id,
    schema_key,
    file_id,
    version_id,
    change_id,
    commit_id
  FROM (
  WITH
    wanted_versions AS (
      SELECT '01920000-0000-7000-8000-000000000044' AS version_id
    )
  SELECT
    "w"."entity_id" as "entity_id", "w"."schema_key" as "schema_key", "w"."file_id" as "file_id", "w"."version_id" as "version_id", "w"."change_id" as "change_id", "w"."commit_id" as "commit_id", "w"."snapshot_content" as "snapshot_content"
  FROM (
    SELECT
      c.entity_id AS entity_id,
      c.schema_key AS schema_key,
      c.file_id AS file_id,
      c.snapshot_content AS snapshot_content,
      c.version_id AS version_id,
      c.created_at AS created_at,
      c.change_id AS change_id,
      c.commit_id AS commit_id,
      c.priority AS priority,
      ROW_NUMBER() OVER (
              PARTITION BY c.file_id, c.schema_key, c.entity_id, c.version_id
              ORDER BY c.priority, c.created_at DESC, c.file_id, c.schema_key, c.entity_id, c.version_id, c.change_id
            ) AS rn
    FROM (
        SELECT
          unt.entity_id AS entity_id,
          unt.schema_key AS schema_key,
          unt.file_id AS file_id,
          json(unt.snapshot_content) AS snapshot_content,
          unt.version_id AS version_id,
          unt.created_at AS created_at,
          'untracked' AS change_id,
          'untracked' AS commit_id,
          2 AS priority
        FROM lix_internal_state_all_untracked unt
        JOIN wanted_versions wv_unt ON wv_unt.version_id = unt.version_id

            UNION ALL

        		SELECT
            cache.entity_id AS entity_id,
            cache.schema_key AS schema_key,
            cache.file_id AS file_id,
            json(cache.snapshot_content) AS snapshot_content,
            cache.version_id AS version_id,
            cache.created_at AS created_at,
            cache.change_id AS change_id,
            cache.commit_id AS commit_id,
            3 AS priority
        		FROM (SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_version_descriptor"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_stored_schema"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_key_value"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_active_account"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_commit"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_commit_edge"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_version_tip"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_change_set"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_change_set_element"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_label"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_test_bench_diff_entity") cache
        		JOIN wanted_versions wv_cache ON wv_cache.version_id = cache.version_id

            UNION ALL

        		SELECT
            cache.entity_id AS entity_id,
            cache.schema_key AS schema_key,
            cache.file_id AS file_id,
            json(cache.snapshot_content) AS snapshot_content,
            vi.version_id AS version_id,
            cache.created_at AS created_at,
            cache.change_id AS change_id,
            cache.commit_id AS commit_id,
            4 AS priority
        		FROM (
        SELECT '01920000-0000-7000-8000-000000000044' AS version_id, 'global' AS ancestor_version_id
        ) AS vi
        		JOIN wanted_versions wv_vi ON wv_vi.version_id = vi.version_id
        		JOIN (SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_version_descriptor"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_stored_schema"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_key_value"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_active_account"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_commit"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_commit_edge"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_version_tip"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_change_set"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_change_set_element"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_lix_label"
        UNION ALL
        SELECT
            "entity_id",
            "schema_key",
            "file_id",
            "snapshot_content",
            "version_id",
            "created_at",
            "change_id",
            "commit_id",
            "is_tombstone"
          FROM "lix_internal_state_cache_v1_test_bench_diff_entity") cache ON cache.version_id = vi.ancestor_version_id
        		WHERE cache.is_tombstone = 0
        		  AND cache.snapshot_content IS NOT NULL

            UNION ALL

        		SELECT
            unt.entity_id AS entity_id,
            unt.schema_key AS schema_key,
            unt.file_id AS file_id,
            json(unt.snapshot_content) AS snapshot_content,
            vi.version_id AS version_id,
            unt.created_at AS created_at,
            'untracked' AS change_id,
            'untracked' AS commit_id,
            5 AS priority
        		FROM (
        SELECT '01920000-0000-7000-8000-000000000044' AS version_id, 'global' AS ancestor_version_id
        ) AS vi
        		JOIN wanted_versions wv_vi ON wv_vi.version_id = vi.version_id
        		JOIN lix_internal_state_all_untracked unt ON unt.version_id = vi.ancestor_version_id
        		WHERE unt.is_tombstone = 0
        		  AND unt.snapshot_content IS NOT NULL
    ) AS c
  ) AS w



  WHERE w.rn = 1
  ) AS "lix_internal_state_vtable"
  WHERE snapshot_content IS NOT NULL) AS state_by_version
  WHERE version_id = '01920000-0000-7000-8000-000000000044'
),
joined AS (
  SELECT
    COALESCE(s.entity_id, t.entity_id) AS entity_id,
    COALESCE(s.schema_key, t.schema_key) AS schema_key,
    COALESCE(s.file_id, t.file_id) AS file_id,
    t.version_id AS before_version_id,
    t.change_id AS before_change_id,
    t.commit_id AS before_commit_id,
    s.version_id AS after_version_id,
    s.change_id AS after_change_id,
    s.commit_id AS after_commit_id,
    CASE WHEN s.snapshot_content IS NULL AND t.change_id IS NOT NULL THEN 'removed' WHEN t.change_id IS NULL AND s.snapshot_content IS NOT NULL THEN 'added' WHEN t.change_id IS NOT NULL AND s.snapshot_content IS NOT NULL AND s.change_id != t.change_id THEN 'modified' ELSE 'unchanged' END AS status
  FROM s LEFT JOIN t ON t.entity_id = s.entity_id AND t.schema_key = s.schema_key AND t.file_id = s.file_id
  UNION ALL
  SELECT
    COALESCE(s.entity_id, t.entity_id) AS entity_id,
    COALESCE(s.schema_key, t.schema_key) AS schema_key,
    COALESCE(s.file_id, t.file_id) AS file_id,
    t.version_id AS before_version_id,
    t.change_id AS before_change_id,
    t.commit_id AS before_commit_id,
    t.version_id AS after_version_id,
    t.change_id AS after_change_id,
    t.commit_id AS after_commit_id,
    CASE WHEN s.change_id IS NULL AND t.change_id IS NOT NULL THEN 'unchanged' ELSE 'unchanged' END AS status
  FROM t LEFT JOIN s ON s.entity_id = t.entity_id AND s.schema_key = t.schema_key AND s.file_id = t.file_id
  WHERE s.change_id IS NULL
)
SELECT *
FROM joined) AS "diff"
WHERE "diff"."status" != ?

-- plan --
[
  {
    "id": 1,
    "parent": 0,
    "notused": 0,
    "detail": "COMPOUND QUERY"
  },
  {
    "id": 2,
    "parent": 1,
    "notused": 0,
    "detail": "LEFT-MOST SUBQUERY"
  },
  {
    "id": 4,
    "parent": 2,
    "notused": 0,
    "detail": "CO-ROUTINE w"
  },
  {
    "id": 7,
    "parent": 4,
    "notused": 0,
    "detail": "CO-ROUTINE (subquery-72)"
  },
  {
    "id": 9,
    "parent": 7,
    "notused": 0,
    "detail": "CO-ROUTINE c"
  },
  {
    "id": 10,
    "parent": 9,
    "notused": 0,
    "detail": "COMPOUND QUERY"
  },
  {
    "id": 11,
    "parent": 10,
    "notused": 0,
    "detail": "LEFT-MOST SUBQUERY"
  },
  {
    "id": 14,
    "parent": 11,
    "notused": 0,
    "detail": "MATERIALIZE wanted_versions"
  },
  {
    "id": 16,
    "parent": 14,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 26,
    "parent": 11,
    "notused": 16,
    "detail": "SCAN wv_unt"
  },
  {
    "id": 32,
    "parent": 11,
    "notused": 61,
    "detail": "SEARCH unt USING INDEX idx_lix_internal_state_all_untracked_version_id (version_id=?)"
  },
  {
    "id": 50,
    "parent": 10,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 51,
    "parent": 50,
    "notused": 0,
    "detail": "COMPOUND QUERY"
  },
  {
    "id": 52,
    "parent": 51,
    "notused": 0,
    "detail": "LEFT-MOST SUBQUERY"
  },
  {
    "id": 57,
    "parent": 52,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 63,
    "parent": 52,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_version_descriptor USING INDEX idx_lix_internal_state_cache_v1_lix_version_descriptor_pk_version_id_json_extract_snapsho_file_id_b2i1mo (version_id=?)"
  },
  {
    "id": 84,
    "parent": 51,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 89,
    "parent": 84,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 95,
    "parent": 84,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_stored_schema USING INDEX idx_lix_internal_state_cache_v1_lix_stored_schema_pk_version_id_json_extract_snapsho_json_extract_snapsho_file_id_l1xg3a (version_id=?)"
  },
  {
    "id": 116,
    "parent": 51,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 121,
    "parent": 116,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 127,
    "parent": 116,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_key_value USING INDEX idx_lix_internal_state_cache_v1_lix_key_value_pk_version_id_json_extract_snapsho_file_id_b2i1mo (version_id=?)"
  },
  {
    "id": 148,
    "parent": 51,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 153,
    "parent": 148,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 159,
    "parent": 148,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_active_account USING INDEX idx_lix_internal_state_cache_v1_lix_active_account_foreign_version_id_inherited_from_versi_json_extract_snapsho_file_id_76oyad (version_id=?)"
  },
  {
    "id": 180,
    "parent": 51,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 185,
    "parent": 180,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 191,
    "parent": 180,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_commit USING INDEX idx_lix_internal_state_cache_v1_lix_commit_pk_version_id_json_extract_snapsho_file_id_b2i1mo (version_id=?)"
  },
  {
    "id": 212,
    "parent": 51,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 217,
    "parent": 212,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 223,
    "parent": 212,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_commit_edge USING INDEX idx_lix_internal_state_cache_v1_lix_commit_edge_foreign_version_id_inherited_from_versi_json_extract_snapsho_file_id_76oyad (version_id=?)"
  },
  {
    "id": 244,
    "parent": 51,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 249,
    "parent": 244,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 255,
    "parent": 244,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_version_tip USING INDEX idx_lix_internal_state_cache_v1_lix_version_tip_unique_version_id_json_extract_snapsho_file_id_b04j56 (version_id=?)"
  },
  {
    "id": 276,
    "parent": 51,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 281,
    "parent": 276,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 287,
    "parent": 276,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_change_set USING INDEX idx_lix_internal_state_cache_v1_lix_change_set_pk_version_id_json_extract_snapsho_file_id_b2i1mo (version_id=?)"
  },
  {
    "id": 308,
    "parent": 51,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 313,
    "parent": 308,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 319,
    "parent": 308,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_change_set_element USING INDEX idx_lix_internal_state_cache_v1_lix_change_set_element_foreign_version_id_inherited_from_versi_json_extract_snapsho_file_id_76oyad (version_id=?)"
  },
  {
    "id": 340,
    "parent": 51,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 345,
    "parent": 340,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 351,
    "parent": 340,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_label USING INDEX idx_lix_internal_state_cache_v1_lix_label_pk_version_id_json_extract_snapsho_file_id_b2i1mo (version_id=?)"
  },
  {
    "id": 372,
    "parent": 51,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 377,
    "parent": 372,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 383,
    "parent": 372,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_test_bench_diff_entity USING INDEX idx_lix_internal_state_cache_v1_test_bench_diff_entity_ve (version_id=?)"
  },
  {
    "id": 404,
    "parent": 51,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 405,
    "parent": 404,
    "notused": 0,
    "detail": "COMPOUND QUERY"
  },
  {
    "id": 406,
    "parent": 405,
    "notused": 0,
    "detail": "LEFT-MOST SUBQUERY"
  },
  {
    "id": 408,
    "parent": 406,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 409,
    "parent": 408,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 419,
    "parent": 406,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 424,
    "parent": 406,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_version_descriptor USING INDEX idx_lix_internal_state_cache_v1_lix_version_descriptor_live_vfe (version_id=?)"
  },
  {
    "id": 434,
    "parent": 406,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 453,
    "parent": 405,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 455,
    "parent": 453,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 456,
    "parent": 455,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 466,
    "parent": 453,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 471,
    "parent": 453,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_stored_schema USING INDEX idx_lix_internal_state_cache_v1_lix_stored_schema_live_vfe (version_id=?)"
  },
  {
    "id": 481,
    "parent": 453,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 500,
    "parent": 405,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 502,
    "parent": 500,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 503,
    "parent": 502,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 513,
    "parent": 500,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 518,
    "parent": 500,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_key_value USING INDEX idx_lix_internal_state_cache_v1_lix_key_value_live_vfe (version_id=?)"
  },
  {
    "id": 528,
    "parent": 500,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 547,
    "parent": 405,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 549,
    "parent": 547,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 550,
    "parent": 549,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 560,
    "parent": 547,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 565,
    "parent": 547,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_active_account USING INDEX idx_lix_internal_state_cache_v1_lix_active_account_live_vfe (version_id=?)"
  },
  {
    "id": 575,
    "parent": 547,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 594,
    "parent": 405,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 596,
    "parent": 594,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 597,
    "parent": 596,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 607,
    "parent": 594,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 612,
    "parent": 594,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_commit USING INDEX idx_lix_internal_state_cache_v1_lix_commit_live_vfe (version_id=?)"
  },
  {
    "id": 622,
    "parent": 594,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 641,
    "parent": 405,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 643,
    "parent": 641,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 644,
    "parent": 643,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 654,
    "parent": 641,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 659,
    "parent": 641,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_commit_edge USING INDEX idx_lix_internal_state_cache_v1_lix_commit_edge_live_vfe (version_id=?)"
  },
  {
    "id": 669,
    "parent": 641,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 688,
    "parent": 405,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 690,
    "parent": 688,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 691,
    "parent": 690,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 701,
    "parent": 688,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 706,
    "parent": 688,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_version_tip USING INDEX idx_lix_internal_state_cache_v1_lix_version_tip_live_vfe (version_id=?)"
  },
  {
    "id": 716,
    "parent": 688,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 735,
    "parent": 405,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 737,
    "parent": 735,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 738,
    "parent": 737,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 748,
    "parent": 735,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 753,
    "parent": 735,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_change_set USING INDEX idx_lix_internal_state_cache_v1_lix_change_set_live_vfe (version_id=?)"
  },
  {
    "id": 763,
    "parent": 735,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 782,
    "parent": 405,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 784,
    "parent": 782,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 785,
    "parent": 784,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 795,
    "parent": 782,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 800,
    "parent": 782,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_change_set_element USING INDEX idx_lix_internal_state_cache_v1_lix_change_set_element_live_vfe (version_id=?)"
  },
  {
    "id": 810,
    "parent": 782,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 829,
    "parent": 405,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 831,
    "parent": 829,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 832,
    "parent": 831,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 842,
    "parent": 829,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 847,
    "parent": 829,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_label USING INDEX idx_lix_internal_state_cache_v1_lix_label_live_vfe (version_id=?)"
  },
  {
    "id": 857,
    "parent": 829,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 876,
    "parent": 405,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 878,
    "parent": 876,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 879,
    "parent": 878,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 889,
    "parent": 876,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 894,
    "parent": 876,
    "notused": 24,
    "detail": "SEARCH lix_internal_state_cache_v1_test_bench_diff_entity USING INDEX idx_lix_internal_state_cache_v1_test_bench_diff_entity_live_vfe (version_id=?)"
  },
  {
    "id": 904,
    "parent": 876,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 923,
    "parent": 405,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 925,
    "parent": 923,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 926,
    "parent": 925,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 936,
    "parent": 923,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 941,
    "parent": 923,
    "notused": 61,
    "detail": "SEARCH unt USING INDEX idx_lix_internal_state_all_untracked_version_id (version_id=?)"
  },
  {
    "id": 954,
    "parent": 923,
    "notused": 0,
    "detail": "BLOOM FILTER ON wv_vi (version_id=?)"
  },
  {
    "id": 966,
    "parent": 923,
    "notused": 53,
    "detail": "SEARCH wv_vi USING AUTOMATIC PARTIAL COVERING INDEX (version_id=?)"
  },
  {
    "id": 988,
    "parent": 51,
    "notused": 263,
    "detail": "SCAN c"
  },
  {
    "id": 1020,
    "parent": 51,
    "notused": 0,
    "detail": "USE TEMP B-TREE FOR ORDER BY"
  },
  {
    "id": 1053,
    "parent": 50,
    "notused": 243,
    "detail": "SCAN (subquery-72)"
  },
  {
    "id": 1123,
    "parent": 10,
    "notused": 0,
    "detail": "MATERIALIZE w"
  },
  {
    "id": 1126,
    "parent": 1123,
    "notused": 0,
    "detail": "CO-ROUTINE (subquery-93)"
  },
  {
    "id": 1128,
    "parent": 1126,
    "notused": 0,
    "detail": "CO-ROUTINE c"
  },
  {
    "id": 1129,
    "parent": 1128,
    "notused": 0,
    "detail": "COMPOUND QUERY"
  },
  {
    "id": 1130,
    "parent": 1129,
    "notused": 0,
    "detail": "LEFT-MOST SUBQUERY"
  },
  {
    "id": 1133,
    "parent": 1130,
    "notused": 0,
    "detail": "MATERIALIZE wanted_versions"
  },
  {
    "id": 1135,
    "parent": 1133,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 1145,
    "parent": 1130,
    "notused": 16,
    "detail": "SCAN wv_unt"
  },
  {
    "id": 1151,
    "parent": 1130,
    "notused": 61,
    "detail": "SEARCH unt USING INDEX idx_lix_internal_state_all_untracked_version_id (version_id=?)"
  },
  {
    "id": 1169,
    "parent": 1129,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1170,
    "parent": 1169,
    "notused": 0,
    "detail": "COMPOUND QUERY"
  },
  {
    "id": 1171,
    "parent": 1170,
    "notused": 0,
    "detail": "LEFT-MOST SUBQUERY"
  },
  {
    "id": 1176,
    "parent": 1171,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 1182,
    "parent": 1171,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_version_descriptor USING INDEX idx_lix_internal_state_cache_v1_lix_version_descriptor_pk_version_id_json_extract_snapsho_file_id_b2i1mo (version_id=?)"
  },
  {
    "id": 1203,
    "parent": 1170,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1208,
    "parent": 1203,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 1214,
    "parent": 1203,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_stored_schema USING INDEX idx_lix_internal_state_cache_v1_lix_stored_schema_pk_version_id_json_extract_snapsho_json_extract_snapsho_file_id_l1xg3a (version_id=?)"
  },
  {
    "id": 1235,
    "parent": 1170,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1240,
    "parent": 1235,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 1246,
    "parent": 1235,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_key_value USING INDEX idx_lix_internal_state_cache_v1_lix_key_value_pk_version_id_json_extract_snapsho_file_id_b2i1mo (version_id=?)"
  },
  {
    "id": 1267,
    "parent": 1170,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1272,
    "parent": 1267,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 1278,
    "parent": 1267,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_active_account USING INDEX idx_lix_internal_state_cache_v1_lix_active_account_foreign_version_id_inherited_from_versi_json_extract_snapsho_file_id_76oyad (version_id=?)"
  },
  {
    "id": 1299,
    "parent": 1170,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1304,
    "parent": 1299,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 1310,
    "parent": 1299,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_commit USING INDEX idx_lix_internal_state_cache_v1_lix_commit_pk_version_id_json_extract_snapsho_file_id_b2i1mo (version_id=?)"
  },
  {
    "id": 1331,
    "parent": 1170,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1336,
    "parent": 1331,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 1342,
    "parent": 1331,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_commit_edge USING INDEX idx_lix_internal_state_cache_v1_lix_commit_edge_foreign_version_id_inherited_from_versi_json_extract_snapsho_file_id_76oyad (version_id=?)"
  },
  {
    "id": 1363,
    "parent": 1170,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1368,
    "parent": 1363,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 1374,
    "parent": 1363,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_version_tip USING INDEX idx_lix_internal_state_cache_v1_lix_version_tip_unique_version_id_json_extract_snapsho_file_id_b04j56 (version_id=?)"
  },
  {
    "id": 1395,
    "parent": 1170,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1400,
    "parent": 1395,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 1406,
    "parent": 1395,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_change_set USING INDEX idx_lix_internal_state_cache_v1_lix_change_set_pk_version_id_json_extract_snapsho_file_id_b2i1mo (version_id=?)"
  },
  {
    "id": 1427,
    "parent": 1170,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1432,
    "parent": 1427,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 1438,
    "parent": 1427,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_change_set_element USING INDEX idx_lix_internal_state_cache_v1_lix_change_set_element_foreign_version_id_inherited_from_versi_json_extract_snapsho_file_id_76oyad (version_id=?)"
  },
  {
    "id": 1459,
    "parent": 1170,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1464,
    "parent": 1459,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 1470,
    "parent": 1459,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_label USING INDEX idx_lix_internal_state_cache_v1_lix_label_pk_version_id_json_extract_snapsho_file_id_b2i1mo (version_id=?)"
  },
  {
    "id": 1491,
    "parent": 1170,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1496,
    "parent": 1491,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 1502,
    "parent": 1491,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_test_bench_diff_entity USING INDEX idx_lix_internal_state_cache_v1_test_bench_diff_entity_ve (version_id=?)"
  },
  {
    "id": 1523,
    "parent": 1170,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1524,
    "parent": 1523,
    "notused": 0,
    "detail": "COMPOUND QUERY"
  },
  {
    "id": 1525,
    "parent": 1524,
    "notused": 0,
    "detail": "LEFT-MOST SUBQUERY"
  },
  {
    "id": 1527,
    "parent": 1525,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 1528,
    "parent": 1527,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 1538,
    "parent": 1525,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 1543,
    "parent": 1525,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_version_descriptor USING INDEX idx_lix_internal_state_cache_v1_lix_version_descriptor_live_vfe (version_id=?)"
  },
  {
    "id": 1553,
    "parent": 1525,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 1572,
    "parent": 1524,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1574,
    "parent": 1572,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 1575,
    "parent": 1574,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 1585,
    "parent": 1572,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 1590,
    "parent": 1572,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_stored_schema USING INDEX idx_lix_internal_state_cache_v1_lix_stored_schema_live_vfe (version_id=?)"
  },
  {
    "id": 1600,
    "parent": 1572,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 1619,
    "parent": 1524,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1621,
    "parent": 1619,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 1622,
    "parent": 1621,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 1632,
    "parent": 1619,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 1637,
    "parent": 1619,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_key_value USING INDEX idx_lix_internal_state_cache_v1_lix_key_value_live_vfe (version_id=?)"
  },
  {
    "id": 1647,
    "parent": 1619,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 1666,
    "parent": 1524,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1668,
    "parent": 1666,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 1669,
    "parent": 1668,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 1679,
    "parent": 1666,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 1684,
    "parent": 1666,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_active_account USING INDEX idx_lix_internal_state_cache_v1_lix_active_account_live_vfe (version_id=?)"
  },
  {
    "id": 1694,
    "parent": 1666,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 1713,
    "parent": 1524,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1715,
    "parent": 1713,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 1716,
    "parent": 1715,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 1726,
    "parent": 1713,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 1731,
    "parent": 1713,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_commit USING INDEX idx_lix_internal_state_cache_v1_lix_commit_live_vfe (version_id=?)"
  },
  {
    "id": 1741,
    "parent": 1713,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 1760,
    "parent": 1524,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1762,
    "parent": 1760,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 1763,
    "parent": 1762,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 1773,
    "parent": 1760,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 1778,
    "parent": 1760,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_commit_edge USING INDEX idx_lix_internal_state_cache_v1_lix_commit_edge_live_vfe (version_id=?)"
  },
  {
    "id": 1788,
    "parent": 1760,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 1807,
    "parent": 1524,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1809,
    "parent": 1807,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 1810,
    "parent": 1809,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 1820,
    "parent": 1807,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 1825,
    "parent": 1807,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_version_tip USING INDEX idx_lix_internal_state_cache_v1_lix_version_tip_live_vfe (version_id=?)"
  },
  {
    "id": 1835,
    "parent": 1807,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 1854,
    "parent": 1524,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1856,
    "parent": 1854,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 1857,
    "parent": 1856,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 1867,
    "parent": 1854,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 1872,
    "parent": 1854,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_change_set USING INDEX idx_lix_internal_state_cache_v1_lix_change_set_live_vfe (version_id=?)"
  },
  {
    "id": 1882,
    "parent": 1854,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 1901,
    "parent": 1524,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1903,
    "parent": 1901,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 1904,
    "parent": 1903,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 1914,
    "parent": 1901,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 1919,
    "parent": 1901,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_change_set_element USING INDEX idx_lix_internal_state_cache_v1_lix_change_set_element_live_vfe (version_id=?)"
  },
  {
    "id": 1929,
    "parent": 1901,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 1948,
    "parent": 1524,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1950,
    "parent": 1948,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 1951,
    "parent": 1950,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 1961,
    "parent": 1948,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 1966,
    "parent": 1948,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_label USING INDEX idx_lix_internal_state_cache_v1_lix_label_live_vfe (version_id=?)"
  },
  {
    "id": 1976,
    "parent": 1948,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 1995,
    "parent": 1524,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 1997,
    "parent": 1995,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 1998,
    "parent": 1997,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 2008,
    "parent": 1995,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 2013,
    "parent": 1995,
    "notused": 24,
    "detail": "SEARCH lix_internal_state_cache_v1_test_bench_diff_entity USING INDEX idx_lix_internal_state_cache_v1_test_bench_diff_entity_live_vfe (version_id=?)"
  },
  {
    "id": 2023,
    "parent": 1995,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 2042,
    "parent": 1524,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 2044,
    "parent": 2042,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 2045,
    "parent": 2044,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 2055,
    "parent": 2042,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 2060,
    "parent": 2042,
    "notused": 61,
    "detail": "SEARCH unt USING INDEX idx_lix_internal_state_all_untracked_version_id (version_id=?)"
  },
  {
    "id": 2073,
    "parent": 2042,
    "notused": 0,
    "detail": "BLOOM FILTER ON wv_vi (version_id=?)"
  },
  {
    "id": 2085,
    "parent": 2042,
    "notused": 53,
    "detail": "SEARCH wv_vi USING AUTOMATIC PARTIAL COVERING INDEX (version_id=?)"
  },
  {
    "id": 2107,
    "parent": 1170,
    "notused": 263,
    "detail": "SCAN c"
  },
  {
    "id": 2139,
    "parent": 1170,
    "notused": 0,
    "detail": "USE TEMP B-TREE FOR ORDER BY"
  },
  {
    "id": 2173,
    "parent": 1169,
    "notused": 243,
    "detail": "SCAN (subquery-93)"
  },
  {
    "id": 2243,
    "parent": 1129,
    "notused": 243,
    "detail": "SCAN w"
  },
  {
    "id": 2254,
    "parent": 1129,
    "notused": 0,
    "detail": "BLOOM FILTER ON w (rn=? AND version_id=? AND entity_id=? AND schema_key=? AND file_id=?)"
  },
  {
    "id": 2280,
    "parent": 1129,
    "notused": 54,
    "detail": "SEARCH w USING AUTOMATIC PARTIAL COVERING INDEX (rn=? AND version_id=? AND entity_id=? AND schema_key=? AND file_id=?) LEFT-JOIN"
  },
  {
    "id": 2366,
    "parent": 1128,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 2368,
    "parent": 2366,
    "notused": 0,
    "detail": "CO-ROUTINE w"
  },
  {
    "id": 2371,
    "parent": 2368,
    "notused": 0,
    "detail": "CO-ROUTINE (subquery-114)"
  },
  {
    "id": 2373,
    "parent": 2371,
    "notused": 0,
    "detail": "CO-ROUTINE c"
  },
  {
    "id": 2374,
    "parent": 2373,
    "notused": 0,
    "detail": "COMPOUND QUERY"
  },
  {
    "id": 2375,
    "parent": 2374,
    "notused": 0,
    "detail": "LEFT-MOST SUBQUERY"
  },
  {
    "id": 2378,
    "parent": 2375,
    "notused": 0,
    "detail": "MATERIALIZE wanted_versions"
  },
  {
    "id": 2380,
    "parent": 2378,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 2390,
    "parent": 2375,
    "notused": 16,
    "detail": "SCAN wv_unt"
  },
  {
    "id": 2396,
    "parent": 2375,
    "notused": 61,
    "detail": "SEARCH unt USING INDEX idx_lix_internal_state_all_untracked_version_id (version_id=?)"
  },
  {
    "id": 2414,
    "parent": 2374,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 2415,
    "parent": 2414,
    "notused": 0,
    "detail": "COMPOUND QUERY"
  },
  {
    "id": 2416,
    "parent": 2415,
    "notused": 0,
    "detail": "LEFT-MOST SUBQUERY"
  },
  {
    "id": 2421,
    "parent": 2416,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 2427,
    "parent": 2416,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_version_descriptor USING INDEX idx_lix_internal_state_cache_v1_lix_version_descriptor_pk_version_id_json_extract_snapsho_file_id_b2i1mo (version_id=?)"
  },
  {
    "id": 2448,
    "parent": 2415,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 2453,
    "parent": 2448,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 2459,
    "parent": 2448,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_stored_schema USING INDEX idx_lix_internal_state_cache_v1_lix_stored_schema_pk_version_id_json_extract_snapsho_json_extract_snapsho_file_id_l1xg3a (version_id=?)"
  },
  {
    "id": 2480,
    "parent": 2415,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 2485,
    "parent": 2480,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 2491,
    "parent": 2480,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_key_value USING INDEX idx_lix_internal_state_cache_v1_lix_key_value_pk_version_id_json_extract_snapsho_file_id_b2i1mo (version_id=?)"
  },
  {
    "id": 2512,
    "parent": 2415,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 2517,
    "parent": 2512,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 2523,
    "parent": 2512,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_active_account USING INDEX idx_lix_internal_state_cache_v1_lix_active_account_foreign_version_id_inherited_from_versi_json_extract_snapsho_file_id_76oyad (version_id=?)"
  },
  {
    "id": 2544,
    "parent": 2415,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 2549,
    "parent": 2544,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 2555,
    "parent": 2544,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_commit USING INDEX idx_lix_internal_state_cache_v1_lix_commit_pk_version_id_json_extract_snapsho_file_id_b2i1mo (version_id=?)"
  },
  {
    "id": 2576,
    "parent": 2415,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 2581,
    "parent": 2576,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 2587,
    "parent": 2576,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_commit_edge USING INDEX idx_lix_internal_state_cache_v1_lix_commit_edge_foreign_version_id_inherited_from_versi_json_extract_snapsho_file_id_76oyad (version_id=?)"
  },
  {
    "id": 2608,
    "parent": 2415,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 2613,
    "parent": 2608,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 2619,
    "parent": 2608,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_version_tip USING INDEX idx_lix_internal_state_cache_v1_lix_version_tip_unique_version_id_json_extract_snapsho_file_id_b04j56 (version_id=?)"
  },
  {
    "id": 2640,
    "parent": 2415,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 2645,
    "parent": 2640,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 2651,
    "parent": 2640,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_change_set USING INDEX idx_lix_internal_state_cache_v1_lix_change_set_pk_version_id_json_extract_snapsho_file_id_b2i1mo (version_id=?)"
  },
  {
    "id": 2672,
    "parent": 2415,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 2677,
    "parent": 2672,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 2683,
    "parent": 2672,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_change_set_element USING INDEX idx_lix_internal_state_cache_v1_lix_change_set_element_foreign_version_id_inherited_from_versi_json_extract_snapsho_file_id_76oyad (version_id=?)"
  },
  {
    "id": 2704,
    "parent": 2415,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 2709,
    "parent": 2704,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 2715,
    "parent": 2704,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_label USING INDEX idx_lix_internal_state_cache_v1_lix_label_pk_version_id_json_extract_snapsho_file_id_b2i1mo (version_id=?)"
  },
  {
    "id": 2736,
    "parent": 2415,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 2741,
    "parent": 2736,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 2747,
    "parent": 2736,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_test_bench_diff_entity USING INDEX idx_lix_internal_state_cache_v1_test_bench_diff_entity_ve (version_id=?)"
  },
  {
    "id": 2768,
    "parent": 2415,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 2769,
    "parent": 2768,
    "notused": 0,
    "detail": "COMPOUND QUERY"
  },
  {
    "id": 2770,
    "parent": 2769,
    "notused": 0,
    "detail": "LEFT-MOST SUBQUERY"
  },
  {
    "id": 2772,
    "parent": 2770,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 2773,
    "parent": 2772,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 2783,
    "parent": 2770,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 2788,
    "parent": 2770,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_version_descriptor USING INDEX idx_lix_internal_state_cache_v1_lix_version_descriptor_live_vfe (version_id=?)"
  },
  {
    "id": 2798,
    "parent": 2770,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 2817,
    "parent": 2769,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 2819,
    "parent": 2817,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 2820,
    "parent": 2819,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 2830,
    "parent": 2817,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 2835,
    "parent": 2817,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_stored_schema USING INDEX idx_lix_internal_state_cache_v1_lix_stored_schema_live_vfe (version_id=?)"
  },
  {
    "id": 2845,
    "parent": 2817,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 2864,
    "parent": 2769,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 2866,
    "parent": 2864,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 2867,
    "parent": 2866,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 2877,
    "parent": 2864,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 2882,
    "parent": 2864,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_key_value USING INDEX idx_lix_internal_state_cache_v1_lix_key_value_live_vfe (version_id=?)"
  },
  {
    "id": 2892,
    "parent": 2864,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 2911,
    "parent": 2769,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 2913,
    "parent": 2911,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 2914,
    "parent": 2913,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 2924,
    "parent": 2911,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 2929,
    "parent": 2911,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_active_account USING INDEX idx_lix_internal_state_cache_v1_lix_active_account_live_vfe (version_id=?)"
  },
  {
    "id": 2939,
    "parent": 2911,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 2958,
    "parent": 2769,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 2960,
    "parent": 2958,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 2961,
    "parent": 2960,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 2971,
    "parent": 2958,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 2976,
    "parent": 2958,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_commit USING INDEX idx_lix_internal_state_cache_v1_lix_commit_live_vfe (version_id=?)"
  },
  {
    "id": 2986,
    "parent": 2958,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 3005,
    "parent": 2769,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 3007,
    "parent": 3005,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 3008,
    "parent": 3007,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 3018,
    "parent": 3005,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 3023,
    "parent": 3005,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_commit_edge USING INDEX idx_lix_internal_state_cache_v1_lix_commit_edge_live_vfe (version_id=?)"
  },
  {
    "id": 3033,
    "parent": 3005,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 3052,
    "parent": 2769,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 3054,
    "parent": 3052,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 3055,
    "parent": 3054,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 3065,
    "parent": 3052,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 3070,
    "parent": 3052,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_version_tip USING INDEX idx_lix_internal_state_cache_v1_lix_version_tip_live_vfe (version_id=?)"
  },
  {
    "id": 3080,
    "parent": 3052,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 3099,
    "parent": 2769,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 3101,
    "parent": 3099,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 3102,
    "parent": 3101,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 3112,
    "parent": 3099,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 3117,
    "parent": 3099,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_change_set USING INDEX idx_lix_internal_state_cache_v1_lix_change_set_live_vfe (version_id=?)"
  },
  {
    "id": 3127,
    "parent": 3099,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 3146,
    "parent": 2769,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 3148,
    "parent": 3146,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 3149,
    "parent": 3148,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 3159,
    "parent": 3146,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 3164,
    "parent": 3146,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_change_set_element USING INDEX idx_lix_internal_state_cache_v1_lix_change_set_element_live_vfe (version_id=?)"
  },
  {
    "id": 3174,
    "parent": 3146,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 3193,
    "parent": 2769,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 3195,
    "parent": 3193,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 3196,
    "parent": 3195,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 3206,
    "parent": 3193,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 3211,
    "parent": 3193,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_label USING INDEX idx_lix_internal_state_cache_v1_lix_label_live_vfe (version_id=?)"
  },
  {
    "id": 3221,
    "parent": 3193,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 3240,
    "parent": 2769,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 3242,
    "parent": 3240,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 3243,
    "parent": 3242,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 3253,
    "parent": 3240,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 3258,
    "parent": 3240,
    "notused": 24,
    "detail": "SEARCH lix_internal_state_cache_v1_test_bench_diff_entity USING INDEX idx_lix_internal_state_cache_v1_test_bench_diff_entity_live_vfe (version_id=?)"
  },
  {
    "id": 3268,
    "parent": 3240,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 3287,
    "parent": 2769,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 3289,
    "parent": 3287,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 3290,
    "parent": 3289,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 3300,
    "parent": 3287,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 3305,
    "parent": 3287,
    "notused": 61,
    "detail": "SEARCH unt USING INDEX idx_lix_internal_state_all_untracked_version_id (version_id=?)"
  },
  {
    "id": 3318,
    "parent": 3287,
    "notused": 0,
    "detail": "BLOOM FILTER ON wv_vi (version_id=?)"
  },
  {
    "id": 3330,
    "parent": 3287,
    "notused": 53,
    "detail": "SEARCH wv_vi USING AUTOMATIC PARTIAL COVERING INDEX (version_id=?)"
  },
  {
    "id": 3352,
    "parent": 2415,
    "notused": 263,
    "detail": "SCAN c"
  },
  {
    "id": 3384,
    "parent": 2415,
    "notused": 0,
    "detail": "USE TEMP B-TREE FOR ORDER BY"
  },
  {
    "id": 3417,
    "parent": 2414,
    "notused": 243,
    "detail": "SCAN (subquery-114)"
  },
  {
    "id": 3487,
    "parent": 2374,
    "notused": 0,
    "detail": "MATERIALIZE w"
  },
  {
    "id": 3490,
    "parent": 3487,
    "notused": 0,
    "detail": "CO-ROUTINE (subquery-135)"
  },
  {
    "id": 3492,
    "parent": 3490,
    "notused": 0,
    "detail": "CO-ROUTINE c"
  },
  {
    "id": 3493,
    "parent": 3492,
    "notused": 0,
    "detail": "COMPOUND QUERY"
  },
  {
    "id": 3494,
    "parent": 3493,
    "notused": 0,
    "detail": "LEFT-MOST SUBQUERY"
  },
  {
    "id": 3497,
    "parent": 3494,
    "notused": 0,
    "detail": "MATERIALIZE wanted_versions"
  },
  {
    "id": 3499,
    "parent": 3497,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 3509,
    "parent": 3494,
    "notused": 16,
    "detail": "SCAN wv_unt"
  },
  {
    "id": 3515,
    "parent": 3494,
    "notused": 61,
    "detail": "SEARCH unt USING INDEX idx_lix_internal_state_all_untracked_version_id (version_id=?)"
  },
  {
    "id": 3533,
    "parent": 3493,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 3534,
    "parent": 3533,
    "notused": 0,
    "detail": "COMPOUND QUERY"
  },
  {
    "id": 3535,
    "parent": 3534,
    "notused": 0,
    "detail": "LEFT-MOST SUBQUERY"
  },
  {
    "id": 3540,
    "parent": 3535,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 3546,
    "parent": 3535,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_version_descriptor USING INDEX idx_lix_internal_state_cache_v1_lix_version_descriptor_pk_version_id_json_extract_snapsho_file_id_b2i1mo (version_id=?)"
  },
  {
    "id": 3567,
    "parent": 3534,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 3572,
    "parent": 3567,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 3578,
    "parent": 3567,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_stored_schema USING INDEX idx_lix_internal_state_cache_v1_lix_stored_schema_pk_version_id_json_extract_snapsho_json_extract_snapsho_file_id_l1xg3a (version_id=?)"
  },
  {
    "id": 3599,
    "parent": 3534,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 3604,
    "parent": 3599,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 3610,
    "parent": 3599,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_key_value USING INDEX idx_lix_internal_state_cache_v1_lix_key_value_pk_version_id_json_extract_snapsho_file_id_b2i1mo (version_id=?)"
  },
  {
    "id": 3631,
    "parent": 3534,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 3636,
    "parent": 3631,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 3642,
    "parent": 3631,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_active_account USING INDEX idx_lix_internal_state_cache_v1_lix_active_account_foreign_version_id_inherited_from_versi_json_extract_snapsho_file_id_76oyad (version_id=?)"
  },
  {
    "id": 3663,
    "parent": 3534,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 3668,
    "parent": 3663,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 3674,
    "parent": 3663,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_commit USING INDEX idx_lix_internal_state_cache_v1_lix_commit_pk_version_id_json_extract_snapsho_file_id_b2i1mo (version_id=?)"
  },
  {
    "id": 3695,
    "parent": 3534,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 3700,
    "parent": 3695,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 3706,
    "parent": 3695,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_commit_edge USING INDEX idx_lix_internal_state_cache_v1_lix_commit_edge_foreign_version_id_inherited_from_versi_json_extract_snapsho_file_id_76oyad (version_id=?)"
  },
  {
    "id": 3727,
    "parent": 3534,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 3732,
    "parent": 3727,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 3738,
    "parent": 3727,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_version_tip USING INDEX idx_lix_internal_state_cache_v1_lix_version_tip_unique_version_id_json_extract_snapsho_file_id_b04j56 (version_id=?)"
  },
  {
    "id": 3759,
    "parent": 3534,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 3764,
    "parent": 3759,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 3770,
    "parent": 3759,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_change_set USING INDEX idx_lix_internal_state_cache_v1_lix_change_set_pk_version_id_json_extract_snapsho_file_id_b2i1mo (version_id=?)"
  },
  {
    "id": 3791,
    "parent": 3534,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 3796,
    "parent": 3791,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 3802,
    "parent": 3791,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_change_set_element USING INDEX idx_lix_internal_state_cache_v1_lix_change_set_element_foreign_version_id_inherited_from_versi_json_extract_snapsho_file_id_76oyad (version_id=?)"
  },
  {
    "id": 3823,
    "parent": 3534,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 3828,
    "parent": 3823,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 3834,
    "parent": 3823,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_label USING INDEX idx_lix_internal_state_cache_v1_lix_label_pk_version_id_json_extract_snapsho_file_id_b2i1mo (version_id=?)"
  },
  {
    "id": 3855,
    "parent": 3534,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 3860,
    "parent": 3855,
    "notused": 216,
    "detail": "SCAN wv_cache"
  },
  {
    "id": 3866,
    "parent": 3855,
    "notused": 62,
    "detail": "SEARCH lix_internal_state_cache_v1_test_bench_diff_entity USING INDEX idx_lix_internal_state_cache_v1_test_bench_diff_entity_ve (version_id=?)"
  },
  {
    "id": 3887,
    "parent": 3534,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 3888,
    "parent": 3887,
    "notused": 0,
    "detail": "COMPOUND QUERY"
  },
  {
    "id": 3889,
    "parent": 3888,
    "notused": 0,
    "detail": "LEFT-MOST SUBQUERY"
  },
  {
    "id": 3891,
    "parent": 3889,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 3892,
    "parent": 3891,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 3902,
    "parent": 3889,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 3907,
    "parent": 3889,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_version_descriptor USING INDEX idx_lix_internal_state_cache_v1_lix_version_descriptor_live_vfe (version_id=?)"
  },
  {
    "id": 3917,
    "parent": 3889,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 3936,
    "parent": 3888,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 3938,
    "parent": 3936,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 3939,
    "parent": 3938,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 3949,
    "parent": 3936,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 3954,
    "parent": 3936,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_stored_schema USING INDEX idx_lix_internal_state_cache_v1_lix_stored_schema_live_vfe (version_id=?)"
  },
  {
    "id": 3964,
    "parent": 3936,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 3983,
    "parent": 3888,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 3985,
    "parent": 3983,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 3986,
    "parent": 3985,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 3996,
    "parent": 3983,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 4001,
    "parent": 3983,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_key_value USING INDEX idx_lix_internal_state_cache_v1_lix_key_value_live_vfe (version_id=?)"
  },
  {
    "id": 4011,
    "parent": 3983,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 4030,
    "parent": 3888,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 4032,
    "parent": 4030,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 4033,
    "parent": 4032,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 4043,
    "parent": 4030,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 4048,
    "parent": 4030,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_active_account USING INDEX idx_lix_internal_state_cache_v1_lix_active_account_live_vfe (version_id=?)"
  },
  {
    "id": 4058,
    "parent": 4030,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 4077,
    "parent": 3888,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 4079,
    "parent": 4077,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 4080,
    "parent": 4079,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 4090,
    "parent": 4077,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 4095,
    "parent": 4077,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_commit USING INDEX idx_lix_internal_state_cache_v1_lix_commit_live_vfe (version_id=?)"
  },
  {
    "id": 4105,
    "parent": 4077,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 4124,
    "parent": 3888,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 4126,
    "parent": 4124,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 4127,
    "parent": 4126,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 4137,
    "parent": 4124,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 4142,
    "parent": 4124,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_commit_edge USING INDEX idx_lix_internal_state_cache_v1_lix_commit_edge_live_vfe (version_id=?)"
  },
  {
    "id": 4152,
    "parent": 4124,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 4171,
    "parent": 3888,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 4173,
    "parent": 4171,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 4174,
    "parent": 4173,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 4184,
    "parent": 4171,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 4189,
    "parent": 4171,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_version_tip USING INDEX idx_lix_internal_state_cache_v1_lix_version_tip_live_vfe (version_id=?)"
  },
  {
    "id": 4199,
    "parent": 4171,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 4218,
    "parent": 3888,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 4220,
    "parent": 4218,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 4221,
    "parent": 4220,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 4231,
    "parent": 4218,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 4236,
    "parent": 4218,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_change_set USING INDEX idx_lix_internal_state_cache_v1_lix_change_set_live_vfe (version_id=?)"
  },
  {
    "id": 4246,
    "parent": 4218,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 4265,
    "parent": 3888,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 4267,
    "parent": 4265,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 4268,
    "parent": 4267,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 4278,
    "parent": 4265,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 4283,
    "parent": 4265,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_change_set_element USING INDEX idx_lix_internal_state_cache_v1_lix_change_set_element_live_vfe (version_id=?)"
  },
  {
    "id": 4293,
    "parent": 4265,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 4312,
    "parent": 3888,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 4314,
    "parent": 4312,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 4315,
    "parent": 4314,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 4325,
    "parent": 4312,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 4330,
    "parent": 4312,
    "notused": 27,
    "detail": "SEARCH lix_internal_state_cache_v1_lix_label USING INDEX idx_lix_internal_state_cache_v1_lix_label_live_vfe (version_id=?)"
  },
  {
    "id": 4340,
    "parent": 4312,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 4359,
    "parent": 3888,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 4361,
    "parent": 4359,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 4362,
    "parent": 4361,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 4372,
    "parent": 4359,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 4377,
    "parent": 4359,
    "notused": 24,
    "detail": "SEARCH lix_internal_state_cache_v1_test_bench_diff_entity USING INDEX idx_lix_internal_state_cache_v1_test_bench_diff_entity_live_vfe (version_id=?)"
  },
  {
    "id": 4387,
    "parent": 4359,
    "notused": 216,
    "detail": "SCAN wv_vi"
  },
  {
    "id": 4406,
    "parent": 3888,
    "notused": 0,
    "detail": "UNION ALL"
  },
  {
    "id": 4408,
    "parent": 4406,
    "notused": 0,
    "detail": "CO-ROUTINE vi"
  },
  {
    "id": 4409,
    "parent": 4408,
    "notused": 0,
    "detail": "SCAN CONSTANT ROW"
  },
  {
    "id": 4419,
    "parent": 4406,
    "notused": 16,
    "detail": "SCAN vi"
  },
  {
    "id": 4424,
    "parent": 4406,
    "notused": 61,
    "detail": "SEARCH unt USING INDEX idx_lix_internal_state_all_untracked_version_id (version_id=?)"
  },
  {
    "id": 4437,
    "parent": 4406,
    "notused": 0,
    "detail": "BLOOM FILTER ON wv_vi (version_id=?)"
  },
  {
    "id": 4449,
    "parent": 4406,
    "notused": 53,
    "detail": "SEARCH wv_vi USING AUTOMATIC PARTIAL COVERING INDEX (version_id=?)"
  },
  {
    "id": 4471,
    "parent": 3534,
    "notused": 263,
    "detail": "SCAN c"
  },
  {
    "id": 4503,
    "parent": 3534,
    "notused": 0,
    "detail": "USE TEMP B-TREE FOR ORDER BY"
  },
  {
    "id": 4537,
    "parent": 3533,
    "notused": 243,
    "detail": "SCAN (subquery-135)"
  },
  {
    "id": 4607,
    "parent": 3493,
    "notused": 243,
    "detail": "SCAN w"
  },
  {
    "id": 4620,
    "parent": 3493,
    "notused": 0,
    "detail": "BLOOM FILTER ON w (rn=? AND version_id=? AND entity_id=? AND schema_key=? AND file_id=?)"
  },
  {
    "id": 4644,
    "parent": 3493,
    "notused": 54,
    "detail": "SEARCH w USING AUTOMATIC PARTIAL COVERING INDEX (rn=? AND version_id=? AND entity_id=? AND schema_key=? AND file_id=?) LEFT-JOIN"
  }
]