{
  "format": "dataset-manifest/1",
  "slug": "sustainable-food-finder",
  "version": 2,
  "seed": "sustainable-food-finder:1",
  "spec": {
    "format": "dataset/1",
    "slug": "sustainable-food-finder",
    "name": "Sustainable Dining Insights",
    "tagline": "Explore the intersection of sustainability and dining through data.",
    "description": "Restaurants prioritize sustainability by sourcing local ingredients and minimizing waste, leading them to play a vital role in the movement towards more environmentally friendly dining options. This dataset explores the intricate relationships between various elements of restaurant operations: recipes that utilize available ingredients, claims made regarding surplus food, the carbon emissions resulting from diverse practices, and the sustainability certifications that validate these efforts. Each table provides unique insights into how restaurants navigate the challenges of sustainability, while allowing for a deeper understanding of their operational impact.\n\nThe 'restaurants' table contains entries for individual establishments, detailing their names, locations, and sustainability practices. The 'recipes' table outlines the dishes offered, linking back to the restaurants they belong to while highlighting ingredient sourcing strategies. 'Surplus_food_claims' track the amount of food claimed as surplus, demonstrating how restaurants manage excess and contribute to waste reduction. 'Carbon_emissions' provides critical data on the environmental impact of restaurant practices, while 'sustainability_certifications' indicates which restaurants have achieved certifications for eco-friendly practices—essentially recognizing their commitment to sustainable operations.\n\nBy analyzing the connections between these tables, you can investigate pertinent questions, such as which regions exhibit lower carbon footprints, how recipe choices impact surplus food claims, and the correlation between sustainability certifications and carbon emissions. Patterns may emerge, revealing that while many urban establishments operate with standard practices, a few stand out for their innovative approaches to sustainability. This dataset is entirely synthetic, yet it mirrors the realities of the restaurant industry, offering a rich ground for practice in data analysis and sustainability insights.",
    "domain": "restaurants",
    "shape": "event-log",
    "useCases": [
      "analytics-demo",
      "etl-pipelines"
    ],
    "keywords": [
      "sustainability",
      "restaurants",
      "food sourcing",
      "carbon emissions",
      "recipes",
      "surplus food",
      "certifications"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "restaurants": {
        "description": "This table represents restaurants focusing on sustainability, including their locations and certification statuses. Each restaurant has unique identifiers linking it to its sustainability practices and emissions data.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each restaurant."
          },
          "name": {
            "kind": "fullName",
            "description": "The full name of the restaurant."
          },
          "city": {
            "kind": "city",
            "description": "The city where the restaurant is located.",
            "nullable": true
          },
          "state": {
            "kind": "enum",
            "values": [
              "CA",
              "TX",
              "NY",
              "FL",
              "IL"
            ],
            "description": "The state where the restaurant operates.",
            "weights": [
              5,
              3,
              2,
              1,
              1
            ]
          },
          "certification": {
            "kind": "enum",
            "values": [
              "Organic",
              "Locally Sourced",
              "No Certification"
            ],
            "description": "The sustainability certification held by the restaurant.",
            "nullable": true,
            "when": {
              "column": "state",
              "in": [
                "CA",
                "TX",
                "NY",
                "FL",
                "IL"
              ]
            },
            "weights": [
              6,
              2,
              1
            ]
          }
        }
      },
      "recipes": {
        "description": "This table contains recipes offered by restaurants, linking them to the respective restaurant and detailing ingredients and cooking practices.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each recipe."
          },
          "restaurant_id": {
            "kind": "fk",
            "ref": "restaurants.id",
            "description": "Reference to the restaurant offering this recipe."
          },
          "name": {
            "kind": "words",
            "description": "Name of the recipe.",
            "nullable": true,
            "pool": [
              "salad",
              "taco",
              "soup",
              "curry",
              "quinoa",
              "pasta",
              "stew",
              "wrap",
              "smoothie",
              "salsa",
              "stirfry",
              "bowl",
              "casserole",
              "burger",
              "dessert",
              "sushi",
              "tart",
              "pizza",
              "sandwich",
              "omelette",
              "pancake"
            ],
            "min": 1,
            "max": 3
          },
          "ingredients": {
            "kind": "paragraph",
            "description": "List of ingredients used in the recipe.",
            "nullable": true,
            "when": {
              "column": "cooking_method",
              "in": [
                "Grilling",
                "Baking",
                "Frying",
                "Raw"
              ]
            }
          },
          "cooking_method": {
            "kind": "enum",
            "values": [
              "Grilling",
              "Baking",
              "Frying",
              "Raw"
            ],
            "description": "The primary cooking method used for the recipe."
          }
        }
      },
      "surplus_food_claims": {
        "description": "This table tracks claims of surplus food reported by restaurants, indicating efforts to reduce waste.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each surplus food claim."
          },
          "restaurant_id": {
            "kind": "fk",
            "ref": "restaurants.id",
            "description": "Reference to the restaurant making the claim."
          },
          "amount": {
            "kind": "decimal",
            "min": 1,
            "max": 1000,
            "scale": 2,
            "description": "Amount of surplus food reported in kilograms.",
            "nullable": true,
            "distribution": "long-tail"
          },
          "date": {
            "kind": "date",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date of the surplus food claim.",
            "trend": "seasonal"
          }
        }
      },
      "carbon_emissions": {
        "description": "This table records carbon emissions data associated with restaurants, linking to their sustainability practices.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each carbon emissions record."
          },
          "restaurant_id": {
            "kind": "fk",
            "ref": "restaurants.id",
            "description": "Reference to the restaurant for which emissions are recorded."
          },
          "amount": {
            "kind": "decimal",
            "min": 0,
            "max": 500,
            "scale": 2,
            "description": "Carbon emissions in metric tons per year.",
            "nullable": true,
            "distribution": "long-tail"
          },
          "reporting_year": {
            "kind": "date",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Year in which emissions were reported.",
            "trend": "growing"
          }
        }
      },
      "sustainability_certifications": {
        "description": "This table lists different sustainability certifications available to restaurants, including descriptions and requirements.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each certification."
          },
          "name": {
            "kind": "words",
            "description": "Name of the sustainability certification.",
            "pool": [
              "organic",
              "fairtrade",
              "nonGMO",
              "biodynamic",
              "rainforest",
              "sustainable",
              "ecoLabel",
              "greenSeal",
              "carbonNeutral",
              "energyStar",
              "local",
              "certified",
              "renewable",
              "ethical",
              "crueltyFree",
              "vegan",
              "glutenFree",
              "lowCarbon",
              "marineStewardship",
              "forestStewardship",
              "bamboo"
            ],
            "min": 1,
            "max": 3
          },
          "description": {
            "kind": "paragraph",
            "description": "Description of the certification requirements and benefits."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "nullable",
      "timestamped",
      "monetary"
    ],
    "analysisQuestions": [
      "What trends can be observed in carbon emissions across different restaurants?",
      "Which ingredients are most commonly used in sustainable recipes?",
      "How does the certification status affect the restaurant's surplus food claims?",
      "What cooking methods are associated with lower carbon emissions?",
      "Are there regional differences in sustainability certifications among restaurants?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Recipes and Restaurants",
        "sql": "SELECT r.name, rec.name FROM restaurants r JOIN recipes rec ON r.id = rec.restaurant_id;",
        "dialect": "postgres"
      },
      {
        "title": "Average Carbon Emissions by Certification",
        "sql": "SELECT cert.name, AVG(ce.amount) FROM carbon_emissions ce JOIN restaurants r ON ce.restaurant_id = r.id JOIN sustainability_certifications cert ON r.certification = cert.name GROUP BY cert.name;",
        "dialect": "postgres"
      },
      {
        "title": "Total Surplus Food Claims per Restaurant",
        "sql": "SELECT r.name, SUM(s.amount) FROM surplus_food_claims s JOIN restaurants r ON s.restaurant_id = r.id GROUP BY r.name;",
        "dialect": "postgres"
      },
      {
        "title": "Yearly Trends in Carbon Emissions",
        "sql": "SELECT ce.reporting_year, AVG(ce.amount) FROM carbon_emissions ce GROUP BY ce.reporting_year ORDER BY ce.reporting_year;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Restaurant Owner Insights",
        "body": "A restaurant owner can utilize the Sustainable Dining Insights dataset to benchmark their sustainability practices against competitors. By analyzing carbon emissions and surplus food claims, they can identify areas for improvement and implement more effective strategies for sourcing local ingredients."
      },
      {
        "title": "Policy Maker Analysis",
        "body": "Policy makers focused on environmental sustainability can use this dataset to understand the impact of restaurant practices on local carbon footprints. By identifying regions with low emissions and high certification rates, they can promote successful strategies through incentives and support."
      },
      {
        "title": "Culinary Education",
        "body": "Culinary schools can incorporate this dataset into their curriculum, teaching future chefs about sustainable cooking practices. By exploring the types of ingredients and cooking methods used in sustainable recipes, students can learn how to create delicious meals that are environmentally friendly."
      }
    ]
  },
  "counts": {
    "restaurants": 300,
    "carbon_emissions": 300,
    "recipes": 500,
    "surplus_food_claims": 200,
    "sustainability_certifications": 50
  },
  "stats": {
    "restaurants": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "name": {
          "nulls": 0,
          "distinct": 289,
          "min": "Alice Clark",
          "max": "Zara Rossi"
        },
        "city": {
          "nulls": 25,
          "distinct": 63,
          "min": "Amsterdam",
          "max": "Zurich"
        },
        "state": {
          "nulls": 0,
          "distinct": 5,
          "min": "CA",
          "max": "TX"
        },
        "certification": {
          "nulls": 0,
          "distinct": 3,
          "min": "Locally Sourced",
          "max": "Organic"
        }
      }
    },
    "recipes": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "restaurant_id": {
          "nulls": 0,
          "distinct": 249,
          "min": 1,
          "max": 300
        },
        "name": {
          "nulls": 55,
          "distinct": 290
        },
        "ingredients": {
          "nulls": 0,
          "distinct": 500
        },
        "cooking_method": {
          "nulls": 0,
          "distinct": 4,
          "min": "Baking",
          "max": "Raw"
        }
      }
    },
    "surplus_food_claims": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "restaurant_id": {
          "nulls": 0,
          "distinct": 154,
          "min": 1,
          "max": 300
        },
        "amount": {
          "nulls": 18,
          "distinct": 182,
          "min": 1,
          "max": 985.96
        },
        "date": {
          "nulls": 0,
          "distinct": 177,
          "min": "2022-01-02",
          "max": "2023-12-27"
        }
      }
    },
    "carbon_emissions": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "restaurant_id": {
          "nulls": 0,
          "distinct": 196,
          "min": 1,
          "max": 299
        },
        "amount": {
          "nulls": 39,
          "distinct": 260,
          "min": 0,
          "max": 498.04
        },
        "reporting_year": {
          "nulls": 0,
          "distinct": 260,
          "min": "2022-01-05",
          "max": "2023-12-31"
        }
      }
    },
    "sustainability_certifications": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "name": {
          "nulls": 0,
          "distinct": 45
        },
        "description": {
          "nulls": 0,
          "distinct": 50
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/restaurants.csv",
      "format": "csv",
      "table": "restaurants",
      "key": "datasets/sustainable-food-finder/v2/csv/restaurants.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sustainable-food-finder/v2/csv/restaurants.csv",
      "bytes": 11396,
      "sha256": "8925f27318dca7f5c2e3a30076732ce81896a6d36fadf0bf7898f214f23e615d",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/carbon_emissions.csv",
      "format": "csv",
      "table": "carbon_emissions",
      "key": "datasets/sustainable-food-finder/v2/csv/carbon_emissions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sustainable-food-finder/v2/csv/carbon_emissions.csv",
      "bytes": 7526,
      "sha256": "9cbb6c319c31e4ad37d8a087ab2e5f8bbcda690c224176b6da036fbf639c1e7a",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/recipes.csv",
      "format": "csv",
      "table": "recipes",
      "key": "datasets/sustainable-food-finder/v2/csv/recipes.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sustainable-food-finder/v2/csv/recipes.csv",
      "bytes": 97025,
      "sha256": "36d3b4c56f296e5cffad0e7a1d64f789029795def320b6a000074e797d8648c1",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/surplus_food_claims.csv",
      "format": "csv",
      "table": "surplus_food_claims",
      "key": "datasets/sustainable-food-finder/v2/csv/surplus_food_claims.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sustainable-food-finder/v2/csv/surplus_food_claims.csv",
      "bytes": 5070,
      "sha256": "b9956bc2a80e631125147bb9b6a1eff335935caacd3410cb565256adfe2ef6b2",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/sustainability_certifications.csv",
      "format": "csv",
      "table": "sustainability_certifications",
      "key": "datasets/sustainable-food-finder/v2/csv/sustainability_certifications.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sustainable-food-finder/v2/csv/sustainability_certifications.csv",
      "bytes": 9450,
      "sha256": "cb1f40be7e3afd531a5525448df048eda3579c421b153a1a514cdbaeb91153af",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "sustainable-food-finder.json",
      "format": "json",
      "table": null,
      "key": "datasets/sustainable-food-finder/v2/sustainable-food-finder.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sustainable-food-finder/v2/sustainable-food-finder.json",
      "bytes": 266090,
      "sha256": "29c8fc03b61995851844af2a8f6d4ce8a919e3c6ca252a0a4733d5aa1ce7fd06",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/sustainable-food-finder/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sustainable-food-finder/v2/sql/postgres.sql",
      "bytes": 152740,
      "sha256": "f62005a1b8021e6e4a06576066b0560e175735fcfccddc12877c5f0d611626f8",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/sustainable-food-finder/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sustainable-food-finder/v2/sql/mysql.sql",
      "bytes": 152113,
      "sha256": "e0cfe308bcdd157f4d232f2d4d3c766ff11eb28eab51da565232a6e3fc9013ae",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/sustainable-food-finder/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sustainable-food-finder/v2/sql/mssql.sql",
      "bytes": 155747,
      "sha256": "c8b2f38def0202a2426feb5c65631abd2ad72f552c8ea0bd72ad3f6dbc157dfb",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/sustainable-food-finder/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sustainable-food-finder/v2/sql/sqlite.sql",
      "bytes": 151903,
      "sha256": "986a7184523d5b08918564a3bef80206d017dfdca2ebabe224d01d9751302f6e",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/sustainable-food-finder/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sustainable-food-finder/v2/prisma/seed.ts",
      "bytes": 224171,
      "sha256": "4b95ff00a3934d3832b07994e3cc43a7e6cf6c628c7f1910148002cb9983ecb9",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/sustainable-food-finder/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/sustainable-food-finder/v2/django/fixtures.json",
      "bytes": 328591,
      "sha256": "0f99ecdca8320bbbb165e16922779e260d0515357a677edab91205a4cb5802b3",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768040449,
  "updatedAt": 1788786315512
}
