{
  "format": "dataset-manifest/1",
  "slug": "marketing-insights-dataset",
  "version": 1,
  "seed": "marketing-insights-dataset:1",
  "spec": {
    "format": "dataset/1",
    "slug": "marketing-insights-dataset",
    "name": "Marketing Insights Dataset",
    "tagline": "Leads, campaigns, engagement metrics, marketing materials, and call logs for targeted client outreach.",
    "description": "Organizations manage leads by nurturing relationships through targeted outreach and personalized communication strategies. They create and refine marketing campaigns based on real-time customer engagement and feedback, tailoring their approaches to improve conversion rates. The heart of this operation lies in understanding client profiles, which include essential details to inform marketing tactics, alongside the marketing materials used to capture attention and drive interest. As interactions unfold, the collection of engagement metrics provides insights into how prospects are responding, enabling teams to adjust their strategies dynamically. Call logs serve as a record of conversations, helping teams track interactions and follow up effectively, thereby enhancing the overall customer experience.\n\nThis dataset consists of several interconnected tables: the leads table contains information about potential clients, including their demographics and engagement history. The campaigns table outlines the various marketing initiatives deployed, detailing the target audience and associated marketing materials. Engagement metrics track the performance of these campaigns, capturing data on how prospects interact with emails, social media posts, and other outreach efforts. The marketing materials table holds records of the content created for campaigns, while the call_logs table documents the communication history with each lead.\n\nBy analyzing these tables, users can answer key questions such as which marketing materials are most effective in generating leads, how different campaigns perform based on engagement metrics, and what patterns emerge from call interactions. This data is ideal for practice in data manipulation, analytics, and marketing insights, allowing developers to explore relationships and derive actionable conclusions. Note that all data in this dataset is synthetic, designed to mimic real-world scenarios while maintaining privacy and compliance.",
    "domain": "marketing",
    "shape": "slowly-changing",
    "useCases": [
      "etl-pipelines",
      "teaching"
    ],
    "keywords": [
      "marketing",
      "leads",
      "campaigns",
      "engagement",
      "analytics",
      "customer behavior",
      "call logs",
      "data analysis"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "leads": {
        "description": "Each row represents a unique lead with associated contact details and current status. It links to interactions and marketing materials relevant to that lead.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the lead."
          },
          "first_name": {
            "kind": "firstName",
            "description": "First name of the lead.",
            "nullable": true
          },
          "last_name": {
            "kind": "lastName",
            "description": "Last name of the lead.",
            "nullable": true
          },
          "email": {
            "kind": "email",
            "from": [
              "first_name",
              "last_name"
            ],
            "description": "Email address of the lead.",
            "nullable": true
          },
          "status": {
            "kind": "enum",
            "values": [
              "new",
              "contacted",
              "qualified",
              "disqualified"
            ],
            "weights": [
              40,
              30,
              20,
              10
            ],
            "description": "Current status of the lead."
          },
          "created_at": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date the lead was created.",
            "nullable": true,
            "when": {
              "column": "status",
              "in": [
                "contacted",
                "qualified"
              ]
            },
            "dayProfile": "waking"
          }
        }
      },
      "campaigns": {
        "description": "This table contains marketing campaigns, detailing the strategies used and their effectiveness in engaging leads. Each campaign links back to leads via interactions.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the campaign."
          },
          "name": {
            "kind": "words",
            "min": 3,
            "max": 10,
            "description": "Name of the marketing campaign.",
            "nullable": true
          },
          "start_date": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Start date of the campaign.",
            "dayProfile": "business"
          },
          "end_date": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "End date of the campaign.",
            "dayProfile": "business"
          },
          "budget": {
            "kind": "decimal",
            "min": 1000,
            "max": 50000,
            "scale": 2,
            "description": "Budget allocated for the campaign.",
            "nullable": true
          }
        }
      },
      "engagement_metrics": {
        "description": "This table tracks engagement metrics for leads during campaigns, detailing how frequently leads interact with marketing materials.",
        "rows": 750,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the engagement record."
          },
          "lead_id": {
            "kind": "fk",
            "ref": "leads.id",
            "description": "Reference to the lead associated with the engagement."
          },
          "campaign_id": {
            "kind": "fk",
            "ref": "campaigns.id",
            "description": "Reference to the campaign associated with the engagement."
          },
          "engagement_score": {
            "kind": "int",
            "min": 1,
            "max": 100,
            "description": "Score representing the level of engagement.",
            "nullable": true
          },
          "engagement_date": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date of the engagement interaction.",
            "dayProfile": "waking"
          }
        }
      },
      "marketing_materials": {
        "description": "This table contains various marketing materials used in campaigns, linking them to specific campaigns and leads.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the marketing material."
          },
          "campaign_id": {
            "kind": "fk",
            "ref": "campaigns.id",
            "description": "Reference to the campaign for which the material was used."
          },
          "type": {
            "kind": "enum",
            "values": [
              "email",
              "brochure",
              "social media",
              "webinar"
            ],
            "description": "Type of marketing material."
          },
          "content": {
            "kind": "paragraph",
            "min": 50,
            "max": 300,
            "description": "Description of the marketing material content.",
            "nullable": true,
            "when": {
              "column": "type",
              "in": [
                "email",
                "brochure"
              ]
            }
          },
          "created_at": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date the marketing material was created.",
            "dayProfile": "business"
          }
        }
      },
      "call_logs": {
        "description": "Each row represents a call made to leads, capturing the details of the interaction and linking it back to the lead.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the call log."
          },
          "lead_id": {
            "kind": "fk",
            "ref": "leads.id",
            "description": "Reference to the lead for the call."
          },
          "call_date": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date of the call.",
            "nullable": true,
            "when": {
              "column": "outcome",
              "in": [
                "successful",
                "failed"
              ]
            },
            "dayProfile": "waking",
            "trend": "growing"
          },
          "duration": {
            "kind": "int",
            "min": 1,
            "max": 120,
            "description": "Duration of the call in minutes.",
            "nullable": true
          },
          "outcome": {
            "kind": "enum",
            "values": [
              "successful",
              "failed",
              "follow-up needed"
            ],
            "description": "Outcome of the call."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "timestamped",
      "nullable",
      "self-referencing"
    ],
    "analysisQuestions": [
      "What is the overall engagement score for leads in different campaigns?",
      "Which marketing materials are most effective in engaging leads?",
      "How does the call outcome relate to the lead's current status?",
      "What trends can be observed in campaign budgets over time?",
      "Which type of campaigns tend to have the highest engagement rates?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Leads with Engagement Metrics",
        "sql": "SELECT leads.first_name, leads.last_name, engagement_metrics.engagement_score FROM leads JOIN engagement_metrics ON leads.id = engagement_metrics.lead_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Engagements per Campaign",
        "sql": "SELECT campaigns.name, COUNT(engagement_metrics.id) AS engagement_count FROM campaigns LEFT JOIN engagement_metrics ON campaigns.id = engagement_metrics.campaign_id GROUP BY campaigns.name;",
        "dialect": "postgres"
      },
      {
        "title": "Average Call Duration by Outcome",
        "sql": "SELECT call_logs.outcome, AVG(call_logs.duration) AS average_duration FROM call_logs GROUP BY call_logs.outcome;",
        "dialect": "postgres"
      },
      {
        "title": "Engagement Trends Over Time",
        "sql": "SELECT DATE_TRUNC('month', engagement_metrics.engagement_date) AS month, AVG(engagement_metrics.engagement_score) AS avg_score FROM engagement_metrics GROUP BY month ORDER BY month;",
        "dialect": "postgres"
      },
      {
        "title": "Campaign Budget Analysis",
        "sql": "SELECT campaigns.name, SUM(campaigns.budget) AS total_budget FROM campaigns GROUP BY campaigns.name HAVING SUM(campaigns.budget) > 10000;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Marketing Analyst Review",
        "body": "A marketing analyst can use the Marketing Insights Dataset to evaluate the effectiveness of different campaigns by analyzing the engagement scores and feedback from leads. This information helps them identify which strategies are most successful and where to allocate future resources."
      },
      {
        "title": "Teaching Data Analysis",
        "body": "Educators can use this dataset in classroom settings to teach students about data relationships and analysis techniques in marketing. By working with real-world scenarios, students can gain hands-on experience with SQL queries and data visualization tools."
      },
      {
        "title": "Lead Conversion Optimization",
        "body": "Sales teams can analyze call logs and engagement metrics to optimize lead conversion strategies. By understanding which leads are most engaged and how call outcomes correlate with lead status, they can refine their outreach efforts for better results."
      },
      {
        "title": "Campaign Planning",
        "body": "Marketing managers can leverage this dataset to plan future campaigns by assessing past performance. They can analyze which types of marketing materials and campaigns yielded the highest engagement and adjust their strategies accordingly."
      }
    ]
  },
  "counts": {
    "campaigns": 150,
    "leads": 500,
    "call_logs": 500,
    "engagement_metrics": 750,
    "marketing_materials": 300
  },
  "stats": {
    "leads": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "first_name": {
          "nulls": 64,
          "distinct": 80,
          "min": "Alice",
          "max": "Zoe"
        },
        "last_name": {
          "nulls": 59,
          "distinct": 80,
          "min": "Adams",
          "max": "Zhang"
        },
        "email": {
          "nulls": 61,
          "distinct": 425
        },
        "status": {
          "nulls": 0,
          "distinct": 4,
          "min": "contacted",
          "max": "qualified"
        },
        "created_at": {
          "nulls": 260,
          "distinct": 240,
          "min": "2022-01-02 10:19:15",
          "max": "2023-12-31 18:27:33"
        }
      }
    },
    "campaigns": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "name": {
          "nulls": 18,
          "distinct": 132
        },
        "start_date": {
          "nulls": 0,
          "distinct": 150,
          "min": "2022-01-06 17:10:05",
          "max": "2023-12-28 12:21:33"
        },
        "end_date": {
          "nulls": 0,
          "distinct": 150,
          "min": "2022-01-01 08:08:52",
          "max": "2023-12-28 13:22:48"
        },
        "budget": {
          "nulls": 20,
          "distinct": 130,
          "min": 1930.1,
          "max": 49684.98
        }
      }
    },
    "engagement_metrics": {
      "rows": 750,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 750,
          "min": 1,
          "max": 750
        },
        "lead_id": {
          "nulls": 0,
          "distinct": 399,
          "min": 1,
          "max": 500
        },
        "campaign_id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "engagement_score": {
          "nulls": 79,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "engagement_date": {
          "nulls": 0,
          "distinct": 750,
          "min": "2022-01-02 20:01:24",
          "max": "2023-12-31 20:51:13"
        }
      }
    },
    "marketing_materials": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "campaign_id": {
          "nulls": 0,
          "distinct": 129,
          "min": 1,
          "max": 150
        },
        "type": {
          "nulls": 0,
          "distinct": 4,
          "min": "brochure",
          "max": "webinar"
        },
        "content": {
          "nulls": 156,
          "distinct": 144
        },
        "created_at": {
          "nulls": 0,
          "distinct": 300,
          "min": "2022-01-06 12:15:57",
          "max": "2023-12-30 12:29:01"
        }
      }
    },
    "call_logs": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "lead_id": {
          "nulls": 0,
          "distinct": 317,
          "min": 2,
          "max": 500
        },
        "call_date": {
          "nulls": 168,
          "distinct": 332,
          "min": "2022-01-05 08:36:33",
          "max": "2023-12-31 10:00:02"
        },
        "duration": {
          "nulls": 61,
          "distinct": 117,
          "min": 1,
          "max": 120
        },
        "outcome": {
          "nulls": 0,
          "distinct": 3,
          "min": "failed",
          "max": "successful"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/campaigns.csv",
      "format": "csv",
      "table": "campaigns",
      "key": "datasets/marketing-insights-dataset/v1/csv/campaigns.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-insights-dataset/v1/csv/campaigns.csv",
      "bytes": 13387,
      "sha256": "8a5ac0ec9c29bb516468b200ca80a414aa512dbaf8be53fed7df7ac80c368d47",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/leads.csv",
      "format": "csv",
      "table": "leads",
      "key": "datasets/marketing-insights-dataset/v1/csv/leads.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-insights-dataset/v1/csv/leads.csv",
      "bytes": 27406,
      "sha256": "55f7f9751da68c944b9bf857b3eb815ddb88fcf1045c9f89df71ae9b015ca41d",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/call_logs.csv",
      "format": "csv",
      "table": "call_logs",
      "key": "datasets/marketing-insights-dataset/v1/csv/call_logs.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-insights-dataset/v1/csv/call_logs.csv",
      "bytes": 18421,
      "sha256": "253f07ad33114fb1165abb291927831c9d581de53744506e57b915ffe4243980",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/engagement_metrics.csv",
      "format": "csv",
      "table": "engagement_metrics",
      "key": "datasets/marketing-insights-dataset/v1/csv/engagement_metrics.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-insights-dataset/v1/csv/engagement_metrics.csv",
      "bytes": 26013,
      "sha256": "ba4212a07a1c2283f411b374a28077f19216e732c7d957a995069bd5bd8d5e2c",
      "rows": 750,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/marketing_materials.csv",
      "format": "csv",
      "table": "marketing_materials",
      "key": "datasets/marketing-insights-dataset/v1/csv/marketing_materials.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-insights-dataset/v1/csv/marketing_materials.csv",
      "bytes": 36560,
      "sha256": "98463d9b65a466890fb1b7c7be1cfa260506269acf1829f58773b1c7dbdba3ee",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "marketing-insights-dataset.json",
      "format": "json",
      "table": null,
      "key": "datasets/marketing-insights-dataset/v1/marketing-insights-dataset.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-insights-dataset/v1/marketing-insights-dataset.json",
      "bytes": 376096,
      "sha256": "4bb0c490a04baf064df7902d38b2760d6c781048fdcd2fb82ecde24b1ec9ad2d",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/marketing-insights-dataset/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-insights-dataset/v1/sql/postgres.sql",
      "bytes": 161093,
      "sha256": "697e9f51aad09f8a94c959cdec64f73ed429e5c86cbbb3750291dba0c711565e",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/marketing-insights-dataset/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-insights-dataset/v1/sql/mysql.sql",
      "bytes": 160492,
      "sha256": "86bb7e52efe689214d2608368df95e243214c9056cbf976525e4a3074620187e",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/marketing-insights-dataset/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-insights-dataset/v1/sql/mssql.sql",
      "bytes": 165673,
      "sha256": "2675532c53544a963ebb593724b0523e26c167511b7aba0d265bc94a889c4751",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/marketing-insights-dataset/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-insights-dataset/v1/sql/sqlite.sql",
      "bytes": 160223,
      "sha256": "1a45176275a48ad3998de9a78b13300a819bb930429eef72d31a0f8f8d945cf8",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/marketing-insights-dataset/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-insights-dataset/v1/prisma/seed.ts",
      "bytes": 315337,
      "sha256": "39a009d50bab68a68ebe8bd058574d0caa593c55021f0a1255ba6a1605381a91",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/marketing-insights-dataset/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-insights-dataset/v1/django/fixtures.json",
      "bytes": 476475,
      "sha256": "d160af2e3737bcfa45be9c105239e566893598550213ff38aa8c64554b543129",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768156308,
  "updatedAt": 1788768156308
}
