{
  "format": "dataset-manifest/1",
  "slug": "social-network",
  "version": 1,
  "seed": "social-network:1",
  "spec": {
    "format": "dataset/1",
    "slug": "social-network",
    "name": "Social Community Dynamics",
    "tagline": "User interactions, content engagement, and social dynamics within a vibrant social network.",
    "description": "Users share posts, videos, and stories in a vibrant social network where interactions shape relationships and conversations. The platform focuses on user profiles that detail individual interests, connections, and content engagement. Here, the dynamics of social interactions tell a story of how relationships develop—whether through friendships, group memberships, or engagement with popular content. Most activity revolves around trending posts, but the occasional unique comment adds depth, showcasing the varied opinions of users on hot topics in the community.\n\nThe primary table, social_interactions, captures details of each interaction between users. Each row represents a unique event where a user engages with content—be it a like, comment, or share—allowing for a rich analysis of behavioral patterns. By examining this table, developers can explore how often users interact with specific posts, identify influential users who generate high engagement, and track the growth of relationships over time. \n\nWith this dataset, practitioners can answer questions such as: How many interactions does a typical post receive? What types of content spark the most discussions? How do user interactions vary across different demographics? The data provides ample opportunity to practice SQL queries, data visualization, and social network analysis, allowing for deeper insights into the dynamics of online communities. \n\nIt is important to note that the data within this dataset is synthetic, generated to provide a realistic yet fictitious representation of social interactions, making it a valuable resource for testing hypotheses and honing analytical skills.",
    "domain": "social",
    "shape": "graph-edges",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "social network",
      "user interactions",
      "content engagement",
      "likes",
      "comments",
      "relationships",
      "community dynamics"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "social_interactions": {
        "description": "Each row represents a unique interaction between users, including the type of interaction and the content involved. It links users through different types of engagement such as likes, comments, and shares.",
        "rows": 1000,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each interaction."
          },
          "user_id": {
            "kind": "uuid",
            "description": "Unique identifier for the user initiating the interaction."
          },
          "target_user_id": {
            "kind": "uuid",
            "nullable": true,
            "description": "Unique identifier for the user receiving the interaction, if applicable."
          },
          "content_id": {
            "kind": "uuid",
            "description": "Unique identifier for the content being interacted with, such as a post or video."
          },
          "interaction_type": {
            "kind": "enum",
            "values": [
              "like",
              "comment",
              "share"
            ],
            "description": "Type of interaction performed by the user."
          },
          "comment_text": {
            "kind": "words",
            "max": 50,
            "nullable": true,
            "description": "Text of the comment if the interaction type is 'comment'."
          },
          "timestamp": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Timestamp of when the interaction occurred.",
            "dayProfile": "waking"
          }
        }
      }
    },
    "structure": "single-table",
    "traits": [
      "categorical",
      "timestamped",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "What types of interactions are most common among users?",
      "How do user interactions vary by time of day or day of the week?",
      "Which users have the highest engagement rates with content?",
      "What content types receive the most comments or likes?",
      "Are there trends in user interactions around specific events or topics?"
    ],
    "suggestedQueries": [
      {
        "title": "Count interactions by type",
        "sql": "SELECT interaction_type, COUNT(*) FROM social_interactions GROUP BY interaction_type;",
        "dialect": "postgres"
      },
      {
        "title": "Engagement rates by user",
        "sql": "SELECT user_id, COUNT(*) AS engagement_count FROM social_interactions GROUP BY user_id ORDER BY engagement_count DESC;",
        "dialect": "postgres"
      },
      {
        "title": "Most commented content",
        "sql": "SELECT content_id, COUNT(*) AS comment_count FROM social_interactions WHERE interaction_type = 'comment' GROUP BY content_id ORDER BY comment_count DESC;",
        "dialect": "postgres"
      },
      {
        "title": "Interactions over time",
        "sql": "SELECT DATE(timestamp) AS interaction_date, COUNT(*) FROM social_interactions GROUP BY interaction_date ORDER BY interaction_date;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Teaching SQL Basics",
        "body": "Educators can utilize this dataset to teach students the fundamentals of SQL querying, allowing them to practice JOINs, aggregations, and filtering. The variety of interactions provides a rich context for students to explore database concepts in a real-world scenario."
      },
      {
        "title": "Analyzing User Engagement",
        "body": "Data analysts can use this dataset to analyze user engagement patterns within a social network. By exploring how often users interact with different types of content, analysts can uncover insights that inform content strategy and improve user experience."
      },
      {
        "title": "Trend Analysis in Social Media",
        "body": "Marketers can study the dataset to identify trends in user interactions over time, helping them to craft targeted marketing campaigns based on user behavior. Understanding which types of content drive engagement can lead to more effective outreach strategies."
      }
    ]
  },
  "counts": {
    "social_interactions": 1000
  },
  "stats": {
    "social_interactions": {
      "rows": 1000,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 1000,
          "min": 1,
          "max": 1000
        },
        "user_id": {
          "nulls": 0,
          "distinct": 1000
        },
        "target_user_id": {
          "nulls": 89,
          "distinct": 911
        },
        "content_id": {
          "nulls": 0,
          "distinct": 1000
        },
        "interaction_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "comment",
          "max": "share"
        },
        "comment_text": {
          "nulls": 99,
          "distinct": 901
        },
        "timestamp": {
          "nulls": 0,
          "distinct": 1000,
          "min": "2023-01-01 14:11:21",
          "max": "2023-12-31 21:33:19"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/social_interactions.csv",
      "format": "csv",
      "table": "social_interactions",
      "key": "datasets/social-network/v1/csv/social_interactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/social-network/v1/csv/social_interactions.csv",
      "bytes": 297764,
      "sha256": "6b75d279c2922c021b2556573af09b23e309aac36244d91902b4ea7a16a3d54c",
      "rows": 1000,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "social-network.json",
      "format": "json",
      "table": null,
      "key": "datasets/social-network/v1/social-network.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/social-network/v1/social-network.json",
      "bytes": 468096,
      "sha256": "c01580a6b8f3bf8724d37a203d2a0483e08faae657aa5a1e6169b212afcc915c",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/social-network/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/social-network/v1/sql/postgres.sql",
      "bytes": 323460,
      "sha256": "89f852190d7ba31c88c1e9cc5bcbbec333bac42e16a40ac005b2e46fe0c45388",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/social-network/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/social-network/v1/sql/mysql.sql",
      "bytes": 323350,
      "sha256": "21ee121b3139567276ae6e190712d7aa9a8d5951191995f3d6c1ddba493d0106",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/social-network/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/social-network/v1/sql/mssql.sql",
      "bytes": 329272,
      "sha256": "5cad5ccfe85a5dab3b8273a5e12f03498d96734b717adc01e46fcb45b8acc915",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/social-network/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/social-network/v1/sql/sqlite.sql",
      "bytes": 323303,
      "sha256": "ce0a35ae6744bebd1043e6102689c5bfff18c433b050c78ac554fa4591d335bf",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/social-network/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/social-network/v1/prisma/seed.ts",
      "bytes": 427900,
      "sha256": "fc0e8b20ceba6dce410bf293e57ba83ca57767ea7955391167d039368f9b9baf",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/social-network/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/social-network/v1/django/fixtures.json",
      "bytes": 523065,
      "sha256": "54c2914598f79e1023e54001efadd3ce969f1fdb16f255f853d100fc1fb33899",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788766827608,
  "updatedAt": 1788766827608
}
