{
  "format": "dataset-manifest/1",
  "slug": "social-interaction-platform",
  "version": 2,
  "seed": "social-interaction-platform:1",
  "spec": {
    "format": "dataset/1",
    "slug": "social-interaction-platform",
    "name": "Social Engagement Dynamics",
    "tagline": "User interactions, events, messages, and polls from a social engagement platform.",
    "description": "Users connect through a vibrant social interaction platform, sharing experiences and engaging with one another across various features such as events, messaging, and polls. Each user, represented in the 'users' table, is linked to their activities and interactions, allowing for a comprehensive view of how they participate in the community. Events, stored in the 'events' table, serve as focal points for social gatherings, presenting opportunities for users to join discussions, share feedback, and connect in real-time. \n\nInteractions, cataloged in the 'interactions' table, capture the nuances of user engagement, including likes, comments, and shares related to posts and events. The 'messages' table holds conversations among users, reflecting the dynamics of communication and connection through private exchanges. Polls, documented in the 'polls' table, engage users by capturing opinions and preferences, further enhancing participation and interaction on the platform. Each interaction or message can be traced back to a specific user or event, allowing for intricate joins across tables to analyze user behavior in depth.\n\nBy examining this dataset, developers can explore questions related to user engagement trends, the effectiveness of events in driving interactions, and how polls influence community dynamics. Such analysis reveals patterns in user behavior, highlights popular content, and identifies less engaged areas, providing valuable insights for optimizing the platform. This synthetic dataset offers a rich opportunity to practice SQL queries, data analysis, and visualization techniques in a social context.",
    "domain": "social",
    "shape": "graph-edges",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "social media",
      "user interaction",
      "events",
      "messages",
      "polls",
      "engagement",
      "analytics"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "users": {
        "description": "This table holds user information, including their unique identifiers and usernames. Each user can engage in various interactions and events.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each user."
          },
          "username": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "Username chosen by the user, unique across the platform.",
            "pool": [
              "user",
              "member",
              "guest",
              "admin",
              "player",
              "creator",
              "artist",
              "fan",
              "follower",
              "enthusiast",
              "champion",
              "explorer",
              "contributor",
              "innovator",
              "pioneer",
              "visionary",
              "leader",
              "influencer",
              "guru",
              "pro"
            ]
          },
          "created_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-10-01",
            "description": "Timestamp of when the user registered on the platform.",
            "dayProfile": "waking"
          }
        }
      },
      "events": {
        "description": "This table contains information about events created on the platform, linking users to specific activities and gatherings.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each event."
          },
          "event_name": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "Name of the event.",
            "pool": [
              "launch",
              "summit",
              "conference",
              "meetup",
              "workshop",
              "webinar",
              "festival",
              "gathering",
              "forum",
              "expo",
              "celebration",
              "competition",
              "showcase",
              "presentation",
              "networking",
              "discussion",
              "roundtable",
              "panel",
              "retreat",
              "hackathon"
            ]
          },
          "event_date": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-10-01",
            "description": "Date and time when the event takes place.",
            "trend": "seasonal"
          },
          "creator_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Identifier of the user who created the event."
          }
        }
      },
      "interactions": {
        "description": "This table captures various interactions users have with posts and events, including likes and comments.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each interaction."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Identifier of the user who performed the interaction."
          },
          "event_id": {
            "kind": "fk",
            "ref": "events.id",
            "nullable": true,
            "description": "Identifier of the event associated with the interaction."
          },
          "interaction_type": {
            "kind": "enum",
            "values": [
              "like",
              "comment",
              "share"
            ],
            "description": "Type of interaction performed by the user.",
            "weights": [
              6,
              2,
              1
            ]
          },
          "created_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-10-01",
            "description": "Timestamp of when the interaction occurred.",
            "dayProfile": "waking"
          }
        }
      },
      "messages": {
        "description": "This table records messages exchanged between users, facilitating communication on the platform.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each message."
          },
          "sender_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Identifier of the user who sent the message."
          },
          "receiver_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Identifier of the user who received the message."
          },
          "content": {
            "kind": "sentence",
            "min": 1,
            "max": 140,
            "description": "Content of the message."
          },
          "sent_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-10-01",
            "description": "Timestamp of when the message was sent.",
            "dayProfile": "waking"
          }
        }
      },
      "polls": {
        "description": "This table records polls created by users, capturing user responses and engagement with poll options.",
        "rows": 30,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each poll."
          },
          "question": {
            "kind": "sentence",
            "min": 5,
            "max": 100,
            "description": "The question asked in the poll."
          },
          "created_by": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Identifier of the user who created the poll."
          },
          "created_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-10-01",
            "description": "Timestamp of when the poll was created.",
            "dayProfile": "waking"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "timestamped",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "What types of interactions are most common among users?",
      "Which events attract the highest user engagement?",
      "How do message exchanges correlate with event participation?",
      "What is the average response rate to polls?",
      "Which users are the most active on the platform?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Users with Their Interactions",
        "sql": "SELECT users.username, interactions.interaction_type FROM users JOIN interactions ON users.id = interactions.user_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Interactions by Event",
        "sql": "SELECT events.event_name, COUNT(interactions.id) FROM events LEFT JOIN interactions ON events.id = interactions.event_id GROUP BY events.event_name;",
        "dialect": "postgres"
      },
      {
        "title": "Messages Sent by Each User",
        "sql": "SELECT sender_id, COUNT(id) FROM messages GROUP BY sender_id;",
        "dialect": "postgres"
      },
      {
        "title": "Poll Responses Over Time",
        "sql": "SELECT created_at, COUNT(id) FROM polls GROUP BY created_at;",
        "dialect": "postgres"
      },
      {
        "title": "Engagement Metrics for Events",
        "sql": "SELECT events.event_name, COUNT(interactions.id) AS engagement FROM events LEFT JOIN interactions ON events.id = interactions.event_id GROUP BY events.event_name ORDER BY engagement DESC;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Social Media Analyst",
        "body": "A social media analyst can use the dataset to examine user behavior and engagement patterns on the platform. By analyzing interactions, events, and messages, they can generate insights about user preferences and content effectiveness, informing future strategies."
      },
      {
        "title": "Data Science Educator",
        "body": "An educator teaching data science can utilize this dataset to demonstrate SQL querying techniques and data analysis. Students can practice writing complex queries, joining tables, and exploring user interaction dynamics in a real-world-like dataset."
      },
      {
        "title": "Community Manager",
        "body": "A community manager can leverage the data to evaluate event success and user engagement. By analyzing which events garner the most interactions and messages, they can tailor future events to better meet community interests and foster engagement."
      },
      {
        "title": "Market Researcher",
        "body": "A market researcher can analyze poll responses and interactions to understand user sentiments and preferences. By examining engagement metrics, they can identify trends that could influence product development or marketing campaigns."
      }
    ]
  },
  "counts": {
    "users": 100,
    "events": 50,
    "interactions": 200,
    "messages": 300,
    "polls": 30
  },
  "stats": {
    "users": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "username": {
          "nulls": 0,
          "distinct": 75
        },
        "created_at": {
          "nulls": 0,
          "distinct": 100,
          "min": "2020-01-07 17:05:09",
          "max": "2023-09-18 10:47:09"
        }
      }
    },
    "events": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "event_name": {
          "nulls": 0,
          "distinct": 46
        },
        "event_date": {
          "nulls": 0,
          "distinct": 50,
          "min": "2020-02-02 08:04:28",
          "max": "2023-09-22 17:32:00"
        },
        "creator_id": {
          "nulls": 0,
          "distinct": 40,
          "min": 2,
          "max": 99
        }
      }
    },
    "interactions": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "user_id": {
          "nulls": 0,
          "distinct": 85,
          "min": 1,
          "max": 100
        },
        "event_id": {
          "nulls": 18,
          "distinct": 49,
          "min": 1,
          "max": 50
        },
        "interaction_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "comment",
          "max": "share"
        },
        "created_at": {
          "nulls": 0,
          "distinct": 200,
          "min": "2020-01-04 17:09:31",
          "max": "2023-09-12 20:01:20"
        }
      }
    },
    "messages": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "sender_id": {
          "nulls": 0,
          "distinct": 95,
          "min": 1,
          "max": 100
        },
        "receiver_id": {
          "nulls": 0,
          "distinct": 97,
          "min": 1,
          "max": 100
        },
        "content": {
          "nulls": 0,
          "distinct": 298
        },
        "sent_at": {
          "nulls": 0,
          "distinct": 300,
          "min": "2020-01-03 09:54:14",
          "max": "2023-09-28 12:02:09"
        }
      }
    },
    "polls": {
      "rows": 30,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 30,
          "min": 1,
          "max": 30
        },
        "question": {
          "nulls": 0,
          "distinct": 30
        },
        "created_by": {
          "nulls": 0,
          "distinct": 24,
          "min": 2,
          "max": 100
        },
        "created_at": {
          "nulls": 0,
          "distinct": 30,
          "min": "2020-01-09 18:58:31",
          "max": "2023-08-10 17:08:52"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/users.csv",
      "format": "csv",
      "table": "users",
      "key": "datasets/social-interaction-platform/v2/csv/users.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/social-interaction-platform/v2/csv/users.csv",
      "bytes": 3905,
      "sha256": "f64d40eac57ac02e16fbda2dae126498697ac5d37e74f67bf959f1be659d62e8",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/events.csv",
      "format": "csv",
      "table": "events",
      "key": "datasets/social-interaction-platform/v2/csv/events.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/social-interaction-platform/v2/csv/events.csv",
      "bytes": 2379,
      "sha256": "cdd62bd38b4a400dbbeba7062e9605dd6f68027180198e1527c0569c257b007f",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/interactions.csv",
      "format": "csv",
      "table": "interactions",
      "key": "datasets/social-interaction-platform/v2/csv/interactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/social-interaction-platform/v2/csv/interactions.csv",
      "bytes": 7203,
      "sha256": "432de34f2b87748564b419196492d60c0442f21056491e78ae420efca6638a31",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/messages.csv",
      "format": "csv",
      "table": "messages",
      "key": "datasets/social-interaction-platform/v2/csv/messages.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/social-interaction-platform/v2/csv/messages.csv",
      "bytes": 26104,
      "sha256": "4b33386e57101e131f27ac876f11ce8fdbe6b3888ebfe6550996c05365dead8e",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/polls.csv",
      "format": "csv",
      "table": "polls",
      "key": "datasets/social-interaction-platform/v2/csv/polls.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/social-interaction-platform/v2/csv/polls.csv",
      "bytes": 2514,
      "sha256": "a4ae5005c5daf41b12f3851fe022a36575842450c03fb2a6fe09105f5c213508",
      "rows": 30,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "social-interaction-platform.json",
      "format": "json",
      "table": null,
      "key": "datasets/social-interaction-platform/v2/social-interaction-platform.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/social-interaction-platform/v2/social-interaction-platform.json",
      "bytes": 110385,
      "sha256": "d6ca9f4f5412ca5017ba922aae9cbe28ec649121d47c97d332496a3ac8f617a3",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/social-interaction-platform/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/social-interaction-platform/v2/sql/postgres.sql",
      "bytes": 54077,
      "sha256": "489d6c44c9d098c5afe1b555706e3bc5e0c5130bca16a5833327083df6b7cbd8",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/social-interaction-platform/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/social-interaction-platform/v2/sql/mysql.sql",
      "bytes": 53525,
      "sha256": "858d8a55806c9d3968aa7d5e6c72c4cabb7e09ec6cbc5911ff1b4e9b7bb53385",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/social-interaction-platform/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/social-interaction-platform/v2/sql/mssql.sql",
      "bytes": 55208,
      "sha256": "cbcc6e625d3872053ff8f4e5410a4aea1f611f4683b8910d457fe7dc00bf09b5",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/social-interaction-platform/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/social-interaction-platform/v2/sql/sqlite.sql",
      "bytes": 53292,
      "sha256": "f9ac0bee2d3771a0a30ebdfe88c3b5b72797894fdc93a230e757372d9a3fd887",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/social-interaction-platform/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/social-interaction-platform/v2/prisma/seed.ts",
      "bytes": 96560,
      "sha256": "a5434968b6d5b734c30c4349ff349111d45254ca452fdb08c247d17e30a8d813",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/social-interaction-platform/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/social-interaction-platform/v2/django/fixtures.json",
      "bytes": 138049,
      "sha256": "798fae081d10d3bf752f14a1c958242caaafd6a88db73af0f855da1e67bf5a12",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767799036,
  "updatedAt": 1788786172550
}
