1sf/bird-sql-train-with-schema huggingface dataset:
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: How many ingredients must be rationed in the recipe "Raspberry Chiffon Pie"?
Evidence: Raspberry Chiffon Pie refers to title; ingredient must be rationed refers to max_qty = min_qty
SQL: SELECT COUNT(*) FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.title = 'Raspberry Chiffon Pie' AND T2.max_qty = T2.min_qty
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: Please list the names of all the ingredients needed for the recipe "Raspberry Chiffon Pie" that do not need preprocessing.
Evidence: Raspberry Chiffon Pie refers to title; do not need preprocessing refers to preparation IS NULL
SQL: SELECT T3.name FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.title = 'Raspberry Chiffon Pie' AND T2.preparation IS NULL
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: How many recipes include the ingredient "graham cracker crumbs"?
Evidence: 'graham cracker crumbs' is a name of an ingredient
SQL: SELECT COUNT(*) FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id WHERE T1.name = 'graham cracker crumbs'
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: At least how many cups of graham cracker crumbs does the recipe "Raspberry Chiffon Pie" need?
Evidence: 'graham cracker crumbs' is a name of an ingredient; 'Raspberry Chiffon Pie' refers to title
SQL: SELECT T2.min_qty FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.title = 'Raspberry Chiffon Pie' AND T3.name = 'graham cracker crumbs'
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: How many calories from fat are there in the recipe "Raspberry Chiffon Pie"?
Evidence: calories from fat refers to MULTIPLY(calories, pcnt_cal_fat)||'%; Raspberry Chiffon Pie refers to title
SQL: SELECT T2.calories * T2.pcnt_cal_fat FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.title = 'Raspberry Chiffon Pie'
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: How many calories on average does a recipe that comes from "Produce for Better Health Foundation and 5 a Day" contain?
Evidence: Produce for Better Health Foundation and 5 a Day is a source of recipe; calculation = DIVIDE(SUM(calories), COUNT(recipe_id))
SQL: SELECT AVG(T2.calories) FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.source = 'Produce for Better Health Foundation and 5 a Day'
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: How many calories does the turkey tenderloin bundles recipe have?
Evidence: turkey tenderloin refers to title
SQL: SELECT T2.calories FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.title = 'Turkey Tenderloin Bundles'
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: How many cups of 1% lowfat milk should be added to no.1436 recipe?
Evidence: 1% lowfat milk is a name of an ingredient; no.1436 recipe refers to recipe_id = 1436; max_qty = min_qty
SQL: SELECT COUNT(*) FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id WHERE T1.name = '1% lowfat milk' AND T2.unit = 'cup(s)' AND T2.recipe_id = 1436
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: Which recipe in the database contains the most total fat? Give its title.
Evidence: the most total fat refers to MAX(total_fat)
SQL: SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id ORDER BY T2.total_fat DESC LIMIT 1
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: How many times do seedless red grapes appear in the recipes?
Evidence: seedless red grapes is a name of an ingredient
SQL: SELECT COUNT(*) FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id WHERE T1.name = 'seedless red grapes'
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: State the name of the optional ingredient of no.1397 recipe.
Evidence: no.1397 recipe refers to recipe_id = 1397; optional ingredient refers to optional = 'TRUE'
SQL: SELECT T1.name FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id WHERE T2.recipe_id = 1397 AND T2.optional = 'TRUE'
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: Which recipe needs the most frozen raspberries in light syrup? State its title.
Evidence: frozen raspberries in light syrup is a name of an ingredient; max_qty = min_qty
SQL: SELECT T1.title FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T3.name = 'frozen raspberries in light syrup' AND T2.max_qty = T2.min_qty
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: Give the name of the most widely used ingredient.
Evidence: the most widely used ingredient refers to MAX(COUNT(ingredient_id))
SQL: SELECT T1.name FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id GROUP BY T1.name ORDER BY COUNT(T1.name) DESC LIMIT 1
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: What kind of preparation is needed for apple juice to make a raspberry-pear couscous cake?
Evidence: apple juice is a name of an ingredient; raspberry-pear couscous cake refers to title
SQL: SELECT T2.preparation FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.title = 'Raspberry-Pear Couscous Cake' AND T3.name = 'apple juice'
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: How many cups of almonds do you need for a chicken pocket sandwich?
Evidence: cups is a unit; almonds is a name of an ingredient; chicken pocket sandwich refers to title
SQL: SELECT COUNT(*) FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.title = 'Chicken Pocket Sandwich' AND T3.name = 'almonds' AND T2.unit = 'cup(s)'
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: Name the recipe with the most Vitamin C.
Evidence: the most Vitamin C refers to MAX(vitamin_c)
SQL: SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id ORDER BY T2.vitamin_c DESC LIMIT 1
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: How much Vitamin A is in Sherry beef?
Evidence: Sherry beef refers to title = 'Sherried Beef'
SQL: SELECT T2.vitamin_a FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.title = 'Sherried Beef'
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: State the title of the recipe with most kinds of ingredients.
Evidence: the most kinds of ingredients refers to MAX(COUNT(recipe_id))
SQL: SELECT T1.title FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id GROUP BY T1.title ORDER BY COUNT(title) DESC LIMIT 1
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: How many times is the sodium content in Lasagne-Spinach Spirals to Beef and Spinach Pita Pockets?
Evidence: sodium is a name of an ingredient; calculation = DIVIDE(SUM(title = 'Lasagne-Spinach Spirals' THEN sodium), SUM(title = 'Beef and Spinach Pita Pockets' THEN sodium))
SQL: SELECT CAST(SUM(CASE WHEN T1.title = 'Lasagne-Spinach Spirals' THEN T2.sodium ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN T1.title = 'Beef and Spinach Pita Pockets' THEN T2.sodium ELSE 0 END) FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: What is the average calorie count for all recipes using coarsely ground black pepper?
Evidence: coarsely ground black pepper is a name of an ingredient; calculation = AVG(calories)
SQL: SELECT AVG(T3.calories) FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T2.ingredient_id = T1.ingredient_id INNER JOIN Nutrition AS T3 ON T3.recipe_id = T2.recipe_id WHERE T1.name = 'coarsely ground black pepper'
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: What are the names of the recipes that will cause stomach pain?
Evidence: cause stomach pain refers to iron > 20
SQL: SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T2.iron > 20
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: How many ingredients are there in Apricot Yogurt Parfaits?
Evidence: Apricot Yogurt Parfaits refers to title
SQL: SELECT COUNT(*) FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.title = 'Apricot Yogurt Parfaits'
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: What are the names of the ingredients that need to be cook in beef broth?
Evidence: 'cook in beef broth' refers to a preparation
SQL: SELECT T1.name FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id WHERE T2.preparation = 'cooked in beef broth'
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: How many ingredients are there in the recipe that is best in helping your body's natural defence against illness and infection?
Evidence: best in helping your body's natural defence against illness and infection refers to MAX(vitamin_a);
SQL: SELECT COUNT(*) FROM Nutrition AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.vitamin_a > 0
Database: cookbook
Tables: Ingredient, Recipe, Nutrition, Quantity
Columns (table index, column name): -1, *, 0, ingredient_id, 0, category, 0, name, 0, plural, 1, recipe_id, 1, title, 1, subtitle, 1, servings, 1, yield_unit, 1, prep_min, 1, cook_min, 1, stnd_min, 1, source, 1, intro, 1, directions, 2, recipe_id, 2, protein, 2, carbo, 2, alcohol, 2, total_fat, 2, sat_fat, 2, cholestrl, 2, sodium, 2, iron, 2, vitamin_c, 2, vitamin_a, 2, fiber, 2, pcnt_cal_carb, 2, pcnt_cal_fat, 2, pcnt_cal_prot, 2, calories, 3, quantity_id, 3, recipe_id, 3, ingredient_id, 3, max_qty, 3, min_qty, 3, unit, 3, preparation, 3, optional
Question: What are the names of the top 5 recipes that are best for wound healing?
Evidence: names of the recipes refers to title; best for wound healing refers to MAX(vitamin_c)
SQL: SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id ORDER BY T2.vitamin_c DESC LIMIT 5