aherntech/sparc huggingface dataset:
Database: scientist_1
Question sequence:
find the name of the project that has taken the most time.
how may hours have been spent on it?
how many scientists are working on the project?
what are their names?
how about those who are not involved in it? List their names.
SQL query sequence:
SELECT name FROM projects ORDER BY hours DESC LIMIT 1
SELECT hours FROM projects ORDER BY hours DESC LIMIT 1
SELECT count(*) FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T2.hours  =  (SELECT max(hours) FROM projects)
SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T2.hours  =  (SELECT max(hours) FROM projects)
SELECT name FROM scientists EXCEPT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T2.hours  =  (SELECT max(hours) FROM projects)
Final question: Find the names of scientists who are not working on the project with the highest hours.
Final SQL: SELECT name FROM scientists EXCEPT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T2.hours  =  (SELECT max(hours) FROM projects)
Database: scientist_1
Question sequence:
List all the scientists' names and their projects' names
show the hours worked by them on each project.
list the results in alphabetical order of project name, and then scientist name.
SQL query sequence:
SELECT T1.Name ,  T3.Name FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code
SELECT T1.Name ,  T3.Name ,  T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code
SELECT T1.Name ,  T3.Name ,  T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name,  T1.Name
Final question: List all the scientists' names, their projects' names, and the hours worked by that scientist on each project, in alphabetical order of project name, and then scientist name.
Final SQL: SELECT T1.Name ,  T3.Name ,  T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name,  T1.Name
Database: products_gen_characteristics
Question sequence:
What categories of products are there?
Show their typical buying and selling price as well.
Show only for products with category "Herbs".
Of these, just give the name and product description.
Give the color descriptions as well.
SQL query sequence:
SELECT product_category_code FROM products
SELECT product_category_code, typical_buying_price, typical_selling_price FROM products
SELECT product_category_code, typical_buying_price, typical_selling_price FROM products WHERE product_category_code = "Herbs"
SELECT product_name, product_description FROM products WHERE product_category_code = "Herbs"
SELECT T1.product_name ,  T2.color_description ,  T1.product_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code  =  T2.color_code WHERE product_category_code  =  "Herbs"
Final question: List the names, color descriptions and product descriptions of products with category "Herbs".
Final SQL: SELECT T1.product_name ,  T2.color_description ,  T1.product_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code  =  T2.color_code WHERE product_category_code  =  "Herbs"
Database: products_gen_characteristics
Question sequence:
Which products have category "Herbs"
How about category "Spices" instead
How many are these?
Restrict the count of those to the ones typically bought below 100.
Restrict to the ones typically sold above 1000 instead.
SQL query sequence:
SELECT * FROM products WHERE product_category_code = "Herbs"
SELECT * FROM products WHERE product_category_code = "Spices"
SELECT count(*) FROM products WHERE product_category_code = "Spices"
SELECT count(*) FROM products WHERE product_category_code = "Spices" AND typical_buying_price < 100
SELECT count(*) FROM products WHERE product_category_code = "Spices" AND typical_selling_price > 1000
Final question: Find the number of products with category "Spices" and typically sold above 1000.
Final SQL: SELECT count(*) FROM products WHERE product_category_code  =  "Spices" AND typical_selling_price  >  1000
Database: products_gen_characteristics
Question sequence:
What are the product descriptions?
What are the names of products with product description "eius"
How about those with color description "yellow"
SQL query sequence:
SELECT product_description FROM products
SELECT product_name FROM products WHERE product_description = "eius"
SELECT T1.product_name FROM products AS T1 JOIN ref_colors AS T2 ON T1.color_code  =  T2.color_code WHERE T2.color_description  =  'yellow'
Final question: What is the name of the product with the color description 'yellow'?
Final SQL: SELECT T1.product_name FROM products AS T1 JOIN ref_colors AS T2 ON T1.color_code  =  T2.color_code WHERE T2.color_description  =  'yellow'
Database: products_gen_characteristics
Question sequence:
Which color descriptions contain the letter 't'?
Give for product descriptions instead?
What are the units of measure for these products?
Give their category descriptions instead.
SQL query sequence:
SELECT color_description FROM ref_colors WHERE color_description LIKE '%t%'
SELECT product_description FROM products WHERE product_description LIKE '%t%'
SELECT T1.unit_of_measure FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code  =  T2.product_category_code WHERE T2.product_description LIKE '%t%'
SELECT T1.product_category_description FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code  =  T2.product_category_code WHERE T2.product_description LIKE '%t%'
Final question: Find the category descriptions of the products whose descriptions include letter 't'.
Final SQL: SELECT T1.product_category_description FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code  =  T2.product_category_code WHERE T2.product_description LIKE '%t%'
Database: products_gen_characteristics
Question sequence:
What are the typical buying prices of the products?
Give this for the product with name "cumin"
How about for the name "catnip" instead?
Give the color description instead.
SQL query sequence:
SELECT typical_buying_price FROM products
SELECT typical_buying_price FROM products WHERE product_name = "basil"
SELECT typical_buying_price FROM products WHERE product_name = "catnip"
SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code WHERE t1.product_name  =  "catnip"
Final question: What is the color description of the product with name "catnip"?
Final SQL: SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code WHERE t1.product_name  =  "catnip"
Database: products_gen_characteristics
Question sequence:
What are the product descriptions?
For the one with the name "chervil"?
Give the color description instead.
Show the color code as well.
SQL query sequence:
SELECT product_description FROM products
SELECT product_description FROM products WHERE product_name = "chervil"
SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code WHERE t1.product_name  =  "chervil"
SELECT t1.color_code ,  t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code WHERE t1.product_name  =  "chervil"
Final question: What is the color code and description of the product named "chervil"?
Final SQL: SELECT t1.color_code ,  t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code WHERE t1.product_name  =  "chervil"
Database: products_gen_characteristics
Question sequence:
What are the product characteristic?
What are the names of the products that have only one product characteristic?
Give their color descriptions and their product id instead.
How about for those that have least 2 product characteristics.
SQL query sequence:
SELECT * FROM product_characteristics
SELECT t1.product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id GROUP BY t1.product_id HAVING count(*) = 1
SELECT t1.product_id ,  t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code JOIN product_characteristics AS t3 ON t1.product_id  =  t3.product_id GROUP BY t1.product_id HAVING count(*) = 1
SELECT t1.product_id ,  t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code JOIN product_characteristics AS t3 ON t1.product_id  =  t3.product_id GROUP BY t1.product_id HAVING count(*)  >=  2
Final question: Find the id and color description of the products with at least 2 characteristics.
Final SQL: SELECT t1.product_id ,  t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code JOIN product_characteristics AS t3 ON t1.product_id  =  t3.product_id GROUP BY t1.product_id HAVING count(*)  >=  2
Database: products_gen_characteristics
Question sequence:
What are the color descriptions?
Show the corresponding product names.
Filter for only the ones with color "black"
Now for color "white" instead.
Show only the product names instead.
SQL query sequence:
SELECT color_description FROM ref_colors
SELECT t1.product_name, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON  t1.color_code = t2.color_code
SELECT t1.product_name, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON  t1.color_code = t2.color_code WHERE t2.color_description = "black"
SELECT t1.product_name, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON  t1.color_code = t2.color_code WHERE t2.color_description = "white"
SELECT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code WHERE t2.color_description  =  "white"
Final question: List all the product names with the color description "white".
Final SQL: SELECT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code WHERE t2.color_description  =  "white"
Database: products_gen_characteristics
Question sequence:
What are the names of products and their corresponding colors?
Filter to show only the ones with "green" color.
Show the ones that have "yellow" color instead.
Instead of showing the color description, show their typical buying and selling prices.
SQL query sequence:
SELECT t1.product_name, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code
SELECT t1.product_name, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = "green"
SELECT t1.product_name, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = "yellow"
SELECT t1.product_name ,  t1.typical_buying_price ,  t1.typical_selling_price FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code WHERE t2.color_description  =  "yellow"
Final question: What are the name and typical buying and selling prices of the products that have color described as "yellow"?
Final SQL: SELECT t1.product_name ,  t1.typical_buying_price ,  t1.typical_selling_price FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code WHERE t2.color_description  =  "yellow"
Database: products_gen_characteristics
Question sequence:
What is the selling price of the product named "sesame"?
What is its color?
What are its product characteristic values?
Count how many there are.
SQL query sequence:
SELECT typical_selling_price FROM products WHERE product_name = "sesame"
SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = "sesame"
SELECT t2.product_characteristic_value FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = "sesame"
SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id WHERE t1.product_name  =  "sesame"
Final question: How many characteristics does the product named "sesame" have?
Final SQL: SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id WHERE t1.product_name  =  "sesame"
Database: products_gen_characteristics
Question sequence:
What is the buying price of the product named "cumin"?
What are its product characteristic values?
Show its characteristic names.
Count how many distinct ones there are.
SQL query sequence:
SELECT typical_buying_price FROM products WHERE product_name = "cumin"
SELECT t2.product_characteristic_value FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = "cumin"
SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  "cumin"
SELECT count(DISTINCT t3.characteristic_name) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  "cumin"
Final question: How many distinct characteristic names does the product "cumin" have?
Final SQL: SELECT count(DISTINCT t3.characteristic_name) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  "cumin"
Database: products_gen_characteristics
Question sequence:
What is the product category code for the product named "ginger"?
Show the product characteristic value instead.
How about the one with product named "sesame"
Give its characteristic names.
SQL query sequence:
SELECT product_category_code FROM products WHERE product_name = "ginger"
SELECT t2.product_characteristic_value FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = "ginger"
SELECT t2.product_characteristic_value FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = "sesame"
SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  "sesame"
Final question: What are all the characteristic names of product "sesame"?
Final SQL: SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  "sesame"
Database: products_gen_characteristics
Question sequence:
What is the product description of the product named "catnip"?
Show the product characteristic value instead.
Now show its characteristic data type.
Show this for the product name "cumin" instead.
Give the characteristic name as well.
SQL query sequence:
SELECT product_description FROM products WHERE product_name = "catnip"
SELECT t2.product_characteristic_value FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = "catnip"
SELECT t3.characteristic_data_type FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  "catnip"
SELECT t3.characteristic_data_type FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  "cumin"
SELECT t3.characteristic_name ,  t3.characteristic_data_type FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  "cumin"
Final question: List all the characteristic names and data types of product "cumin".
Final SQL: SELECT t3.characteristic_name ,  t3.characteristic_data_type FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  "cumin"
Database: products_gen_characteristics
Question sequence:
What are the selling prices of the products?
What about for those that have product characteristic value "high"?
What about for those that have characteristic type code "Grade"?
Of those, filter down to those that are product name "sesame" as well.
Give the characteristic names instead.
SQL query sequence:
SELECT typical_selling_price FROM products
SELECT t1.typical_selling_price FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t2.product_characteristic_value = "high"
SELECT t1.typical_selling_price FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t3.characteristic_type_code = "Grade"
SELECT t1.typical_selling_price FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  "sesame" AND t3.characteristic_type_code  =  "Grade"
SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  "sesame" AND t3.characteristic_type_code  =  "Grade"
Final question: List all characteristics of product named "sesame" with type code "Grade".
Final SQL: SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  "sesame" AND t3.characteristic_type_code  =  "Grade"
Database: products_gen_characteristics
Question sequence:
What are the product characteristic values of the product named "laurel"?
Give the characteristic name instead.
How many are there?
SQL query sequence:
SELECT t2.product_characteristic_value FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = "laurel"
SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  "laurel"
SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  "laurel"
Final question: How many characteristics does the product named "laurel" have?
Final SQL: SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  "laurel"
Database: products_gen_characteristics
Question sequence:
What is the typical selling price of the product "catnip"?
What about the product "flax"?
What are its characteristics?
How many are there?
SQL query sequence:
SELECT typical_selling_price FROM products WHERE product_name = "catnip"
SELECT typical_selling_price FROM products WHERE product_name = "flax"
SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  "flax"
SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  "flax"
Final question: Find the number of characteristics that the product "flax" has.
Final SQL: SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  "flax"
Database: products_gen_characteristics
Question sequence:
What is the name of products with selling price > 1000
What about for products with characteristic name "slow"
For characteristic name "fast" instead?
Show the ones that also have color description red.
SQL query sequence:
SELECT product_name FROM products WHERE typical_selling_price > 1000
SELECT t1.product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t3.characteristic_name = "slow"
SELECT t1.product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t3.characteristic_name = "fast"
SELECT product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code  =  t4.color_code WHERE t4.color_description  =  "red" AND t3.characteristic_name  =  "fast"
Final question: Find the name of the products that have the color description "red" and have the characteristic name "fast".
Final SQL: SELECT product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code  =  t4.color_code WHERE t4.color_description  =  "red" AND t3.characteristic_name  =  "fast"
Database: products_gen_characteristics
Question sequence:
What are the names of the products with color "red"?
How many are there?
What about for those with characteristic named "hot" instead?
SQL query sequence:
SELECT product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = "red"
SELECT count(*) FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = "red"
SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t3.characteristic_name  =  "hot"
Final question: How many products have the characteristic named "hot"?
Final SQL: SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t3.characteristic_name  =  "hot"
Database: products_gen_characteristics
Question sequence:
What are the names of the products that have buying price < 100
Show their distinct names.
What about for those with color "black"?
For the characteristic name "warm" instead?
SQL query sequence:
SELECT product_name FROM products WHERE typical_buying_price < 100
SELECT DISTINCT product_name FROM products WHERE typical_buying_price < 100
SELECT DISTINCT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = "red"
SELECT DISTINCT t1.product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t3.characteristic_name  =  "warm"
Final question: List the all the distinct names of the products with the characteristic name 'warm'.
Final SQL: SELECT DISTINCT t1.product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t3.characteristic_name  =  "warm"