{
  "format": "dataset-manifest/1",
  "slug": "literary-marketplace",
  "version": 2,
  "seed": "literary-marketplace:1",
  "spec": {
    "format": "dataset/1",
    "slug": "literary-marketplace",
    "name": "Literary Marketplace",
    "tagline": "Connect readers with a diverse range of literary works.",
    "description": "A vibrant bookstore connects readers with a diverse range of literary works, facilitating the purchase and discovery of books. The operation revolves around popular titles from various genres, the authors behind them, customer orders, and payment transactions. Inventory management is crucial, ensuring that bestselling books are readily available while also tracking award-winning titles that pique customer interest. While most orders consist of a mix of fiction and non-fiction, award-winning books tend to be less common in individual sales, creating a unique demand among discerning readers.\n\nWithin the literary marketplace, a row in the literary_marketplace table represents individual transactions, capturing essential details like the book title, author, genre, customer information, and payment status. Each transaction is linked to specific customer profiles, allowing for analysis of buying habits and preferences. Additionally, the table can be used to explore patterns in order history, which can reveal trends in which genres or authors are gaining popularity or which books are consistently in demand.\n\nThis dataset allows developers to practice a range of queries, such as analyzing sales trends over time, identifying the most popular genres or authors, and examining the impact of promotional campaigns on sales. By exploring customer order patterns, users can also delve into the demographics of their clientele, understanding how different segments engage with various types of literature. Since the data is synthetic, it offers a flexible and realistic environment to hone data manipulation and analysis skills without any privacy concerns.",
    "domain": "ecommerce",
    "shape": "star-schema",
    "useCases": [
      "bi-dashboards",
      "analytics-demo"
    ],
    "keywords": [
      "bookstore",
      "books",
      "authors",
      "orders",
      "inventory",
      "sales",
      "genres",
      "award-winning",
      "literature"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "literary_marketplace": {
        "description": "Each row represents a unique book transaction, linking details about the book, the author, customer orders, and payment information. This table allows for comprehensive analysis of sales trends and inventory management within the bookstore.",
        "rows": 1000,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each transaction"
          },
          "book_title": {
            "kind": "fullName",
            "description": "Title of the book being purchased"
          },
          "author_name": {
            "kind": "fullName",
            "description": "Name of the author of the book"
          },
          "genre": {
            "kind": "enum",
            "values": [
              "Fiction",
              "Non-Fiction",
              "Mystery",
              "Romance",
              "Science Fiction",
              "Fantasy",
              "Biography",
              "History"
            ],
            "description": "Genre of the book",
            "weights": [
              5,
              3,
              2,
              4,
              3,
              2,
              1,
              1
            ]
          },
          "order_date": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date when the order was placed",
            "nullable": true,
            "when": {
              "column": "payment_status",
              "in": [
                "Paid"
              ]
            },
            "dayProfile": "waking"
          },
          "quantity": {
            "kind": "int",
            "min": 1,
            "max": 5,
            "description": "Number of copies of the book purchased in the transaction",
            "nullable": true,
            "when": {
              "column": "payment_status",
              "in": [
                "Paid",
                "Refunded"
              ]
            }
          },
          "price": {
            "kind": "decimal",
            "min": 5,
            "max": 50,
            "scale": 2,
            "description": "Price of the book at the time of sale",
            "distribution": "long-tail"
          },
          "payment_status": {
            "kind": "enum",
            "values": [
              "Paid",
              "Pending",
              "Refunded"
            ],
            "description": "Current status of the payment for the order",
            "weights": [
              7,
              2,
              1
            ]
          },
          "is_award_winning": {
            "kind": "bool",
            "trueRate": 0.2,
            "description": "Indicates whether the book is an award-winning title",
            "nullable": true
          }
        }
      }
    },
    "structure": "single-table",
    "traits": [
      "categorical",
      "monetary",
      "timestamped"
    ],
    "analysisQuestions": [
      "What are the top-selling genres in the bookstore?",
      "How do sales of award-winning books compare to regular titles?",
      "What are the peak sales periods throughout the year?",
      "Which authors have the highest sales volume?",
      "What is the average price of books sold in each genre?"
    ],
    "suggestedQueries": [
      {
        "title": "Fetch all transactions for a specific genre",
        "sql": "SELECT * FROM literary_marketplace WHERE genre = 'Fiction';",
        "dialect": "postgres"
      },
      {
        "title": "Count total sales by author",
        "sql": "SELECT author_name, SUM(price * quantity) AS total_sales FROM literary_marketplace GROUP BY author_name;",
        "dialect": "postgres"
      },
      {
        "title": "Find average transaction size by payment status",
        "sql": "SELECT payment_status, AVG(quantity) AS average_quantity FROM literary_marketplace GROUP BY payment_status;",
        "dialect": "postgres"
      },
      {
        "title": "Identify sales trends over time",
        "sql": "SELECT DATE_TRUNC('month', order_date) AS month, SUM(price * quantity) AS total_sales FROM literary_marketplace GROUP BY month ORDER BY month;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Business Analysts",
        "body": "Business analysts can utilize the Literary Marketplace dataset to create comprehensive reports on sales trends, customer preferences, and inventory management. By analyzing the data, they can provide insights that drive marketing strategies and inventory decisions, helping the bookstore to better cater to its customers."
      },
      {
        "title": "Data Scientists",
        "body": "Data scientists can explore the dataset to build predictive models that forecast book sales based on past trends. By understanding which genres and authors attract the most customers, they can help the bookstore optimize its inventory and marketing efforts, ensuring that popular titles are always available."
      },
      {
        "title": "Marketing Teams",
        "body": "Marketing teams can leverage the dataset to identify target demographics for specific genres or award-winning titles. By analyzing customer orders and payment statuses, they can tailor promotional campaigns to boost sales and increase customer engagement within their literary marketplace."
      }
    ]
  },
  "counts": {
    "literary_marketplace": 1000
  },
  "stats": {
    "literary_marketplace": {
      "rows": 1000,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 1000,
          "min": 1,
          "max": 1000
        },
        "book_title": {
          "nulls": 0,
          "distinct": 924,
          "min": "Alice Carter",
          "max": "Zoe Zhang"
        },
        "author_name": {
          "nulls": 0,
          "distinct": 927,
          "min": "Alice Castro",
          "max": "Zoe Vargas"
        },
        "genre": {
          "nulls": 0,
          "distinct": 8,
          "min": "Biography",
          "max": "Science Fiction"
        },
        "order_date": {
          "nulls": 310,
          "distinct": 690,
          "min": "2022-01-01 08:50:51",
          "max": "2023-12-29 18:41:55"
        },
        "quantity": {
          "nulls": 203,
          "distinct": 5,
          "min": 1,
          "max": 5
        },
        "price": {
          "nulls": 0,
          "distinct": 827,
          "min": 5,
          "max": 49.94
        },
        "payment_status": {
          "nulls": 0,
          "distinct": 3,
          "min": "Paid",
          "max": "Refunded"
        },
        "is_award_winning": {
          "nulls": 87,
          "distinct": 2,
          "min": "false",
          "max": "true"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/literary_marketplace.csv",
      "format": "csv",
      "table": "literary_marketplace",
      "key": "datasets/literary-marketplace/v2/csv/literary_marketplace.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/literary-marketplace/v2/csv/literary_marketplace.csv",
      "bytes": 71969,
      "sha256": "c93648badd746bf4e1d4d3d91bded2d652cd8ec62800b2eb6d2bb579e3877beb",
      "rows": 1000,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "literary-marketplace.json",
      "format": "json",
      "table": null,
      "key": "datasets/literary-marketplace/v2/literary-marketplace.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/literary-marketplace/v2/literary-marketplace.json",
      "bytes": 274547,
      "sha256": "02f39b4b4dfec8319748af59c9fe61e0153b169ea1b953bf208eb7ab80d2bc7c",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/literary-marketplace/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/literary-marketplace/v2/sql/postgres.sql",
      "bytes": 99242,
      "sha256": "a1c432d62f54a9f1fde1f7c36788b765dee9abf0072d0c59eaf6d696565ed032",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/literary-marketplace/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/literary-marketplace/v2/sql/mysql.sql",
      "bytes": 95638,
      "sha256": "e502533f22401f26a4ee2e842f533feade495b7c78392df998d21bf90871e91d",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/literary-marketplace/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/literary-marketplace/v2/sql/mssql.sql",
      "bytes": 100411,
      "sha256": "e0ec46d555840030c9d26b092fc402e14254be80968529f17a1d9e474eba2612",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/literary-marketplace/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/literary-marketplace/v2/sql/sqlite.sql",
      "bytes": 95589,
      "sha256": "8f61d831a5268225cc0bbfe9cf429376726e19902d657cac7b9b3eb3f39cb3fa",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/literary-marketplace/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/literary-marketplace/v2/prisma/seed.ts",
      "bytes": 217090,
      "sha256": "ffb3fb27fce98c2caee15e21ec1ca35a69458de93c12d6c9b2c06109ed0ca261",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/literary-marketplace/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/literary-marketplace/v2/django/fixtures.json",
      "bytes": 333351,
      "sha256": "4477c23f0a8988f5aa92950885030eaf1502e4145c04ba7a6d923c7bb302eee0",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788766170426,
  "updatedAt": 1788784720584
}
