{
  "format": "dataset-manifest/1",
  "slug": "real-time-local-recreation-and-leisure-event-finder",
  "version": 1,
  "seed": "real-time-local-recreation-and-leisure-event-finder:1",
  "spec": {
    "format": "dataset/1",
    "slug": "real-time-local-recreation-and-leisure-event-finder",
    "name": "Local Event Connections",
    "tagline": "Events, venues, users, attendances, and sponsorships from local community recreational activities.",
    "description": "Communities thrive when people connect through shared interests and activities. This dataset models the interactions between users, events, venues, and sponsors in a local recreational setting. It captures the essence of community engagement by detailing various events taking place at different venues, the users participating, their interactions in chat rooms, and the sponsoring collaborations that support these activities. Each table in this dataset is interrelated, facilitating a comprehensive view of how events are organized, who attends them, and how sponsors play a pivotal role in promoting these activities. By analyzing this data, users can answer questions like which events are most popular, how user interactions vary across different event types, and the impact of sponsorship on event attendance. This synthetic dataset serves as a practical tool for SQL practice and teaching data analysis skills, allowing users to explore relationships and trends within the local social landscape.",
    "domain": "social",
    "shape": "graph-edges",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "events",
      "community",
      "venues",
      "users",
      "sponsorship",
      "chat",
      "recreation",
      "leisure"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "events": {
        "description": "Each row represents a local event, detailing its characteristics and the venue it takes place at. Events can be attended by multiple users and may have various sponsors.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each event."
          },
          "name": {
            "kind": "fullName",
            "description": "The name of the event."
          },
          "date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "The date when the event occurs.",
            "nullable": true,
            "when": {
              "column": "category",
              "in": [
                "concert",
                "workshop",
                "festival",
                "sports",
                "theater"
              ]
            },
            "trend": "seasonal"
          },
          "venue_id": {
            "kind": "fk",
            "ref": "venues.id",
            "description": "Foreign key referencing the venue where the event is held."
          },
          "category": {
            "kind": "enum",
            "values": [
              "concert",
              "workshop",
              "festival",
              "sports",
              "theater"
            ],
            "description": "The type of event."
          }
        }
      },
      "venues": {
        "description": "This table contains information about various venues hosting events, allowing for a connection between events and their locations.",
        "rows": 30,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each venue."
          },
          "name": {
            "kind": "fullName",
            "description": "The name of the venue."
          },
          "address": {
            "kind": "sentence",
            "description": "The physical address of the venue.",
            "nullable": true
          },
          "capacity": {
            "kind": "int",
            "min": 50,
            "max": 5000,
            "description": "The maximum number of attendees the venue can accommodate."
          }
        }
      },
      "users": {
        "description": "Each row represents a user who interacts with events, whether attending or participating in discussions.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each user."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the user."
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "The email address of the user."
          },
          "joined_at": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "The date and time when the user joined the platform.",
            "dayProfile": "waking"
          }
        }
      },
      "attendances": {
        "description": "This table records the relationship between users and events they attend, showcasing user engagement.",
        "rows": {
          "per": "users",
          "via": "user_id",
          "min": 1,
          "max": 5,
          "skew": "heavy-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each attendance record."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Foreign key referencing the user who attends the event."
          },
          "event_id": {
            "kind": "fk",
            "ref": "events.id",
            "description": "Foreign key referencing the event being attended."
          }
        }
      },
      "sponsorships": {
        "description": "This table outlines the sponsorships associated with events, detailing which sponsors are involved and their contributions.",
        "rows": {
          "per": "events",
          "via": "event_id",
          "min": 1,
          "max": 3,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each sponsorship record."
          },
          "event_id": {
            "kind": "fk",
            "ref": "events.id",
            "description": "Foreign key referencing the event being sponsored."
          },
          "sponsor_name": {
            "kind": "fullName",
            "description": "The name of the sponsoring entity.",
            "nullable": true
          },
          "amount": {
            "kind": "decimal",
            "min": 100,
            "max": 20000,
            "description": "The amount contributed by the sponsor to the event.",
            "nullable": true
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "nullable",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "What types of events attract the most attendees?",
      "How does sponsorship impact event attendance?",
      "What venues are most popular for certain event categories?",
      "What are the common interactions among users in chat rooms?",
      "How often do users attend multiple events in a month?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Users and Attendances",
        "sql": "SELECT users.full_name, events.name FROM attendances JOIN users ON attendances.user_id = users.id JOIN events ON attendances.event_id = events.id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Attendees by Event Type",
        "sql": "SELECT events.category, COUNT(attendances.user_id) AS attendee_count FROM attendances JOIN events ON attendances.event_id = events.id GROUP BY events.category;",
        "dialect": "postgres"
      },
      {
        "title": "Find Top Sponsors by Event",
        "sql": "SELECT events.name, sponsorships.sponsor_name, SUM(sponsorships.amount) AS total_sponsorship FROM sponsorships JOIN events ON sponsorships.event_id = events.id GROUP BY events.name, sponsorships.sponsor_name ORDER BY total_sponsorship DESC;",
        "dialect": "postgres"
      },
      {
        "title": "Active Users Over Time",
        "sql": "SELECT DATE_TRUNC('month', users.joined_at) AS month, COUNT(users.id) AS active_users FROM users JOIN attendances ON users.id = attendances.user_id GROUP BY month ORDER BY month;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Event Organizers",
        "body": "Event organizers can utilize this dataset to analyze attendance trends and understand which types of events are most engaging for the community. By examining the relationships between events, venues, and users, they can tailor their offerings to better meet the needs and interests of attendees."
      },
      {
        "title": "Marketing Teams",
        "body": "Marketing teams can leverage the sponsorship data to identify key sponsors who support popular events. This analysis helps in building partnerships and creating targeted advertising campaigns that resonate with local audiences, ensuring that marketing efforts align with community interests."
      },
      {
        "title": "Community Engagement Specialists",
        "body": "Community engagement specialists can use this dataset to foster connections among users. By analyzing chat interactions and event attendance, they can design initiatives that promote social interactions and encourage participation in local events, thereby enhancing community bonding."
      }
    ]
  },
  "counts": {
    "users": 200,
    "venues": 30,
    "events": 100,
    "attendances": 373,
    "sponsorships": 153
  },
  "stats": {
    "events": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "name": {
          "nulls": 0,
          "distinct": 100,
          "min": "Alice Costa",
          "max": "Zoe Patel"
        },
        "date": {
          "nulls": 0,
          "distinct": 89,
          "min": "2023-01-01",
          "max": "2023-12-29"
        },
        "venue_id": {
          "nulls": 0,
          "distinct": 29,
          "min": 1,
          "max": 30
        },
        "category": {
          "nulls": 0,
          "distinct": 5,
          "min": "concert",
          "max": "workshop"
        }
      }
    },
    "venues": {
      "rows": 30,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 30,
          "min": 1,
          "max": 30
        },
        "name": {
          "nulls": 0,
          "distinct": 30,
          "min": "Alice Singh",
          "max": "Zara Fischer"
        },
        "address": {
          "nulls": 5,
          "distinct": 25
        },
        "capacity": {
          "nulls": 0,
          "distinct": 30,
          "min": 133,
          "max": 4991
        }
      }
    },
    "users": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "full_name": {
          "nulls": 0,
          "distinct": 197,
          "min": "Alice Gupta",
          "max": "Zoe Wright"
        },
        "email": {
          "nulls": 0,
          "distinct": 199
        },
        "joined_at": {
          "nulls": 0,
          "distinct": 200,
          "min": "2023-01-03 19:51:09",
          "max": "2023-12-29 18:01:46"
        }
      }
    },
    "attendances": {
      "rows": 373,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 373,
          "min": 1,
          "max": 373
        },
        "user_id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "event_id": {
          "nulls": 0,
          "distinct": 98,
          "min": 1,
          "max": 100
        }
      }
    },
    "sponsorships": {
      "rows": 153,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 153,
          "min": 1,
          "max": 153
        },
        "event_id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "sponsor_name": {
          "nulls": 14,
          "distinct": 138,
          "min": "Alice Lee",
          "max": "Zara Torres"
        },
        "amount": {
          "nulls": 10,
          "distinct": 143,
          "min": 112.4,
          "max": 19552.53
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/users.csv",
      "format": "csv",
      "table": "users",
      "key": "datasets/real-time-local-recreation-and-leisure-event-finder/v1/csv/users.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-local-recreation-and-leisure-event-finder/v1/csv/users.csv",
      "bytes": 12044,
      "sha256": "bf2d8bca1570e74829172e3cfc78443efde92878e60d67e1f04f89c8984a7ebd",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/venues.csv",
      "format": "csv",
      "table": "venues",
      "key": "datasets/real-time-local-recreation-and-leisure-event-finder/v1/csv/venues.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-local-recreation-and-leisure-event-finder/v1/csv/venues.csv",
      "bytes": 2087,
      "sha256": "7b1e2b150d9e883abfe827a8ffba974a4b6170f027401327ec3679af7fd2271b",
      "rows": 30,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/events.csv",
      "format": "csv",
      "table": "events",
      "key": "datasets/real-time-local-recreation-and-leisure-event-finder/v1/csv/events.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-local-recreation-and-leisure-event-finder/v1/csv/events.csv",
      "bytes": 3828,
      "sha256": "870a72b8e35e5481f7f5f3d2d4d4096f1fd573a8ff4e991a940e66a2e3e15194",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/attendances.csv",
      "format": "csv",
      "table": "attendances",
      "key": "datasets/real-time-local-recreation-and-leisure-event-finder/v1/csv/attendances.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-local-recreation-and-leisure-event-finder/v1/csv/attendances.csv",
      "bytes": 4173,
      "sha256": "63d5005e3ecdeb709d9d111de5561d5f07f99a392b0d0e697cc375aa4feb8428",
      "rows": 373,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/sponsorships.csv",
      "format": "csv",
      "table": "sponsorships",
      "key": "datasets/real-time-local-recreation-and-leisure-event-finder/v1/csv/sponsorships.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-local-recreation-and-leisure-event-finder/v1/csv/sponsorships.csv",
      "bytes": 4051,
      "sha256": "efd0356cff3546cb5b7c774ab62656f9872a2f297ab803acb7254334ca7f6a6e",
      "rows": 153,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "real-time-local-recreation-and-leisure-event-finder.json",
      "format": "json",
      "table": null,
      "key": "datasets/real-time-local-recreation-and-leisure-event-finder/v1/real-time-local-recreation-and-leisure-event-finder.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-local-recreation-and-leisure-event-finder/v1/real-time-local-recreation-and-leisure-event-finder.json",
      "bytes": 91349,
      "sha256": "2b2274df1e8cdbe1fff69db862827965e4945754f47f30f6ce9b0c759348f988",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/real-time-local-recreation-and-leisure-event-finder/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-local-recreation-and-leisure-event-finder/v1/sql/postgres.sql",
      "bytes": 38407,
      "sha256": "45198e9e6442ccb224ca2bdc6a99d1da058ff1149932f8196322b39ae932dc6a",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/real-time-local-recreation-and-leisure-event-finder/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-local-recreation-and-leisure-event-finder/v1/sql/mysql.sql",
      "bytes": 37855,
      "sha256": "6e60919ca8ef1edd51a9d2452ff84e8fdb3ad98eb373fded852807a3d64007db",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/real-time-local-recreation-and-leisure-event-finder/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-local-recreation-and-leisure-event-finder/v1/sql/mssql.sql",
      "bytes": 39270,
      "sha256": "0de009754daadd332890c32a8e522ee845af3ad03157230ebcfd6e4f5f9c6d60",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/real-time-local-recreation-and-leisure-event-finder/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-local-recreation-and-leisure-event-finder/v1/sql/sqlite.sql",
      "bytes": 37660,
      "sha256": "1f0b58f992cc01dfb8e6aa6c5cc040ec48467f81b3a0f5e4ee9f58ad0dd008d4",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/real-time-local-recreation-and-leisure-event-finder/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-local-recreation-and-leisure-event-finder/v1/prisma/seed.ts",
      "bytes": 73020,
      "sha256": "5446947d9b05686a79bab590e62321de5fbdd222f81d39d06122709f3a2c4b36",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/real-time-local-recreation-and-leisure-event-finder/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-local-recreation-and-leisure-event-finder/v1/django/fixtures.json",
      "bytes": 127286,
      "sha256": "050bb85efef5007f7a8cdce0ad7d782c18db368ef2a199a285a1444ad8b52a7a",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768772768,
  "updatedAt": 1788768772768
}
