{
  "format": "dataset-manifest/1",
  "slug": "insurance-management",
  "version": 1,
  "seed": "insurance-management:1",
  "spec": {
    "format": "dataset/1",
    "slug": "insurance-management",
    "name": "Insurance Transactions Overview",
    "tagline": "Insurance policies, claims, transactions, and policyholder data from various insurance operations.",
    "description": "Insurance companies manage risks through policies that protect clients. Policies are created by agents and underwriters who assess the necessary coverages based on client needs. Once a policy is active, clients may file claims when covered events occur. This dataset captures the interactions between policyholders, agents, and the transactions associated with policies and claims. The tables represent policies, claims, transactions, and payment methods, allowing users to analyze the relationships and flows of information within the insurance process. Users can explore trends in claims, understand which policies are most frequently claimed against, and evaluate payment methods to optimize operations. This synthetic dataset is designed for SQL practice, ORM seeding, and provides a comprehensive view of insurance transactions.",
    "domain": "insurance",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "insurance",
      "policies",
      "claims",
      "transactions",
      "payments",
      "agents",
      "underwriters"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "policies": {
        "description": "Each row represents an insurance policy held by a policyholder. It links to policyholders and contains details about the policy's coverage and status.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the policy."
          },
          "policyholder_id": {
            "kind": "fk",
            "ref": "policyholders.id",
            "description": "Reference to the policyholder."
          },
          "coverage_type": {
            "kind": "enum",
            "values": [
              "Life",
              "Health",
              "Auto",
              "Home",
              "Travel"
            ],
            "description": "Type of coverage provided by the policy."
          },
          "status": {
            "kind": "enum",
            "values": [
              "Active",
              "Expired",
              "Cancelled"
            ],
            "description": "Current status of the policy."
          },
          "start_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the policy becomes effective.",
            "trend": "growing"
          },
          "end_date": {
            "kind": "date",
            "from": "2021-01-01",
            "to": "2024-12-31",
            "description": "Date when the policy ends.",
            "trend": "growing"
          }
        }
      },
      "claims": {
        "description": "Each row captures a claim filed by a policyholder, detailing the event and its outcome. It links to both policies and payment transactions.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the claim."
          },
          "policy_id": {
            "kind": "fk",
            "ref": "policies.id",
            "description": "Reference to the associated policy."
          },
          "claim_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the claim was filed.",
            "trend": "seasonal"
          },
          "amount_claimed": {
            "kind": "decimal",
            "min": 100,
            "max": 100000,
            "scale": 2,
            "description": "Total amount claimed by the policyholder."
          },
          "status": {
            "kind": "enum",
            "values": [
              "Pending",
              "Approved",
              "Denied"
            ],
            "description": "Current status of the claim."
          }
        }
      },
      "transactions": {
        "description": "This table records all payment transactions made for policies and claims. Each transaction links to either a policy or a claim.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the transaction."
          },
          "claim_id": {
            "kind": "fk",
            "ref": "claims.id",
            "nullable": true,
            "description": "Reference to the claim if the transaction is related to a claim."
          },
          "policy_id": {
            "kind": "fk",
            "ref": "policies.id",
            "nullable": true,
            "description": "Reference to the policy if the transaction is related to a policy."
          },
          "transaction_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the transaction occurred.",
            "trend": "growing"
          },
          "amount": {
            "kind": "decimal",
            "min": 50,
            "max": 20000,
            "scale": 2,
            "description": "Amount of money involved in the transaction."
          },
          "payment_method": {
            "kind": "enum",
            "values": [
              "Credit Card",
              "Bank Transfer",
              "Cash",
              "Cheque"
            ],
            "description": "Payment method used for the transaction."
          }
        }
      },
      "policyholders": {
        "description": "This table holds information about policyholders, linking them to their respective policies and claims.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the policyholder."
          },
          "full_name": {
            "kind": "fullName",
            "description": "Full name of the policyholder."
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "Email address of the policyholder."
          },
          "phone": {
            "kind": "phone",
            "description": "Contact number for the policyholder."
          },
          "date_of_birth": {
            "kind": "date",
            "from": "1950-01-01",
            "to": "2000-12-31",
            "description": "Date of birth of the policyholder."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "timestamped",
      "monetary"
    ],
    "analysisQuestions": [
      "What types of policies are most frequently claimed against?",
      "How do payment methods vary across different policy types?",
      "Which claims have the highest amounts claimed and what are their statuses?",
      "What trends can be identified in policyholder demographics?"
    ],
    "suggestedQueries": [
      {
        "title": "Join policies with claims",
        "sql": "SELECT policies.id, policies.coverage_type, claims.amount_claimed FROM policies JOIN claims ON policies.id = claims.policy_id;",
        "dialect": "postgres"
      },
      {
        "title": "Total claims by policy type",
        "sql": "SELECT policies.coverage_type, COUNT(claims.id) AS claim_count FROM policies LEFT JOIN claims ON policies.id = claims.policy_id GROUP BY policies.coverage_type;",
        "dialect": "postgres"
      },
      {
        "title": "Average transaction amount by payment method",
        "sql": "SELECT payment_method, AVG(amount) AS average_amount FROM transactions GROUP BY payment_method;",
        "dialect": "postgres"
      },
      {
        "title": "Claims over time",
        "sql": "SELECT DATE_TRUNC('month', claim_date) AS month, COUNT(*) AS claim_count FROM claims GROUP BY month ORDER BY month;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Insurance Analyst",
        "body": "An insurance analyst can utilize this dataset to identify trends in claims across different policy types, helping to assess risk and inform future policy design. By analyzing the claims data, they can develop insights into which policies are more prone to claims and adjust underwriting criteria accordingly."
      },
      {
        "title": "Data Engineer",
        "body": "A data engineer can use this dataset to seed a database for an insurance management application. By populating the database with realistic data, they can test the application's functionality and optimize the data flow between policies, claims, and transactions."
      },
      {
        "title": "Business Intelligence Developer",
        "body": "A BI developer may work with this dataset to create dashboards that visualize insurance transaction trends over time. They can present insights on payment methods and claim statuses, aiding decision-makers in understanding the operational efficiency of insurance practices."
      }
    ]
  },
  "counts": {
    "policyholders": 100,
    "policies": 200,
    "claims": 150,
    "transactions": 300
  },
  "stats": {
    "policies": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "policyholder_id": {
          "nulls": 0,
          "distinct": 85,
          "min": 1,
          "max": 100
        },
        "coverage_type": {
          "nulls": 0,
          "distinct": 5,
          "min": "Auto",
          "max": "Travel"
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "Active",
          "max": "Expired"
        },
        "start_date": {
          "nulls": 0,
          "distinct": 189,
          "min": "2020-01-07",
          "max": "2023-12-26"
        },
        "end_date": {
          "nulls": 0,
          "distinct": 183,
          "min": "2021-02-04",
          "max": "2024-12-11"
        }
      }
    },
    "claims": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "policy_id": {
          "nulls": 0,
          "distinct": 106,
          "min": 1,
          "max": 200
        },
        "claim_date": {
          "nulls": 0,
          "distinct": 142,
          "min": "2020-01-09",
          "max": "2023-12-21"
        },
        "amount_claimed": {
          "nulls": 0,
          "distinct": 150,
          "min": 1231.84,
          "max": 98182.44
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "Approved",
          "max": "Pending"
        }
      }
    },
    "transactions": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "claim_id": {
          "nulls": 22,
          "distinct": 125,
          "min": 1,
          "max": 150
        },
        "policy_id": {
          "nulls": 36,
          "distinct": 146,
          "min": 1,
          "max": 200
        },
        "transaction_date": {
          "nulls": 0,
          "distinct": 268,
          "min": "2020-01-08",
          "max": "2023-12-29"
        },
        "amount": {
          "nulls": 0,
          "distinct": 300,
          "min": 65.92,
          "max": 19853.38
        },
        "payment_method": {
          "nulls": 0,
          "distinct": 4,
          "min": "Bank Transfer",
          "max": "Credit Card"
        }
      }
    },
    "policyholders": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "full_name": {
          "nulls": 0,
          "distinct": 97,
          "min": "Amir Adams",
          "max": "Zara Kim"
        },
        "email": {
          "nulls": 0,
          "distinct": 99
        },
        "phone": {
          "nulls": 0,
          "distinct": 97
        },
        "date_of_birth": {
          "nulls": 0,
          "distinct": 100,
          "min": "1950-03-29",
          "max": "2000-07-08"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/policyholders.csv",
      "format": "csv",
      "table": "policyholders",
      "key": "datasets/insurance-management/v1/csv/policyholders.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-management/v1/csv/policyholders.csv",
      "bytes": 6738,
      "sha256": "7faeee7ae193c11c9547b78e3722982ca98f31d64b9f9124302003bac3e9da29",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/policies.csv",
      "format": "csv",
      "table": "policies",
      "key": "datasets/insurance-management/v1/csv/policies.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-management/v1/csv/policies.csv",
      "bytes": 8783,
      "sha256": "32d949774ef9c0a095abaa2f3844833806847be9335167d92ec03e59ea6b5b90",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/claims.csv",
      "format": "csv",
      "table": "claims",
      "key": "datasets/insurance-management/v1/csv/claims.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-management/v1/csv/claims.csv",
      "bytes": 5386,
      "sha256": "cd31ef4ad4b1f9793e160f568a5df521bf4f63ae6a996a83e41133e224c60e06",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/transactions.csv",
      "format": "csv",
      "table": "transactions",
      "key": "datasets/insurance-management/v1/csv/transactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-management/v1/csv/transactions.csv",
      "bytes": 12168,
      "sha256": "9de1c7c2a8ebe851a05e83c03a567b1669167c459e3217ed2719feced1ea4cad",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "insurance-management.json",
      "format": "json",
      "table": null,
      "key": "datasets/insurance-management/v1/insurance-management.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-management/v1/insurance-management.json",
      "bytes": 129189,
      "sha256": "1a0f51fcb858ee1b26fb5fda9463ff0d1f921535acd7ab69e1480da387ac2d70",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/insurance-management/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-management/v1/sql/postgres.sql",
      "bytes": 48011,
      "sha256": "0f372fd2d4c0b524d2f9cfe6f3ba3874885822dfcf8aabce35eed55f1de5e532",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/insurance-management/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-management/v1/sql/mysql.sql",
      "bytes": 47558,
      "sha256": "c5661ebb85bc907c5bdf97e1f6c6d20ce6f7069dd79841574a504b7e145ea4b5",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/insurance-management/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-management/v1/sql/mssql.sql",
      "bytes": 49923,
      "sha256": "efbd4645af61433cb87f5e71ad193168812fe3b828545130c1e8c3889910917a",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/insurance-management/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-management/v1/sql/sqlite.sql",
      "bytes": 47361,
      "sha256": "f22560bd86b9aebbdcd825b5b5531f9cd4fd901ff69472ff4f36b067d6a7233e",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/insurance-management/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-management/v1/prisma/seed.ts",
      "bytes": 100024,
      "sha256": "6c9c98d8c41c2da264b7a8648de1b00eca3ddf819f695bc0899c0769f71d24c5",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/insurance-management/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-management/v1/django/fixtures.json",
      "bytes": 161400,
      "sha256": "5305ca4570b6d9d70d4e0a894f3d95c64c46ddd61e15084f3d8829bce02d76b7",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768533655,
  "updatedAt": 1788768533655
}
