{
  "format": "dataset-manifest/1",
  "slug": "marketing-campaign-interactions",
  "version": 1,
  "seed": "marketing-campaign-interactions:1",
  "spec": {
    "format": "dataset/1",
    "slug": "marketing-campaign-interactions",
    "name": "Marketing Campaign Interactions",
    "tagline": "Interactions between leads, contacts, accounts, and campaign activities in marketing.",
    "description": "Leads engage with marketing campaigns designed to convert potential clients into loyal customers. Through various campaign activities and targeted email communications, businesses nurture relationships and drive sales, aiming to transform leads into accounts. These interactions are crucial for understanding customer behavior and optimizing marketing strategies. Each lead represents a potential opportunity, while contacts can provide insights into existing relationships and account statuses, forming a vital link in the sales funnel.\n\nThe tables in this dataset illustrate how these components interconnect. For example, a row in the 'leads' table signifies an individual interested in the business's offerings, while the 'contacts' table contains information about existing customer relationships. The 'accounts' table ties these leads and contacts back to the business, highlighting how they contribute to the overall sales strategy. 'Campaign_activities' document the various marketing efforts made to engage leads, whether through advertisements, promotions, or events, while 'email_communications' track the outreach efforts aimed at converting leads into active customers. Joining the 'leads' and 'campaign_activities' tables can reveal how successfully specific marketing efforts engage different leads.\n\nThe data contained here provides valuable insights into the effectiveness of marketing campaigns, helping to answer questions such as: Which activities yield the highest conversion rates? How do email communications impact lead engagement over time? Are certain product launches more successful than others in capturing lead interest? Practicing with this synthetic dataset allows developers to explore and analyze marketing interactions comprehensively, fostering a deeper understanding of customer engagement strategies.",
    "domain": "marketing",
    "shape": "graph-edges",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "marketing",
      "campaigns",
      "leads",
      "contacts",
      "accounts",
      "interactions",
      "email",
      "analytics",
      "data",
      "sales"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "leads": {
        "description": "This table captures potential clients known as leads, detailing their information and status within the sales funnel.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each lead."
          },
          "name": {
            "kind": "fullName",
            "description": "Full name of the lead."
          },
          "email": {
            "kind": "email",
            "from": "name",
            "description": "Email address of the lead."
          },
          "status": {
            "kind": "enum",
            "values": [
              "new",
              "contacted",
              "qualified",
              "converted",
              "inactive"
            ],
            "description": "Current status of the lead."
          },
          "created_at": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date and time when the lead was created.",
            "dayProfile": "waking"
          }
        }
      },
      "contacts": {
        "description": "This table contains the contacts associated with leads, representing individuals who may have interacted with the marketing efforts.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each contact."
          },
          "lead_id": {
            "kind": "fk",
            "ref": "leads.id",
            "description": "Reference to the lead the contact is associated with."
          },
          "name": {
            "kind": "fullName",
            "description": "Full name of the contact."
          },
          "email": {
            "kind": "email",
            "from": "name",
            "description": "Email address of the contact."
          },
          "phone": {
            "kind": "phone",
            "nullable": true,
            "description": "Phone number of the contact, if available."
          }
        }
      },
      "accounts": {
        "description": "This table stores information about accounts linked to leads, representing businesses or organizations that may be interested in the products.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each account."
          },
          "name": {
            "kind": "company",
            "description": "Name of the company or organization."
          },
          "industry": {
            "kind": "enum",
            "values": [
              "technology",
              "retail",
              "finance",
              "healthcare",
              "education"
            ],
            "description": "Industry of the account."
          },
          "created_at": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date and time when the account was created.",
            "dayProfile": "waking"
          }
        }
      },
      "campaign_activities": {
        "description": "This table lists the various marketing activities conducted as part of campaigns, detailing their effectiveness.",
        "rows": 400,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each campaign activity."
          },
          "lead_id": {
            "kind": "fk",
            "ref": "leads.id",
            "description": "Reference to the lead targeted by this campaign activity."
          },
          "activity_type": {
            "kind": "enum",
            "values": [
              "email",
              "webinar",
              "social_media",
              "ad",
              "event"
            ],
            "description": "Type of marketing activity performed."
          },
          "date": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date when the activity occurred.",
            "trend": "seasonal"
          },
          "outcome": {
            "kind": "enum",
            "values": [
              "success",
              "failure",
              "pending"
            ],
            "description": "Outcome of the campaign activity."
          }
        }
      },
      "email_communications": {
        "description": "This table details the email communications sent to leads as part of the marketing campaigns.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each email communication."
          },
          "lead_id": {
            "kind": "fk",
            "ref": "leads.id",
            "description": "Reference to the lead who received the email."
          },
          "subject": {
            "kind": "sentence",
            "min": 5,
            "max": 100,
            "description": "Subject line of the email."
          },
          "sent_at": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date and time when the email was sent.",
            "dayProfile": "business"
          },
          "opened": {
            "kind": "bool",
            "trueRate": 0.6,
            "description": "Indicates whether the email was opened (true) or not (false)."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "timestamped",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "What are the most common sources of leads?",
      "Which campaign activities lead to the highest conversion rates?",
      "How does lead engagement vary by industry?",
      "What time of year do most leads convert, and why might that be?",
      "Which email subject lines have the best open rates?"
    ],
    "suggestedQueries": [
      {
        "title": "Retrieve all leads and their statuses",
        "sql": "SELECT id, name, status FROM leads;",
        "dialect": "postgres"
      },
      {
        "title": "Count leads by status",
        "sql": "SELECT status, COUNT(*) FROM leads GROUP BY status;",
        "dialect": "postgres"
      },
      {
        "title": "Find campaign activities related to a specific lead",
        "sql": "SELECT * FROM campaign_activities WHERE lead_id = 1;",
        "dialect": "postgres"
      },
      {
        "title": "Join leads with their email communications",
        "sql": "SELECT leads.name, email_communications.subject FROM leads JOIN email_communications ON leads.id = email_communications.lead_id;",
        "dialect": "postgres"
      },
      {
        "title": "Analyze email open rates by campaign activity",
        "sql": "SELECT campaign_activities.activity_type, AVG(email_communications.opened::int) AS open_rate FROM email_communications JOIN campaign_activities ON email_communications.lead_id = campaign_activities.lead_id GROUP BY campaign_activities.activity_type;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Marketing Analysts",
        "body": "Marketing analysts can leverage this dataset to evaluate the effectiveness of various campaign strategies by analyzing lead engagement and conversion metrics. They can identify patterns in lead behavior and optimize future campaigns based on insights gained from previous activities."
      },
      {
        "title": "Sales Teams",
        "body": "Sales teams can use this data to track lead interactions and understand which touchpoints are most influential in moving leads through the sales funnel. By viewing the relationships between leads and their corresponding email communications, sales professionals can tailor their outreach efforts effectively."
      },
      {
        "title": "Educators and Students",
        "body": "In academic settings, educators can utilize this dataset for teaching SQL and data analysis concepts. Students can practice query writing and data manipulation skills while exploring real-life scenarios in marketing analytics, enhancing their understanding of data-driven decision-making."
      },
      {
        "title": "Campaign Managers",
        "body": "Campaign managers can analyze the performance of different campaign activities to determine which strategies yield the best results. By examining the relationships between leads, campaigns, and activities, they can refine their approaches and allocate resources more effectively."
      }
    ]
  },
  "counts": {
    "accounts": 150,
    "leads": 300,
    "campaign_activities": 400,
    "contacts": 200,
    "email_communications": 500
  },
  "stats": {
    "leads": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "name": {
          "nulls": 0,
          "distinct": 291,
          "min": "Alice Garcia",
          "max": "Zoe Singh"
        },
        "email": {
          "nulls": 0,
          "distinct": 296
        },
        "status": {
          "nulls": 0,
          "distinct": 5,
          "min": "contacted",
          "max": "qualified"
        },
        "created_at": {
          "nulls": 0,
          "distinct": 300,
          "min": "2023-01-01 09:34:58",
          "max": "2023-12-31 14:25:00"
        }
      }
    },
    "contacts": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "lead_id": {
          "nulls": 0,
          "distinct": 138,
          "min": 1,
          "max": 297
        },
        "name": {
          "nulls": 0,
          "distinct": 196,
          "min": "Alice Jensen",
          "max": "Zoe Lopez"
        },
        "email": {
          "nulls": 0,
          "distinct": 199
        },
        "phone": {
          "nulls": 17,
          "distinct": 177
        }
      }
    },
    "accounts": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "name": {
          "nulls": 0,
          "distinct": 136,
          "min": "Acme Analytics",
          "max": "Willow Works"
        },
        "industry": {
          "nulls": 0,
          "distinct": 5,
          "min": "education",
          "max": "technology"
        },
        "created_at": {
          "nulls": 0,
          "distinct": 150,
          "min": "2023-01-03 18:31:48",
          "max": "2023-12-31 20:42:05"
        }
      }
    },
    "campaign_activities": {
      "rows": 400,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 400,
          "min": 1,
          "max": 400
        },
        "lead_id": {
          "nulls": 0,
          "distinct": 228,
          "min": 2,
          "max": 300
        },
        "activity_type": {
          "nulls": 0,
          "distinct": 5,
          "min": "ad",
          "max": "webinar"
        },
        "date": {
          "nulls": 0,
          "distinct": 400,
          "min": "2023-01-01 16:58:17",
          "max": "2023-12-31 12:45:01"
        },
        "outcome": {
          "nulls": 0,
          "distinct": 3,
          "min": "failure",
          "max": "success"
        }
      }
    },
    "email_communications": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "lead_id": {
          "nulls": 0,
          "distinct": 242,
          "min": 1,
          "max": 300
        },
        "subject": {
          "nulls": 0,
          "distinct": 495
        },
        "sent_at": {
          "nulls": 0,
          "distinct": 499,
          "min": "2023-01-04 09:24:38",
          "max": "2023-12-29 13:53:32"
        },
        "opened": {
          "nulls": 0,
          "distinct": 2,
          "min": "false",
          "max": "true"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/accounts.csv",
      "format": "csv",
      "table": "accounts",
      "key": "datasets/marketing-campaign-interactions/v1/csv/accounts.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-interactions/v1/csv/accounts.csv",
      "bytes": 7170,
      "sha256": "5a5899cbc3c3ddb6170daddb0b06394a032de4259ac24d50aaae1cabbd412093",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/leads.csv",
      "format": "csv",
      "table": "leads",
      "key": "datasets/marketing-campaign-interactions/v1/csv/leads.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-interactions/v1/csv/leads.csv",
      "bytes": 20933,
      "sha256": "732df230d4ee2ecb8da2debe18449966e20e9b3557173bd5b13db95c9fa1a13a",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/campaign_activities.csv",
      "format": "csv",
      "table": "campaign_activities",
      "key": "datasets/marketing-campaign-interactions/v1/csv/campaign_activities.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-interactions/v1/csv/campaign_activities.csv",
      "bytes": 17436,
      "sha256": "a580d18e4cc6ec32697806a5fb4315bca12636947a3155c04a77971e099111f9",
      "rows": 400,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/contacts.csv",
      "format": "csv",
      "table": "contacts",
      "key": "datasets/marketing-campaign-interactions/v1/csv/contacts.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-interactions/v1/csv/contacts.csv",
      "bytes": 11839,
      "sha256": "61f206a2cea19253357869b6f8d7a2301134e7784a4ddc05877d3a0f815fbed3",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/email_communications.csv",
      "format": "csv",
      "table": "email_communications",
      "key": "datasets/marketing-campaign-interactions/v1/csv/email_communications.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-interactions/v1/csv/email_communications.csv",
      "bytes": 45495,
      "sha256": "195a9ba41f6253d3759abd0cec56b76582c921b1c3e0e945b6cb708ecc0946e2",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "marketing-campaign-interactions.json",
      "format": "json",
      "table": null,
      "key": "datasets/marketing-campaign-interactions/v1/marketing-campaign-interactions.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-interactions/v1/marketing-campaign-interactions.json",
      "bytes": 256211,
      "sha256": "6825b803f6fff61356d21a5552c0e6c4ab1863580292572af53219f2de8a9a11",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/marketing-campaign-interactions/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-interactions/v1/sql/postgres.sql",
      "bytes": 129884,
      "sha256": "592e9175e26b23df0eaa9ae8ada1bf162a651328919a969ca9a32c844ca00417",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/marketing-campaign-interactions/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-interactions/v1/sql/mysql.sql",
      "bytes": 127594,
      "sha256": "ac9a60464bae17c29a8c922fda78c86e62d6a392db9fb064a52a34905d53bc48",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/marketing-campaign-interactions/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-interactions/v1/sql/mssql.sql",
      "bytes": 132388,
      "sha256": "c901489ee4ee3f04916459f9f710f14f2cb6e08166f41db1d2e159b11b3e2187",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/marketing-campaign-interactions/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-interactions/v1/sql/sqlite.sql",
      "bytes": 127349,
      "sha256": "45f067bf0696d196b73cfb9f53095e42482d165d16b80bad7709894797d5030c",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/marketing-campaign-interactions/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-interactions/v1/prisma/seed.ts",
      "bytes": 217408,
      "sha256": "bddddb65cc980ff919c11d2fa4296132ec91b5ec775f8e8cc2c19a8312abed71",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/marketing-campaign-interactions/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-interactions/v1/django/fixtures.json",
      "bytes": 330541,
      "sha256": "04c42cd10775eacc94f157e3183d5100892bfe8c797af6ea82061d3b82ea7918",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768403532,
  "updatedAt": 1788768403532
}
