{
  "format": "dataset-manifest/1",
  "slug": "blockchain-based-voting-transparency-tool",
  "version": 2,
  "seed": "blockchain-based-voting-transparency-tool:1",
  "spec": {
    "format": "dataset/1",
    "slug": "blockchain-based-voting-transparency-tool",
    "name": "Voting Transparency Dataset",
    "tagline": "A synthetic dataset modeling interactions in democratic voting processes.",
    "description": "Voters participate actively in elections, casting their ballots with the expectation that their choices will be recorded accurately. This platform captures the intricate relationships among voters, election officials, candidates, and the institutions that oversee electoral integrity. Each interaction is meticulously documented, providing insights into voter participation rates, the outcomes of various elections, and the rare disputes that may arise during the voting process. Voter profiles often link to specific electoral districts, while election officials and candidates are associated with major electoral events, highlighting their roles in shaping the democratic landscape.\n\nThe primary table, voting_interactions, contains records of every interaction between voters and election officials, detailing the voters' decisions, the officials' roles in managing the process, and the candidates who stand for election. Each row signifies a unique interaction, allowing users to track which voters interacted with which officials, how many votes were cast for each candidate, and any disputes that emerged, along with their resolutions. By analyzing this data, developers can explore questions related to voter engagement, election transparency, and the effectiveness of dispute resolution mechanisms.\n\nThis dataset is an excellent resource for practice in relational database management and data analysis, enabling developers to hone their skills in querying and visualizing complex relationships. Questions that can be answered include: How do voter interactions vary by district? What are the trends in voter participation over time? How often do disputes occur, and what factors contribute to their resolution? This data is synthetic, crafted to provide a realistic yet controlled environment for developing analytical capabilities.",
    "domain": "hr",
    "shape": "graph-edges",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "voting",
      "transparency",
      "elections",
      "voter participation",
      "candidates",
      "dispute resolution",
      "democracy"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "voting_interactions": {
        "description": "This table records interactions between voters, election officials, and candidates during elections. Each row details a specific event such as a vote cast, an official's action, or a dispute resolution, linking various stakeholders in the electoral process.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each voting interaction"
          },
          "voter_id": {
            "kind": "uuid",
            "description": "Unique identifier for each voter"
          },
          "election_id": {
            "kind": "uuid",
            "description": "Unique identifier for the election"
          },
          "official_id": {
            "kind": "uuid",
            "nullable": true,
            "description": "Unique identifier for the election official involved"
          },
          "candidate_id": {
            "kind": "uuid",
            "nullable": true,
            "description": "Unique identifier for the candidate associated with the vote"
          },
          "interaction_type": {
            "kind": "enum",
            "values": [
              "vote_cast",
              "official_action",
              "dispute_resolution"
            ],
            "description": "Type of interaction that occurred"
          },
          "district": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "The district where the voting interaction took place",
            "pool": [
              "north",
              "south",
              "east",
              "west",
              "central",
              "northeast",
              "southeast",
              "northwest",
              "southwest",
              "urban",
              "rural",
              "suburban",
              "district",
              "zone",
              "area",
              "region",
              "ward",
              "precinct",
              "borough",
              "division",
              "sector",
              "neighborhood",
              "locale",
              "community",
              "constituency",
              "districting",
              "electoral",
              "voting",
              "polling",
              "civic",
              "demographic",
              "representation",
              "local",
              "geographic",
              "administrative",
              "jurisdiction",
              "voter",
              "participation",
              "engagement",
              "outreach",
              "campaign",
              "election",
              "referendum",
              "plebiscite",
              "ballot",
              "candidate",
              "office",
              "seat",
              "position",
              "leadership",
              "governance",
              "policy",
              "initiative",
              "project",
              "program",
              "service",
              "development",
              "improvement",
              "transparency",
              "accountability"
            ]
          },
          "timestamp": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "The date and time when the interaction occurred",
            "dayProfile": "waking"
          },
          "outcome": {
            "kind": "enum",
            "values": [
              "accepted",
              "rejected",
              "pending"
            ],
            "description": "The outcome of the interaction if applicable"
          }
        }
      }
    },
    "structure": "single-table",
    "traits": [
      "categorical",
      "nullable",
      "timestamped"
    ],
    "analysisQuestions": [
      "What is the voter turnout rate by district?",
      "How often do disputes arise during elections?",
      "What actions do election officials most frequently take?",
      "Which candidates receive the most votes in major elections?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Voters with Election Outcomes",
        "sql": "SELECT v.voter_id, e.outcome FROM voting_interactions AS v JOIN voting_interactions AS e ON v.election_id = e.election_id WHERE v.interaction_type = 'vote_cast';",
        "dialect": "postgres"
      },
      {
        "title": "Count Votes by Candidate",
        "sql": "SELECT candidate_id, COUNT(*) AS vote_count FROM voting_interactions WHERE interaction_type = 'vote_cast' GROUP BY candidate_id;",
        "dialect": "postgres"
      },
      {
        "title": "Find Dispute Resolutions Over Time",
        "sql": "SELECT DATE(timestamp) AS date, COUNT(*) AS disputes FROM voting_interactions WHERE interaction_type = 'dispute_resolution' GROUP BY date ORDER BY date;",
        "dialect": "postgres"
      },
      {
        "title": "Voter Participation by District",
        "sql": "SELECT district, COUNT(DISTINCT voter_id) AS unique_voters FROM voting_interactions WHERE interaction_type = 'vote_cast' GROUP BY district;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Educators Teaching Data Relationships",
        "body": "Educators can utilize the Voting Transparency Dataset as a teaching tool to demonstrate how complex relationships between different entities can be modeled in a database. By exploring this dataset, students can learn how to write SQL queries and analyze data effectively, enhancing their understanding of electoral processes."
      },
      {
        "title": "Developers Practicing SQL Skills",
        "body": "Developers looking to enhance their SQL skills can use this dataset to practice writing complex queries. With diverse interaction types and outcomes, they can test their ability to join tables, aggregate data, and extract meaningful insights about voting behaviors and election outcomes."
      },
      {
        "title": "Analysts Exploring Election Trends",
        "body": "Data analysts can leverage the Voting Transparency Dataset to explore trends in voter participation and election outcomes. By analyzing the data, they can identify patterns in voter behavior, assess the effectiveness of election officials, and study the incidence of disputes, providing valuable insights into the electoral process."
      }
    ]
  },
  "counts": {
    "voting_interactions": 500
  },
  "stats": {
    "voting_interactions": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "voter_id": {
          "nulls": 0,
          "distinct": 500
        },
        "election_id": {
          "nulls": 0,
          "distinct": 500
        },
        "official_id": {
          "nulls": 54,
          "distinct": 446
        },
        "candidate_id": {
          "nulls": 50,
          "distinct": 450
        },
        "interaction_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "dispute_resolution",
          "max": "vote_cast"
        },
        "district": {
          "nulls": 0,
          "distinct": 385
        },
        "timestamp": {
          "nulls": 0,
          "distinct": 500,
          "min": "2020-01-01 13:49:02",
          "max": "2023-12-29 08:36:16"
        },
        "outcome": {
          "nulls": 0,
          "distinct": 3,
          "min": "accepted",
          "max": "rejected"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/voting_interactions.csv",
      "format": "csv",
      "table": "voting_interactions",
      "key": "datasets/blockchain-based-voting-transparency-tool/v2/csv/voting_interactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-voting-transparency-tool/v2/csv/voting_interactions.csv",
      "bytes": 103824,
      "sha256": "820d1b549582c659e37cced69d8bbd0434daa34c7f090251e1df3705dadb22f0",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "blockchain-based-voting-transparency-tool.json",
      "format": "json",
      "table": null,
      "key": "datasets/blockchain-based-voting-transparency-tool/v2/blockchain-based-voting-transparency-tool.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-voting-transparency-tool/v2/blockchain-based-voting-transparency-tool.json",
      "bytes": 208972,
      "sha256": "cbe4385995821c50a279db6387951de84fcaadfbae0652419fa644994b2a5ca3",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/blockchain-based-voting-transparency-tool/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-voting-transparency-tool/v2/sql/postgres.sql",
      "bytes": 120242,
      "sha256": "d38b519821a0729f2a8684f97151243bcfc08aa744c74200c3a2f23e85b8f713",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/blockchain-based-voting-transparency-tool/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-voting-transparency-tool/v2/sql/mysql.sql",
      "bytes": 120136,
      "sha256": "6aacdfcbb04ad51b2bb6c7517aea251f640cbeb5437e2e250180e20e3f652e2a",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/blockchain-based-voting-transparency-tool/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-voting-transparency-tool/v2/sql/mssql.sql",
      "bytes": 124151,
      "sha256": "96e55c71e032b764f12cbb815ac9ea09c19d91490886c77b03009b3fb0a90b1a",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/blockchain-based-voting-transparency-tool/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-voting-transparency-tool/v2/sql/sqlite.sql",
      "bytes": 120079,
      "sha256": "ee537bc9ca896af5fa3b09edf65591e05e05cb4de02d6c7645e9a238f855722e",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/blockchain-based-voting-transparency-tool/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-voting-transparency-tool/v2/prisma/seed.ts",
      "bytes": 181220,
      "sha256": "f3cd3701eb365e07c14a063affc37528dd43e0b471a45e5d1eba6ae5ec428193",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/blockchain-based-voting-transparency-tool/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-voting-transparency-tool/v2/django/fixtures.json",
      "bytes": 236441,
      "sha256": "47bdf801e0e60ba1ff1a2721f9e60ecce41af7d93e78a03269b5883a515a7919",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767425922,
  "updatedAt": 1788777649421
}
