input
stringlengths
191
7.13k
output
stringlengths
19
578
Tables: Student, Voting_record Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Voting_record.StuID, Voting_record.Registration_Date, Voting_record.Election_Cycle, Voting_record.President_Vote, Voting_record.Vice_President_Vote, Voting_re...
SELECT Advisor , count(*) FROM STUDENT GROUP BY Advisor;
Tables: Student, Voting_record Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Voting_record.StuID, Voting_record.Registration_Date, Voting_record.Election_Cycle, Voting_record.President_Vote, Voting_record.Vice_President_Vote, Voting_re...
SELECT Advisor , count(*) FROM STUDENT GROUP BY Advisor;
Tables: Student, Voting_record Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Voting_record.StuID, Voting_record.Registration_Date, Voting_record.Election_Cycle, Voting_record.President_Vote, Voting_record.Vice_President_Vote, Voting_re...
SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*) > 2;
Tables: Student, Voting_record Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Voting_record.StuID, Voting_record.Registration_Date, Voting_record.Election_Cycle, Voting_record.President_Vote, Voting_record.Vice_President_Vote, Voting_re...
SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*) > 2;
Tables: Student, Voting_record Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Voting_record.StuID, Voting_record.Registration_Date, Voting_record.Election_Cycle, Voting_record.President_Vote, Voting_record.Vice_President_Vote, Voting_re...
SELECT Major FROM STUDENT GROUP BY Major HAVING COUNT(*) < 3;
Tables: Student, Voting_record Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Voting_record.StuID, Voting_record.Registration_Date, Voting_record.Election_Cycle, Voting_record.President_Vote, Voting_record.Vice_President_Vote, Voting_re...
SELECT Major FROM STUDENT GROUP BY Major HAVING COUNT(*) < 3;
Tables: Student, Voting_record Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Voting_record.StuID, Voting_record.Registration_Date, Voting_record.Election_Cycle, Voting_record.President_Vote, Voting_record.Vice_President_Vote, Voting_re...
SELECT Election_Cycle , count(*) FROM VOTING_RECORD GROUP BY Election_Cycle;
Tables: Student, Voting_record Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Voting_record.StuID, Voting_record.Registration_Date, Voting_record.Election_Cycle, Voting_record.President_Vote, Voting_record.Vice_President_Vote, Voting_re...
SELECT Election_Cycle , count(*) FROM VOTING_RECORD GROUP BY Election_Cycle;
Tables: Student, Voting_record Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Voting_record.StuID, Voting_record.Registration_Date, Voting_record.Election_Cycle, Voting_record.President_Vote, Voting_record.Vice_President_Vote, Voting_re...
SELECT Major FROM STUDENT GROUP BY major ORDER BY count(*) DESC LIMIT 1;
Tables: Student, Voting_record Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Voting_record.StuID, Voting_record.Registration_Date, Voting_record.Election_Cycle, Voting_record.President_Vote, Voting_record.Vice_President_Vote, Voting_re...
SELECT Major FROM STUDENT GROUP BY major ORDER BY count(*) DESC LIMIT 1;
Tables: Student, Voting_record Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Voting_record.StuID, Voting_record.Registration_Date, Voting_record.Election_Cycle, Voting_record.President_Vote, Voting_record.Vice_President_Vote, Voting_re...
SELECT Major FROM STUDENT WHERE Sex = "F" GROUP BY major ORDER BY count(*) DESC LIMIT 1;
Tables: Student, Voting_record Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Voting_record.StuID, Voting_record.Registration_Date, Voting_record.Election_Cycle, Voting_record.President_Vote, Voting_record.Vice_President_Vote, Voting_re...
SELECT Major FROM STUDENT WHERE Sex = "F" GROUP BY major ORDER BY count(*) DESC LIMIT 1;
Tables: Student, Voting_record Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Voting_record.StuID, Voting_record.Registration_Date, Voting_record.Election_Cycle, Voting_record.President_Vote, Voting_record.Vice_President_Vote, Voting_re...
SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY count(*) DESC LIMIT 1;
Tables: Student, Voting_record Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Voting_record.StuID, Voting_record.Registration_Date, Voting_record.Election_Cycle, Voting_record.President_Vote, Voting_record.Vice_President_Vote, Voting_re...
SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY count(*) DESC LIMIT 1;
Tables: Student, Voting_record Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Voting_record.StuID, Voting_record.Registration_Date, Voting_record.Election_Cycle, Voting_record.President_Vote, Voting_record.Vice_President_Vote, Voting_re...
SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING count(*) > 2;
Tables: Student, Voting_record Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Voting_record.StuID, Voting_record.Registration_Date, Voting_record.Election_Cycle, Voting_record.President_Vote, Voting_record.Vice_President_Vote, Voting_re...
SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING count(*) > 2;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT count(*) FROM products;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT count(*) FROM products;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT count(*) FROM ref_colors;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT count(*) FROM ref_colors;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT count(*) FROM CHARACTERISTICS;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT count(*) FROM CHARACTERISTICS;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT product_name , typical_buying_price FROM products;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT product_name , typical_buying_price FROM products;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT color_description FROM ref_colors;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT color_description FROM ref_colors;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT DISTINCT characteristic_name FROM CHARACTERISTICS;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT DISTINCT characteristic_name FROM CHARACTERISTICS;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT product_name FROM products WHERE product_category_code = "Spices";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT product_name FROM products WHERE product_category_code = "Spices";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT count(*) FROM products WHERE product_category_code = "Seeds";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT count(*) FROM products WHERE product_category_code = "Seeds";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT count(*) FROM products WHERE product_category_code = "Spices" AND typical_buying_price > 1000;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT count(*) FROM products WHERE product_category_code = "Spices" AND typical_buying_price > 1000;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT product_category_code , typical_buying_price FROM products WHERE product_name = "cumin";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT product_category_code , typical_buying_price FROM products WHERE product_name = "cumin";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT product_category_code FROM products WHERE product_name = "flax";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT product_category_code FROM products WHERE product_name = "flax";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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';
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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';
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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%';
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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%';
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = "sesame";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = "sesame";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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 = "sesame";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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 = "sesame";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = "red" AND t3.characteristic_name = "slow";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = "red" AND t3.characteristic_name = "slow";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = "white" OR t3.characteristic_name = "hot";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = "white" OR t3.characteristic_name = "hot";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT unit_of_measure FROM ref_product_categories WHERE product_category_code = "Herbs";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT unit_of_measure FROM ref_product_categories WHERE product_category_code = "Herbs";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT product_category_description FROM ref_product_categories WHERE product_category_code = "Spices";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT product_category_description FROM ref_product_categories WHERE product_category_code = "Spices";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT product_category_description , unit_of_measure FROM ref_product_categories WHERE product_category_code = "Herbs";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT product_category_description , unit_of_measure FROM ref_product_categories WHERE product_category_code = "Herbs";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT t2.unit_of_measure FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = "cumin";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT t2.unit_of_measure FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = "cumin";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT t2.unit_of_measure , t2.product_category_code FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = "chervil";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT t2.unit_of_measure , t2.product_category_code FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = "chervil";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT t1.product_name FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code JOIN ref_colors AS t3 ON t1.color_code = t3.color_code WHERE t3.color_description = "white" AND t2.unit_of_measure != "Handful";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT t1.product_name FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code JOIN ref_colors AS t3 ON t1.color_code = t3.color_code WHERE t3.color_description = "white" AND t2.unit_of_measure != "Handful";
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY count(*) DESC LIMIT 1;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY count(*) DESC LIMIT 1;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY count(*) ASC LIMIT 1;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY count(*) ASC LIMIT 1;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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 GROUP BY t3.characteristic_name ORDER BY count(*) DESC LIMIT 1;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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 GROUP BY t3.characteristic_name ORDER BY count(*) DESC LIMIT 1;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT characteristic_name , other_characteristic_details , characteristic_data_type FROM CHARACTERISTICS EXCEPT SELECT t1.characteristic_name , t1.other_characteristic_details , t1.characteristic_data_type FROM CHARACTERISTICS AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id = t2.characteristic_i...
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
SELECT characteristic_name , other_characteristic_details , characteristic_data_type FROM CHARACTERISTICS EXCEPT SELECT t1.characteristic_name , t1.other_characteristic_details , t1.characteristic_data_type FROM CHARACTERISTICS AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id = t2.characteristic_i...
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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 GROUP BY t3.characteristic_name HAVING count(*) >= 2;
Tables: Ref_Characteristic_Types, Ref_Colors, Ref_Product_Categories, Characteristics, Products, Product_Characteristics Columns: Ref_Characteristic_Types.characteristic_type_code, Ref_Characteristic_Types.characteristic_type_description, Ref_Colors.color_code, Ref_Colors.color_description, Ref_Product_Categories.produ...
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 GROUP BY t3.characteristic_name HAVING count(*) >= 2;