{
  "format": "dataset-manifest/1",
  "slug": "sales-activity-network",
  "version": 3,
  "seed": "sales-activity-network:1",
  "engine": 1,
  "engineVersion": "1.0.0",
  "spec": {
    "format": "dataset/1",
    "slug": "sales-activity-network",
    "name": "Sales Activity Network",
    "tagline": "Sales activities, individuals, organizations, invoices, and lead labels from a marketing firm's operations.",
    "description": "A marketing firm transforms leads into loyal customers through meticulous tracking of sales activities. Individuals and organizations are at the heart of this operation, providing the raw data from which successful marketing strategies are crafted. Invoices track the financial transactions that result from these marketing efforts, while lead labels signify varying levels of engagement and interest from potential customers. The firm navigates through popular industry sectors, where a high volume of leads converge, while also exploring niche fields that may show sparse engagement. Each row in the activities table typically reflects a unique interaction, illustrating how relationships evolve and sales processes unfold across a diverse range of teams and goals.\n\nThe tables in this dataset interconnect seamlessly; the individuals table holds records of sales representatives and their interactions, which relate to the organizations table that identifies the businesses being targeted. Activities are linked to both individuals and organizations, providing a comprehensive view of the sales process in action. Invoices connect to organizations, detailing the revenue generated from successful engagements. Lead labels categorize leads based on their interaction levels, and industry sectors highlight the market segmentation for targeted marketing strategies.\n\nWith this dataset, developers can explore a variety of questions: How do engagement levels vary across different industries? What patterns emerge from the sales activities of individuals? How does the conversion rate correlate with lead labels? This synthetic data offers a rich landscape for practicing data analysis, machine learning models, or developing visualizations that help understand the dynamics of sales activities. By modeling real-world marketing processes, users can gain insights into effective strategies and enhance their analytical skills.",
    "domain": "marketing",
    "shape": "graph-edges",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "sales",
      "leads",
      "activities",
      "marketing",
      "invoices",
      "engagement",
      "network",
      "data analysis"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "individuals": {
        "description": "This table represents individuals involved in sales activities, linking to their respective organizations and activities.",
        "rows": 250,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each individual."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the individual.",
            "nullable": true
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "Contact email of the individual.",
            "nullable": true
          },
          "organization_id": {
            "kind": "fk",
            "ref": "organizations.id",
            "description": "References the organization this individual belongs to."
          },
          "phone": {
            "kind": "phone",
            "description": "Contact phone number of the individual."
          }
        }
      },
      "organizations": {
        "description": "This table contains organizations that the individuals belong to, detailing their industry and engagement level.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each organization."
          },
          "name": {
            "kind": "company",
            "suffixes": [
              "Solutions",
              "Group",
              "Systems",
              "Services",
              "Technologies",
              "Dynamics",
              "Innovations",
              "Partners",
              "Consulting",
              "Analytics",
              "Ventures",
              "Media",
              "Capital",
              "Design",
              "Digital"
            ],
            "description": "Name of the organization."
          },
          "industry": {
            "kind": "enum",
            "values": [
              "Technology",
              "Finance",
              "Healthcare",
              "Education",
              "Retail"
            ],
            "description": "Industry category of the organization.",
            "weights": [
              6,
              4,
              3,
              2,
              1
            ]
          },
          "engagement_level": {
            "kind": "decimal",
            "min": 0,
            "max": 1,
            "scale": 2,
            "description": "Engagement level from 0.00 to 1.00.",
            "nullable": true,
            "when": {
              "column": "industry",
              "in": [
                "Technology",
                "Finance",
                "Healthcare",
                "Education",
                "Retail"
              ]
            },
            "distribution": "high"
          }
        }
      },
      "activities": {
        "description": "This table holds details about sales activities performed by individuals, linking them to the respective leads.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each activity."
          },
          "individual_id": {
            "kind": "fk",
            "ref": "individuals.id",
            "description": "The individual who performed the activity."
          },
          "activity_type": {
            "kind": "enum",
            "values": [
              "Call",
              "Email",
              "Meeting",
              "Follow-up"
            ],
            "description": "Type of activity performed.",
            "weights": [
              5,
              4,
              3,
              2
            ]
          },
          "date": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date of the activity.",
            "dayProfile": "waking"
          },
          "duration_minutes": {
            "kind": "int",
            "min": 5,
            "max": 120,
            "distribution": "normal",
            "description": "Duration of the activity in minutes."
          }
        }
      },
      "invoices": {
        "description": "This table captures invoices generated for engagements, linking them to organizations and activities.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each invoice."
          },
          "organization_id": {
            "kind": "fk",
            "ref": "organizations.id",
            "description": "The organization associated with the invoice."
          },
          "activity_id": {
            "kind": "fk",
            "ref": "activities.id",
            "description": "The activity that led to this invoice."
          },
          "amount": {
            "kind": "decimal",
            "min": 50,
            "max": 5000,
            "scale": 2,
            "description": "Total amount of the invoice.",
            "nullable": true,
            "distribution": "long-tail"
          },
          "issue_date": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date when the invoice was issued.",
            "nullable": true,
            "dayProfile": "business",
            "trend": "growing"
          },
          "due_date": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date when the invoice payment is due."
          }
        }
      },
      "lead_labels": {
        "description": "This table captures labels assigned to leads based on their engagement level and interest.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each lead label."
          },
          "label": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "Label assigned to the lead.",
            "nullable": true,
            "pool": [
              "hot",
              "warm",
              "cold",
              "new",
              "follow-up",
              "qualified",
              "unqualified",
              "interested",
              "not_interested",
              "pending",
              "converted",
              "archived",
              "active",
              "inactive",
              "potential",
              "priority",
              "low",
              "medium",
              "high",
              "urgent"
            ]
          },
          "individual_id": {
            "kind": "fk",
            "ref": "individuals.id",
            "description": "The lead associated with this label."
          }
        }
      },
      "industry_sectors": {
        "description": "This table outlines various industry sectors and their respective engagement metrics.",
        "rows": 20,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each industry sector."
          },
          "sector": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "Name of the industry sector.",
            "pool": [
              "technology",
              "healthcare",
              "finance",
              "education",
              "retail",
              "manufacturing",
              "real_estate",
              "telecommunications",
              "transportation",
              "energy",
              "agriculture",
              "construction",
              "hospitality",
              "media",
              "pharmaceutical",
              "automotive",
              "nonprofit",
              "government",
              "consulting",
              "insurance"
            ]
          },
          "average_engagement": {
            "kind": "decimal",
            "min": 0,
            "max": 1,
            "scale": 2,
            "description": "Average engagement level in this sector.",
            "distribution": "high"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "timestamped",
      "monetary",
      "nullable"
    ],
    "analysisQuestions": [
      "What types of activities lead to higher engagement levels?",
      "Which industries have the highest average invoice amounts?",
      "How does engagement level vary across different sectors?",
      "What is the relationship between activity types and lead conversion rates?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Individuals and Organizations",
        "sql": "SELECT i.full_name, o.name FROM individuals i JOIN organizations o ON i.organization_id = o.id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Activities by Type",
        "sql": "SELECT activity_type, COUNT(*) FROM activities GROUP BY activity_type;",
        "dialect": "postgres"
      },
      {
        "title": "Average Invoice Amounts by Organization",
        "sql": "SELECT o.name, AVG(i.amount) FROM invoices i JOIN organizations o ON i.organization_id = o.id GROUP BY o.name;",
        "dialect": "postgres"
      },
      {
        "title": "Engagement Trends Over Time",
        "sql": "SELECT DATE_TRUNC('month', a.date) AS month, COUNT(*) FROM activities a GROUP BY month ORDER BY month;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Sales Training",
        "body": "Sales trainers can utilize this dataset to simulate real-world scenarios for training purposes. By analyzing activities and their outcomes, trainees can learn about effective engagement strategies and the impact of various activity types on lead conversion."
      },
      {
        "title": "Marketing Strategy Development",
        "body": "Marketing analysts can leverage the dataset to identify trends in lead engagement across different industries. This analysis will help them develop targeted marketing strategies and allocate resources more effectively based on engagement trends."
      },
      {
        "title": "SQL Practice for Analysts",
        "body": "Data analysts looking to sharpen their SQL skills can use this dataset for practice. The diverse tables and relationships allow for complex queries, helping analysts become proficient in data manipulation and extraction techniques."
      }
    ]
  },
  "counts": {
    "industry_sectors": 20,
    "organizations": 100,
    "individuals": 250,
    "activities": 500,
    "invoices": 200,
    "lead_labels": 150
  },
  "stats": {
    "individuals": {
      "rows": 250,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 250,
          "min": 1,
          "max": 250
        },
        "full_name": {
          "nulls": 23,
          "distinct": 225,
          "min": "Alice Bennett",
          "max": "Zoe Patel"
        },
        "email": {
          "nulls": 44,
          "distinct": 206
        },
        "organization_id": {
          "nulls": 0,
          "distinct": 95,
          "min": 1,
          "max": 100
        },
        "phone": {
          "nulls": 0,
          "distinct": 233
        }
      }
    },
    "organizations": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "name": {
          "nulls": 0,
          "distinct": 88,
          "min": "Acme Analytics",
          "max": "Willow Systems"
        },
        "industry": {
          "nulls": 0,
          "distinct": 5,
          "min": "Education",
          "max": "Technology"
        },
        "engagement_level": {
          "nulls": 0,
          "distinct": 54,
          "min": 0.02,
          "max": 1
        }
      }
    },
    "activities": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "individual_id": {
          "nulls": 0,
          "distinct": 217,
          "min": 1,
          "max": 250
        },
        "activity_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "Call",
          "max": "Meeting"
        },
        "date": {
          "nulls": 0,
          "distinct": 500,
          "min": "2023-01-01 22:46:26",
          "max": "2023-12-30 15:27:59"
        },
        "duration_minutes": {
          "nulls": 0,
          "distinct": 81,
          "min": 17,
          "max": 101
        }
      }
    },
    "invoices": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "organization_id": {
          "nulls": 0,
          "distinct": 89,
          "min": 1,
          "max": 100
        },
        "activity_id": {
          "nulls": 0,
          "distinct": 170,
          "min": 5,
          "max": 499
        },
        "amount": {
          "nulls": 23,
          "distinct": 177,
          "min": 50.03,
          "max": 4929.9
        },
        "issue_date": {
          "nulls": 26,
          "distinct": 174,
          "min": "2023-01-08 07:22:21",
          "max": "2023-12-30 17:18:54"
        },
        "due_date": {
          "nulls": 0,
          "distinct": 200,
          "min": "2023-01-04 06:43:13",
          "max": "2023-12-30 21:32:11"
        }
      }
    },
    "lead_labels": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "label": {
          "nulls": 11,
          "distinct": 106
        },
        "individual_id": {
          "nulls": 0,
          "distinct": 117,
          "min": 1,
          "max": 249
        }
      }
    },
    "industry_sectors": {
      "rows": 20,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 20,
          "min": 1,
          "max": 20
        },
        "sector": {
          "nulls": 0,
          "distinct": 19
        },
        "average_engagement": {
          "nulls": 0,
          "distinct": 15,
          "min": 0,
          "max": 1
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/industry_sectors.csv",
      "format": "csv",
      "table": "industry_sectors",
      "key": "datasets/sales-activity-network/v3/csv/industry_sectors.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sales-activity-network/v3/csv/industry_sectors.csv",
      "bytes": 613,
      "sha256": "66abd558f1c8d71534b12de1e90bcfa4809be4a97f0acd6fa8f11d87d5982ea9",
      "rows": 20,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/organizations.csv",
      "format": "csv",
      "table": "organizations",
      "key": "datasets/sales-activity-network/v3/csv/organizations.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sales-activity-network/v3/csv/organizations.csv",
      "bytes": 3435,
      "sha256": "53336f742e6f81a6379f9401834e7bd172a025b276a5383ea52c36b15de4cc1b",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/individuals.csv",
      "format": "csv",
      "table": "individuals",
      "key": "datasets/sales-activity-network/v3/csv/individuals.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sales-activity-network/v3/csv/individuals.csv",
      "bytes": 13644,
      "sha256": "90594878a0b4bd22cf86f4886a2fa92fe94678e8d975a127d84ec6ce7955b3c3",
      "rows": 250,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/activities.csv",
      "format": "csv",
      "table": "activities",
      "key": "datasets/sales-activity-network/v3/csv/activities.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sales-activity-network/v3/csv/activities.csv",
      "bytes": 19018,
      "sha256": "5d35d05341917f5a403b361d97f6bad0f1f985d47084b19a7eb2c937eb038a99",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/invoices.csv",
      "format": "csv",
      "table": "invoices",
      "key": "datasets/sales-activity-network/v3/csv/invoices.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sales-activity-network/v3/csv/invoices.csv",
      "bytes": 11148,
      "sha256": "7140675ffc536a3927fbc20db0189d06d8a163717740185a9506841c2ccbfa62",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/lead_labels.csv",
      "format": "csv",
      "table": "lead_labels",
      "key": "datasets/sales-activity-network/v3/csv/lead_labels.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sales-activity-network/v3/csv/lead_labels.csv",
      "bytes": 3432,
      "sha256": "6784505c565a60124536d02406dcfcfd1ec4fc3c0aff095ba94313d31369d2bb",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "sales-activity-network.json",
      "format": "json",
      "table": null,
      "key": "datasets/sales-activity-network/v3/sales-activity-network.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sales-activity-network/v3/sales-activity-network.json",
      "bytes": 184281,
      "sha256": "e75d6a1d037cf6d8d33408d99fe6d4a414b8e2b07506f092569664d20c02d03d",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/sales-activity-network/v3/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sales-activity-network/v3/sql/postgres.sql",
      "bytes": 72013,
      "sha256": "9238e38a9af5460d2d56c015d2145719f816a976453f1aeed25530628bb6f099",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/sales-activity-network/v3/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sales-activity-network/v3/sql/mysql.sql",
      "bytes": 71305,
      "sha256": "170cb270a8b83d9493c276d2f486e0e121c0ffdaa1b5d8a8916517351c3bf9f8",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/sales-activity-network/v3/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sales-activity-network/v3/sql/mssql.sql",
      "bytes": 74140,
      "sha256": "e0942d3294113767d5c40556abb49ed0f6bfd6e830d6afa5fb741db64c599ad1",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/sales-activity-network/v3/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sales-activity-network/v3/sql/sqlite.sql",
      "bytes": 71034,
      "sha256": "af4674331bd0a74669087453e2d8ea2533c32176cc10b5981b7875b882a66c62",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/sales-activity-network/v3/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sales-activity-network/v3/prisma/seed.ts",
      "bytes": 153529,
      "sha256": "c95f3c4ad0d0214d664cd19608b554361d15ff03f42117e83984813e34567bc5",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/sales-activity-network/v3/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sales-activity-network/v3/django/fixtures.json",
      "bytes": 237627,
      "sha256": "716a5fe6cc5bc7f39bc6de4ccb89b64a93dc8e1177b576661e2ac6ea2693d503",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768450861,
  "updatedAt": 1789096014029
}
