{
  "format": "dataset-manifest/1",
  "slug": "trivia-quiz-game",
  "version": 3,
  "seed": "trivia-quiz-game:1",
  "engine": 1,
  "engineVersion": "1.0.0",
  "spec": {
    "format": "dataset/1",
    "slug": "trivia-quiz-game",
    "name": "Trivia Challenge Dynamics",
    "tagline": "Player interactions, team compositions, quiz questions, and tournament details from a trivia quiz game.",
    "description": "Teams of players compete in a vibrant trivia quiz game environment, demonstrating their knowledge across various tournaments. Each tournament features a set of questions that span diverse categories and difficulty levels, with teams strategizing to maximize their points and outperform their rivals. Players form friendships and team memberships, creating a dynamic interplay as they collaborate to tackle challenging questions. Regular participants often cluster based on their performance ratings and challenge attempts, while rarer, high-level questions may attract fewer answers, highlighting their complexity.\n\nThe dataset consists of several interrelated tables: players, teams, questions, tournaments, and answers. Each player is represented in the players table, detailing their unique attributes and performance metrics. The teams table captures the collaborative aspect, linking players into groups that compete together. Questions are categorized in the questions table, where each entry includes its difficulty level and associated topic. Tournaments, found in their own table, organize the structure for competition, detailing when and how players engage with the questions.\n\nParticipants' responses to questions are recorded in the answers table, which connects directly to both the questions and players, allowing for in-depth analysis of performance. By examining these tables, developers can answer questions related to player engagement, team dynamics, question popularity, and overall tournament performance.\n\nThis synthetic dataset serves as an excellent training tool for data analysis, offering opportunities to practice SQL queries, data visualization, and machine learning techniques. It allows developers to explore themes of competition, collaboration, and knowledge acquisition in a gamified context while answering vital questions about player behavior and question efficacy.",
    "domain": "gaming",
    "shape": "graph-edges",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "trivia",
      "quiz",
      "game",
      "teams",
      "questions",
      "players",
      "tournaments",
      "friendships",
      "performance",
      "analytics"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "players": {
        "description": "Each row represents a player in the trivia game, capturing their unique attributes and performance ratings.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the player."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the player."
          },
          "performance_rating": {
            "kind": "decimal",
            "min": 0,
            "max": 100,
            "scale": 2,
            "description": "The player's performance rating on a scale from 0 to 100.",
            "nullable": true,
            "distribution": "high"
          },
          "join_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "The date the player joined the game.",
            "nullable": true,
            "trend": "growing"
          }
        }
      },
      "teams": {
        "description": "Each row represents a team that players can join, detailing their members and competition stats.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the team."
          },
          "team_name": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "The name of the team.",
            "pool": [
              "dragons",
              "knights",
              "wizards",
              "explorers",
              "champions",
              "tigers",
              "phantoms",
              "eagles",
              "warriors",
              "mavericks",
              "legends",
              "shadows",
              "storm",
              "crusaders",
              "vortex",
              "titans",
              "pioneers",
              "ravens",
              "hunters",
              "gladiators"
            ]
          },
          "wins": {
            "kind": "int",
            "min": 0,
            "max": 100,
            "description": "The number of wins the team has achieved.",
            "nullable": true,
            "distribution": "long-tail"
          },
          "losses": {
            "kind": "int",
            "min": 0,
            "max": 100,
            "distribution": "normal",
            "description": "The number of losses the team has incurred."
          },
          "average_score": {
            "kind": "decimal",
            "min": 0,
            "max": 100,
            "scale": 2,
            "distribution": "normal",
            "description": "The average score of the team in tournaments."
          }
        }
      },
      "questions": {
        "description": "Each row represents a trivia question, categorized by topic and difficulty level, with assigned tags.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the question."
          },
          "question_text": {
            "kind": "sentence",
            "min": 10,
            "max": 200,
            "description": "The text of the trivia question."
          },
          "difficulty": {
            "kind": "enum",
            "values": [
              "easy",
              "medium",
              "hard"
            ],
            "description": "The difficulty level of the question.",
            "weights": [
              6,
              3,
              1
            ]
          },
          "topic": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "The topic associated with the question.",
            "nullable": true,
            "when": {
              "column": "difficulty",
              "in": [
                "easy",
                "medium",
                "hard"
              ]
            },
            "pool": [
              "history",
              "science",
              "literature",
              "geography",
              "music",
              "movies",
              "sports",
              "technology",
              "art",
              "mythology",
              "nature",
              "games",
              "food",
              "politics",
              "popculture",
              "language",
              "animals",
              "space",
              "celebrities",
              "inventions"
            ]
          }
        }
      },
      "tournaments": {
        "description": "Each row represents a tournament in which teams compete, detailing the date and participating teams.",
        "rows": 30,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the tournament."
          },
          "tournament_name": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "The name of the tournament.",
            "pool": [
              "championship",
              "showdown",
              "battle",
              "cup",
              "series",
              "challenge",
              "league",
              "fest",
              "clash",
              "open",
              "grand",
              "classic",
              "masters",
              "invitation",
              "finals",
              "qualifier",
              "exhibition",
              "event",
              "trophy",
              "duel"
            ]
          },
          "date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "The date of the tournament.",
            "nullable": true,
            "trend": "seasonal"
          },
          "participating_teams": {
            "kind": "int",
            "min": 2,
            "max": 10,
            "distribution": "normal",
            "description": "The number of teams participating in the tournament."
          },
          "total_questions": {
            "kind": "int",
            "min": 5,
            "max": 50,
            "distribution": "normal",
            "description": "The total number of questions asked in the tournament."
          }
        }
      },
      "answers": {
        "description": "Each row represents a player's answer to a question in a tournament, linking players, questions, and tournaments.",
        "rows": 1000,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the answer."
          },
          "player_id": {
            "kind": "fk",
            "ref": "players.id",
            "description": "The ID of the player who answered."
          },
          "question_id": {
            "kind": "fk",
            "ref": "questions.id",
            "description": "The ID of the question answered."
          },
          "tournament_id": {
            "kind": "fk",
            "ref": "tournaments.id",
            "description": "The ID of the tournament in which the answer was given."
          },
          "is_correct": {
            "kind": "bool",
            "trueRate": 0.5,
            "description": "Indicates whether the answer was correct."
          },
          "response_time_seconds": {
            "kind": "int",
            "min": 1,
            "max": 300,
            "distribution": "normal",
            "description": "The time taken by the player to respond, in seconds."
          },
          "difficulty_level": {
            "kind": "enum",
            "values": [
              "easy",
              "medium",
              "hard"
            ],
            "weights": [
              50,
              30,
              20
            ],
            "description": "The difficulty level of the question answered."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "high-cardinality",
      "categorical",
      "nullable"
    ],
    "analysisQuestions": [
      "Which teams have the highest average performance rating among their players?",
      "What topics do players find most challenging based on the correctness of their answers?",
      "How does team membership influence player performance in tournaments?",
      "What is the distribution of question difficulties in completed tournaments?",
      "How does the length of time a player has been in the game affect their performance rating?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Players and Teams",
        "sql": "SELECT players.full_name, teams.team_name FROM players JOIN teams ON players.id = teams.id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Correct Answers by Topic",
        "sql": "SELECT questions.topic, COUNT(answers.is_correct) AS correct_count FROM answers JOIN questions ON answers.question_id = questions.id WHERE answers.is_correct = TRUE GROUP BY questions.topic;",
        "dialect": "postgres"
      },
      {
        "title": "Average Performance Rating by Team",
        "sql": "SELECT teams.team_name, AVG(players.performance_rating) AS avg_rating FROM players JOIN teams ON players.id = teams.id GROUP BY teams.team_name;",
        "dialect": "postgres"
      },
      {
        "title": "Tournament Details with Answers",
        "sql": "SELECT tournaments.tournament_name, COUNT(answers.id) AS total_answers FROM tournaments LEFT JOIN answers ON tournaments.id = answers.tournament_id GROUP BY tournaments.tournament_name;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Educational Workshops",
        "body": "In educational workshops, instructors can use this dataset to teach students about relational databases and SQL queries. The richness of the data allows students to practice complex joins and aggregations, enhancing their analytical skills in a hands-on environment."
      },
      {
        "title": "Game Performance Analysis",
        "body": "Game developers can utilize this dataset to analyze player performance across different tournaments and question types. By exploring the relationships between players, teams, and questions, they can gain insights into game balance and player engagement, aiding in future game design."
      },
      {
        "title": "Competitive Team Strategies",
        "body": "Teams participating in trivia challenges can use this dataset to analyze their performance metrics and compare themselves against other teams. This helps in strategizing improvements and understanding which topics require more focus based on their performance ratings."
      }
    ]
  },
  "counts": {
    "players": 200,
    "questions": 500,
    "teams": 50,
    "tournaments": 30,
    "answers": 1000
  },
  "stats": {
    "players": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "full_name": {
          "nulls": 0,
          "distinct": 199,
          "min": "Amir Costa",
          "max": "Zoe Young"
        },
        "performance_rating": {
          "nulls": 16,
          "distinct": 179,
          "min": 0.12,
          "max": 100
        },
        "join_date": {
          "nulls": 16,
          "distinct": 163,
          "min": "2020-01-12",
          "max": "2023-12-31"
        }
      }
    },
    "teams": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "team_name": {
          "nulls": 0,
          "distinct": 44
        },
        "wins": {
          "nulls": 4,
          "distinct": 34,
          "min": 0,
          "max": 95
        },
        "losses": {
          "nulls": 0,
          "distinct": 33,
          "min": 22,
          "max": 81
        },
        "average_score": {
          "nulls": 0,
          "distinct": 49,
          "min": 26.43,
          "max": 78.48
        }
      }
    },
    "questions": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "question_text": {
          "nulls": 0,
          "distinct": 490
        },
        "difficulty": {
          "nulls": 0,
          "distinct": 3,
          "min": "easy",
          "max": "medium"
        },
        "topic": {
          "nulls": 0,
          "distinct": 309
        }
      }
    },
    "tournaments": {
      "rows": 30,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 30,
          "min": 1,
          "max": 30
        },
        "tournament_name": {
          "nulls": 0,
          "distinct": 27
        },
        "date": {
          "nulls": 1,
          "distinct": 28,
          "min": "2023-01-05",
          "max": "2023-12-31"
        },
        "participating_teams": {
          "nulls": 0,
          "distinct": 5,
          "min": 4,
          "max": 8
        },
        "total_questions": {
          "nulls": 0,
          "distinct": 14,
          "min": 16,
          "max": 37
        }
      }
    },
    "answers": {
      "rows": 1000,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 1000,
          "min": 1,
          "max": 1000
        },
        "player_id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "question_id": {
          "nulls": 0,
          "distinct": 430,
          "min": 1,
          "max": 500
        },
        "tournament_id": {
          "nulls": 0,
          "distinct": 30,
          "min": 1,
          "max": 30
        },
        "is_correct": {
          "nulls": 0,
          "distinct": 2,
          "min": "false",
          "max": "true"
        },
        "response_time_seconds": {
          "nulls": 0,
          "distinct": 199,
          "min": 36,
          "max": 269
        },
        "difficulty_level": {
          "nulls": 0,
          "distinct": 3,
          "min": "easy",
          "max": "medium"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/players.csv",
      "format": "csv",
      "table": "players",
      "key": "datasets/trivia-quiz-game/v3/csv/players.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/trivia-quiz-game/v3/csv/players.csv",
      "bytes": 6520,
      "sha256": "6a4b2470e3209a6a375b2556fd5159de13c1c531a4c8011604c36853c566a4dd",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/questions.csv",
      "format": "csv",
      "table": "questions",
      "key": "datasets/trivia-quiz-game/v3/csv/questions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/trivia-quiz-game/v3/csv/questions.csv",
      "bytes": 45181,
      "sha256": "3a2645c00e10bbd17dfae38ffbcafaff301fc484a0f88262f2a516bcbea9362a",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/teams.csv",
      "format": "csv",
      "table": "teams",
      "key": "datasets/trivia-quiz-game/v3/csv/teams.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/trivia-quiz-game/v3/csv/teams.csv",
      "bytes": 1639,
      "sha256": "0cac9ea569da12b46f6b2d9d385ed9161a27d96e0a9082559eea7ee770211360",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/tournaments.csv",
      "format": "csv",
      "table": "tournaments",
      "key": "datasets/trivia-quiz-game/v3/csv/tournaments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/trivia-quiz-game/v3/csv/tournaments.csv",
      "bytes": 1132,
      "sha256": "692e040ac075abaa489cb3db53133a3f17efa5903296fd7137537c7922d423a6",
      "rows": 30,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/answers.csv",
      "format": "csv",
      "table": "answers",
      "key": "datasets/trivia-quiz-game/v3/csv/answers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/trivia-quiz-game/v3/csv/answers.csv",
      "bytes": 29894,
      "sha256": "662d99d2bb66af9501b4798214c6834b42c8774872c43bd170ffd2d755c5c2a5",
      "rows": 1000,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "trivia-quiz-game.json",
      "format": "json",
      "table": null,
      "key": "datasets/trivia-quiz-game/v3/trivia-quiz-game.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/trivia-quiz-game/v3/trivia-quiz-game.json",
      "bytes": 329619,
      "sha256": "5e306f866f40d9cfdfa05c3436db846a66ee05f06e560a18b1e44b5a9736d041",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/trivia-quiz-game/v3/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/trivia-quiz-game/v3/sql/postgres.sql",
      "bytes": 112417,
      "sha256": "fd83d105dcafc0a2228f1f483e6ab9c6d5ecbed874ab318eb095133b3ea3936e",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/trivia-quiz-game/v3/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/trivia-quiz-game/v3/sql/mysql.sql",
      "bytes": 108358,
      "sha256": "e5508803ca422a2d655445ff4a4a2d4056c955b2970ae737040428a72fb7db42",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/trivia-quiz-game/v3/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/trivia-quiz-game/v3/sql/mssql.sql",
      "bytes": 111662,
      "sha256": "66fffc2f7711054c225134585759141d0277f7aa9d7e46320a476c52f6633166",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/trivia-quiz-game/v3/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/trivia-quiz-game/v3/sql/sqlite.sql",
      "bytes": 108220,
      "sha256": "12e580154dee86b842a9800c0761eaead57f1ea479898e82b1713ff18369e1e2",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/trivia-quiz-game/v3/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/trivia-quiz-game/v3/prisma/seed.ts",
      "bytes": 256635,
      "sha256": "76ec1c88007afe44e4a50e079227b74261af0b507bf69cd613c3c3267281a130",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/trivia-quiz-game/v3/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/trivia-quiz-game/v3/django/fixtures.json",
      "bytes": 398578,
      "sha256": "91afe2b9e5fab12e264767344fd28a4b7377f59da37c9268e7253aa74a3a00d0",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788766695603,
  "updatedAt": 1789096101513
}
