{
  "format": "dataset-manifest/1",
  "slug": "election",
  "version": 3,
  "seed": "election:1",
  "spec": {
    "format": "dataset/1",
    "slug": "election",
    "name": "Election Insights",
    "tagline": "Campaign donations, voter turnout, voting booth performance, and complaints across various electoral districts.",
    "description": "Election campaigns engage voters, political parties, and electoral mechanisms in a complex interplay essential for democracy. Campaign donations flow into parties, reflecting their financial health and strategies to mobilize supporters. Voting booths operate within various districts, facilitating access for voters to cast their ballots while also generating data on their performance and efficiency in serving the electorate. Complaints arise from voters, highlighting concerns about the electoral process, which can vary significantly across districts. These interactions shape voter turnout, with some areas exhibiting robust participation while others struggle to engage constituents meaningfully. \n\nIn this dataset, the 'donations' table captures the financial contributions made to different political parties, showcasing the funding landscape of campaigns. The 'parties' table details the various political entities involved in the elections, providing context for the donations received. The 'voting_booths' table records the locations and performance metrics of the booths, linking them to specific 'districts,' which categorize the geographical areas where elections are held. The 'complaints' table documents grievances expressed by voters, which can be associated with particular districts to identify patterns of concern. Lastly, the 'voter_turnout' table reveals participation rates across different districts, allowing for an analysis of engagement levels. \n\nBy examining relationships among these tables, developers can answer questions about funding trends, evaluate the effectiveness of voting booths, analyze the impact of complaints on voter engagement, and identify factors influencing voter turnout. This dataset serves as a rich resource for practicing data analysis and visualization skills, offering synthetic data that mimics real-world electoral dynamics.",
    "domain": "marketing",
    "shape": "time-series",
    "useCases": [
      "analytics-demo",
      "bi-dashboards"
    ],
    "keywords": [
      "elections",
      "voter turnout",
      "campaign donations",
      "voting booths",
      "complaints",
      "political parties",
      "district analysis"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "donations": {
        "description": "This table captures campaign donations made to various political parties, linking each donation to a specific party and donor. Each row represents a single donation event.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each donation."
          },
          "donor_name": {
            "kind": "fullName",
            "description": "The name of the individual or organization donating."
          },
          "amount": {
            "kind": "decimal",
            "min": 10,
            "max": 10000,
            "scale": 2,
            "description": "The amount of money donated, in USD.",
            "distribution": "long-tail"
          },
          "party_id": {
            "kind": "fk",
            "ref": "parties.id",
            "description": "The political party receiving the donation."
          },
          "donation_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2024-12-31",
            "description": "The date the donation was made.",
            "trend": "growing"
          }
        }
      },
      "parties": {
        "description": "This table lists the political parties participating in the elections, linking each party to its unique identifier. Each row represents a different political party.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each political party."
          },
          "party_name": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "The name of the political party.",
            "pool": [
              "democrat",
              "republican",
              "libertarian",
              "green",
              "independent",
              "socialist",
              "progressive",
              "conservative",
              "moderate",
              "liberal",
              "populist",
              "nationalist",
              "federalist",
              "reform",
              "labor",
              "people's",
              "freedom",
              "justice",
              "unity",
              "alliance"
            ]
          },
          "party_leader": {
            "kind": "fullName",
            "description": "The name of the leader of the political party."
          }
        }
      },
      "voting_booths": {
        "description": "This table records details about voting booths, including their operational status and timings. Each row represents a specific voting booth in a district.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each voting booth."
          },
          "district_id": {
            "kind": "fk",
            "ref": "districts.id",
            "description": "The district where the voting booth is located."
          },
          "booth_opened_at": {
            "kind": "datetime",
            "from": "2024-01-01",
            "to": "2024-11-08",
            "description": "The date and time when the voting booth was opened.",
            "dayProfile": "business"
          },
          "booth_closed_at": {
            "kind": "datetime",
            "from": "2024-01-01",
            "to": "2024-11-08",
            "description": "The date and time when the voting booth was closed.",
            "dayProfile": "business"
          },
          "votes_cast": {
            "kind": "int",
            "min": 0,
            "max": 1000,
            "description": "The number of votes cast at this booth.",
            "distribution": "long-tail"
          }
        }
      },
      "districts": {
        "description": "This table contains information about electoral districts where voting takes place. Each row represents a unique district.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each district."
          },
          "district_name": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "The name of the electoral district.",
            "pool": [
              "north",
              "south",
              "east",
              "west",
              "central",
              "urban",
              "rural",
              "coastal",
              "highland",
              "valley",
              "district",
              "region",
              "zone",
              "sector",
              "area",
              "locale",
              "neighborhood",
              "precinct",
              "ward",
              "suburb"
            ]
          },
          "population": {
            "kind": "int",
            "min": 1000,
            "max": 500000,
            "description": "The population of the district."
          }
        }
      },
      "complaints": {
        "description": "This table records complaints related to the electoral process, detailing the nature of each complaint and the district it pertains to. Each row represents a unique complaint.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each complaint."
          },
          "district_id": {
            "kind": "fk",
            "ref": "districts.id",
            "description": "The district where the complaint was filed."
          },
          "complaint_type": {
            "kind": "enum",
            "values": [
              "late opening",
              "malfunction",
              "voter intimidation",
              "other"
            ],
            "description": "The type of complaint filed.",
            "weights": [
              6,
              2,
              1,
              1
            ]
          },
          "description": {
            "kind": "sentence",
            "description": "A brief description of the complaint."
          },
          "filed_at": {
            "kind": "date",
            "from": "2024-01-01",
            "to": "2024-11-08",
            "description": "The date the complaint was filed.",
            "trend": "seasonal"
          }
        }
      },
      "voter_turnout": {
        "description": "This table tracks voter turnout across different districts on election days. Each row represents turnout data for a specific district on a specific day.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each turnout record."
          },
          "district_id": {
            "kind": "fk",
            "ref": "districts.id",
            "description": "The district where the turnout is recorded."
          },
          "turnout_date": {
            "kind": "date",
            "from": "2024-01-01",
            "to": "2024-11-08",
            "description": "The date of the election.",
            "trend": "seasonal"
          },
          "percentage": {
            "kind": "decimal",
            "min": 0,
            "max": 100,
            "scale": 2,
            "description": "The percentage of registered voters who turned out to vote.",
            "distribution": "high"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "timestamped",
      "categorical",
      "nullable"
    ],
    "analysisQuestions": [
      "Which districts had the highest voter turnout, and what factors contributed to that?",
      "How do campaign donations correlate with voter engagement in different districts?",
      "What types of complaints are most common, and how do they relate to booth performance?",
      "Are there any noticeable trends in voter turnout over the election period?"
    ],
    "suggestedQueries": [
      {
        "title": "Get total donations by party",
        "sql": "SELECT party_id, SUM(amount) FROM donations GROUP BY party_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count complaints by district",
        "sql": "SELECT district_id, COUNT(*) FROM complaints GROUP BY district_id;",
        "dialect": "postgres"
      },
      {
        "title": "Average voter turnout by district",
        "sql": "SELECT district_id, AVG(percentage) as average_turnout FROM voter_turnout GROUP BY district_id;",
        "dialect": "postgres"
      },
      {
        "title": "Find districts with both high turnout and high complaints",
        "sql": "SELECT v.district_id FROM voter_turnout v JOIN complaints c ON v.district_id = c.district_id GROUP BY v.district_id HAVING AVG(v.percentage) > 60 AND COUNT(c.id) > 3;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Political Campaign Analysts",
        "body": "Political analysts can utilize this dataset to assess the effectiveness of campaign strategies. By analyzing the correlation between donations and voter turnout, they can identify which funding strategies yield the highest engagement levels, and adjust campaign efforts accordingly."
      },
      {
        "title": "Election Monitoring Organizations",
        "body": "Organizations focused on election integrity can use this data to identify and address areas of concern. By examining the frequency and types of complaints in specific districts, they can target their monitoring efforts to ensure fair electoral processes."
      },
      {
        "title": "Data Journalists",
        "body": "Data journalists can leverage this dataset to create compelling stories about electoral dynamics. By visualizing trends in voter turnout and complaints, they can highlight disparities among districts, sparking discussions around electoral reform and engagement."
      },
      {
        "title": "BI Dashboard Creators",
        "body": "Business Intelligence professionals can integrate this dataset into dashboards to provide real-time insights into electoral processes. Visualizing campaign donations, voter turnout, and complaints can help stakeholders make informed decisions during election cycles."
      }
    ]
  },
  "counts": {
    "districts": 50,
    "complaints": 200,
    "parties": 10,
    "donations": 500,
    "voter_turnout": 200,
    "voting_booths": 300
  },
  "stats": {
    "donations": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "donor_name": {
          "nulls": 0,
          "distinct": 480,
          "min": "Alice Brown",
          "max": "Zoe Wilson"
        },
        "amount": {
          "nulls": 0,
          "distinct": 500,
          "min": 10.13,
          "max": 9966.58
        },
        "party_id": {
          "nulls": 0,
          "distinct": 10,
          "min": 1,
          "max": 10
        },
        "donation_date": {
          "nulls": 0,
          "distinct": 434,
          "min": "2020-01-02",
          "max": "2024-12-30"
        }
      }
    },
    "parties": {
      "rows": 10,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 10,
          "min": 1,
          "max": 10
        },
        "party_name": {
          "nulls": 0,
          "distinct": 10
        },
        "party_leader": {
          "nulls": 0,
          "distinct": 10,
          "min": "Amir Clark",
          "max": "Wei Martin"
        }
      }
    },
    "voting_booths": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "district_id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "booth_opened_at": {
          "nulls": 0,
          "distinct": 300,
          "min": "2024-01-01 06:37:36",
          "max": "2024-11-07 19:30:49"
        },
        "booth_closed_at": {
          "nulls": 0,
          "distinct": 300,
          "min": "2024-01-01 15:55:04",
          "max": "2024-11-05 09:05:29"
        },
        "votes_cast": {
          "nulls": 0,
          "distinct": 240,
          "min": 0,
          "max": 992
        }
      }
    },
    "districts": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "district_name": {
          "nulls": 0,
          "distinct": 41
        },
        "population": {
          "nulls": 0,
          "distinct": 50,
          "min": 12400,
          "max": 476105
        }
      }
    },
    "complaints": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "district_id": {
          "nulls": 0,
          "distinct": 49,
          "min": 1,
          "max": 50
        },
        "complaint_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "late opening",
          "max": "voter intimidation"
        },
        "description": {
          "nulls": 0,
          "distinct": 200
        },
        "filed_at": {
          "nulls": 0,
          "distinct": 148,
          "min": "2024-01-02",
          "max": "2024-11-07"
        }
      }
    },
    "voter_turnout": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "district_id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "turnout_date": {
          "nulls": 0,
          "distinct": 135,
          "min": "2024-01-01",
          "max": "2024-11-08"
        },
        "percentage": {
          "nulls": 0,
          "distinct": 190,
          "min": 1.27,
          "max": 100
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/districts.csv",
      "format": "csv",
      "table": "districts",
      "key": "datasets/election/v3/csv/districts.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/election/v3/csv/districts.csv",
      "bytes": 1235,
      "sha256": "b5d85264da1b330d7b2784da5a5adce8072e32e657f146e86956d19aca6bf8a0",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/complaints.csv",
      "format": "csv",
      "table": "complaints",
      "key": "datasets/election/v3/csv/complaints.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/election/v3/csv/complaints.csv",
      "bytes": 17642,
      "sha256": "7b427957a0a122f16041a7ae2cc5a207f373df55639fc76e0d32ed208dcd99d9",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/parties.csv",
      "format": "csv",
      "table": "parties",
      "key": "datasets/election/v3/csv/parties.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/election/v3/csv/parties.csv",
      "bytes": 376,
      "sha256": "c80df70488c14fd5903aafa40e8370951338729fb15c9980e2d3eaf5a66dd99c",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/donations.csv",
      "format": "csv",
      "table": "donations",
      "key": "datasets/election/v3/csv/donations.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/election/v3/csv/donations.csv",
      "bytes": 18831,
      "sha256": "201769417fc3046a355e11850b98a5d6cfa6913f54756cbbd54fbaaa28bec455",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/voter_turnout.csv",
      "format": "csv",
      "table": "voter_turnout",
      "key": "datasets/election/v3/csv/voter_turnout.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/election/v3/csv/voter_turnout.csv",
      "bytes": 4897,
      "sha256": "b4705bc64e207e741aa749f878d2db26ca4d49908079f15506a9691c24c7fc0c",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/voting_booths.csv",
      "format": "csv",
      "table": "voting_booths",
      "key": "datasets/election/v3/csv/voting_booths.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/election/v3/csv/voting_booths.csv",
      "bytes": 15377,
      "sha256": "b36debeea6aacd5f3e59fc7b4dbf0e4674354a763c2eb1cfd25e57320754391f",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "election.json",
      "format": "json",
      "table": null,
      "key": "datasets/election/v3/election.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/election/v3/election.json",
      "bytes": 195726,
      "sha256": "490ed818634360a1887f7097224d428971d950643291cb40f40c892d9b078154",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/election/v3/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/election/v3/sql/postgres.sql",
      "bytes": 78683,
      "sha256": "32926c4b0bd78393b17b64c317ee80d33493f58f768eaf6cc35387d2613067f9",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/election/v3/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/election/v3/sql/mysql.sql",
      "bytes": 77992,
      "sha256": "c5c805760465acf1146faeeba1fd66d413df99b4930e5f1fdd33db8bf3109861",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/election/v3/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/election/v3/sql/mssql.sql",
      "bytes": 80870,
      "sha256": "2effd9dbd27d90656d8fcbc8a5d1f9272bfaa89ab0d1002903a5d99e5122f4a4",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/election/v3/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/election/v3/sql/sqlite.sql",
      "bytes": 77780,
      "sha256": "629fd6cfcfaabb7be6b17e418fb1ee39c6ad28b21a430d3fcb7e36e8948feb33",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/election/v3/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/election/v3/prisma/seed.ts",
      "bytes": 161976,
      "sha256": "e953278cb50219666a477f2d85726b18e0bbf433ad0f524e7de4d927e81ebbff",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/election/v3/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/election/v3/django/fixtures.json",
      "bytes": 252648,
      "sha256": "12fd6a117cfaddb8bf911cba3a528e95efafbfa5fa609ef489356dc1c23da3e9",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788765812528,
  "updatedAt": 1788783616859
}
