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: Which ingredient appeared the least in recipes?
Evidence: ingredient appeared the least in recipes refers to MIN(ingredient_id)
SQL: SELECT T1.name FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id GROUP BY T2.ingredient_id ORDER BY COUNT(T2.ingredient_id) ASC 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 baking product ingredients are there in the No-Bake Chocolate Cheesecake?
Evidence: baking product is a category; No-Bake Chocolate Cheesecake 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 T3.category = 'baking products' AND T1.title = 'No-Bake Chocolate Cheesecake'
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: List all the ingredients for Strawberry Sorbet.
Evidence: Strawberry Sorbet refers to title
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 = 'Strawberry Sorbet'
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 optional ingredients for Warm Chinese Chicken Salad?
Evidence: optional refers to optional = 'TRUE'; Warm Chinese Chicken Salad refers to title
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 = 'Warm Chinese Chicken Salad' 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: Among the recipes with alcohol content over 10, which recipe takes the longest to prepare?
Evidence: with alcohol content over 10 refers to alcohol > 10; takes the longest to prepare refers to MAX(prep_min)
SQL: SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T2.alcohol > 10 ORDER BY T1.prep_min 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 servings does the recipe with the highest unsaturated fat have?
Evidence: with the highest unsaturated fat refers MAX(SUBTRACT(total_fat, sat_fat))
SQL: SELECT COUNT(T1.title) FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id ORDER BY T2.total_fat - T2.sat_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: Among the recipes whose source is the National Potato Board, which recipe has the highest calories?
Evidence: the National Potato Board is a source; the highest calories refers to MAX(calories)
SQL: SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.source = 'National Potato Board' ORDER BY T2.calories 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: Which recipe has the highest number of ingredients? Calculate the said recipe's total time of cooking.
Evidence: the highest number of ingredients refers to MAX(ingredient_id); total time refers to recipe_id, total time of cooking refers to TOTAL(prep_min, cook_min, stnd_min)
SQL: SELECT T2.recipe_id, T1.prep_min + T1.cook_min + T1.stnd_min FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id GROUP BY T2.recipe_id ORDER BY COUNT(T2.ingredient_id) 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: Which ingredient appeared the most in recipes? Calculate its amount of appearance in percentage.
Evidence: ingredient appeared the most in recipes refers to MAX(COUNT(ingredient_id)); calculation = MULTIPLY(DIVIDE(COUNT(MAX(ingredient_id)), COUNT(ingredient_id)), 100)
SQL: SELECT T1.name, CAST(COUNT(T2.ingredient_id) AS FLOAT) * 100 / ( SELECT COUNT(T2.ingredient_id) FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T2.ingredient_id = T1.ingredient_id ) AS "percentage" FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T2.ingredient_id = T1.ingredient_id GROUP BY T2.ingredient_id ORDER BY COUNT(T2.ingredient_id) 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: Provide the title and total time of the recipe which has the highest possibility of gaining weight.
Evidence: the highest possibility of gaining weight refers to MAX(total_fat); total time refers to recipe_id, total time refers to TOTAL(prep_min, cook_min, stnd_min)
SQL: SELECT T1.title, T1.prep_min + T1.cook_min + T1.stnd_min 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: Which recipes contain almond extract?
Evidence: almond extract is a name of an ingredient
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 = 'almond extract'
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: List the ingredients in Tomato-Cucumber Relish.
Evidence: Tomato-Cucumber Relish refers to title
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 = 'Tomato-Cucumber Relish'
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 needed to prepare Idaho Potato Supreme?
Evidence: Idaho Potato Supreme 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 = 'Idaho Potato Supreme'
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: Provide the ingredients that are rationed in the recipe with the highest carbohydrate content.
Evidence: the highest carbohydrate content refers to MAX(carbo)
SQL: SELECT T1.name FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id INNER JOIN Nutrition AS T3 ON T3.recipe_id = T2.recipe_id WHERE T2.max_qty = T2.min_qty ORDER BY T3.carbo 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: Name the recipes which can lead to constipation.
Evidence: can lead to constipation 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: Describe the ingredients in the recipe with the highest vitamin that helps vision in dim light.
Evidence: the highest vitamin that helps vision in dim light refers to MAX(vitamin_a)
SQL: SELECT T1.name FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id INNER JOIN Nutrition AS T3 ON T3.recipe_id = T2.recipe_id ORDER BY T3.vitamin_a 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: Provide the ingredients and maximum quantities of the recipe which can serve 7 people.
Evidence: can serve 7 people refers to servings = 7
SQL: SELECT T3.name, T2.max_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.servings = 7
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: Among the recipes from The California Tree Fruit Agreement, calculate the percentage of sodium-free recipes.
Evidence: The California Tree Fruit Agreement is a source; calculation = MULTIPLY(DIVIDE(COUNT(sodium BETWEEN 0 AND 5 THEN recipe_id), COUNT(recipe_id)), 100)
SQL: SELECT CAST(SUM(CASE WHEN T2.sodium < 5 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.source = 'The California Tree Fruit Agreement'
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: List the ingredients which measure in slices.
Evidence: slices refers to unit = 'slice(s)'
SQL: SELECT T1.name FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id WHERE T2.unit = 'slice(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: How many recipes can be made with canned dairy?
Evidence: canned dairy is a category
SQL: SELECT COUNT(*) FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id WHERE T1.category = 'canned dairy'
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: Provide the title and total time of the recipe which can be made with only lima beans.
Evidence: total time refers to total time refers to TOTAL(prep_min, cook_min, stnd_min); lima beans is a name of an ingredient
SQL: SELECT T1.title, T1.prep_min + T1.cook_min + T1.stnd_min 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 = 'lima beans'
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: Among the recipes with sea bass, how many percent of recipes can serve 10 people and above?
Evidence: sea bass is a name of an ingredient; can serve 10 people and above refers to servings > = 10; calculation = MULTIPLY(DIVIDE(COUNT(servings > = 10 THEN recipe_id)), COUNT(recipe_id), 100)
SQL: SELECT CAST(SUM(CASE WHEN T1.servings >= 10 THEN 1 ELSE 0 END) AS REAL) * 100 / 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 T3.name = 'sea bass steak'
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 fat does the Raspberry Chiffon Pie have?
Evidence: Raspberry Chiffon Pie refers to title
SQL: SELECT T2.total_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: What is the percentage calories protein of Raspberry Chiffon Pie?
Evidence: Raspberry Chiffon Pie refers title; percentage calories protein refers to pcnt_cal_prot
SQL: SELECT pcnt_cal_prot FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.title = 'Raspberry Chiffon Pie'