{
  "format": "dataset-manifest/1",
  "slug": "wine",
  "version": 1,
  "seed": "wine:1",
  "spec": {
    "format": "dataset/1",
    "slug": "wine",
    "name": "Wine Distribution Insights",
    "tagline": "Vineyards, soil types, varietals, inventory, pairing recommendations, and sales data for wine distribution logistics.",
    "description": "Vineyards produce unique varietals of wine driven by the characteristics of their soil and specific aging techniques. These winemakers cultivate grapes that reflect the terroir of their regions, resulting in a diverse array of wines that cater to various consumer tastes. As wines move from the vineyard to consumers, logistics play a crucial role in ensuring that inventory levels align with market demand, distributing products to retailers and restaurants effectively. This operation involves a careful balance between maintaining stock for popular varietals and catering to demand for rare vintages, which often attract collectors. Detailed pairing recommendations help guide consumers in selecting the perfect wine for their meals, enhancing the overall dining experience. \n\nThe dataset includes several interconnected tables: vineyards provide details about the wine producers, while soil_types describe the various soils that influence grape growth. Varietals categorize the different types of wines produced, and inventory tracks the available stock. Sales_data connects the inventory with real-time sales trends, helping to identify which wines are performing well. The pairing_recommendations table offers insights into ideal food pairings for each varietal, enriching consumer understanding and enhancing sales strategies. \n\nBy analyzing this synthetic data, developers can explore questions around inventory management, sales patterns, and consumer preferences. Practicing on this dataset allows individuals to develop skills in data analysis, visualization, and building predictive models, making it a valuable resource for anyone interested in the logistics of wine distribution.",
    "domain": "logistics",
    "shape": "star-schema",
    "useCases": [
      "bi-dashboards",
      "analytics-demo"
    ],
    "keywords": [
      "wine",
      "distribution",
      "logistics",
      "inventory",
      "vintages",
      "varietals",
      "vineyards",
      "retail",
      "analytics"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "vineyards": {
        "description": "Each row represents a vineyard producing different wine varietals, linking to soil types and regions.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the vineyard."
          },
          "name": {
            "kind": "fullName",
            "description": "Name of the vineyard.",
            "nullable": true,
            "when": {
              "column": "region",
              "in": [
                "Napa Valley",
                "Bordeaux",
                "Tuscany",
                "Sonoma",
                "Barossa Valley"
              ]
            }
          },
          "region": {
            "kind": "enum",
            "values": [
              "Napa Valley",
              "Bordeaux",
              "Tuscany",
              "Sonoma",
              "Barossa Valley"
            ],
            "description": "Geographic region where the vineyard is located."
          },
          "soil_type": {
            "kind": "fk",
            "ref": "soil_types.id",
            "description": "Soil type associated with the vineyard.",
            "nullable": true
          }
        }
      },
      "soil_types": {
        "description": "Describes various soil types that affect wine quality, linked to vineyards.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the soil type."
          },
          "name": {
            "kind": "fullName",
            "description": "Name of the soil type."
          },
          "characteristics": {
            "kind": "words",
            "max": 100,
            "description": "Key characteristics of the soil type."
          }
        }
      },
      "varietals": {
        "description": "Each row details different wine varietals produced by vineyards, linked to specific vineyards.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the varietal."
          },
          "name": {
            "kind": "fullName",
            "description": "Name of the wine varietal."
          },
          "vintage": {
            "kind": "date",
            "from": "2000-01-01",
            "to": "2023-12-31",
            "description": "Year the wine was produced.",
            "trend": "seasonal"
          },
          "vineyard_id": {
            "kind": "fk",
            "ref": "vineyards.id",
            "description": "Vineyard producing this varietal."
          }
        }
      },
      "inventory": {
        "description": "Tracks inventory levels of various wine varietals at retailers and restaurants.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the inventory record."
          },
          "varietal_id": {
            "kind": "fk",
            "ref": "varietals.id",
            "description": "Wine varietal linked to the inventory."
          },
          "location": {
            "kind": "city",
            "description": "Retailer or restaurant location."
          },
          "quantity": {
            "kind": "int",
            "min": 0,
            "max": 500,
            "description": "Quantity of the varietal in inventory."
          },
          "last_updated": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Last updated date for the inventory record.",
            "dayProfile": "business"
          }
        }
      },
      "pairing_recommendations": {
        "description": "Provides food pairing recommendations for various wine varietals.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the pairing recommendation."
          },
          "varietal_id": {
            "kind": "fk",
            "ref": "varietals.id",
            "description": "Wine varietal linked to the pairing."
          },
          "food_pairing": {
            "kind": "sentence",
            "max": 150,
            "description": "Suggested food pairing for the varietal."
          }
        }
      },
      "sales_data": {
        "description": "Records sales transactions for different wine varietals sold at retail and restaurant locations.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the sales record."
          },
          "varietal_id": {
            "kind": "fk",
            "ref": "varietals.id",
            "description": "Wine varietal sold."
          },
          "sold_quantity": {
            "kind": "int",
            "min": 1,
            "max": 100,
            "description": "Quantity sold in the transaction."
          },
          "sale_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date of the sale.",
            "trend": "growing"
          },
          "location": {
            "kind": "city",
            "description": "Retailer or restaurant location for the sale."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "timestamped",
      "nullable"
    ],
    "analysisQuestions": [
      "Which varietals have the highest inventory levels across different locations?",
      "What food pairings are most commonly recommended for popular wine varietals?",
      "How do soil types impact the production of different wine varietals?",
      "What trends can be observed in wine sales over the past year?",
      "Which regions produce the most varietals and how does this influence inventory?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Wine Varietals with Inventory",
        "sql": "SELECT v.name AS varietal_name, i.quantity FROM varietals v JOIN inventory i ON v.id = i.varietal_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Inventory by Location",
        "sql": "SELECT i.location, COUNT(*) AS total_varietals FROM inventory i GROUP BY i.location;",
        "dialect": "postgres"
      },
      {
        "title": "Sales Trends Over Time",
        "sql": "SELECT s.sale_date, SUM(s.sold_quantity) AS total_sales FROM sales_data s GROUP BY s.sale_date ORDER BY s.sale_date;",
        "dialect": "postgres"
      },
      {
        "title": "Food Pairing Recommendations for Varietals",
        "sql": "SELECT v.name AS varietal_name, p.food_pairing FROM varietals v JOIN pairing_recommendations p ON v.id = p.varietal_id;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Retail Inventory Management",
        "body": "A retail manager can use the dataset to analyze inventory levels across different locations, helping to optimize stock levels based on popular varietals and sales trends. By examining which varietals are in high demand, the manager can make informed purchasing decisions to meet consumer preferences."
      },
      {
        "title": "Wine Pairing Recommendations",
        "body": "A sommelier or restaurant owner could leverage the pairing recommendations table to enhance the dining experience for customers. By analyzing which varietals pair well with specific dishes, they can create appealing menus that highlight wine pairings, potentially increasing customer satisfaction and sales."
      },
      {
        "title": "Market Analysis for Winemakers",
        "body": "Winemakers can utilize this dataset to understand market trends and inventory levels of their varietals in various regions. This information can guide production decisions, helping them to adapt to consumer preferences and optimize their distribution strategies."
      },
      {
        "title": "Sales Performance Evaluation",
        "body": "Data analysts at a wine distribution company can analyze sales data to evaluate the performance of different varietals over time. By identifying sales spikes and trends, they can provide insights that inform marketing strategies and promotional efforts."
      }
    ]
  },
  "counts": {
    "soil_types": 10,
    "vineyards": 100,
    "varietals": 150,
    "inventory": 300,
    "pairing_recommendations": 200,
    "sales_data": 500
  },
  "stats": {
    "vineyards": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "name": {
          "nulls": 0,
          "distinct": 99,
          "min": "Alice Singh",
          "max": "Yusuf Miller"
        },
        "region": {
          "nulls": 0,
          "distinct": 5,
          "min": "Barossa Valley",
          "max": "Tuscany"
        },
        "soil_type": {
          "nulls": 9,
          "distinct": 10,
          "min": 1,
          "max": 10
        }
      }
    },
    "soil_types": {
      "rows": 10,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 10,
          "min": 1,
          "max": 10
        },
        "name": {
          "nulls": 0,
          "distinct": 10,
          "min": "Grace Ahmed",
          "max": "Selin Adams"
        },
        "characteristics": {
          "nulls": 0,
          "distinct": 10
        }
      }
    },
    "varietals": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "name": {
          "nulls": 0,
          "distinct": 148,
          "min": "Alice Ali",
          "max": "Zoe Andersen"
        },
        "vintage": {
          "nulls": 0,
          "distinct": 148,
          "min": "2000-01-22",
          "max": "2023-11-27"
        },
        "vineyard_id": {
          "nulls": 0,
          "distinct": 82,
          "min": 1,
          "max": 99
        }
      }
    },
    "inventory": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "varietal_id": {
          "nulls": 0,
          "distinct": 129,
          "min": 2,
          "max": 150
        },
        "location": {
          "nulls": 0,
          "distinct": 63,
          "min": "Amsterdam",
          "max": "Zurich"
        },
        "quantity": {
          "nulls": 0,
          "distinct": 233,
          "min": 3,
          "max": 500
        },
        "last_updated": {
          "nulls": 0,
          "distinct": 300,
          "min": "2023-01-01 10:49:35",
          "max": "2023-12-31 16:24:24"
        }
      }
    },
    "pairing_recommendations": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "varietal_id": {
          "nulls": 0,
          "distinct": 119,
          "min": 1,
          "max": 150
        },
        "food_pairing": {
          "nulls": 0,
          "distinct": 200
        }
      }
    },
    "sales_data": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "varietal_id": {
          "nulls": 0,
          "distinct": 146,
          "min": 1,
          "max": 150
        },
        "sold_quantity": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "sale_date": {
          "nulls": 0,
          "distinct": 271,
          "min": "2023-01-03",
          "max": "2023-12-31"
        },
        "location": {
          "nulls": 0,
          "distinct": 63,
          "min": "Amsterdam",
          "max": "Zurich"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/soil_types.csv",
      "format": "csv",
      "table": "soil_types",
      "key": "datasets/wine/v1/csv/soil_types.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/wine/v1/csv/soil_types.csv",
      "bytes": 3566,
      "sha256": "3c04c69042328c71044326eb6fd2deb655880e15ada5ede83b2442d496b7ea0a",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/vineyards.csv",
      "format": "csv",
      "table": "vineyards",
      "key": "datasets/wine/v1/csv/vineyards.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/wine/v1/csv/vineyards.csv",
      "bytes": 2856,
      "sha256": "6df7d37b3c29bfb1ddb15b5d0174cbec94d3ed8f300b61925eff4c9ac42171c3",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/varietals.csv",
      "format": "csv",
      "table": "varietals",
      "key": "datasets/wine/v1/csv/varietals.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/wine/v1/csv/varietals.csv",
      "bytes": 4559,
      "sha256": "970a128141c8122c7be998ada94f3c493c3235a384ffa09c5813300c792f8aae",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/inventory.csv",
      "format": "csv",
      "table": "inventory",
      "key": "datasets/wine/v1/csv/inventory.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/wine/v1/csv/inventory.csv",
      "bytes": 11945,
      "sha256": "0652776822707c7c20fc9c8b765938287acf65fd205dbea42d7e9488c6f48055",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/pairing_recommendations.csv",
      "format": "csv",
      "table": "pairing_recommendations",
      "key": "datasets/wine/v1/csv/pairing_recommendations.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/wine/v1/csv/pairing_recommendations.csv",
      "bytes": 13014,
      "sha256": "f19312e04bd7f2087bf3e5bdb484ae547540665f9485b87a44ce9e1b7ef66886",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/sales_data.csv",
      "format": "csv",
      "table": "sales_data",
      "key": "datasets/wine/v1/csv/sales_data.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/wine/v1/csv/sales_data.csv",
      "bytes": 14942,
      "sha256": "ee18206635994950820bba92f34d648cce247fa15af6c03536eaadd60f6dab19",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "wine.json",
      "format": "json",
      "table": null,
      "key": "datasets/wine/v1/wine.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/wine/v1/wine.json",
      "bytes": 175918,
      "sha256": "98d56524feebcf7057f84254fab3966721f6d4f58e2c31a94c9cd50ca057fed4",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/wine/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/wine/v1/sql/postgres.sql",
      "bytes": 70692,
      "sha256": "fe593b12ae16181bee23900ca6ea3a4f0f4dfb71057f281df61ba6cb81e36e03",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/wine/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/wine/v1/sql/mysql.sql",
      "bytes": 69980,
      "sha256": "e571e7204a261a6e8fa51fc6ee9be163c1042d5efb68a2a7be351fbfb84724df",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/wine/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/wine/v1/sql/mssql.sql",
      "bytes": 72727,
      "sha256": "b002ab2623ec2e5853c937ece5e07dad9d86368b8ed3bfb5b70636e45cad2e20",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/wine/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/wine/v1/sql/sqlite.sql",
      "bytes": 69714,
      "sha256": "812a3a36bbd44ec7df1f4dc0e1d6486524a098b994ec96db36bcfb185dddb9b9",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/wine/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/wine/v1/prisma/seed.ts",
      "bytes": 140189,
      "sha256": "8a07669d71939bb84708ee7b7100ce93195bc108f5b85820f9e7982e3efdc8b0",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/wine/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/wine/v1/django/fixtures.json",
      "bytes": 232726,
      "sha256": "13e69a1d4ad6baf89f7ed77298726f178d7948f8c747efc1a017ec994e6e6974",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767550225,
  "updatedAt": 1788767550225
}
