{
  "format": "dataset-manifest/1",
  "slug": "insurance-comparison-and-management-app",
  "version": 1,
  "seed": "insurance-comparison-and-management-app:1",
  "spec": {
    "format": "dataset/1",
    "slug": "insurance-comparison-and-management-app",
    "name": "Insurance Insights",
    "tagline": "Customer details, policy information, claims records, vehicle data, and health conditions from the insurance industry.",
    "description": "Insurance platforms connect customers with various policies, offering crucial information for comparison and management. This dataset models the interactions between customers, their insurance policies, claims processed, insured vehicles, and health conditions. Each table provides insights into different aspects of the insurance experience, allowing users to analyze policy details, customer feedback, and claims data. The relationships between these tables will enable developers to explore questions such as the correlation between policy types and the frequency of claims or how customer satisfaction varies across different health conditions and vehicle types. This synthetic dataset is designed for SQL practice and ORM seeding, providing a realistic yet manageable environment for developers to hone their skills.",
    "domain": "insurance",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "insurance",
      "policy",
      "customer",
      "claims",
      "vehicles",
      "health",
      "feedback",
      "discounts",
      "analytics"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "customers": {
        "description": "Each row represents a customer, linking to their policies and feedback. Customers provide essential context for the policies they hold.",
        "rows": 300,
        "columns": {
          "customer_id": {
            "kind": "pk",
            "description": "Unique identifier for each customer."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the customer.",
            "nullable": true
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "Email address for contacting the customer.",
            "nullable": true
          },
          "phone": {
            "kind": "phone",
            "description": "Contact phone number of the customer.",
            "nullable": true
          },
          "registration_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the customer registered.",
            "trend": "growing"
          }
        }
      },
      "policies": {
        "description": "Rows in this table represent insurance policies held by customers, linking back to the customers table.",
        "rows": 600,
        "columns": {
          "policy_id": {
            "kind": "pk",
            "description": "Unique identifier for each policy."
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.customer_id",
            "description": "Reference to the customer who holds the policy."
          },
          "policy_type": {
            "kind": "enum",
            "values": [
              "auto",
              "health",
              "home",
              "life"
            ],
            "description": "Type of insurance policy."
          },
          "premium": {
            "kind": "decimal",
            "min": 100,
            "max": 2000,
            "scale": 2,
            "description": "Monthly premium amount for the policy.",
            "nullable": true,
            "when": {
              "column": "policy_type",
              "in": [
                "health",
                "life"
              ]
            }
          },
          "coverage_amount": {
            "kind": "decimal",
            "min": 10000,
            "max": 1000000,
            "scale": 2,
            "description": "Total coverage amount provided by the policy.",
            "nullable": true,
            "when": {
              "column": "policy_type",
              "in": [
                "health",
                "life"
              ]
            }
          },
          "discount": {
            "kind": "decimal",
            "min": 0,
            "max": 500,
            "scale": 2,
            "description": "Discount applied to the policy premium.",
            "nullable": true
          }
        },
        "via": "customer_id"
      },
      "claims": {
        "description": "Claims processed under each policy are represented in this table, linking to the policies.",
        "rows": 400,
        "columns": {
          "claim_id": {
            "kind": "pk",
            "description": "Unique identifier for each claim."
          },
          "policy_id": {
            "kind": "fk",
            "ref": "policies.policy_id",
            "description": "Reference to the policy under which the claim was made."
          },
          "claim_amount": {
            "kind": "decimal",
            "min": 100,
            "max": 100000,
            "scale": 2,
            "description": "Amount claimed by the policyholder.",
            "nullable": true,
            "when": {
              "column": "status",
              "in": [
                "approved",
                "denied"
              ]
            }
          },
          "claim_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the claim was submitted.",
            "trend": "seasonal"
          },
          "status": {
            "kind": "enum",
            "values": [
              "pending",
              "approved",
              "denied"
            ],
            "description": "Current status of the claim."
          }
        },
        "via": "policy_id"
      },
      "vehicles": {
        "description": "This table details vehicles insured under customer policies, linking back to the policies table.",
        "rows": 500,
        "columns": {
          "vehicle_id": {
            "kind": "pk",
            "description": "Unique identifier for each vehicle."
          },
          "policy_id": {
            "kind": "fk",
            "ref": "policies.policy_id",
            "description": "Reference to the insurance policy covering this vehicle."
          },
          "make": {
            "kind": "words",
            "min": 1,
            "max": 20,
            "description": "Make of the vehicle.",
            "nullable": true
          },
          "model": {
            "kind": "words",
            "min": 1,
            "max": 20,
            "description": "Model of the vehicle.",
            "nullable": true
          },
          "year": {
            "kind": "int",
            "min": 2000,
            "max": 2023,
            "description": "Manufacturing year of the vehicle."
          }
        },
        "via": "policy_id"
      },
      "health_conditions": {
        "description": "Rows in this table represent health conditions of policyholders, linking to the customers table.",
        "rows": 200,
        "columns": {
          "condition_id": {
            "kind": "pk",
            "description": "Unique identifier for each health condition entry."
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.customer_id",
            "description": "Reference to the customer with the health condition."
          },
          "condition": {
            "kind": "words",
            "min": 1,
            "max": 50,
            "description": "Description of the health condition."
          },
          "diagnosis_date": {
            "kind": "date",
            "from": "2010-01-01",
            "to": "2023-12-31",
            "description": "Date when the condition was diagnosed.",
            "trend": "growing"
          }
        },
        "via": "customer_id"
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "monetary",
      "nullable",
      "timestamped"
    ],
    "analysisQuestions": [
      "What is the average premium across different policy types?",
      "How do claim amounts vary by vehicle make and model?",
      "Which health conditions are most frequently reported among policyholders?",
      "What percentage of claims are approved versus denied?",
      "How do discounts affect customer retention rates?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Customers and Policies",
        "sql": "SELECT c.full_name, p.policy_type FROM customers c JOIN policies p ON c.customer_id = p.customer_id;",
        "dialect": "postgres"
      },
      {
        "title": "Average Premium by Policy Type",
        "sql": "SELECT policy_type, AVG(premium) AS avg_premium FROM policies GROUP BY policy_type;",
        "dialect": "postgres"
      },
      {
        "title": "Claims Status Breakdown",
        "sql": "SELECT status, COUNT(*) AS count FROM claims GROUP BY status;",
        "dialect": "postgres"
      },
      {
        "title": "Claim Amounts by Year",
        "sql": "SELECT EXTRACT(YEAR FROM claim_date) AS year, SUM(claim_amount) AS total_claims FROM claims GROUP BY year ORDER BY year;",
        "dialect": "postgres"
      },
      {
        "title": "Health Conditions and Claims",
        "sql": "SELECT h.condition, COUNT(c.claim_id) AS claim_count FROM health_conditions h LEFT JOIN claims c ON h.customer_id = c.policy_id GROUP BY h.condition;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Insurance Policy Analysis",
        "body": "Insurance analysts can utilize this dataset to evaluate the performance of different insurance policies by analyzing customer premiums, claim rates, and the impact of discounts. By comparing policies, they can identify which offerings are most attractive to customers and adjust marketing strategies accordingly."
      },
      {
        "title": "Customer Feedback Insights",
        "body": "Customer service teams can analyze feedback and claims data to gain insights into customer satisfaction and areas for improvement. By correlating health conditions and policy types with feedback scores, they can enhance service delivery and tailor offerings that meet customer needs."
      },
      {
        "title": "Claims Processing Efficiency",
        "body": "Claims adjusters can use this dataset to assess the efficiency of claims processing by examining the time taken for claims to be approved or denied. Analyzing claims in relation to vehicle types and health conditions can help optimize the claims workflow and reduce turnaround times."
      },
      {
        "title": "Market Trend Analysis",
        "body": "Market researchers can leverage this dataset to study trends in the insurance industry, including the popularity of certain policy types, the prevalence of specific health conditions among policyholders, and the seasonal patterns in premium discounts. This information can guide strategic decisions for insurance providers."
      }
    ]
  },
  "counts": {
    "customers": 300,
    "health_conditions": 200,
    "policies": 600,
    "claims": 400,
    "vehicles": 500
  },
  "stats": {
    "customers": {
      "rows": 300,
      "columns": {
        "customer_id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "full_name": {
          "nulls": 26,
          "distinct": 271,
          "min": "Alice Bauer",
          "max": "Zara Young"
        },
        "email": {
          "nulls": 53,
          "distinct": 246
        },
        "phone": {
          "nulls": 33,
          "distinct": 251
        },
        "registration_date": {
          "nulls": 0,
          "distinct": 270,
          "min": "2020-01-06",
          "max": "2023-12-31"
        }
      }
    },
    "policies": {
      "rows": 600,
      "columns": {
        "policy_id": {
          "nulls": 0,
          "distinct": 600,
          "min": 1,
          "max": 600
        },
        "customer_id": {
          "nulls": 0,
          "distinct": 265,
          "min": 1,
          "max": 300
        },
        "policy_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "auto",
          "max": "life"
        },
        "premium": {
          "nulls": 305,
          "distinct": 295,
          "min": 106.49,
          "max": 1997.21
        },
        "coverage_amount": {
          "nulls": 305,
          "distinct": 294,
          "min": 11115.01,
          "max": 996661.98
        },
        "discount": {
          "nulls": 56,
          "distinct": 541,
          "min": 1.27,
          "max": 499.28
        }
      }
    },
    "claims": {
      "rows": 400,
      "columns": {
        "claim_id": {
          "nulls": 0,
          "distinct": 400,
          "min": 1,
          "max": 400
        },
        "policy_id": {
          "nulls": 0,
          "distinct": 302,
          "min": 1,
          "max": 597
        },
        "claim_amount": {
          "nulls": 142,
          "distinct": 258,
          "min": 612.46,
          "max": 99919.27
        },
        "claim_date": {
          "nulls": 0,
          "distinct": 353,
          "min": "2020-01-04",
          "max": "2023-12-30"
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "approved",
          "max": "pending"
        }
      }
    },
    "vehicles": {
      "rows": 500,
      "columns": {
        "vehicle_id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "policy_id": {
          "nulls": 0,
          "distinct": 345,
          "min": 1,
          "max": 599
        },
        "make": {
          "nulls": 44,
          "distinct": 454
        },
        "model": {
          "nulls": 36,
          "distinct": 462
        },
        "year": {
          "nulls": 0,
          "distinct": 24,
          "min": 2000,
          "max": 2023
        }
      }
    },
    "health_conditions": {
      "rows": 200,
      "columns": {
        "condition_id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "customer_id": {
          "nulls": 0,
          "distinct": 149,
          "min": 1,
          "max": 299
        },
        "condition": {
          "nulls": 0,
          "distinct": 200
        },
        "diagnosis_date": {
          "nulls": 0,
          "distinct": 195,
          "min": "2010-05-12",
          "max": "2023-12-06"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/customers.csv",
      "format": "csv",
      "table": "customers",
      "key": "datasets/insurance-comparison-and-management-app/v1/csv/customers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-comparison-and-management-app/v1/csv/customers.csv",
      "bytes": 18438,
      "sha256": "a9b78d0e39109a4ef1c04d7ddbc9b2a0246e20b8eba90e30e05f3a962ac0a68c",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/health_conditions.csv",
      "format": "csv",
      "table": "health_conditions",
      "key": "datasets/insurance-comparison-and-management-app/v1/csv/health_conditions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-comparison-and-management-app/v1/csv/health_conditions.csv",
      "bytes": 39230,
      "sha256": "f3b5d4e5681b64640d3febcea9aa0d106ae3c282472e170cb284ef3f3ae209e6",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/policies.csv",
      "format": "csv",
      "table": "policies",
      "key": "datasets/insurance-comparison-and-management-app/v1/csv/policies.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-comparison-and-management-app/v1/csv/policies.csv",
      "bytes": 17936,
      "sha256": "a2c1b81068592a003d7b08854387bc088bac1754f8fd8bc91804a8abe7cbb436",
      "rows": 600,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/claims.csv",
      "format": "csv",
      "table": "claims",
      "key": "datasets/insurance-comparison-and-management-app/v1/csv/claims.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-comparison-and-management-app/v1/csv/claims.csv",
      "bytes": 13512,
      "sha256": "a10bb8b30eebdf4c849c50ed0af8f2fabea06ed882837c609029c1af14824906",
      "rows": 400,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/vehicles.csv",
      "format": "csv",
      "table": "vehicles",
      "key": "datasets/insurance-comparison-and-management-app/v1/csv/vehicles.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-comparison-and-management-app/v1/csv/vehicles.csv",
      "bytes": 71040,
      "sha256": "1230392cb9f9eb0ebadb3dc6fda76cdf37c723a315ba9b5563aa8e36e776e456",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "insurance-comparison-and-management-app.json",
      "format": "json",
      "table": null,
      "key": "datasets/insurance-comparison-and-management-app/v1/insurance-comparison-and-management-app.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-comparison-and-management-app/v1/insurance-comparison-and-management-app.json",
      "bytes": 401740,
      "sha256": "b7c002fb8ec1695abf581a5ff5161e98d6d2fc28330aebfdcf6a388b16f511c4",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/insurance-comparison-and-management-app/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-comparison-and-management-app/v1/sql/postgres.sql",
      "bytes": 195578,
      "sha256": "5ab1aad6a25d81e8a5ebeca997654c548ef3575c68afeed33e2da6f4048a0230",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/insurance-comparison-and-management-app/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-comparison-and-management-app/v1/sql/mysql.sql",
      "bytes": 194931,
      "sha256": "f9635ce7be1cd671164f7e572adf514ef750ebea811d8a191d07f034f9d0f8ae",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/insurance-comparison-and-management-app/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-comparison-and-management-app/v1/sql/mssql.sql",
      "bytes": 199068,
      "sha256": "558348f002ed9bdb6c0973b838bcf143b81cffb827b7f956fd9930866a6baff0",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/insurance-comparison-and-management-app/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-comparison-and-management-app/v1/sql/sqlite.sql",
      "bytes": 194720,
      "sha256": "bb13314035137364c8cede8333066ccf1b9ec65d8ad033153f857f6d21812078",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/insurance-comparison-and-management-app/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-comparison-and-management-app/v1/prisma/seed.ts",
      "bytes": 330523,
      "sha256": "2af608dc9ac1575422200c4acbf48d82fc7ddf236c21479a5acb957216313122",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/insurance-comparison-and-management-app/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-comparison-and-management-app/v1/django/fixtures.json",
      "bytes": 472698,
      "sha256": "bb2c16d5df502bcf0ee34f965cb11803d7b7f06ecbc606caf8546240055f9cd7",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767225859,
  "updatedAt": 1788767225859
}
