{
  "format": "dataset-manifest/1",
  "slug": "final-arrangements-data",
  "version": 2,
  "seed": "final-arrangements-data:1",
  "spec": {
    "format": "dataset/1",
    "slug": "final-arrangements-data",
    "name": "Final Arrangements Data",
    "tagline": "Navigate the compassionate process of honoring loved ones with diverse memorial services.",
    "description": "Families navigate the delicate process of honoring their loved ones through a variety of memorial services and burial options. They make important decisions regarding caskets and urns, and work to ensure that the service reflects the personality and preferences of the deceased. Each service is carefully planned, with considerations for service music and other details that bring comfort to those mourning. Alongside these arrangements, families must manage contracts and invoices associated with each transaction, which adds another layer of complexity to an already emotional process. This intricate web of services and decisions showcases the sensitive nature of the funeral industry.\n\nWithin this dataset, the 'families' table represents individual families who are navigating the memorialization process, detailing their unique needs and preferences. The 'memorial_services' table holds information about various services available, linking them directly to the families that request them. Each entry in 'caskets' provides details on the available burial options, allowing families to make informed decisions based on their budget and preferences. The 'invoices' table documents the financial transactions tied to these memorial services, creating a direct relationship with both the families and the services they choose. Finally, the 'grief_support_groups' table illustrates the variety of support options available, indicating which areas have multiple resources for families and which lack sufficient support.\n\nThis dataset answers questions about the relationships between families and the services they utilize, the diversity of available support options, and the financial aspects of memorial services. It is particularly good for practicing data analysis, as users can explore trends in service preferences, analyze pricing structures, or even assess the availability of grief support resources in different communities. As a reminder, all the data presented here is synthetic, designed to mimic real-world relationships and transactions without representing actual individuals or businesses.",
    "domain": "fintech",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "final arrangements",
      "memorial services",
      "burial options",
      "grief support",
      "caskets",
      "invoices",
      "families"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "families": {
        "description": "Each row in this table represents a family coordinating final arrangements for a loved one. It links to memorial services through family_id.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each family."
          },
          "last_name": {
            "kind": "lastName",
            "description": "The last name of the family."
          },
          "first_name": {
            "kind": "firstName",
            "description": "The first name of the family representative."
          },
          "created_at": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "The date the family record was created.",
            "trend": "growing"
          }
        }
      },
      "memorial_services": {
        "description": "This table holds details about different memorial services available for families. Each service is linked to a family through family_id.",
        "rows": {
          "per": "families",
          "via": "family_id",
          "min": 1,
          "max": 5,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each memorial service."
          },
          "service_type": {
            "kind": "enum",
            "values": [
              "funeral",
              "memorial",
              "cremation",
              "burial"
            ],
            "description": "The type of memorial service offered."
          },
          "family_id": {
            "kind": "fk",
            "ref": "families.id",
            "description": "Reference to the family coordinating the service."
          },
          "service_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "The date of the memorial service.",
            "nullable": true,
            "when": {
              "column": "service_type",
              "in": [
                "funeral",
                "memorial"
              ]
            },
            "trend": "seasonal"
          }
        }
      },
      "caskets": {
        "description": "This table contains information about caskets available for memorial services, linked to memorial_services through service_id.",
        "rows": {
          "per": "memorial_services",
          "via": "service_id",
          "min": 1,
          "max": 3,
          "skew": "heavy-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each casket."
          },
          "material": {
            "kind": "enum",
            "values": [
              "wood",
              "metal",
              "biodegradable"
            ],
            "description": "The material of the casket."
          },
          "service_id": {
            "kind": "fk",
            "ref": "memorial_services.id",
            "description": "Reference to the memorial service using this casket."
          },
          "price": {
            "kind": "decimal",
            "min": 500,
            "max": 3000,
            "scale": 2,
            "description": "Price of the casket.",
            "nullable": true,
            "when": {
              "column": "material",
              "in": [
                "wood",
                "metal"
              ]
            },
            "distribution": "long-tail"
          }
        }
      },
      "invoices": {
        "description": "This table tracks invoices generated for each memorial service, linked by service_id.",
        "rows": {
          "per": "memorial_services",
          "via": "service_id",
          "min": 1,
          "max": 1,
          "skew": "flat"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each invoice."
          },
          "service_id": {
            "kind": "fk",
            "ref": "memorial_services.id",
            "description": "Reference to the memorial service associated with this invoice."
          },
          "issue_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "The date the invoice was issued.",
            "trend": "growing"
          },
          "total_amount": {
            "kind": "decimal",
            "min": 1000,
            "max": 10000,
            "scale": 2,
            "description": "Total amount billed for the service.",
            "distribution": "long-tail"
          }
        }
      },
      "grief_support_groups": {
        "description": "This table lists various grief support groups available in different regions, linked to families by their location.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each grief support group."
          },
          "group_name": {
            "kind": "words",
            "description": "The name of the grief support group.",
            "pool": [
              "healing",
              "journey",
              "comfort",
              "hope",
              "support",
              "together",
              "light",
              "strength",
              "peace",
              "courage",
              "unity",
              "resilience",
              "memories",
              "growth",
              "love",
              "community",
              "connection",
              "sharing",
              "understanding",
              "compassion",
              "friendship"
            ],
            "min": 1,
            "max": 3
          },
          "location": {
            "kind": "city",
            "description": "The city where the support group is located."
          },
          "contact_info": {
            "kind": "email",
            "description": "Contact email for the support group."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "nullable",
      "timestamped",
      "monetary"
    ],
    "analysisQuestions": [
      "What types of memorial services are most commonly chosen by families?",
      "How do the prices of caskets vary by material?",
      "What is the average invoice amount for memorial services?",
      "Which grief support groups are most utilized by families in specific locations?",
      "Are there any trends in service dates based on the time of year?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Families and Memorial Services",
        "sql": "SELECT f.first_name, f.last_name, ms.service_type FROM families f JOIN memorial_services ms ON f.id = ms.family_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Services by Type",
        "sql": "SELECT service_type, COUNT(*) FROM memorial_services GROUP BY service_type;",
        "dialect": "postgres"
      },
      {
        "title": "Average Invoice Amounts",
        "sql": "SELECT ms.service_type, AVG(i.total_amount) FROM invoices i JOIN memorial_services ms ON i.service_id = ms.id GROUP BY ms.service_type;",
        "dialect": "postgres"
      },
      {
        "title": "Casket Price Range by Material",
        "sql": "SELECT material, MIN(price) AS min_price, MAX(price) AS max_price FROM caskets GROUP BY material;",
        "dialect": "postgres"
      },
      {
        "title": "Grief Support Group Usage by Location",
        "sql": "SELECT location, COUNT(*) FROM grief_support_groups GROUP BY location;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "SQL Training for Developers",
        "body": "Developers seeking to enhance their SQL skills can utilize this dataset to practice complex queries, joins, and aggregations. By exploring the relationships between families, memorial services, and invoices, they can gain hands-on experience in handling real-world data scenarios."
      },
      {
        "title": "ORM Seeding for Applications",
        "body": "Developers building applications related to memorial services can use this dataset to seed their ORM with realistic data. This allows for testing of features related to family management, memorial services, and invoicing mechanisms, ensuring robust application functionality."
      },
      {
        "title": "Business Analytics and Insights",
        "body": "Business analysts can leverage this dataset to derive insights into customer preferences regarding memorial services and associated costs. By analyzing trends and averages, they can inform service offerings and pricing strategies, ultimately enhancing customer satisfaction."
      },
      {
        "title": "Support Group Resource Planning",
        "body": "Organizations providing grief support can analyze the grief_support_groups table to identify gaps in service availability across different locations. This data can help them allocate resources effectively and enhance community support services."
      }
    ]
  },
  "counts": {
    "families": 200,
    "grief_support_groups": 50,
    "memorial_services": 451,
    "caskets": 628,
    "invoices": 451
  },
  "stats": {
    "families": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "last_name": {
          "nulls": 0,
          "distinct": 73,
          "min": "Adams",
          "max": "Zhang"
        },
        "first_name": {
          "nulls": 0,
          "distinct": 75,
          "min": "Alice",
          "max": "Zara"
        },
        "created_at": {
          "nulls": 0,
          "distinct": 167,
          "min": "2023-01-01",
          "max": "2024-12-31"
        }
      }
    },
    "memorial_services": {
      "rows": 451,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 451,
          "min": 1,
          "max": 451
        },
        "service_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "burial",
          "max": "memorial"
        },
        "family_id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "service_date": {
          "nulls": 229,
          "distinct": 190,
          "min": "2023-01-02",
          "max": "2024-12-27"
        }
      }
    },
    "caskets": {
      "rows": 628,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 628,
          "min": 1,
          "max": 628
        },
        "material": {
          "nulls": 0,
          "distinct": 3,
          "min": "biodegradable",
          "max": "wood"
        },
        "service_id": {
          "nulls": 0,
          "distinct": 451,
          "min": 1,
          "max": 451
        },
        "price": {
          "nulls": 226,
          "distinct": 402,
          "min": 500.02,
          "max": 2983.01
        }
      }
    },
    "invoices": {
      "rows": 451,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 451,
          "min": 1,
          "max": 451
        },
        "service_id": {
          "nulls": 0,
          "distinct": 451,
          "min": 1,
          "max": 451
        },
        "issue_date": {
          "nulls": 0,
          "distinct": 339,
          "min": "2023-01-03",
          "max": "2024-12-31"
        },
        "total_amount": {
          "nulls": 0,
          "distinct": 449,
          "min": 1000,
          "max": 9990.61
        }
      }
    },
    "grief_support_groups": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "group_name": {
          "nulls": 0,
          "distinct": 47
        },
        "location": {
          "nulls": 0,
          "distinct": 37,
          "min": "Amsterdam",
          "max": "Warsaw"
        },
        "contact_info": {
          "nulls": 0,
          "distinct": 50
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/families.csv",
      "format": "csv",
      "table": "families",
      "key": "datasets/final-arrangements-data/v2/csv/families.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/final-arrangements-data/v2/csv/families.csv",
      "bytes": 5581,
      "sha256": "a96acfc3358910fb407d64adf7e8493eb6aaa7fb09d36055462af62c17f6f231",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/grief_support_groups.csv",
      "format": "csv",
      "table": "grief_support_groups",
      "key": "datasets/final-arrangements-data/v2/csv/grief_support_groups.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/final-arrangements-data/v2/csv/grief_support_groups.csv",
      "bytes": 2781,
      "sha256": "8b2eb69256b6bbd8c57d86e07c5d97fb6b15079e14f8aa9b8b2c43e980411901",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/memorial_services.csv",
      "format": "csv",
      "table": "memorial_services",
      "key": "datasets/final-arrangements-data/v2/csv/memorial_services.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/final-arrangements-data/v2/csv/memorial_services.csv",
      "bytes": 10240,
      "sha256": "14c3cf968c79085e77fc16be77c56634c10c23457198d24257972b94a819a839",
      "rows": 451,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/caskets.csv",
      "format": "csv",
      "table": "caskets",
      "key": "datasets/final-arrangements-data/v2/csv/caskets.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/final-arrangements-data/v2/csv/caskets.csv",
      "bytes": 14074,
      "sha256": "089f61c7d404141be9617440e0ddf002f95621a64bdb1e4c98b6a9c10381b660",
      "rows": 628,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/invoices.csv",
      "format": "csv",
      "table": "invoices",
      "key": "datasets/final-arrangements-data/v2/csv/invoices.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/final-arrangements-data/v2/csv/invoices.csv",
      "bytes": 12451,
      "sha256": "135c8a66e374e8166020941eb4a633c756ac92c4545c07b04963737fc66625f7",
      "rows": 451,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "final-arrangements-data.json",
      "format": "json",
      "table": null,
      "key": "datasets/final-arrangements-data/v2/final-arrangements-data.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/final-arrangements-data/v2/final-arrangements-data.json",
      "bytes": 204304,
      "sha256": "683e0f9ba84be82b94e89c450709b620c6053dfdb41e2ad08f888e08c4ffa27a",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/final-arrangements-data/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/final-arrangements-data/v2/sql/postgres.sql",
      "bytes": 70978,
      "sha256": "85de268b16c854d5035c96c1f72ebc79818a92b70f10d9afaa604d9570650ccb",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/final-arrangements-data/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/final-arrangements-data/v2/sql/mysql.sql",
      "bytes": 70395,
      "sha256": "7dac41a10ae6295479be80e425938c0547639f34734368f30ea9b374e2545a3b",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/final-arrangements-data/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/final-arrangements-data/v2/sql/mssql.sql",
      "bytes": 73249,
      "sha256": "d53a529ae68a6671d2368bc6d362739b37ab87adb0fa782a0b818906c4ac6845",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/final-arrangements-data/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/final-arrangements-data/v2/sql/sqlite.sql",
      "bytes": 70214,
      "sha256": "bf360967b0388ccf2369577310344464321d46143470fcc6b745c3dc1f562573",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/final-arrangements-data/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/final-arrangements-data/v2/prisma/seed.ts",
      "bytes": 157281,
      "sha256": "eb216f328494ec67187e50add45c564f787ae7c5ea7dac9587d046b9aef5ca58",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/final-arrangements-data/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/final-arrangements-data/v2/django/fixtures.json",
      "bytes": 283007,
      "sha256": "f807e458ca31f1dc6b4d9d5912be2f277e2b5a71d2852df0d57eea0b399811c3",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768055108,
  "updatedAt": 1788778723832
}
