{
  "format": "dataset-manifest/1",
  "slug": "urban-service-records",
  "version": 2,
  "seed": "urban-service-records:1",
  "spec": {
    "format": "dataset/1",
    "slug": "urban-service-records",
    "name": "Urban Service Records",
    "tagline": "Fire stations, schools, parks, libraries, and emergency responses data reflecting community service interactions.",
    "description": "Fire stations respond to emergency calls, ensuring public safety in the community. Schools operate to educate the youth, while libraries provide resources and parks offer recreational spaces for residents. These entities work together within city operations, creating a network that supports the community's diverse needs. Through the Urban Service Records, you can observe the interactions between these critical services, such as how emergency responses from fire stations correlate with school events or park usage, illustrating the dynamic nature of civic engagement.\n\nEach row in the fire_stations table represents an individual station, detailing their locations and capabilities. The schools table captures information about local educational institutions, including student populations and available resources. Parks are recorded in their own table, highlighting the facilities available for public use. Libraries are also tracked, showcasing their interaction with community members through book loans and events. Emergency responses are documented in a table that links incidents to the specific fire stations involved, while student enrollments detail how many young residents are actively engaging with their educational institutions. \n\nBy exploring these relationships, you can answer questions such as: How do emergency response patterns change during school events? What is the correlation between library usage and student enrollment periods? How do local parks influence community attendance at educational institutions? This dataset is ideal for practicing data analysis skills, as it allows you to uncover trends and insights within a synthetic environment that mimics real-world public service operations. The data is artificially generated but reflects the complexities and interdependencies of urban service records.",
    "domain": "government",
    "shape": "event-log",
    "useCases": [
      "analytics-demo",
      "etl-pipelines"
    ],
    "keywords": [
      "city operations",
      "public safety",
      "education",
      "community engagement",
      "event tracking"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "fire_stations": {
        "description": "This table records data about fire stations, including their locations and response events. Each row links to specific emergency response events.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each fire station."
          },
          "name": {
            "kind": "title",
            "description": "The official name of the fire station.",
            "pool": [
              "Central",
              "Eastside",
              "Westview",
              "Riverbend",
              "Maple",
              "Oakwood",
              "Pine",
              "Sunset",
              "Hilltop",
              "Lakeside",
              "Cedar",
              "Elm",
              "Mountain",
              "Valley",
              "Broadway",
              "Main",
              "Union",
              "Springfield",
              "Northgate",
              "Southview",
              "Greenwood"
            ],
            "min": 1,
            "max": 3
          },
          "location": {
            "kind": "street",
            "description": "The street address of the fire station."
          },
          "response_count": {
            "kind": "int",
            "min": 0,
            "max": 100,
            "description": "Number of emergency responses made by the fire station.",
            "nullable": true,
            "distribution": "long-tail"
          }
        }
      },
      "schools": {
        "description": "This table tracks schools within the city, including enrollment events and their locations. Each row may link to student enrollment events.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each school."
          },
          "name": {
            "kind": "title",
            "description": "The official name of the school.",
            "pool": [
              "Academy",
              "High",
              "Middle",
              "Elementary",
              "International",
              "Charter",
              "Tech",
              "Community",
              "Arts",
              "Science",
              "Innovation",
              "Leadership",
              "Civic",
              "Heritage",
              "Global",
              "Summit",
              "Vista",
              "Park",
              "River",
              "Hill",
              "East"
            ],
            "min": 1,
            "max": 3
          },
          "location": {
            "kind": "street",
            "description": "The street address of the school."
          },
          "enrollment_count": {
            "kind": "int",
            "min": 0,
            "max": 500,
            "description": "Number of students enrolled in the school.",
            "nullable": true,
            "distribution": "long-tail"
          }
        }
      },
      "parks": {
        "description": "This table contains data about city parks, including their usage and events. Each row corresponds to park visit events.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each park."
          },
          "name": {
            "kind": "title",
            "description": "The official name of the park.",
            "pool": [
              "Central",
              "Riverside",
              "Green",
              "Maple",
              "Oak",
              "Sunset",
              "Hilltop",
              "Meadow",
              "Cedar",
              "Pine",
              "Valley",
              "Woodland",
              "Lakeside",
              "Heritage",
              "Community",
              "Eastside",
              "Westview",
              "North",
              "South",
              "Spring",
              "Garden"
            ],
            "min": 1,
            "max": 3
          },
          "location": {
            "kind": "street",
            "description": "The street address of the park."
          },
          "visitor_count": {
            "kind": "int",
            "min": 0,
            "max": 300,
            "description": "Number of visitors to the park.",
            "nullable": true,
            "distribution": "long-tail"
          }
        }
      },
      "libraries": {
        "description": "This table records data about libraries including their locations and usage events. Each row corresponds to library visit events.",
        "rows": 120,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each library."
          },
          "name": {
            "kind": "title",
            "description": "The official name of the library.",
            "pool": [
              "Central",
              "Community",
              "Eastside",
              "Westview",
              "North",
              "South",
              "Heritage",
              "Innovation",
              "Digital",
              "Civic",
              "Public",
              "Regional",
              "Main",
              "Branch",
              "Children's",
              "Adult",
              "Research",
              "Academic",
              "Local",
              "Cultural",
              "Resource"
            ],
            "min": 1,
            "max": 3
          },
          "location": {
            "kind": "street",
            "description": "The street address of the library."
          },
          "visit_count": {
            "kind": "int",
            "min": 0,
            "max": 200,
            "description": "Number of visits to the library.",
            "nullable": true,
            "distribution": "long-tail"
          }
        }
      },
      "emergency_responses": {
        "description": "This table logs emergency response events, linking to fire stations and capturing response details. Each row represents a unique emergency response.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each emergency response event."
          },
          "fire_station_id": {
            "kind": "fk",
            "ref": "fire_stations.id",
            "description": "The fire station responding to the emergency."
          },
          "response_time": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Timestamp of when the response was initiated.",
            "nullable": true,
            "when": {
              "column": "incident_type",
              "in": [
                "fire",
                "medical",
                "hazardous"
              ]
            },
            "dayProfile": "business"
          },
          "incident_type": {
            "kind": "enum",
            "values": [
              "fire",
              "medical",
              "hazardous"
            ],
            "description": "Type of incident responded to.",
            "weights": [
              6,
              3,
              1
            ]
          }
        }
      },
      "student_enrollments": {
        "description": "This table tracks student enrollment events across schools, linking back to the school table. Each row represents an enrollment event.",
        "rows": 400,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each enrollment event."
          },
          "school_id": {
            "kind": "fk",
            "ref": "schools.id",
            "description": "The school where the enrollment occurred."
          },
          "enrollment_date": {
            "kind": "date",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date when the student enrolled.",
            "nullable": true,
            "trend": "growing"
          },
          "student_count": {
            "kind": "int",
            "min": 1,
            "max": 50,
            "description": "Number of students enrolled in this event.",
            "nullable": true,
            "distribution": "normal"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "timestamped",
      "categorical",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "What are the peak times for emergency responses throughout the year?",
      "How does student enrollment fluctuate at the beginning of school terms?",
      "Which parks receive the highest visitor counts and during what times?",
      "What types of incidents do fire stations respond to most frequently?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Fire Stations and Emergency Responses",
        "sql": "SELECT fs.name, er.incident_type, er.response_time FROM fire_stations fs JOIN emergency_responses er ON fs.id = er.fire_station_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count of Students Enrolled by School",
        "sql": "SELECT s.name, SUM(se.student_count) AS total_enrollment FROM schools s JOIN student_enrollments se ON s.id = se.school_id GROUP BY s.name;",
        "dialect": "postgres"
      },
      {
        "title": "Average Visitor Count for Parks",
        "sql": "SELECT p.name, AVG(p.visitor_count) AS average_visitors FROM parks p GROUP BY p.name;",
        "dialect": "postgres"
      },
      {
        "title": "Emergency Response Trends Over Time",
        "sql": "SELECT DATE_TRUNC('month', er.response_time) AS month, COUNT(*) AS total_responses FROM emergency_responses er GROUP BY month ORDER BY month;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "City Planning Analysis",
        "body": "City planners can utilize this dataset to analyze patterns in emergency responses and allocate resources accordingly. By understanding the peak response times and incident types, they can improve community safety and ensure fire stations are adequately staffed during high-demand periods."
      },
      {
        "title": "Education Resource Allocation",
        "body": "Educational administrators can leverage the student enrollment data to identify trends in school capacity and allocate resources effectively. By analyzing enrollment fluctuations at the start of terms, they can plan for staffing and resource needs across schools."
      },
      {
        "title": "Parks and Recreation Management",
        "body": "Parks and recreation departments can use the visitor count data to assess which parks are most popular and during what times. This information helps in planning maintenance schedules and special events to enhance community engagement."
      },
      {
        "title": "Library Services Improvement",
        "body": "Library administrators can analyze the usage patterns of library visits to improve services. By understanding peak visit times and user demographics, they can schedule events and staff more effectively to meet community needs."
      }
    ]
  },
  "counts": {
    "fire_stations": 200,
    "emergency_responses": 300,
    "libraries": 120,
    "parks": 100,
    "schools": 150,
    "student_enrollments": 400
  },
  "stats": {
    "fire_stations": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "name": {
          "nulls": 0,
          "distinct": 156
        },
        "location": {
          "nulls": 0,
          "distinct": 200
        },
        "response_count": {
          "nulls": 23,
          "distinct": 73,
          "min": 0,
          "max": 100
        }
      }
    },
    "schools": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "name": {
          "nulls": 0,
          "distinct": 111
        },
        "location": {
          "nulls": 0,
          "distinct": 148
        },
        "enrollment_count": {
          "nulls": 21,
          "distinct": 107,
          "min": 0,
          "max": 476
        }
      }
    },
    "parks": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "name": {
          "nulls": 0,
          "distinct": 78
        },
        "location": {
          "nulls": 0,
          "distinct": 99
        },
        "visitor_count": {
          "nulls": 7,
          "distinct": 74,
          "min": 0,
          "max": 293
        }
      }
    },
    "libraries": {
      "rows": 120,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 120,
          "min": 1,
          "max": 120
        },
        "name": {
          "nulls": 0,
          "distinct": 86
        },
        "location": {
          "nulls": 0,
          "distinct": 120
        },
        "visit_count": {
          "nulls": 11,
          "distinct": 75,
          "min": 0,
          "max": 196
        }
      }
    },
    "emergency_responses": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "fire_station_id": {
          "nulls": 0,
          "distinct": 155,
          "min": 1,
          "max": 199
        },
        "response_time": {
          "nulls": 0,
          "distinct": 300,
          "min": "2022-01-04 08:52:52",
          "max": "2023-12-24 22:38:51"
        },
        "incident_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "fire",
          "max": "medical"
        }
      }
    },
    "student_enrollments": {
      "rows": 400,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 400,
          "min": 1,
          "max": 400
        },
        "school_id": {
          "nulls": 0,
          "distinct": 141,
          "min": 1,
          "max": 150
        },
        "enrollment_date": {
          "nulls": 40,
          "distinct": 279,
          "min": "2022-01-01",
          "max": "2023-12-30"
        },
        "student_count": {
          "nulls": 38,
          "distinct": 38,
          "min": 4,
          "max": 44
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/fire_stations.csv",
      "format": "csv",
      "table": "fire_stations",
      "key": "datasets/urban-service-records/v2/csv/fire_stations.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/urban-service-records/v2/csv/fire_stations.csv",
      "bytes": 7957,
      "sha256": "165ce50c4eee3f2ad709533661f0d1953b483e59ae163906ca6927c2b8128da4",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/emergency_responses.csv",
      "format": "csv",
      "table": "emergency_responses",
      "key": "datasets/urban-service-records/v2/csv/emergency_responses.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/urban-service-records/v2/csv/emergency_responses.csv",
      "bytes": 10346,
      "sha256": "bc21d1540cc075cd0ed55178861bfcbbefdbe32ff5c8e9de7fc2b24c39590271",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/libraries.csv",
      "format": "csv",
      "table": "libraries",
      "key": "datasets/urban-service-records/v2/csv/libraries.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/urban-service-records/v2/csv/libraries.csv",
      "bytes": 4650,
      "sha256": "c7f3c8ddec6dda1c4ac4031fe30b72bd25a747005f35a9d4cad047845ea9149a",
      "rows": 120,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/parks.csv",
      "format": "csv",
      "table": "parks",
      "key": "datasets/urban-service-records/v2/csv/parks.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/urban-service-records/v2/csv/parks.csv",
      "bytes": 3805,
      "sha256": "2c6626a310147f8d9930d2649bcd2c4a082c05df0fcd75ed49f351ac72a80ec8",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/schools.csv",
      "format": "csv",
      "table": "schools",
      "key": "datasets/urban-service-records/v2/csv/schools.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/urban-service-records/v2/csv/schools.csv",
      "bytes": 5712,
      "sha256": "5aedad79241ff5cc7ce38491e60ceb0f80eaeb51c899c51387361b650c6e387c",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/student_enrollments.csv",
      "format": "csv",
      "table": "student_enrollments",
      "key": "datasets/urban-service-records/v2/csv/student_enrollments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/urban-service-records/v2/csv/student_enrollments.csv",
      "bytes": 8368,
      "sha256": "ffd146a4ec7e2f3c6b30a6ab7d81e81b387bb2897a21ac8b637939104962e900",
      "rows": 400,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "urban-service-records.json",
      "format": "json",
      "table": null,
      "key": "datasets/urban-service-records/v2/urban-service-records.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/urban-service-records/v2/urban-service-records.json",
      "bytes": 159673,
      "sha256": "5034925449a2e315d1a3d7f5131dca48f9957d7164cbfba72ada7affc056e047",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/urban-service-records/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/urban-service-records/v2/sql/postgres.sql",
      "bytes": 59901,
      "sha256": "0839fa9a3610d8f087dbe585301a6bf03db256d7c3a672b10d4bc0b8ac0d7cb1",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/urban-service-records/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/urban-service-records/v2/sql/mysql.sql",
      "bytes": 59185,
      "sha256": "1634bedfc56a97ef83412e70a57c46b53d8b1d094e9e403b7a1c9ff58c5a2af0",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/urban-service-records/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/urban-service-records/v2/sql/mssql.sql",
      "bytes": 61709,
      "sha256": "d2530d03fc3016fde503437415afd65d8fc1017904a9a0a6d0b686000161f18b",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/urban-service-records/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/urban-service-records/v2/sql/sqlite.sql",
      "bytes": 58989,
      "sha256": "1d3c1077daadbc850ec5c4cd2212020694e83b981c1757664cd5c0e985a8701b",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/urban-service-records/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/urban-service-records/v2/prisma/seed.ts",
      "bytes": 128399,
      "sha256": "10b778451ed4944fdc4a5b7b90ae08088d90d48aaae3cdcbb39f67a1bf48de79",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/urban-service-records/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/urban-service-records/v2/django/fixtures.json",
      "bytes": 220659,
      "sha256": "4e3d0c6398696ba61dd980edfda15cd6914455669c179f5371d9a7428bfd2c8a",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788766212654,
  "updatedAt": 1788786642487
}
