{
  "format": "dataset-manifest/1",
  "slug": "real-time-emergency-and-safety-notification-system",
  "version": 1,
  "seed": "real-time-emergency-and-safety-notification-system:1",
  "spec": {
    "format": "dataset/1",
    "slug": "real-time-emergency-and-safety-notification-system",
    "name": "Emergency Response Network",
    "tagline": "A synthetic dataset for managing real-time emergency communication and logistics.",
    "description": "Emergency incidents trigger a cascade of responses, activating a network of responders and communication channels. Responders, which include various organizations and agencies, mobilize to manage these incidents effectively, ensuring the safety and well-being of affected individuals. Shelters are designated to provide safe havens during emergencies, often linked to specific incidents through alerts issued by the oversight agencies. Each emergency incident typically has associated emergency contacts, who play pivotal roles in the coordination and communication throughout the response process.\n\nThe tables in this dataset illustrate the intricate relationships within the emergency response ecosystem. The 'emergency_incidents' table contains records of specific events, detailing the nature and severity of each incident. Each row in this table can be connected to the 'responders' table, which lists the various organizations tasked with responding to those incidents. The 'alerts' table holds crucial notifications that are disseminated to initiate emergency responses, linking directly to both the incidents and the responders that take action. Shelters are tracked in their own table, describing the locations and capacities available during an emergency, often tied back to the incidents they are meant to serve. Lastly, the 'emergency_contacts' table provides essential information on key individuals and organizations involved in each incident, facilitating communication and coordination.\n\nThis dataset is a rich resource for exploring questions related to emergency response efficiency, responder mobilization patterns, and shelter utilization rates. Practicing with this data will allow developers to analyze how timely alerts influence responder actions and incident management. Additionally, the dataset can shed light on the relationships between incidents and shelters, highlighting trends in emergency preparedness and response strategies. It is important to note that this data is synthetic, crafted to provide a realistic yet fictional representation of the logistics involved in emergency response.",
    "domain": "logistics",
    "shape": "graph-edges",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "emergency",
      "safety",
      "alerts",
      "responders",
      "shelters",
      "incidents",
      "logistics",
      "network"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "emergency_incidents": {
        "description": "This table records various emergency incidents, including their type and the time they occurred. Each incident can be associated with multiple alerts and responders.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the incident."
          },
          "incident_type": {
            "kind": "enum",
            "values": [
              "fire",
              "flood",
              "earthquake",
              "accident"
            ],
            "description": "Type of emergency incident."
          },
          "occurrence_time": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Timestamp when the incident occurred.",
            "dayProfile": "waking"
          },
          "shelter_id": {
            "kind": "fk",
            "ref": "shelters.id",
            "description": "Reference to the shelter designated for this incident."
          }
        }
      },
      "responders": {
        "description": "This table contains information about various responder units, including their names and types. Each responder can be linked to multiple incidents.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the responder unit."
          },
          "name": {
            "kind": "fullName",
            "description": "Name of the responder unit."
          },
          "responder_type": {
            "kind": "enum",
            "values": [
              "fire_department",
              "ambulance_service",
              "police_department"
            ],
            "description": "Type of responder organization."
          },
          "deployment_frequency": {
            "kind": "int",
            "min": 1,
            "max": 50,
            "description": "Number of incidents this responder has been deployed to."
          }
        }
      },
      "alerts": {
        "description": "This table captures alerts issued for each incident, detailing the type and urgency of the alert. Alerts are linked to specific incidents and responders.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the alert."
          },
          "incident_id": {
            "kind": "fk",
            "ref": "emergency_incidents.id",
            "description": "Reference to the related emergency incident."
          },
          "alert_type": {
            "kind": "enum",
            "values": [
              "warning",
              "evacuation",
              "shelter"
            ],
            "description": "Type of alert issued."
          },
          "urgency_level": {
            "kind": "enum",
            "values": [
              "low",
              "medium",
              "high"
            ],
            "description": "Urgency level of the alert."
          },
          "issued_time": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Timestamp when the alert was issued.",
            "dayProfile": "business"
          }
        }
      },
      "shelters": {
        "description": "This table lists the shelters available for individuals during emergencies, including their capacity and location details.",
        "rows": 60,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the shelter."
          },
          "name": {
            "kind": "fullName",
            "description": "Name of the shelter."
          },
          "capacity": {
            "kind": "int",
            "min": 10,
            "max": 500,
            "description": "Total capacity of the shelter."
          },
          "location": {
            "kind": "sentence",
            "description": "Physical address of the shelter."
          }
        }
      },
      "emergency_contacts": {
        "description": "This table records emergency contacts associated with each incident, providing critical information for responders.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the emergency contact."
          },
          "incident_id": {
            "kind": "fk",
            "ref": "emergency_incidents.id",
            "description": "Reference to the associated emergency incident."
          },
          "contact_name": {
            "kind": "fullName",
            "description": "Name of the emergency contact."
          },
          "phone": {
            "kind": "phone",
            "description": "Contact phone number."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "nullable",
      "categorical",
      "timestamped",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "What types of incidents occur most frequently and why?",
      "How quickly are alerts issued after an incident is reported?",
      "Which shelters are utilized the most during emergencies?",
      "What is the average deployment frequency of responder units?",
      "How many emergency contacts are associated with each incident?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Incidents and Alerts",
        "sql": "SELECT ei.id, ei.incident_type, a.alert_type FROM emergency_incidents ei JOIN alerts a ON ei.id = a.incident_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Alerts by Urgency Level",
        "sql": "SELECT a.urgency_level, COUNT(*) FROM alerts a GROUP BY a.urgency_level;",
        "dialect": "postgres"
      },
      {
        "title": "Average Capacity of Shelters Used",
        "sql": "SELECT AVG(s.capacity) FROM shelters s JOIN emergency_incidents ei ON s.id = ei.shelter_id;",
        "dialect": "postgres"
      },
      {
        "title": "Incidents and Their Emergency Contacts",
        "sql": "SELECT ei.id, ec.contact_name FROM emergency_incidents ei LEFT JOIN emergency_contacts ec ON ei.id = ec.incident_id;",
        "dialect": "postgres"
      },
      {
        "title": "Responder Deployment Frequency Analysis",
        "sql": "SELECT r.name, r.deployment_frequency FROM responders r WHERE r.deployment_frequency > 10 ORDER BY r.deployment_frequency DESC;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Training Emergency Responders",
        "body": "Emergency management training programs can utilize this dataset to simulate real-life scenarios where responders must make quick decisions based on incoming alerts and incidents. Trainees can practice querying the data to understand the frequency and types of incidents they might face."
      },
      {
        "title": "Logistics Optimization",
        "body": "Logistics managers can analyze this dataset to assess the efficiency of their emergency response strategies. By querying the data, they can identify patterns in incident types and responder deployment, leading to improved resource allocation during emergencies."
      },
      {
        "title": "Research on Shelter Utilization",
        "body": "Academic researchers studying emergency management can use this dataset to investigate how shelters are utilized during different types of incidents. By analyzing the relationship between incidents and shelters, they can provide insights into improving shelter readiness."
      },
      {
        "title": "Public Safety Awareness Campaigns",
        "body": "Organizations focused on public safety can leverage this dataset to create awareness campaigns about emergency preparedness. By analyzing alerts and incidents, they can develop targeted messaging to educate communities about safety measures."
      }
    ]
  },
  "counts": {
    "responders": 100,
    "shelters": 60,
    "emergency_incidents": 150,
    "alerts": 200,
    "emergency_contacts": 200
  },
  "stats": {
    "emergency_incidents": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "incident_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "accident",
          "max": "flood"
        },
        "occurrence_time": {
          "nulls": 0,
          "distinct": 150,
          "min": "2023-01-01 10:36:11",
          "max": "2023-12-27 10:17:01"
        },
        "shelter_id": {
          "nulls": 0,
          "distinct": 51,
          "min": 1,
          "max": 60
        }
      }
    },
    "responders": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "name": {
          "nulls": 0,
          "distinct": 100,
          "min": "Amir Jansen",
          "max": "Zoe Becker"
        },
        "responder_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "ambulance_service",
          "max": "police_department"
        },
        "deployment_frequency": {
          "nulls": 0,
          "distinct": 48,
          "min": 1,
          "max": 50
        }
      }
    },
    "alerts": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "incident_id": {
          "nulls": 0,
          "distinct": 106,
          "min": 1,
          "max": 150
        },
        "alert_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "evacuation",
          "max": "warning"
        },
        "urgency_level": {
          "nulls": 0,
          "distinct": 3,
          "min": "high",
          "max": "medium"
        },
        "issued_time": {
          "nulls": 0,
          "distinct": 200,
          "min": "2023-01-02 16:43:54",
          "max": "2023-12-27 15:10:29"
        }
      }
    },
    "shelters": {
      "rows": 60,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 60,
          "min": 1,
          "max": 60
        },
        "name": {
          "nulls": 0,
          "distinct": 60,
          "min": "Ana Hansen",
          "max": "Yara Wright"
        },
        "capacity": {
          "nulls": 0,
          "distinct": 58,
          "min": 15,
          "max": 480
        },
        "location": {
          "nulls": 0,
          "distinct": 60
        }
      }
    },
    "emergency_contacts": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "incident_id": {
          "nulls": 0,
          "distinct": 117,
          "min": 1,
          "max": 150
        },
        "contact_name": {
          "nulls": 0,
          "distinct": 196,
          "min": "Alice Martin",
          "max": "Zoe Tanaka"
        },
        "phone": {
          "nulls": 0,
          "distinct": 195
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/responders.csv",
      "format": "csv",
      "table": "responders",
      "key": "datasets/real-time-emergency-and-safety-notification-system/v1/csv/responders.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-emergency-and-safety-notification-system/v1/csv/responders.csv",
      "bytes": 3642,
      "sha256": "423675d8a420c6d787b1f57f657739817ab230cf4b205ae34e2e5771bffe4474",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/shelters.csv",
      "format": "csv",
      "table": "shelters",
      "key": "datasets/real-time-emergency-and-safety-notification-system/v1/csv/shelters.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-emergency-and-safety-notification-system/v1/csv/shelters.csv",
      "bytes": 4623,
      "sha256": "b485784f0fad380bd67b3afa5ee3c8fc9a79df2921bb932259f71a0f53570a8e",
      "rows": 60,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/emergency_incidents.csv",
      "format": "csv",
      "table": "emergency_incidents",
      "key": "datasets/real-time-emergency-and-safety-notification-system/v1/csv/emergency_incidents.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-emergency-and-safety-notification-system/v1/csv/emergency_incidents.csv",
      "bytes": 5312,
      "sha256": "d42ca4bf6d713c7484ba8bc9633d5688752010aec74c8dd669d39c6afdd806ce",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/alerts.csv",
      "format": "csv",
      "table": "alerts",
      "key": "datasets/real-time-emergency-and-safety-notification-system/v1/csv/alerts.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-emergency-and-safety-notification-system/v1/csv/alerts.csv",
      "bytes": 8459,
      "sha256": "319422abb5d54d5ae7c611852eeacb56b3049e97c76f799fe3b29c51d0c851df",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/emergency_contacts.csv",
      "format": "csv",
      "table": "emergency_contacts",
      "key": "datasets/real-time-emergency-and-safety-notification-system/v1/csv/emergency_contacts.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-emergency-and-safety-notification-system/v1/csv/emergency_contacts.csv",
      "bytes": 7157,
      "sha256": "d0928526d5898e406e46274314150dcff9ff465de7af9d4eaa6779f5cb9fa3ac",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "real-time-emergency-and-safety-notification-system.json",
      "format": "json",
      "table": null,
      "key": "datasets/real-time-emergency-and-safety-notification-system/v1/real-time-emergency-and-safety-notification-system.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-emergency-and-safety-notification-system/v1/real-time-emergency-and-safety-notification-system.json",
      "bytes": 100302,
      "sha256": "441eec049e63e36a0549b8f19382f712648468698bedbeb7d1cbbd2391a4cb52",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/real-time-emergency-and-safety-notification-system/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-emergency-and-safety-notification-system/v1/sql/postgres.sql",
      "bytes": 41618,
      "sha256": "e177b5ab5140f34acd26e5cda20243de8fccb76397dd6b400505f2599110be6d",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/real-time-emergency-and-safety-notification-system/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-emergency-and-safety-notification-system/v1/sql/mysql.sql",
      "bytes": 41023,
      "sha256": "b2cb93a4f1251732c57c7825ca480bcfbcb8eb581f1dfb4e85b696a863d1b564",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/real-time-emergency-and-safety-notification-system/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-emergency-and-safety-notification-system/v1/sql/mssql.sql",
      "bytes": 43009,
      "sha256": "a2166c63676cedb6bc3ede38a816741829b772e28fabc3e7f15a21667e6fd92b",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/real-time-emergency-and-safety-notification-system/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-emergency-and-safety-notification-system/v1/sql/sqlite.sql",
      "bytes": 40808,
      "sha256": "e5e404054d17e0ec3c5d3178160430fd3b9769cbe4dcdcb8fc6a73a5010707d4",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/real-time-emergency-and-safety-notification-system/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-emergency-and-safety-notification-system/v1/prisma/seed.ts",
      "bytes": 83635,
      "sha256": "e35e1cac872e0af6f3499e48f918c9c1da0130aa7e5a1610ed9f80dd72c7a34c",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/real-time-emergency-and-safety-notification-system/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-emergency-and-safety-notification-system/v1/django/fixtures.json",
      "bytes": 133221,
      "sha256": "341e0eff9b8921acd67d1508d3f2ea6124010d8663adb599cd072c6cec7535aa",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767258881,
  "updatedAt": 1788767258881
}
