{"prompt": "Show the top 10 products with the highest revenue", "sql": "SELECT \"Product\".\"Product Name\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Product\" JOIN \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\" GROUP BY \"Product\".\"Product Name\" ORDER BY \"Total Revenue\" DESC LIMIT 10;"} {"prompt": "Which month has highest sales from P042 product id", "sql": "SELECT strftime('%Y-%m', \"Sales\".\"Date\") AS \"Month\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Sales\" WHERE \"Sales\".\"Product ID\" = 'P042' GROUP BY strftime('%Y-%m', \"Sales\".\"Date\") ORDER BY \"Total Revenue\" DESC LIMIT 1;"} {"prompt": "Show sales", "sql": "SELECT * FROM \"Sales\" LIMIT 10;"} {"prompt": "Show product details", "sql": "SELECT * FROM \"Product\" LIMIT 10;"} {"prompt": "Which product id has highest revenue", "sql": "SELECT \"Sales\".\"Product ID\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Sales\" GROUP BY \"Sales\".\"Product ID\" ORDER BY \"Total Revenue\" DESC LIMIT 1;"} {"prompt": "Show me which product has highest revenue", "sql": "SELECT \"Product\".\"Product Name\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Product\" JOIN \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\" GROUP BY \"Product\".\"Product Name\" ORDER BY \"Total Revenue\" DESC LIMIT 1;"} {"prompt": "Show me the product details", "sql": "SELECT * FROM \"Product\" LIMIT 10;"} {"prompt": "Sales details", "sql": "SELECT * FROM \"Sales\" LIMIT 10;"} {"prompt": "Show sales", "sql": "SELECT * FROM \"Sales\" LIMIT 10;"} {"prompt": "Which month has highest sales from P042 product id", "sql": "SELECT strftime('%Y-%m', \"Sales\".\"Date\") AS \"Month\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Sales\" WHERE \"Sales\".\"Product ID\" = 'P042' GROUP BY strftime('%Y-%m', \"Sales\".\"Date\") ORDER BY \"Total Revenue\" DESC LIMIT 1;"} {"prompt": "And from which locations", "sql": "WITH TopMonth AS (SELECT strftime('%Y-%m', \"Sales\".\"Date\") AS \"Month\" FROM \"Sales\" WHERE \"Sales\".\"Product ID\" = 'P042' GROUP BY strftime('%Y-%m', \"Sales\".\"Date\") ORDER BY SUM(\"Sales\".\"Revenue (USD)\") DESC LIMIT 1) SELECT \"Location\".\"Place\", \"Location\".\"Country\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Sales\" JOIN \"Location\" ON \"Sales\".\"Sale ID\" = \"Location\".\"Sale ID\" WHERE \"Sales\".\"Product ID\" = 'P042' AND strftime('%Y-%m', \"Sales\".\"Date\") = (SELECT \"Month\" FROM TopMonth) GROUP BY \"Location\".\"Place\", \"Location\".\"Country\" ORDER BY \"Total Revenue\" DESC;"} {"prompt": "Show total revenue for the current year", "sql": "SELECT SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Sales\" WHERE strftime('%Y', \"Sales\".\"Date\") = strftime('%Y', 'now');"} {"prompt": "Show revenue by month for the last 12 months", "sql": "SELECT strftime('%Y-%m', \"Sales\".\"Date\") AS \"Month\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Sales\" WHERE \"Sales\".\"Date\" >= date('now', '-12 months') GROUP BY strftime('%Y-%m', \"Sales\".\"Date\") ORDER BY \"Month\" DESC;"} {"prompt": "Show revenue by payment method", "sql": "SELECT \"Sales\".\"Payment Method\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Sales\" GROUP BY \"Sales\".\"Payment Method\" ORDER BY \"Total Revenue\" DESC;"} {"prompt": "Show average order value", "sql": "SELECT AVG(\"Sales\".\"Revenue (USD)\") AS \"Average Order Value\" FROM \"Sales\";"} {"prompt": "Show total number of sales", "sql": "SELECT COUNT(*) AS \"Total Sales\" FROM \"Sales\";"} {"prompt": "Show revenue by country", "sql": "SELECT \"Location\".\"Country\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Sales\" JOIN \"Location\" ON \"Sales\".\"Sale ID\" = \"Location\".\"Sale ID\" GROUP BY \"Location\".\"Country\" ORDER BY \"Total Revenue\" DESC;"} {"prompt": "Show sales trend for the last 6 months", "sql": "SELECT strftime('%Y-%m', \"Sales\".\"Date\") AS \"Month\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Sales\" WHERE \"Sales\".\"Date\" >= date('now', '-6 months') GROUP BY strftime('%Y-%m', \"Sales\".\"Date\") ORDER BY \"Month\";"} {"prompt": "Show revenue for product P042 by month", "sql": "SELECT strftime('%Y-%m', \"Sales\".\"Date\") AS \"Month\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Sales\" WHERE \"Sales\".\"Product ID\" = 'P042' GROUP BY strftime('%Y-%m', \"Sales\".\"Date\") ORDER BY \"Month\";"} {"prompt": "Show top 5 locations by revenue", "sql": "SELECT \"Location\".\"Place\", \"Location\".\"Country\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Sales\" JOIN \"Location\" ON \"Sales\".\"Sale ID\" = \"Location\".\"Sale ID\" GROUP BY \"Location\".\"Place\", \"Location\".\"Country\" ORDER BY \"Total Revenue\" DESC LIMIT 5;"} {"prompt": "Show sales for the last quarter", "sql": "SELECT * FROM \"Sales\" WHERE strftime('%Y-%m', \"Sales\".\"Date\") >= strftime('%Y-%m', 'now', '-3 months') ORDER BY \"Sales\".\"Date\" DESC;"} {"prompt": "Show revenue by product category", "sql": "SELECT \"Product\".\"Category\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Product\" JOIN \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\" GROUP BY \"Product\".\"Category\" ORDER BY \"Total Revenue\" DESC;"} {"prompt": "Show number of sales by payment method", "sql": "SELECT \"Sales\".\"Payment Method\", COUNT(*) AS \"Number of Sales\" FROM \"Sales\" GROUP BY \"Sales\".\"Payment Method\" ORDER BY \"Number of Sales\" DESC;"} {"prompt": "Show sales for product P042 in 2024", "sql": "SELECT * FROM \"Sales\" WHERE \"Sales\".\"Product ID\" = 'P042' AND strftime('%Y', \"Sales\".\"Date\") = '2024';"} {"prompt": "Show revenue for each product in 2024", "sql": "SELECT \"Product\".\"Product Name\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Product\" JOIN \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\" WHERE strftime('%Y', \"Sales\".\"Date\") = '2024' GROUP BY \"Product\".\"Product Name\" ORDER BY \"Total Revenue\" DESC;"} {"prompt": "Show total revenue for each month in 2024", "sql": "SELECT strftime('%Y-%m', \"Sales\".\"Date\") AS \"Month\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Sales\" WHERE strftime('%Y', \"Sales\".\"Date\") = '2024' GROUP BY strftime('%Y-%m', \"Sales\".\"Date\") ORDER BY \"Month\";"} {"prompt": "Show revenue for each payment method in 2024", "sql": "SELECT \"Sales\".\"Payment Method\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Sales\" WHERE strftime('%Y', \"Sales\".\"Date\") = '2024' GROUP BY \"Sales\".\"Payment Method\" ORDER BY \"Total Revenue\" DESC;"} {"prompt": "Show number of sales for each product", "sql": "SELECT \"Product\".\"Product Name\", COUNT(\"Sales\".\"Sale ID\") AS \"Number of Sales\" FROM \"Product\" JOIN \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\" GROUP BY \"Product\".\"Product Name\" ORDER BY \"Number of Sales\" DESC;"} {"prompt": "Show revenue for each country in 2024", "sql": "SELECT \"Location\".\"Country\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Sales\" JOIN \"Location\" ON \"Sales\".\"Sale ID\" = \"Location\".\"Sale ID\" WHERE strftime('%Y', \"Sales\".\"Date\") = '2024' GROUP BY \"Location\".\"Country\" ORDER BY \"Total Revenue\" DESC;"} {"prompt": "Show sales for the last 7 days", "sql": "SELECT * FROM \"Sales\" WHERE \"Sales\".\"Date\" >= date('now', '-7 days') ORDER BY \"Sales\".\"Date\" DESC;"} {"prompt": "Show revenue for each product category in 2024", "sql": "SELECT \"Product\".\"Category\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Product\" JOIN \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\" WHERE strftime('%Y', \"Sales\".\"Date\") = '2024' GROUP BY \"Product\".\"Category\" ORDER BY \"Total Revenue\" DESC;"} {"prompt": "show me table details", "sql": "SELECT name FROM sqlite_master WHERE type='table';"} {"prompt": "show me schema details", "sql": "SELECT name, sql FROM sqlite_master WHERE type='table';"} {"prompt": "Calculate the total revenue loss due to discounts in 2024.", "sql": "SELECT SUM(\"Sales\".\"Revenue (USD)\" * (\"Sales\".\"Discount (%)\"/100)) AS \"Total Revenue Loss\" FROM \"Sales\" WHERE strftime('%Y', \"Sales\".\"Date\") = '2024';"} {"prompt": "Show all products with their categories and brands.", "sql": "SELECT \"Product Name\", \"Category\", \"Brand\" FROM \"Product\";"} {"prompt": "List all sales with product name, revenue, and payment method.", "sql": "SELECT \"Sales\".\"Sale ID\", \"Product\".\"Product Name\", \"Sales\".\"Revenue (USD)\", \"Sales\".\"Payment Method\" FROM \"Sales\" JOIN \"Product\" ON \"Sales\".\"Product ID\" = \"Product\".\"Product ID\";"} {"prompt": "Show total revenue by store type.", "sql": "SELECT \"Location\".\"Store Type\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Sales\" JOIN \"Location\" ON \"Sales\".\"Sale ID\" = \"Location\".\"Sale ID\" GROUP BY \"Location\".\"Store Type\" ORDER BY \"Total Revenue\" DESC;"} {"prompt": "Which product has the highest stock quantity?", "sql": "SELECT \"Product Name\", \"Stock Quantity\" FROM \"Product\" ORDER BY \"Stock Quantity\" DESC LIMIT 1;"} {"prompt": "Show average discount given per payment method.", "sql": "SELECT \"Payment Method\", AVG(\"Discount (%)\") AS \"Average Discount\" FROM \"Sales\" GROUP BY \"Payment Method\";"} {"prompt": "List all locations in Macedonia.", "sql": "SELECT \"Place\", \"Country\" FROM \"Location\" WHERE \"Country\" = 'Macedonia';"} {"prompt": "Show total sales volume by product category.", "sql": "SELECT \"Product\".\"Category\", SUM(\"Sales\".\"Volume Sold\") AS \"Total Volume\" FROM \"Sales\" JOIN \"Product\" ON \"Sales\".\"Product ID\" = \"Product\".\"Product ID\" GROUP BY \"Product\".\"Category\" ORDER BY \"Total Volume\" DESC;"} {"prompt": "What is the total revenue for each month in 2024?", "sql": "SELECT strftime('%Y-%m', \"Date\") AS \"Month\", SUM(\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Sales\" WHERE strftime('%Y', \"Date\") = '2024' GROUP BY strftime('%Y-%m', \"Date\") ORDER BY \"Month\";"} {"prompt": "List all products with price above $1500.", "sql": "SELECT \"Product Name\", \"Price (USD)\" FROM \"Product\" WHERE \"Price (USD)\" > 1500;"} {"prompt": "Show the number of sales for each payment method.", "sql": "SELECT \"Payment Method\", COUNT(*) AS \"Number of Sales\" FROM \"Sales\" GROUP BY \"Payment Method\" ORDER BY \"Number of Sales\" DESC;"} {"prompt": "Show all store types available.", "sql": "SELECT DISTINCT \"Store Type\" FROM \"Location\";"} {"prompt": "List all sales made in 2024", "sql": "SELECT * FROM \"Sales\" WHERE strftime('%Y', \"Date\") = '2024';"} {"prompt": "Show the top 5 products by revenue in 2024.", "sql": "SELECT \"Product\".\"Product Name\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Product\" JOIN \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\" WHERE strftime('%Y', \"Sales\".\"Date\") = '2024' GROUP BY \"Product\".\"Product Name\" ORDER BY \"Total Revenue\" DESC LIMIT 5;"} {"prompt": "Show the total number of products in each category.", "sql": "SELECT \"Category\", COUNT(*) AS \"Number of Products\" FROM \"Product\" GROUP BY \"Category\";"} {"prompt": "Show the average price of products by brand.", "sql": "SELECT \"Brand\", AVG(\"Price (USD)\") AS \"Average Price\" FROM \"Product\" GROUP BY \"Brand\";"} {"prompt": "List all sales with a discount greater than 20%.", "sql": "SELECT * FROM \"Sales\" WHERE \"Discount (%)\" > 20;"} {"prompt": "Show the total revenue for each store type in 2024.", "sql": "SELECT \"Location\".\"Store Type\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Sales\" JOIN \"Location\" ON \"Sales\".\"Sale ID\" = \"Location\".\"Sale ID\" WHERE strftime('%Y', \"Sales\".\"Date\") = '2024' GROUP BY \"Location\".\"Store Type\";"} {"prompt": "Show the product with the lowest price.", "sql": "SELECT \"Product Name\", \"Price (USD)\" FROM \"Product\" ORDER BY \"Price (USD)\" ASC LIMIT 1;"} {"prompt": "Show the number of sales for each product in 2024.", "sql": "SELECT \"Product\".\"Product Name\", COUNT(\"Sales\".\"Sale ID\") AS \"Number of Sales\" FROM \"Product\" JOIN \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\" WHERE strftime('%Y', \"Sales\".\"Date\") = '2024' GROUP BY \"Product\".\"Product Name\" ORDER BY \"Number of Sales\" DESC;"} {"prompt": "Show the total stock quantity for each brand.", "sql": "SELECT \"Brand\", SUM(\"Stock Quantity\") AS \"Total Stock\" FROM \"Product\" GROUP BY \"Brand\";"} {"prompt": "Show the top 10 products with the highest revenue - rewritten", "sql": "SELECT \"Sales\".* FROM \"Sales\" WHERE \"Product ID\" IN ( SELECT \"Product\".\"Product ID\" FROM \"Product\" JOIN \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\" GROUP BY \"Product\".\"Product ID\" ORDER BY SUM(\"Sales\".\"Revenue (USD)\") DESC LIMIT 10 );"} {"prompt": "show me revenue wise sales data", "sql": "SELECT \"Sales\".\"Sale ID\", \"Product\".\"Product Name\", \"Sales\".\"Revenue (USD)\", \"Sales\".\"Date\", \"Sales\".\"Payment Method\", \"Location\".\"Place\", \"Location\".\"Country\" FROM \"Sales\" JOIN \"Product\" ON \"Sales\".\"Product ID\" = \"Product\".\"Product ID\" JOIN \"Location\" ON \"Sales\".\"Sale ID\" = \"Location\".\"Sale ID\" ORDER BY \"Sales\".\"Revenue (USD)\" DESC;"} {"prompt": "show me revenue details", "sql": "SELECT SUM(\"Revenue (USD)\") AS \"Total Revenue\", AVG(\"Revenue (USD)\") AS \"Average Revenue\", MIN(\"Revenue (USD)\") AS \"Minimum Revenue\", MAX(\"Revenue (USD)\") AS \"Maximum Revenue\" FROM \"Sales\";"} {"prompt": "show me product wise revenue details", "sql": "SELECT \"Product\".\"Product Name\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\", AVG(\"Sales\".\"Revenue (USD)\") AS \"Average Revenue\", MIN(\"Sales\".\"Revenue (USD)\") AS \"Minimum Revenue\", MAX(\"Sales\".\"Revenue (USD)\") AS \"Maximum Revenue\" FROM \"Product\" JOIN \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\" GROUP BY \"Product\".\"Product Name\" ORDER BY \"Total Revenue\" DESC;"} {"prompt": "which country has highest sales", "sql": "SELECT \"Location\".\"Country\", SUM(\"Sales\".\"Revenue (USD)\") AS TotalRevenue FROM \"Sales\" JOIN \"Location\" ON \"Sales\".\"Sale ID\" = \"Location\".\"Sale ID\" GROUP BY \"Location\".\"Country\" ORDER BY TotalRevenue DESC LIMIT 1;"} {"prompt": "show me sales location wise", "sql": "SELECT \"Location\", SUM(\"Revenue (USD)\") AS \"Total Revenue\" FROM \"Sales\" GROUP BY \"Location\" ORDER BY \"Total Revenue\" DESC;"} {"prompt": "which top 5 products generates highest revenues", "sql": "SELECT \"Product\".\"Product Name\", SUM(\"Sales\".\"Revenue (USD)\") AS TotalRevenue\nFROM \"Sales\"\nJOIN \"Product\" ON \"Sales\".\"Product ID\" = \"Product\".\"Product ID\"\nWHERE strftime('%Y', \"Sales\".\"Date\") = strftime('%Y', '2024')\nGROUP BY \"Product\".\"Product Name\"\nORDER BY TotalRevenue DESC\nLIMIT 5;"} {"prompt": "top 5 revenues for product", "sql": "SELECT \"Product\".\"Product Name\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\"\nFROM \"Sales\"\nJOIN \"Product\" ON \"Sales\".\"Product ID\" = \"Product\".\"Product ID\"\nWHERE strftime('%Y', \"Sales\".\"Date\") = strftime('%Y', '2024')\nGROUP BY \"Product\".\"Product Name\"\nORDER BY \"Total Revenue\" DESC\nLIMIT 5;"} {"prompt": "Show the top 5 products by total revenue, using the \"Product Name\" from the \"Product\" table and summing \"Revenue (USD)\" from the \"Sales\" table. Join \"Product\" and \"Sales\" on \"Product ID\". Order by total revenue descending and limit to 5 results.", "sql": "SELECT \"Product\".\"Product Name\", SUM(\"Sales\".\"Revenue (USD)\") AS TotalRevenue\nFROM \"Product\"\nJOIN \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\"\nGROUP BY \"Product\".\"Product Name\"\nORDER BY TotalRevenue DESC\nLIMIT 5;"} {"prompt": "give me revenue for the product P064", "sql": "SELECT \"Sales\".\"Revenue (USD)\" \nFROM \"Sales\" \nWHERE \"Product ID\" = 'P064';"} {"prompt": "add locations and other details", "sql": "SELECT \"Location\".\"Location ID\", \"Location\".\"Place\", \"Location\".\"Country\", \"Product\".\"Product Name\", \"Product\".\"Price (USD)\"\nFROM \"Location\"\nJOIN \"Sales\" ON \"Location\".\"Sale ID\" = \"Sales\".\"Sale ID\"\nJOIN \"Product\" ON \"Sales\".\"Product ID\" = \"Product\".\"Product ID\""} {"prompt": "for the product P064", "sql": "SELECT *\nFROM \"Product\"\nWHERE \"Product ID\" = 'P064';"} {"prompt": "Show the product name, category, and brand for each sale.", "sql": "SELECT \"Product\".\"Product Name\", \"Product\".\"Category\", \"Product\".\"Brand\"\nFROM \"Sales\"\nJOIN \"Product\" ON \"Sales\".\"Product ID\" = \"Product\".\"Product ID\""} {"prompt": "can u do a analysis as sales for product name \"Product 087\" going down", "sql": "SELECT \n \"Sales\".\"Sale ID\", \n \"Product\".\"Product Name\", \n \"Sales\".\"Revenue (USD)\", \n \"Sales\".\"Volume Sold\", \n \"Sales\".\"Discount (%)\", \n \"Sales\".\"Payment Method\", \n \"Sales\".\"Date\"\nFROM \n \"Sales\"\nINNER JOIN \n \"Product\" ON \"Sales\".\"Product ID\" = \"Product\".\"Product ID\"\nWHERE \n \"Product\".\"Product Name\" = 'Product 087'"} {"prompt": "give me sales detaiks", "sql": "SELECT \n \"Sales\".\"Sale ID\", \n \"Product\".\"Product Name\", \n \"Sales\".\"Revenue (USD)\", \n \"Sales\".\"Volume Sold\", \n \"Sales\".\"Discount (%)\", \n \"Sales\".\"Payment Method\", \n \"Sales\".\"Date\"\nFROM \n \"Sales\"\nINNER JOIN \n \"Product\" ON \"Sales\".\"Product ID\" = \"Product\".\"Product ID\""} {"prompt": " List all sales with the product name, sale ID, place, and country.", "sql": "SELECT \"Location\".\"Place\", \"Location\".\"Country\", \"Product\".\"Product Name\", \"Sales\".\"Sale ID\"\nFROM \"Location\"\nJOIN \"Sales\" ON \"Location\".\"Sale ID\" = \"Sales\".\"Sale ID\"\nJOIN \"Product\" ON \"Sales\".\"Product ID\" = \"Product\".\"Product ID\""} {"prompt": "give me product names came in the DF chat_agent_ouput", "sql": "SELECT \"Product Name\""} {"prompt": "approxmimate mental illeness", "sql": "SELECT \"Location\".\"Place\", \"Product\".\"Product Name\", \"Sales\".\"Revenue (USD)\"\nFROM \"Location\"\nJOIN \"Sales\" ON \"Location\".\"Sale ID\" = \"Sales\".\"Sale ID\"\nJOIN \"Product\" ON \"Sales\".\"Product ID\" = \"Product\".\"Product ID\"\nWHERE \"Location\".\"Country\" = 'Macedonia' AND \"Product\".\"Category\" = 'Office Supplies';"} {"prompt": "revenue for top 10 products..", "sql": "SELECT \"Product\".\"Product Name\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Revenue\"\nFROM \"Product\"\nJOIN \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\"\nGROUP BY \"Product\".\"Product Name\"\nORDER BY \"Revenue\" DESC\nLIMIT 10;"} {"prompt": " Show the top 5 products with the highest number of sales in each country.", "sql": "SELECT \"Product\".\"Product Name\", COUNT(\"Sales\".\"Sale ID\") AS \"Number of Sales\"\nFROM \"Product\"\nJOIN \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\"\nJOIN \"Location\" ON \"Sales\".\"Sale ID\" = \"Location\".\"Sale ID\"\nGROUP BY \"Product\".\"Product Name\", \"Location\".\"Country\"\nORDER BY \"Number of Sales\" DESC\nLIMIT 5;"} {"prompt": "details on Oconnorside", "sql": "SELECT \"Location\".\"Location ID\", \"Location\".\"Place\", \"Location\".\"Country\", \"Location\".\"Sale ID\", \"Location\".\"Store Type\"\nFROM \"Location\"\nWHERE \"Location\".\"Place\" = 'Oconnorside';"} {"prompt": "Which product had the highest total revenue this quarter?", "sql": "SELECT \"Product Name\"\nFROM \"Product\"\nWHERE \"Product ID\" IN (\n SELECT \"Product ID\"\n FROM \"Sales\"\n WHERE \"Date\" LIKE '2024-%'\n GROUP BY \"Product ID\"\n ORDER BY SUM(\"Revenue (USD)\") DESC\n LIMIT 1\n)"} {"prompt": "give me revenue for sale id S0181", "sql": "SELECT \"Sales\".\"Revenue (USD)\"\nFROM \"Sales\"\nWHERE \"Sale ID\" = 'S0181';"} {"prompt": "along with that give me revenue of that sales id", "sql": "SELECT \"Sales\".\"Sale ID\", SUM(\"Sales\".\"Revenue (USD)\") AS Revenue\nFROM \"Sales\"\nWHERE \"Sales\".\"Sale ID\" IN (SELECT \"Location\".\"Sale ID\" FROM \"Location\")\nGROUP BY \"Sales\".\"Sale ID\";"} {"prompt": "GIVE ME SALES INFORMATION", "sql": "SELECT \n \"Sales\".\"Sale ID\", \n \"Product\".\"Product Name\", \n \"Sales\".\"Revenue (USD)\", \n \"Sales\".\"Volume Sold\", \n \"Sales\".\"Discount (%)\", \n \"Sales\".\"Payment Method\", \n \"Sales\".\"Date\"\nFROM \n \"Sales\"\nINNER JOIN \n \"Product\" ON \"Sales\".\"Product ID\" = \"Product\".\"Product ID\""} {"prompt": "Show the total number of sales for each country.", "sql": "SELECT \"Location\".\"Country\", COUNT(\"Sales\".\"Sale ID\") AS \"Total Sales\"\nFROM \"Location\"\nJOIN \"Sales\" ON \"Location\".\"Sale ID\" = \"Sales\".\"Sale ID\"\nGROUP BY \"Location\".\"Country\""} {"prompt": "show me sales and Revenue details", "sql": "SELECT \"Sales\".\"Sale ID\", \"Product\".\"Product Name\", \"Sales\".\"Revenue (USD)\"\nFROM \"Sales\"\nJOIN \"Product\" ON \"Sales\".\"Product ID\" = \"Product\".\"Product ID\""} {"prompt": "from above dataset give me location for sales id S0006", "sql": "SELECT \"Location\".\"Place\"\nFROM \"Location\"\nWHERE \"Location\".\"Sale ID\" = 'S0006';"} {"prompt": "from above dataset can you give details on 2nd product.", "sql": "SELECT \"Product\".\"Product ID\", \"Product\".\"Product Name\", \"Product\".\"Category\", \"Product\".\"Brand\", \"Product\".\"Price (USD)\", \"Product\".\"Stock Quantity\"\nFROM \"Product\"\nWHERE \"Product ID\" = 'P002';"} {"prompt": "show me sales data..", "sql": "SELECT \"Sales\".\"Sale ID\", \"Product\".\"Product Name\", \"Sales\".\"Revenue (USD)\", \"Sales\".\"Volume Sold\", \"Sales\".\"Discount (%)\", \"Sales\".\"Payment Method\", \"Sales\".\"Date\"\nFROM \"Sales\"\nJOIN \"Product\" ON \"Sales\".\"Product ID\" = \"Product\".\"Product ID\""} {"prompt": "give me total price of wearables", "sql": "SELECT SUM(\"Product\".\"Price (USD)\") \nFROM \"Product\" \nWHERE \"Category\" = 'Accessories';"} {"prompt": "top 5 revenue", "sql": "SELECT \"Sales\".\"Sale ID\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\"\nFROM \"Sales\"\nGROUP BY \"Sales\".\"Sale ID\"\nORDER BY \"Total Revenue\" DESC\nLIMIT 5;"} {"prompt": "from above df show me details of top two sales id", "sql": "SELECT \"Sales\".\"Sale ID\", *\nFROM \"Sales\"\nORDER BY \"Revenue (USD)\" DESC\nLIMIT 2;"} {"prompt": "top 5 product with highest revenue", "sql": "SELECT \"Product\".\"Product ID\", \"Product\".\"Product Name\", SUM(\"Sales\".\"Revenue (USD)\") AS TotalRevenue\nFROM \"Product\"\nJOIN \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\"\nGROUP BY \"Product\".\"Product ID\", \"Product\".\"Product Name\"\nORDER BY TotalRevenue DESC\nLIMIT 5;"} {"prompt": "give me revenue of top 5 product", "sql": "SELECT \"Product\".\"Product Name\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Revenue\"\nFROM \"Product\"\nJOIN \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\"\nGROUP BY \"Product\".\"Product Name\"\nORDER BY \"Revenue\" DESC\nLIMIT 5;"} {"prompt": "SELECT \"Product\".\"Product Name\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Revenue\"\nFROM \"Product\"\nJOIN \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\"\nGROUP BY \"Product\".\"Product Name\"\nORDER BY \"Revenue\" DESC\nLIMIT 5;", "sql": "SELECT \"Product\".\"Product Name\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Revenue\"\nFROM \"Product\"\nJOIN \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\"\nGROUP BY \"Product\".\"Product Name\"\nORDER BY \"Revenue\" DESC\nLIMIT 5;"} {"prompt": "give me sales and prodduct details", "sql": "SELECT \"Location\".\"Place\", \"Product\".\"Product Name\", \"Sales\".\"Revenue (USD)\", \"Sales\".\"Volume Sold\"\nFROM \"Location\"\nJOIN \"Sales\" ON \"Location\".\"Sale ID\" = \"Sales\".\"Sale ID\"\nJOIN \"Product\" ON \"Sales\".\"Product ID\" = \"Product\".\"Product ID\""} {"prompt": "top 10 product which has higest revenue", "sql": "SELECT \"Product\".\"Product ID\", \"Product\".\"Product Name\", SUM(\"Sales\".\"Revenue (USD)\") AS TotalRevenue\nFROM \"Product\"\nJOIN \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\"\nGROUP BY \"Product\".\"Product ID\", \"Product\".\"Product Name\"\nORDER BY TotalRevenue DESC\nLIMIT 10;"} {"prompt": "show promotional details in pie chart", "sql": "SELECT \n \"Location\".\"Place\", \n \"Product\".\"Product Name\", \n SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\"\nFROM \n \"Location\"\nJOIN \n \"Product\" ON \"Location\".\"Sale ID\" = \"Product\".\"Product ID\"\nJOIN \n \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\"\nWHERE \n \"Location\".\"Store Type\" = 'Franchise'\nGROUP BY \n \"Location\".\"Place\", \n \"Product\".\"Product Name\"\nORDER BY \n \"Total Revenue\" DESC;"} {"prompt": "get details for pdf and sales and do an analysis of that..", "sql": "SELECT \n \"Location\".\"Place\", \n \"Product\".\"Product Name\", \n \"Sales\".\"Revenue (USD)\", \n \"Sales\".\"Volume Sold\", \n \"Sales\".\"Discount (%)\"\nFROM \n \"Location\"\nINNER JOIN \n \"Sales\" ON \"Location\".\"Sale ID\" = \"Sales\".\"Sale ID\"\nINNER JOIN \n \"Product\" ON \"Sales\".\"Product ID\" = \"Product\".\"Product ID\"\nWHERE \n \"Location\".\"Store Type\" = 'Franchise'\nORDER BY \n \"Sales\".\"Revenue (USD)\" DESC;"} {"prompt": "top sales", "sql": "SELECT \"Sales\".\"Sale ID\", \"Product\".\"Product Name\", \"Product\".\"Price (USD)\", \"Sales\".\"Revenue (USD)\"\nFROM \"Sales\"\nJOIN \"Product\" ON \"Sales\".\"Product ID\" = \"Product\".\"Product ID\"\nORDER BY \"Sales\".\"Revenue (USD)\" DESC\nLIMIT 5;"} {"prompt": "show me top 5 product which give highest sales..", "sql": "SELECT \"Product\".\"Product Name\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\"\nFROM \"Product\"\nJOIN \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\"\nJOIN \"Location\" ON \"Sales\".\"Sale ID\" = \"Location\".\"Sale ID\"\nGROUP BY \"Product\".\"Product Name\"\nORDER BY \"Total Revenue\" DESC\nLIMIT 5;"} {"prompt": "show me location wise sales", "sql": "SELECT \"Location\".\"Place\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\"\nFROM \"Location\"\nJOIN \"Sales\" ON \"Location\".\"Location ID\" = \"Sales\".\"Sale ID\"\nJOIN \"Product\" ON \"Sales\".\"Product ID\" = \"Product\".\"Product ID\"\nGROUP BY \"Location\".\"Place\"\nORDER BY \"Total Revenue\" DESC;"} {"prompt": "show me revenue location wise", "sql": "SELECT \"Location\".\"Place\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Revenue\"\nFROM \"Location\"\nJOIN \"Sales\" ON \"Location\".\"Location ID\" = \"Sales\".\"Sale ID\"\nJOIN \"Product\" ON \"Sales\".\"Product ID\" = \"Product\".\"Product ID\"\nGROUP BY \"Location\".\"Place\"\nORDER BY \"Revenue\" DESC;"} {"prompt": "give me location wise sales..", "sql": "SELECT \"Location\".\"Location ID\", \"Location\".\"Place\", \"Location\".\"Country\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\"\nFROM \"Location\"\nJOIN \"Sales\" ON \"Location\".\"Location ID\" = \"Sales\".\"Sale ID\"\nJOIN \"Product\" ON \"Sales\".\"Product ID\" = \"Product\".\"Product ID\"\nGROUP BY \"Location\".\"Location ID\", \"Location\".\"Place\", \"Location\".\"Country\"\nORDER BY \"Total Revenue\" DESC;"} {"prompt": "no i want sales for each location", "sql": "SELECT \"Location\".\"Location ID\", \"Location\".\"Place\", \"Location\".\"Country\", \n SUM(\"Sales\".\"Revenue (USD)\") AS TotalRevenue\nFROM \"Location\"\nJOIN \"Sales\" ON \"Location\".\"Sale ID\" = \"Sales\".\"Sale ID\"\nGROUP BY \"Location\".\"Location ID\", \"Location\".\"Place\", \"Location\".\"Country\""} {"prompt": "\"Show total sales revenue grouped by location, ordered by revenue descending.\"", "sql": "SELECT \"Location\".\"Location ID\", SUM(\"Sales\".\"Revenue (USD)\") AS TotalRevenue\nFROM \"Location\"\nJOIN \"Sales\" ON \"Location\".\"Sale ID\" = \"Sales\".\"Sale ID\"\nGROUP BY \"Location\".\"Location ID\"\nORDER BY TotalRevenue DESC;"} {"prompt": "SHOW REVENUE", "sql": "SELECT SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\"\nFROM \"Sales\";"} {"prompt": "TOP 10 SELLING PRODUCT", "sql": "SELECT \"Product\".\"Product Name\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\"\nFROM \"Product\"\nJOIN \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\"\nWHERE \"Sales\".\"Date\" >= strftime('%Y', 'now', '-1 year') AND \"Sales\".\"Date\" <= strftime('%Y', 'now')\nGROUP BY \"Product\".\"Product Name\"\nORDER BY \"Total Revenue\" DESC\nLIMIT 10;"} {"prompt": "NO SHOW ME 6TH MONTH DATA", "sql": "SELECT *\nFROM \"Sales\"\nWHERE strftime('%Y', \"Date\") = strftime('%Y', 'now', '-6 months');"} {"prompt": "LOCATION INFORMATION ", "sql": "SELECT \"Location ID\", \"Place\", \"Country\", \"Store Type\"\nFROM \"Location\""} {"prompt": "give me product names", "sql": "SELECT \"Product Name\""} {"prompt": "ok for last 6 months", "sql": "SELECT *\nFROM \"Sales\"\nWHERE strftime('%Y', \"Date\") = strftime('%Y', 'now', '-0.5 year')"} {"prompt": "tune my prompt sql SELECT *\nFROM \"Sales\"\nWHERE strftime('%Y', \"Date\") = strftime('%Y', 'now', '-0.5 year')", "sql": "SELECT *\nFROM \"Sales\"\nWHERE strftime('%Y', \"Date\") = strftime('%Y', 'now', '-0.5 year')"} {"prompt": "show me revenue for each product..", "sql": "SELECT \"Product\".\"Product Name\", SUM(\"Sales\".\"Revenue (USD)\") AS \"Revenue\"\nFROM \"Product\"\nJOIN \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\"\nGROUP BY \"Product\".\"Product Name\""} {"prompt": "give me 6 month data..", "sql": "SELECT *\nFROM \"Sales\"\nWHERE strftime('%Y', \"Date\") = strftime('%Y', 'now', '-6 months');"} {"prompt": "give me revenue and sales informations..", "sql": "SELECT \n \"Sales\".\"Revenue (USD)\" AS \"Revenue\", \n \"Product\".\"Product Name\" AS \"Product\", \n \"Location\".\"Place\" AS \"Location\", \n \"Product\".\"Category\" AS \"Category\", \n \"Product\".\"Brand\" AS \"Brand\", \n \"Sales\".\"Volume Sold\" AS \"Volume Sold\", \n \"Sales\".\"Discount (%)\" AS \"Discount\", \n \"Sales\".\"Payment Method\" AS \"Payment Method\", \n \"Sales\".\"Date\" AS \"Date\"\nFROM \n \"Sales\"\nINNER JOIN \n \"Product\" ON \"Sales\".\"Product ID\" = \"Product\".\"Product ID\"\nINNER JOIN \n \"Location\" ON \"Sales\".\"Sale ID\" = \"Location\".\"Sale ID\"\nORDER BY \n \"Revenue\" DESC;"} {"prompt": "give me details breakdown of top 2 product from above DF.", "sql": "SELECT \n \"Product\".\"Product Name\", \n SUM(\"Sales\".\"Revenue (USD)\") AS \"Total Revenue\", \n COUNT(\"Sales\".\"Sale ID\") AS \"Total Sales\"\nFROM \n \"Product\"\nINNER JOIN \n \"Sales\" ON \"Product\".\"Product ID\" = \"Sales\".\"Product ID\"\nGROUP BY \n \"Product\".\"Product Name\"\nORDER BY \n \"Total Revenue\" DESC\nLIMIT 2;"} {"prompt": "give me prompt to get revenue details", "sql": "SELECT \"Sales\".\"Sale ID\", \"Product ID\", \"Revenue (USD)\", \"Volume Sold\", \"Discount (%)\", \"Payment Method\", \"Date\"\nFROM \"Sales\"\nWHERE \"Revenue (USD)\" > 0;"} {"prompt": "show sales for last 6 month", "sql": "SELECT *\nFROM \"Sales\"\nWHERE strftime('%Y', \"Date\") = strftime('%Y', 'now', '-6 months')"}