{
  "format": "dataset-manifest/1",
  "slug": "trading-card",
  "version": 3,
  "seed": "trading-card:1",
  "engine": 1,
  "engineVersion": "1.0.0",
  "spec": {
    "format": "dataset/1",
    "slug": "trading-card",
    "name": "Trading Card Market Insights",
    "tagline": "Transactions of trading cards, detailing types, prices, and tournament participation in a dynamic collector market.",
    "description": "Enthusiasts buy, sell, and trade trading cards to build collections and compete in tournaments, creating a dynamic marketplace filled with opportunities and trends. Transactions are at the heart of this vibrant industry, capturing the essence of what cards are exchanged, their types, and the tournaments where players showcase their decks. In this setting, rare cards often command higher prices due to their scarcity, while more common cards tend to cluster around popular formats and sets, indicating collector interest and market demand. \n\nThe primary table, trading_card_transactions, holds detailed records of these exchanges, with each row representing a unique transaction. Each transaction records information about the card involved, such as its rarity, condition, and the specific event during which it was traded. This table serves as the backbone for analyzing the trading card ecosystem, providing insights into which cards are currently sought after, the average pricing trends, and the volume of trade activity. \n\nQuestions that arise from this data could include: What are the most traded cards? How does participation in tournaments influence card prices? What trends can be observed in the market regarding rarities and card types over time? This dataset proves to be a useful resource for analyzing trading patterns, understanding market dynamics, and exploring the relationship between card rarity and demand. Additionally, while the figures and details are reflective of potential real-world scenarios, it's important to note that this data is synthetic, crafted to provide a realistic practice environment without relying on actual market transactions.",
    "domain": "fintech",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "trading cards",
      "transactions",
      "market insights",
      "collectibles",
      "tournaments",
      "card types",
      "prices",
      "community",
      "trends"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "trading_card_transactions": {
        "description": "Each row in this table represents a transaction involving trading cards. It includes details such as the card type, price, and tournament participation, linking buyers and sellers in the trading community.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each transaction."
          },
          "card_name": {
            "kind": "title",
            "description": "The name of the trading card involved in the transaction.",
            "pool": [
              "Charizard",
              "Pikachu",
              "Mewtwo",
              "Blastoise",
              "Gengar",
              "Snorlax",
              "Eevee",
              "Jigglypuff",
              "Machamp",
              "Togepi",
              "Umbreon",
              "Lucario",
              "Greninja",
              "Sableye",
              "Rayquaza",
              "Zygarde",
              "Celebi",
              "Gardevoir",
              "Dragonite",
              "Scyther",
              "Lapras",
              "Metagross",
              "Alakazam",
              "Gyarados",
              "Tyranitar",
              "Salamence",
              "Pidgeot",
              "Ninetales",
              "Arcanine",
              "Machoke",
              "Onix",
              "Kabutops",
              "Golbat",
              "Misdreavus",
              "Shuckle",
              "Chinchou",
              "Lanturn",
              "Surskit",
              "Mawile",
              "Shinx",
              "Luxray",
              "Piplup",
              "Empoleon",
              "Bidoof",
              "Bibarel",
              "Turtwig",
              "Torterra",
              "Chimchar",
              "Infernape",
              "Ponyta"
            ],
            "min": 1,
            "max": 3
          },
          "card_type": {
            "kind": "enum",
            "values": [
              "Rare",
              "Common",
              "Uncommon",
              "Legendary"
            ],
            "description": "The classification of the card based on its rarity.",
            "weights": [
              6,
              3,
              2,
              1
            ]
          },
          "price": {
            "kind": "decimal",
            "min": 1,
            "max": 5000,
            "scale": 2,
            "description": "The sale price of the card in USD.",
            "nullable": true,
            "when": {
              "column": "card_type",
              "in": [
                "Rare",
                "Legendary"
              ]
            },
            "distribution": "long-tail"
          },
          "transaction_date": {
            "kind": "date",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "The date when the transaction occurred.",
            "trend": "growing"
          },
          "buyer_id": {
            "kind": "uuid",
            "description": "Unique identifier for the buyer of the card.",
            "nullable": true,
            "when": {
              "column": "card_type",
              "in": [
                "Rare",
                "Legendary"
              ]
            }
          },
          "seller_id": {
            "kind": "uuid",
            "description": "Unique identifier for the seller of the card."
          },
          "tournament_participation": {
            "kind": "bool",
            "trueRate": 0.4,
            "description": "Indicates if the transaction involved a card used in a tournament.",
            "nullable": true
          }
        }
      }
    },
    "structure": "single-table",
    "traits": [
      "monetary",
      "categorical",
      "nullable"
    ],
    "analysisQuestions": [
      "What is the average price of rare cards compared to common cards?",
      "Which card types are most frequently traded in tournaments?",
      "How do prices fluctuate over time for specific card types?",
      "What trends can be observed in tournament participation based on transaction data?",
      "Which cards consistently show up in high-value transactions?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Transactions and Card Types",
        "sql": "SELECT * FROM trading_card_transactions WHERE card_type = 'Rare';",
        "dialect": "postgres"
      },
      {
        "title": "Average Price by Card Type",
        "sql": "SELECT card_type, AVG(price) AS average_price FROM trading_card_transactions GROUP BY card_type;",
        "dialect": "postgres"
      },
      {
        "title": "Count of Transactions per Buyer",
        "sql": "SELECT buyer_id, COUNT(*) AS transaction_count FROM trading_card_transactions GROUP BY buyer_id;",
        "dialect": "postgres"
      },
      {
        "title": "Transactions Over Time",
        "sql": "SELECT transaction_date, COUNT(*) AS total_transactions FROM trading_card_transactions GROUP BY transaction_date ORDER BY transaction_date;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Market Analysis for Traders",
        "body": "Traders in the trading card market can utilize this dataset to analyze pricing trends and the popularity of various card types. By understanding which cards are in high demand, they can make informed decisions on when to buy or sell their cards, ultimately maximizing their profits."
      },
      {
        "title": "Tournament Preparation",
        "body": "Players preparing for tournaments can leverage this data to identify which cards are most often used in competitive play. By studying transaction trends and card performance, they can optimize their decks and improve their chances of winning in upcoming events."
      },
      {
        "title": "Collector Insights",
        "body": "Collectors can use this dataset to track the market value of their collections over time. By analyzing transaction prices and types, they can gauge the overall health of the trading card market and make strategic decisions about expanding or refining their collections."
      }
    ]
  },
  "counts": {
    "trading_card_transactions": 500
  },
  "stats": {
    "trading_card_transactions": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "card_name": {
          "nulls": 0,
          "distinct": 358
        },
        "card_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "Common",
          "max": "Uncommon"
        },
        "price": {
          "nulls": 183,
          "distinct": 316,
          "min": 1.02,
          "max": 4985.62
        },
        "transaction_date": {
          "nulls": 0,
          "distinct": 370,
          "min": "2022-01-01",
          "max": "2023-12-31"
        },
        "buyer_id": {
          "nulls": 183,
          "distinct": 317
        },
        "seller_id": {
          "nulls": 0,
          "distinct": 500
        },
        "tournament_participation": {
          "nulls": 50,
          "distinct": 2,
          "min": "false",
          "max": "true"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/trading_card_transactions.csv",
      "format": "csv",
      "table": "trading_card_transactions",
      "key": "datasets/trading-card/v3/csv/trading_card_transactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/trading-card/v3/csv/trading_card_transactions.csv",
      "bytes": 54897,
      "sha256": "d20f31f4a19fbcd8fd95ef4faa875225bef55c8eb34cdbdc35829122a794f2b6",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "trading-card.json",
      "format": "json",
      "table": null,
      "key": "datasets/trading-card/v3/trading-card.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/trading-card/v3/trading-card.json",
      "bytes": 151586,
      "sha256": "b0bc420d9789543d436e717f58ae5ab802488d4ff738f0c36fd4eea084ff419c",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/trading-card/v3/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/trading-card/v3/sql/postgres.sql",
      "bytes": 68837,
      "sha256": "613a44e0c3e64ae920e77e9933382b5427e1d1958214a9f74c0ca8653c64e223",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/trading-card/v3/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/trading-card/v3/sql/mysql.sql",
      "bytes": 67089,
      "sha256": "de0c80805a71a5dd7472fd6e02949db7798efa3069700fb4c7c802080df51e83",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/trading-card/v3/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/trading-card/v3/sql/mssql.sql",
      "bytes": 69512,
      "sha256": "13e8defd556ad2d310dbd1a580659294165373198d4534cc4f6aef58b824c290",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/trading-card/v3/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/trading-card/v3/sql/sqlite.sql",
      "bytes": 67047,
      "sha256": "a1ff5c7a63d0759ffe901799b0d6abe0a5e2c7def778fd46dda58af9907a8699",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/trading-card/v3/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/trading-card/v3/prisma/seed.ts",
      "bytes": 123004,
      "sha256": "bf333f95ac26b881050432a662a9c2fe84eb95ffd3250f777b244d467f2e5529",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/trading-card/v3/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/trading-card/v3/django/fixtures.json",
      "bytes": 181741,
      "sha256": "9d911effea6b977dc42b56d09f61d5166cf15c29537ba25b2045f3a553aac91b",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767876271,
  "updatedAt": 1789096071060
}
