{
  "format": "dataset-manifest/1",
  "slug": "local-farmer-s-market-and-organic-food-finder",
  "version": 2,
  "seed": "local-farmer-s-market-and-organic-food-finder:1",
  "spec": {
    "format": "dataset/1",
    "slug": "local-farmer-s-market-and-organic-food-finder",
    "name": "Farmers Market Activity Log",
    "tagline": "Sales transactions, vendor participation, product offerings, and customer interactions from a local farmers market.",
    "description": "Vendors sell fresh organic produce and specialty food items directly to consumers and restaurants at the local farmer's market. Each market event draws a diverse crowd, where customers engage with various vendors offering unique products ranging from seasonal fruits to artisanal baked goods. This bustling environment is captured in the dataset, which revolves around the intricacies of sales transactions, vendor participation, customer preferences, product availability, and event schedules. Most entries represent lively market days filled with multiple vendors, while the occasional record highlights quieter weekdays or special events that feature distinctive offerings.\n\nThe dataset consists of several interconnected tables: events, vendors, products, transactions, and customers. Each event row details a specific market occurrence, including the date, location, and participating vendors. The vendors table outlines individual vendors, their product offerings, and stall locations. The products table lists various items for sale, from fruits to baked goods, with descriptions and pricing. Transactions capture the sales made during each event, linking customers to the vendors and products they purchased. Lastly, the customers table holds information about buyers, their preferences, and demographics, providing context for shopping behavior.\n\nBy exploring this data, developers can answer a variety of questions. What types of products are most popular among customers? How does vendor participation fluctuate across different events? What demographics are most likely to shop at the market? How do sales trends vary with seasons or special events? Practicing with this dataset offers a valuable opportunity to analyze real-world market dynamics and consumer behavior, all while working with synthetic data crafted to mimic genuine farmer's market operations.",
    "domain": "restaurants",
    "shape": "event-log",
    "useCases": [
      "analytics-demo",
      "etl-pipelines"
    ],
    "keywords": [
      "farmers market",
      "vendors",
      "transactions",
      "organic produce",
      "customers",
      "events",
      "sales"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "events": {
        "description": "This table records each market event, detailing when it occurs and which vendors participated. It serves as a reference for all activities on market days.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each event."
          },
          "date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "The date of the market event.",
            "trend": "seasonal"
          },
          "location": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "The location of the farmers market.",
            "nullable": true,
            "pool": [
              "park",
              "square",
              "street",
              "community",
              "lot",
              "farm",
              "plaza",
              "pavilion",
              "field",
              "garden",
              "market",
              "venue",
              "center",
              "location",
              "area",
              "district",
              "site",
              "corner",
              "block",
              "zone"
            ]
          },
          "vendor_count": {
            "kind": "int",
            "min": 1,
            "max": 50,
            "description": "Number of vendors present at the event.",
            "nullable": true
          },
          "customer_count": {
            "kind": "int",
            "min": 10,
            "max": 500,
            "description": "Estimated number of customers attending the event.",
            "nullable": true,
            "distribution": "normal"
          }
        }
      },
      "vendors": {
        "description": "This table lists all vendors participating in the farmers market, detailing their specialties and the products they offer.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each vendor."
          },
          "name": {
            "kind": "fullName",
            "description": "The name of the vendor or business."
          },
          "specialty": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "The primary product or service offered by the vendor.",
            "nullable": true,
            "pool": [
              "vegetables",
              "fruits",
              "baked",
              "dairy",
              "meat",
              "seafood",
              "herbs",
              "jams",
              "sauces",
              "honey",
              "flowers",
              "crafts",
              "snacks",
              "beverages",
              "condiments",
              "sweets",
              "cheese",
              "bread",
              "pasta",
              "jewelry",
              "art"
            ]
          },
          "event_id": {
            "kind": "fk",
            "ref": "events.id",
            "description": "The event this vendor is associated with."
          }
        }
      },
      "products": {
        "description": "This table details the products available for purchase at the farmers market, linking each product to its vendor.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each product."
          },
          "name": {
            "kind": "productName",
            "description": "Name of the product being sold."
          },
          "price": {
            "kind": "decimal",
            "min": 1,
            "max": 100,
            "scale": 2,
            "description": "Selling price of the product.",
            "nullable": true,
            "distribution": "long-tail"
          },
          "vendor_id": {
            "kind": "fk",
            "ref": "vendors.id",
            "description": "The vendor selling this product."
          }
        }
      },
      "transactions": {
        "description": "This table captures individual sales transactions, linking customers to the products they purchase and the corresponding vendors.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each transaction."
          },
          "event_id": {
            "kind": "fk",
            "ref": "events.id",
            "description": "The event during which the transaction took place."
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id",
            "description": "The customer making the purchase."
          },
          "product_id": {
            "kind": "fk",
            "ref": "products.id",
            "description": "The product being purchased."
          },
          "amount": {
            "kind": "decimal",
            "min": 1,
            "max": 1000,
            "scale": 2,
            "description": "Total sale amount for the transaction.",
            "distribution": "heavy-tail"
          },
          "transaction_time": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "The exact time the transaction occurred.",
            "dayProfile": "waking"
          }
        }
      },
      "customers": {
        "description": "This table provides demographic information about customers who attend the farmers market, linking them to their transactions.",
        "rows": 400,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each customer."
          },
          "age": {
            "kind": "int",
            "min": 18,
            "max": 90,
            "description": "Age of the customer.",
            "nullable": true,
            "distribution": "normal"
          },
          "city": {
            "kind": "city",
            "description": "City where the customer resides.",
            "nullable": true
          },
          "preferred_products": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "Types of products the customer prefers.",
            "nullable": true,
            "pool": [
              "organic",
              "local",
              "fresh",
              "seasonal",
              "glutenfree",
              "vegan",
              "artisan",
              "cooked",
              "raw",
              "gourmet",
              "handmade",
              "preserved",
              "smoked",
              "pickled",
              "canned",
              "frozen",
              "sustainable",
              "natural",
              "exotic",
              "traditional"
            ]
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "timestamped",
      "nullable"
    ],
    "analysisQuestions": [
      "What are the most popular products sold at the market?",
      "Which vendors attract the most customers?",
      "Are there specific days when sales peak more than others?",
      "What demographic trends can be observed among regular customers?",
      "How do vendor offerings impact customer purchases?"
    ],
    "suggestedQueries": [
      {
        "title": "List all vendors at a specific event",
        "sql": "SELECT v.name FROM vendors v JOIN events e ON v.event_id = e.id WHERE e.date = '2023-06-01';",
        "dialect": "postgres"
      },
      {
        "title": "Count products sold by each vendor",
        "sql": "SELECT v.name, COUNT(p.id) FROM vendors v JOIN products p ON v.id = p.vendor_id GROUP BY v.name;",
        "dialect": "postgres"
      },
      {
        "title": "Total sales amount by customer",
        "sql": "SELECT c.id, SUM(t.amount) FROM customers c JOIN transactions t ON c.id = t.customer_id GROUP BY c.id;",
        "dialect": "postgres"
      },
      {
        "title": "Average transaction amount per event",
        "sql": "SELECT e.date, AVG(t.amount) FROM transactions t JOIN events e ON t.event_id = e.id GROUP BY e.date;",
        "dialect": "postgres"
      },
      {
        "title": "Daily customer count trend",
        "sql": "SELECT e.date, SUM(e.customer_count) FROM events e GROUP BY e.date ORDER BY e.date;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Market Organizer Analysis",
        "body": "A market organizer can utilize this dataset to analyze sales trends and customer attendance patterns over time. By examining peak sales days and the performance of various vendors, they can make informed decisions about vendor selection and event marketing strategies, ultimately enhancing the market experience for both vendors and customers."
      },
      {
        "title": "Vendor Performance Evaluation",
        "body": "Vendors can leverage the insights from this dataset to evaluate their performance at the market. By analyzing their sales data and customer demographics, they can tailor their product offerings to better meet customer demands, improve customer engagement, and increase their overall sales during market events."
      },
      {
        "title": "Customer Preference Insights",
        "body": "Researchers or marketers interested in consumer behavior can analyze the customer data to identify preferences and buying habits. Understanding which products are popular among different demographics can help businesses design targeted marketing strategies, ultimately leading to increased customer satisfaction."
      },
      {
        "title": "Event Planning and Optimization",
        "body": "Local government or community planners can use this dataset to optimize future market events. By analyzing customer turnout and vendor participation, they can make data-driven decisions regarding the timing and marketing of events, ensuring that they attract the maximum number of participants and vendors."
      }
    ]
  },
  "counts": {
    "customers": 400,
    "events": 200,
    "vendors": 100,
    "products": 300,
    "transactions": 500
  },
  "stats": {
    "events": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "date": {
          "nulls": 0,
          "distinct": 166,
          "min": "2023-01-05",
          "max": "2024-12-31"
        },
        "location": {
          "nulls": 22,
          "distinct": 130
        },
        "vendor_count": {
          "nulls": 22,
          "distinct": 47,
          "min": 1,
          "max": 49
        },
        "customer_count": {
          "nulls": 22,
          "distinct": 129,
          "min": 60,
          "max": 444
        }
      }
    },
    "vendors": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "name": {
          "nulls": 0,
          "distinct": 97,
          "min": "Alice Evans",
          "max": "Zoe Rossi"
        },
        "specialty": {
          "nulls": 8,
          "distinct": 81
        },
        "event_id": {
          "nulls": 0,
          "distinct": 81,
          "min": 6,
          "max": 200
        }
      }
    },
    "products": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "name": {
          "nulls": 0,
          "distinct": 223,
          "min": "Classic Backpack",
          "max": "Wireless Toolkit"
        },
        "price": {
          "nulls": 35,
          "distinct": 257,
          "min": 1,
          "max": 98.75
        },
        "vendor_id": {
          "nulls": 0,
          "distinct": 96,
          "min": 1,
          "max": 100
        }
      }
    },
    "transactions": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "event_id": {
          "nulls": 0,
          "distinct": 185,
          "min": 1,
          "max": 200
        },
        "customer_id": {
          "nulls": 0,
          "distinct": 292,
          "min": 2,
          "max": 400
        },
        "product_id": {
          "nulls": 0,
          "distinct": 236,
          "min": 1,
          "max": 300
        },
        "amount": {
          "nulls": 0,
          "distinct": 481,
          "min": 1,
          "max": 996.52
        },
        "transaction_time": {
          "nulls": 0,
          "distinct": 500,
          "min": "2023-01-01 13:27:01",
          "max": "2024-12-31 23:34:38"
        }
      }
    },
    "customers": {
      "rows": 400,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 400,
          "min": 1,
          "max": 400
        },
        "age": {
          "nulls": 40,
          "distinct": 48,
          "min": 24,
          "max": 78
        },
        "city": {
          "nulls": 36,
          "distinct": 63,
          "min": "Amsterdam",
          "max": "Zurich"
        },
        "preferred_products": {
          "nulls": 40,
          "distinct": 240
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/customers.csv",
      "format": "csv",
      "table": "customers",
      "key": "datasets/local-farmer-s-market-and-organic-food-finder/v2/csv/customers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/local-farmer-s-market-and-organic-food-finder/v2/csv/customers.csv",
      "bytes": 11774,
      "sha256": "89a560e9a72ff12d211b945e57393d424faae44793a2d2f7941379bf79a372ec",
      "rows": 400,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/events.csv",
      "format": "csv",
      "table": "events",
      "key": "datasets/local-farmer-s-market-and-organic-food-finder/v2/csv/events.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/local-farmer-s-market-and-organic-food-finder/v2/csv/events.csv",
      "bytes": 6697,
      "sha256": "4d78d648803ba0df754e25ae4382a980b11453c7fc3c337c4f22d2f7225b818c",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/vendors.csv",
      "format": "csv",
      "table": "vendors",
      "key": "datasets/local-farmer-s-market-and-organic-food-finder/v2/csv/vendors.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/local-farmer-s-market-and-organic-food-finder/v2/csv/vendors.csv",
      "bytes": 3284,
      "sha256": "bf6f9cd601847f2058b478db0666544a314e53e803d6bde7cfbe4772d938a276",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/products.csv",
      "format": "csv",
      "table": "products",
      "key": "datasets/local-farmer-s-market-and-organic-food-finder/v2/csv/products.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/local-farmer-s-market-and-organic-food-finder/v2/csv/products.csv",
      "bytes": 8312,
      "sha256": "743dafe34131fefda0e42f8ffd984ab9d78ba289b9fe43b77a29aa007a9772db",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/transactions.csv",
      "format": "csv",
      "table": "transactions",
      "key": "datasets/local-farmer-s-market-and-organic-food-finder/v2/csv/transactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/local-farmer-s-market-and-organic-food-finder/v2/csv/transactions.csv",
      "bytes": 21094,
      "sha256": "5f159049958d7ebccd573b70916981c7d0cb95342baf8c022338c03874da9e38",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "local-farmer-s-market-and-organic-food-finder.json",
      "format": "json",
      "table": null,
      "key": "datasets/local-farmer-s-market-and-organic-food-finder/v2/local-farmer-s-market-and-organic-food-finder.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/local-farmer-s-market-and-organic-food-finder/v2/local-farmer-s-market-and-organic-food-finder.json",
      "bytes": 205334,
      "sha256": "7c6ebc5f9d6a1067a3574397e16272e55f60f3233d71bf09540c3c283ee1619f",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/local-farmer-s-market-and-organic-food-finder/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/local-farmer-s-market-and-organic-food-finder/v2/sql/postgres.sql",
      "bytes": 74000,
      "sha256": "de9ecdfb214e53964dfc4d8a391dfcd81c56cb3a6062b8ad18d472f8cd53968b",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/local-farmer-s-market-and-organic-food-finder/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/local-farmer-s-market-and-organic-food-finder/v2/sql/mysql.sql",
      "bytes": 73432,
      "sha256": "b806a14067e9c4b75dc30c63d9a4b753fa7ff6b649cdf8482e2da19857628be4",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/local-farmer-s-market-and-organic-food-finder/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/local-farmer-s-market-and-organic-food-finder/v2/sql/mssql.sql",
      "bytes": 75842,
      "sha256": "e59d39627117967d7c04bddeb2c692326396001b359ac4556d90a50fd6a85303",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/local-farmer-s-market-and-organic-food-finder/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/local-farmer-s-market-and-organic-food-finder/v2/sql/sqlite.sql",
      "bytes": 73212,
      "sha256": "01162ea0b94fcc3d0cf3ad9a9827dbef2ebab972a8a938ac3b1bc513bf69d4bf",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/local-farmer-s-market-and-organic-food-finder/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/local-farmer-s-market-and-organic-food-finder/v2/prisma/seed.ts",
      "bytes": 161851,
      "sha256": "6ff2c320c275dbe7514d7dc6cce5d204834d382651722eb3eeb6591980e1e3a4",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/local-farmer-s-market-and-organic-food-finder/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/local-farmer-s-market-and-organic-food-finder/v2/django/fixtures.json",
      "bytes": 269591,
      "sha256": "0c7a4e4437f54be41f220c462121f085c936596b42dd7116f903365fd29d7deb",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767539336,
  "updatedAt": 1788784734871
}
