aherntech/spider-syn huggingface dataset:
Database: shop_membership
Question: What is the sum of total pounds of purchase in year 2018 for all branches in London?
Paraphrased question: What is the total number of pounds purchased in year 2018 for all branches in London? 
SQL: SELECT sum(total_pounds) FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id WHERE T2.city  =  'London' AND T1.year  =  2018
Database: shop_membership
Question: How many total pounds were purchased in the year 2018 at all London branches?
Paraphrased question: How many total number of pounds purchased in the year 2018 at all London branches?
SQL: SELECT sum(total_pounds) FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id WHERE T2.city  =  'London' AND T1.year  =  2018
Database: shop_membership
Question: What is the total number of purchases for members with level 6?
Paraphrased question: What is the quantity purchased for members with level 6?
SQL: SELECT count(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id  =  T2.member_id WHERE T2.level  =  6
Database: shop_membership
Question: What are the total purchases for members rated at level 6?
Paraphrased question: What are the quantity purchased for members rated at level 6?
SQL: SELECT count(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id  =  T2.member_id WHERE T2.level  =  6
Database: shop_membership
Question: Find the name of branches where have some members whose hometown is in Louisville, Kentucky and some in Hiram, Georgia.
Paraphrased question: Find the name of branches where have some members whose hometown is in Louisville, Kentucky and some in Hiram, Georgia.
SQL: SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id JOIN member AS T3 ON T1.member_id  =  T3.member_id WHERE T3.Hometown  =  'Louisville ,  Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id JOIN member AS T3 ON T1.member_id  =  T3.member_id WHERE T3.Hometown  =  'Hiram ,  Georgia'
Database: shop_membership
Question: What are the names of the branches that have some members with a hometown in Louisville, Kentucky and also those from Hiram, Goergia?
Paraphrased question: What are the names of the branches that have some members with a hometown in Louisville, Kentucky and also those from Hiram, Goergia?
SQL: SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id JOIN member AS T3 ON T1.member_id  =  T3.member_id WHERE T3.Hometown  =  'Louisville ,  Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id JOIN member AS T3 ON T1.member_id  =  T3.member_id WHERE T3.Hometown  =  'Hiram ,  Georgia'
Database: shop_membership
Question: list the card number of all members whose hometown address includes word "Kentucky".
Paraphrased question: list the card number of all members whose birthplace location includes word "Kentucky".
SQL: SELECT card_number FROM member WHERE Hometown LIKE "%Kentucky%"
Database: shop_membership
Question: What are the card numbers of members from Kentucky?
Paraphrased question: What are the card numbers of members from Kentucky?
SQL: SELECT card_number FROM member WHERE Hometown LIKE "%Kentucky%"
Database: voter_2
Question: Find the number of students in total.
Paraphrased question: Find the number of students in total.
SQL: SELECT count(*) FROM STUDENT
Database: voter_2
Question: How many students are there in total?
Paraphrased question: How many students are there in total?
SQL: SELECT count(*) FROM STUDENT
Database: voter_2
Question: Find the number of voting records in total.
Paraphrased question: Find the number of voting records in total.
SQL: SELECT count(*) FROM VOTING_RECORD
Database: voter_2
Question: How many voting records do we have?
Paraphrased question: How many voting records do we have?
SQL: SELECT count(*) FROM VOTING_RECORD
Database: voter_2
Question: Find the distinct number of president votes.
Paraphrased question: Find the different number of president votes.
SQL: SELECT count(DISTINCT President_Vote) FROM VOTING_RECORD
Database: voter_2
Question: How many distinct president votes are recorded?
Paraphrased question: How many different president votes are recorded?
SQL: SELECT count(DISTINCT President_Vote) FROM VOTING_RECORD
Database: voter_2
Question: Find the maximum age of all the students.
Paraphrased question: Find the maximum age of all the students.
SQL: SELECT max(Age) FROM STUDENT
Database: voter_2
Question: What is the oldest age among the students?
Paraphrased question: What is the oldest age among the students?
SQL: SELECT max(Age) FROM STUDENT
Database: voter_2
Question: Find the last names of students with major 50.
Paraphrased question: Find the family names of students with major 50.
SQL: SELECT LName FROM STUDENT WHERE Major  =  50
Database: voter_2
Question: What are the last names of students studying major 50?
Paraphrased question: What are the family names of students studying major 50?
SQL: SELECT LName FROM STUDENT WHERE Major  =  50
Database: voter_2
Question: Find the first names of students with age above 22.
Paraphrased question: Find the forenames of students with age above 22.
SQL: SELECT Fname FROM STUDENT WHERE Age  >  22
Database: voter_2
Question: What are the first names of all the students aged above 22?
Paraphrased question: What are the forenames of all the students aged above 22?
SQL: SELECT Fname FROM STUDENT WHERE Age  >  22
Database: voter_2
Question: What are the majors of male (sex is M) students?
Paraphrased question: What are the discipline of male (sex is M) students?
SQL: SELECT Major FROM STUDENT WHERE Sex  =  "M"
Database: voter_2
Question: List the major of each male student.
Paraphrased question: List the discipline of each male student.
SQL: SELECT Major FROM STUDENT WHERE Sex  =  "M"
Database: voter_2
Question: What is the average age of female (sex is F) students?
Paraphrased question: What is the average age of female (sex is F) students?
SQL: SELECT avg(Age) FROM STUDENT WHERE Sex  =  "F"
Database: voter_2
Question: Find the average age of female students.
Paraphrased question: Find the average age of female students.
SQL: SELECT avg(Age) FROM STUDENT WHERE Sex  =  "F"
Database: voter_2
Question: What are the maximum and minimum age of students with major 600?
Paraphrased question: What are the maximum and minimum age of students with major 600?
SQL: SELECT max(Age) ,  min(Age) FROM STUDENT WHERE Major  =  600
Database: voter_2
Question: Tell me the ages of the oldest and youngest students studying major 600.
Paraphrased question: Tell me the ages of the oldest and youngest students studying major 600.
SQL: SELECT max(Age) ,  min(Age) FROM STUDENT WHERE Major  =  600
Database: voter_2
Question: Who are the advisors for students that live in a city with city code "BAL"?
Paraphrased question: Who are the advisers for students that live in a city with city code "BAL"?
SQL: SELECT Advisor FROM STUDENT WHERE city_code  =  "BAL"
Database: voter_2
Question: Show the advisors of the students whose city of residence has city code "BAL".
Paraphrased question: Show the advisers of the students whose city of residence has city code "BAL".
SQL: SELECT Advisor FROM STUDENT WHERE city_code  =  "BAL"
Database: voter_2
Question: What are the distinct secretary votes in the fall election cycle?
Paraphrased question: What are the different secretary votes in the fall election cycle?
SQL: SELECT DISTINCT Secretary_Vote FROM VOTING_RECORD WHERE ELECTION_CYCLE  =  "Fall"
Database: voter_2
Question: Return all the distinct secretary votes made in the fall election cycle.
Paraphrased question: Return all the different secretary votes made in the fall election cycle.
SQL: SELECT DISTINCT Secretary_Vote FROM VOTING_RECORD WHERE ELECTION_CYCLE  =  "Fall"
Database: voter_2
Question: What are the distinct president votes on 08/30/2015?
Paraphrased question: What are the different president votes on 08/30/2015?
SQL: SELECT DISTINCT PRESIDENT_Vote FROM VOTING_RECORD WHERE Registration_Date  =  "08/30/2015"
Database: voter_2
Question: Show all the distinct president votes made on 08/30/2015.
Paraphrased question: Show all the different president votes made on 08/30/2015.
SQL: SELECT DISTINCT PRESIDENT_Vote FROM VOTING_RECORD WHERE Registration_Date  =  "08/30/2015"
Database: voter_2
Question: Report the distinct registration date and the election cycle.
Paraphrased question: Report the different registration day and the election cycle.
SQL: SELECT DISTINCT Registration_Date ,  Election_Cycle FROM VOTING_RECORD
Database: voter_2
Question: What are the distinct registration dates and the election cycles?
Paraphrased question: What are the different registration day and the election cycles?
SQL: SELECT DISTINCT Registration_Date ,  Election_Cycle FROM VOTING_RECORD
Database: voter_2
Question: Report the distinct president vote and the vice president vote.
Paraphrased question: Report the different president vote and the vice president vote.
SQL: SELECT DISTINCT President_Vote ,  VICE_President_Vote FROM VOTING_RECORD
Database: voter_2
Question: List all the distinct president votes and the vice president votes.
Paraphrased question: List all the different president votes and the vice president votes.
SQL: SELECT DISTINCT President_Vote ,  VICE_President_Vote FROM VOTING_RECORD
Database: voter_2
Question: Find the distinct last names of the students who have class president votes.
Paraphrased question: Find the different family names of the students who have class president votes.
SQL: SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.CLASS_President_VOTE
Database: voter_2
Question: What are the distinct last names of the students who have class president votes?
Paraphrased question: What are the different family names of the students who have class president votes?
SQL: SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.CLASS_President_VOTE
Database: voter_2
Question: Find the distinct first names of the students who have class senator votes.
Paraphrased question: Find the different forenames of the students who have class senator votes.
SQL: SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.CLASS_Senator_VOTE
Database: voter_2
Question: What are the distinct first names of the students who have class president votes?
Paraphrased question: What are the different forenames of the students who have class president votes?
SQL: SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.CLASS_Senator_VOTE
Database: voter_2
Question: Find the distinct ages of students who have secretary votes in the fall election cycle.
Paraphrased question: Find the different ages of students who have secretary votes in the fall election cycle.
SQL: SELECT DISTINCT T1.Age FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Secretary_Vote WHERE T2.Election_Cycle  =  "Fall"
Database: voter_2
Question: What are the distinct ages of students who have secretary votes in the fall election cycle?
Paraphrased question: What are the different ages of students who have secretary votes in the fall election cycle?
SQL: SELECT DISTINCT T1.Age FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Secretary_Vote WHERE T2.Election_Cycle  =  "Fall"
Database: voter_2
Question: Find the distinct Advisor of students who have treasurer votes in the spring election cycle.
Paraphrased question: Find the different Adviser of students who have treasurer votes in the spring election cycle.
SQL: SELECT DISTINCT T1.Advisor FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Treasurer_Vote WHERE T2.Election_Cycle  =  "Spring"
Database: voter_2
Question: Who served as an advisor for students who have treasurer votes in the spring election cycle?
Paraphrased question: Who served as an adviser for students who have treasurer votes in the spring election cycle?
SQL: SELECT DISTINCT T1.Advisor FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Treasurer_Vote WHERE T2.Election_Cycle  =  "Spring"
Database: voter_2
Question: Find the distinct majors of students who have treasurer votes.
Paraphrased question: Find the different discipline of students who have treasurer votes.
SQL: SELECT DISTINCT T1.Major FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Treasurer_Vote
Database: voter_2
Question: What are the distinct majors that students with treasurer votes are studying?
Paraphrased question: What are the different discipline that students with treasurer votes are studying?
SQL: SELECT DISTINCT T1.Major FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Treasurer_Vote
Database: voter_2
Question: Find the first and last names of all the female (sex is F) students who have president votes.
Paraphrased question: Find the full names of all the female (sex is F) students who have president votes.
SQL: SELECT DISTINCT T1.Fname ,  T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.President_VOTE WHERE T1.sex  =  "F"
Database: voter_2
Question: What are the first and last names of all the female students who have president votes?
Paraphrased question: What are the forename and family names of all the female students who have president votes?
SQL: SELECT DISTINCT T1.Fname ,  T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.President_VOTE WHERE T1.sex  =  "F"
Database: voter_2
Question: Find the first and last name of all the students of age 18 who have vice president votes.
Paraphrased question: Find the forename and surname of all the students of age 18 who have vice president votes.
SQL: SELECT DISTINCT T1.Fname ,  T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.VICE_President_VOTE WHERE T1.age  =  18
Database: voter_2
Question: What are the first names and last names of the students who are 18 years old and have vice president votes.
Paraphrased question: What are the forenames and surnames of the students who are 18 years old and have vice president votes.
SQL: SELECT DISTINCT T1.Fname ,  T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.VICE_President_VOTE WHERE T1.age  =  18
Database: voter_2
Question: How many male (sex is M) students have class senator votes in the fall election cycle?
Paraphrased question: How many male (sex is M) students have class senator votes in the fall election cycle?
SQL: SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  Class_Senator_Vote WHERE T1.Sex  =  "M" AND T2.Election_Cycle  =  "Fall"
Database: voter_2
Question: Count the number of male students who had class senator votes in the fall election cycle.
Paraphrased question: Count the number of male students who had class senator votes in the fall election cycle.
SQL: SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  Class_Senator_Vote WHERE T1.Sex  =  "M" AND T2.Election_Cycle  =  "Fall"
Database: voter_2
Question: Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle.
Paraphrased question: Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle.
SQL: SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  Class_Senator_Vote WHERE T1.city_code  =  "NYC" AND T2.Election_Cycle  =  "Spring"
Database: voter_2
Question: Which students live in the city with code "NYC" and have class senator votes in the spring election cycle? Count the numbers.
Paraphrased question: Which students live in the city with code "NYC" and have class senator votes in the spring election cycle? Count the numbers.
SQL: SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  Class_Senator_Vote WHERE T1.city_code  =  "NYC" AND T2.Election_Cycle  =  "Spring"
Database: voter_2
Question: Find the average age of students who live in the city with code "NYC" and have secretary votes in the spring election cycle.
Paraphrased question: Find the average age of students who live in the city with code "NYC" and have secretary votes in the spring election cycle.
SQL: SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  SECRETARY_Vote WHERE T1.city_code  =  "NYC" AND T2.Election_Cycle  =  "Spring"
Database: voter_2
Question: What is the average age of students who have city code "NYC" and have secretary votes for the spring election cycle?
Paraphrased question: What is the average age of students who have city code "NYC" and have secretary votes for the spring election cycle?
SQL: SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  SECRETARY_Vote WHERE T1.city_code  =  "NYC" AND T2.Election_Cycle  =  "Spring"
Database: voter_2
Question: Find the average age of female (sex is F) students who have secretary votes in the spring election cycle.
Paraphrased question: Find the average age of female (sex is F) students who have secretary votes in the spring election cycle.
SQL: SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  SECRETARY_Vote WHERE T1.Sex  =  "F" AND T2.Election_Cycle  =  "Spring"
Database: voter_2
Question: What is the average age of the female students with secretary votes in the spring election cycle?
Paraphrased question: What is the average age of the female students with secretary votes in the spring election cycle?
SQL: SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  SECRETARY_Vote WHERE T1.Sex  =  "F" AND T2.Election_Cycle  =  "Spring"
Database: voter_2
Question: Find the distinct first names of all the students who have vice president votes and whose city code is not PIT.
Paraphrased question: Find the different forenames of all the students who have vice president votes and whose city code is not PIT.
SQL: SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code  =  "PIT"
Database: voter_2
Question: What are the distinct first names of the students who have vice president votes and reside in a city whose city code is not PIT?
Paraphrased question: What are the different forenames of the students who have vice president votes and reside in a city whose city code is not PIT?
SQL: SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code  =  "PIT"
Database: voter_2
Question: Find the distinct last names of all the students who have president votes and whose advisor is not 2192.
Paraphrased question: Find the different family names of all the students who have president votes and whose advisor is not 2192.
SQL: SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor  =  "2192"
Database: voter_2
Question: What are the distinct last names of the students who have president votes but do not have 2192 as the advisor?
Paraphrased question: What are the different family names of the students who have president votes but do not have 2192 as the advisor?
SQL: SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor  =  "2192"
Database: voter_2
Question: Find the distinct last names of all the students who have president votes and whose advisor is 8741.
Paraphrased question: Find the different surnames of all the students who have president votes and whose advisor is 8741.
SQL: SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor  =  "8741"
Database: voter_2
Question: What are the distinct last names of the students who have president votes and have 8741 as the advisor?
Paraphrased question: What are the different surnames of the students who have president votes and have 8741 as the advisor?
SQL: SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor  =  "8741"
Database: voter_2
Question: For each advisor, report the total number of students advised by him or her.
Paraphrased question: For each adviser, report the total number of students advised by him or her.
SQL: SELECT Advisor ,  count(*) FROM STUDENT GROUP BY Advisor
Database: voter_2
Question: How many students does each advisor have?
Paraphrased question: How many students does each adviser have?
SQL: SELECT Advisor ,  count(*) FROM STUDENT GROUP BY Advisor
Database: voter_2
Question: Report all advisors that advise more than 2 students.
Paraphrased question: Report all advisers that advise more than 2 students.
SQL: SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*)  >  2
Database: voter_2
Question: Which advisors have more than two students?
Paraphrased question: Which advisers have more than two students?
SQL: SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*)  >  2
Database: voter_2
Question: Report all majors that have less than 3 students.
Paraphrased question: Report all discipline that have less than 3 students.
SQL: SELECT Major FROM STUDENT GROUP BY Major HAVING COUNT(*)  <  3
Database: voter_2
Question: What are the majors only less than three students are studying?
Paraphrased question: What are the discipline only less than three students are studying?
SQL: SELECT Major FROM STUDENT GROUP BY Major HAVING COUNT(*)  <  3
Database: voter_2
Question: For each election cycle, report the number of voting records.
Paraphrased question: For each election cycle, report the number of voting records.
SQL: SELECT Election_Cycle ,  count(*) FROM VOTING_RECORD GROUP BY Election_Cycle
Database: voter_2
Question: Count the number of voting records for each election cycle.
Paraphrased question: Count the number of voting records for each election cycle.
SQL: SELECT Election_Cycle ,  count(*) FROM VOTING_RECORD GROUP BY Election_Cycle
Database: voter_2
Question: Which major has the most students?
Paraphrased question: Which discipline has the most students?
SQL: SELECT Major FROM STUDENT GROUP BY major ORDER BY count(*) DESC LIMIT 1
Database: voter_2
Question: Find the major that is studied by the largest number of students.
Paraphrased question: Find the discipline that is studied by the largest number of students.
SQL: SELECT Major FROM STUDENT GROUP BY major ORDER BY count(*) DESC LIMIT 1
Database: voter_2
Question: What is the most common major among female (sex is F) students?
Paraphrased question: What is the most common discipline among female (sex is F) students?
SQL: SELECT Major FROM STUDENT WHERE Sex  =  "F" GROUP BY major ORDER BY count(*) DESC LIMIT 1
Database: voter_2
Question: Find the major that is studied by the most female students.
Paraphrased question: Find the discipline that is studied by the most female students.
SQL: SELECT Major FROM STUDENT WHERE Sex  =  "F" GROUP BY major ORDER BY count(*) DESC LIMIT 1
Database: voter_2
Question: What is the city_code of the city that the most students live in?
Paraphrased question: What is the city_code of the city that the most students live in?
SQL: SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY count(*) DESC LIMIT 1
Database: voter_2
Question: Return the code of the city that has the most students.
Paraphrased question: Return the code of the city that has the most students.
SQL: SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY count(*) DESC LIMIT 1
Database: voter_2
Question: Report the distinct advisors who have more than 2 students.
Paraphrased question: Report the different advisers who have more than 2 students.
SQL: SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING count(*)  >  2
Database: voter_2
Question: Which advisors are advising more than 2 students?
Paraphrased question: Which advisers are advising more than 2 students?
SQL: SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING count(*)  >  2
Database: products_gen_characteristics
Question: How many products are there?
Paraphrased question: How many goods are there?
SQL: SELECT count(*) FROM products
Database: products_gen_characteristics
Question: Count the number of products.
Paraphrased question: Count the number of goods.
SQL: SELECT count(*) FROM products
Database: products_gen_characteristics
Question: How many colors are there?
Paraphrased question: How many colours are there?
SQL: SELECT count(*) FROM ref_colors
Database: products_gen_characteristics
Question: Count the number of colors.
Paraphrased question: Count the number of colours.
SQL: SELECT count(*) FROM ref_colors
Database: products_gen_characteristics
Question: How many characteristics are there?
Paraphrased question: How many features are there?
SQL: SELECT count(*) FROM CHARACTERISTICS
Database: products_gen_characteristics
Question: Count the number of characteristics.
Paraphrased question: Count the number of features.
SQL: SELECT count(*) FROM CHARACTERISTICS
Database: products_gen_characteristics
Question: What are the names and buying prices of all the products?
Paraphrased question: What are the names and buying prices of all the goods?
SQL: SELECT product_name ,  typical_buying_price FROM products
Database: products_gen_characteristics
Question: Return the names and typical buying prices for all products.
Paraphrased question: Return the names and typical buying prices for all goods.
SQL: SELECT product_name ,  typical_buying_price FROM products
Database: products_gen_characteristics
Question: List the description of all the colors.
Paraphrased question: List the describing content of all the colours.
SQL: SELECT color_description FROM ref_colors
Database: products_gen_characteristics
Question: What are the descriptions for each color?
Paraphrased question: What are the descriptions for each colour?
SQL: SELECT color_description FROM ref_colors
Database: products_gen_characteristics
Question: Find the names of all the product characteristics.
Paraphrased question: Find the names of all the goods features.
SQL: SELECT DISTINCT characteristic_name FROM CHARACTERISTICS
Database: products_gen_characteristics
Question: What are the different names of the product characteristics?
Paraphrased question: What are the different names of the goods features?
SQL: SELECT DISTINCT characteristic_name FROM CHARACTERISTICS
Database: products_gen_characteristics
Question: What are the names of products with category "Spices"?
Paraphrased question: What are the names of goods with category "Spices"?
SQL: SELECT product_name FROM products WHERE product_category_code  =  "Spices"
Database: products_gen_characteristics
Question: Return the names of products in the category 'Spices'.
Paraphrased question: Return the names of goods in the category 'Spices'.
SQL: SELECT product_name FROM products WHERE product_category_code  =  "Spices"
Database: products_gen_characteristics
Question: List the names, color descriptions and product descriptions of products with category "Herbs".
Paraphrased question: List the names, colour descriptions and goods descriptions of goods with category "Herbs".
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: What are the names, color descriptions, and product descriptions for products in the 'Herbs' category?
Paraphrased question: What are the names, colour descriptions, and goods descriptions for goods in the 'Herbs' category?
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: How many products are there under the category "Seeds"?
Paraphrased question: How many goods are there under the category "Seeds"?
SQL: SELECT count(*) FROM products WHERE product_category_code  =  "Seeds"
Database: products_gen_characteristics
Question: Count the number of products in the category 'Seeds'.
Paraphrased question: Count the number of goods in the category 'Seeds'.
SQL: SELECT count(*) FROM products WHERE product_category_code  =  "Seeds"
Database: products_gen_characteristics
Question: Find the number of products with category "Spices" and typically sold above 1000.
Paraphrased question: Find the number of goods with category "Spices" and typically sold above 1000.
SQL: SELECT count(*) FROM products WHERE product_category_code  =  "Spices" AND typical_buying_price  >  1000
Database: products_gen_characteristics
Question: How many products are in the 'Spices' category and have a typical price of over 1000?
Paraphrased question: How many goods are in the 'Spices' category and have a typical price of over 1000?
SQL: SELECT count(*) FROM products WHERE product_category_code  =  "Spices" AND typical_buying_price  >  1000
Database: products_gen_characteristics
Question: What is the category and typical buying price  of the product with name "cumin"?
Paraphrased question: What is the type and typical buying price  of the goods with name "cumin"?
SQL: SELECT product_category_code ,  typical_buying_price FROM products WHERE product_name  =  "cumin"
Database: products_gen_characteristics
Question: Return the category code and typical price of 'cumin'.
Paraphrased question: Return the type code and typical price of 'cumin'.
SQL: SELECT product_category_code ,  typical_buying_price FROM products WHERE product_name  =  "cumin"
Database: products_gen_characteristics
Question: Which category does the product named "flax" belong to?
Paraphrased question: Which type does the goods named "flax" belong to?
SQL: SELECT product_category_code FROM products WHERE product_name  =  "flax"
Database: products_gen_characteristics
Question: What is the code of the category that the product with the name 'flax' belongs to?
Paraphrased question: What is the code of the type that the goods with the name 'flax' belongs to?
SQL: SELECT product_category_code FROM products WHERE product_name  =  "flax"
Database: products_gen_characteristics
Question: What is the name of the product with the color description 'yellow'?
Paraphrased question: What is the name of the goods with the color description 'yellow'?
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: Give the name of the products that have a color description 'yellow'.
Paraphrased question: Give the name of the goods that have a color description 'yellow'.
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: Find the category descriptions of the products whose descriptions include letter 't'.
Paraphrased question: Find the type descriptions of the goods whose descriptions include letter 't'.
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: What are the descriptions of the categories that products with product descriptions that contain the letter t are in?
Paraphrased question: What are the descriptions of the type that goods with goods descriptions that contain the letter t are in?
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: What is the color description of the product with name "catnip"?
Paraphrased question: What is the colour describing content of the goods with name "catnip"?
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: Give the color description for the product 'catnip'.
Paraphrased question: Give the colour describing content for the goods 'catnip'.
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: What is the color code and description of the product named "chervil"?
Paraphrased question: What is the colour code and describing content of the goods named "chervil"?
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: Return the color code and description for the product with the name 'chervil'.
Paraphrased question: Return the colour code and describing content for the goods with the name 'chervil'.
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: Find the id and color description of the products with at least 2 characteristics.
Paraphrased question: Find the id and colour describing content of the goods with at least 2 characteristics.
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: What are the product ids and color descriptions for products with two or more characteristics?
Paraphrased question: What are the goods ids and colour descriptions for goods with two or more characteristics?
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: List all the product names with the color description "white".
Paraphrased question: List all the goods names with the colour description "white".
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: What are the names of products with 'white' as their color description?
Paraphrased question: What are the names of goods with 'white' as their colour description?
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: What are the name and typical buying and selling prices of the products that have color described as "yellow"?
Paraphrased question: What are the name and typical buying and selling prices of the goods that have color described as "yellow"?
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: Return the names and typical buying and selling prices for products that have 'yellow' as their color description.
Paraphrased question: Return the names and typical buying and selling prices for goods that have 'yellow' as their color description.
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: How many characteristics does the product named "sesame" have?
Paraphrased question: How many features does the goods named "sesame" have?
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: Count the number of characteristics the product 'sesame' has.
Paraphrased question: Count the number of features the goods 'sesame' has.
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: How many distinct characteristic names does the product "cumin" have?
Paraphrased question: How many different feature names does the goods "cumin" have?
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  =  "sesame"
Database: products_gen_characteristics
Question: Count the number of different characteristic names the product 'cumin' has.
Paraphrased question: Count the number of different feature names the goods 'cumin' has.
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  =  "sesame"
Database: products_gen_characteristics
Question: What are all the characteristic names of product "sesame"?
Paraphrased question: What are all the feature names of goods "sesame"?
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: Return the characteristic names of the 'sesame' product.
Paraphrased question: Return the feature names of the 'sesame' goods.
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: List all the characteristic names and data types of product "cumin".
Paraphrased question: List all the feature names and data types of goods "cumin".
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: What are the names and data types of the characteristics of the 'cumin' product?
Paraphrased question: What are the names and data types of the features of the 'cumin' goods?
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: List all characteristics of product named "sesame" with type code "Grade".
Paraphrased question: List all features of goods named "sesame" with type code "Grade".
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: What are the names of the characteristics of the product 'sesame' that have the characteristic type code 'Grade'?
Paraphrased question: What are the names of the features of the goods 'sesame' that have the feature type code 'Grade'?
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: How many characteristics does the product named "laurel" have?
Paraphrased question: How many features does the goods named "laurel" have?
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: Count the number of characteristics of the product named 'laurel'.
Paraphrased question: Count the number of features of the goods named 'laurel'.
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: Find the number of characteristics that the product "flax" has.
Paraphrased question: Find the number of features that the goods "flax" has.
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: Count the number of characteristics of the 'flax' product.
Paraphrased question: Count the number of features of the 'flax' goods.
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: Find the name of the products that have the color description "red" and have the characteristic name "fast".
Paraphrased question: Find the name of the goods that have the colour description "red" and have the characteristic name "fast".
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: What are the names of the products that have a color description of 'red' and the 'fast' characteristic?
Paraphrased question: What are the names of the goods that have a colour description of 'red' and the 'fast' characteristic?
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: How many products have the characteristic named "hot"?
Paraphrased question: How many goods have the feature named "hot"?
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: Count the number of products with the 'hot' charactersitic.
Paraphrased question: Count the number of goods with the 'hot' feature.
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: List the all the distinct names of the products with the characteristic name 'warm'.
Paraphrased question: List the all the different names of the goods with the characteristic name 'warm'.
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"
Database: products_gen_characteristics
Question: What are the different product names for products that have the 'warm' characteristic:?
Paraphrased question: What are the different goods names for goods that have the 'warm' characteristic:?
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"
Database: products_gen_characteristics
Question: Find the number of the products that have their color described as "red" and have a characteristic named "slow".
Paraphrased question: Find the number of the goods that have their color described as "red" and have a characteristic named "slow".
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 JOIN ref_colors AS t4 ON t1.color_code  =  t4.color_code WHERE t4.color_description  =  "red" AND t3.characteristic_name  =  "slow"
Database: products_gen_characteristics
Question: How many products have the color description 'red' and the characteristic name 'slow'?
Paraphrased question: How many goods have the colour description 'red' and the characteristic name 'slow'?
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 JOIN ref_colors AS t4 ON t1.color_code  =  t4.color_code WHERE t4.color_description  =  "red" AND t3.characteristic_name  =  "slow"
Database: products_gen_characteristics
Question: Count the products that have the color description "white" or have the characteristic name "hot".
Paraphrased question: Count the goods that have the colour description "white" or have the characteristic name "hot".
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 JOIN ref_colors AS t4 ON t1.color_code  =  t4.color_code WHERE t4.color_description  =  "white" OR t3.characteristic_name  =  "hot"
Database: products_gen_characteristics
Question: How many products have their color described as 'white' or have a characteristic with the name 'hot'?
Paraphrased question: How many goods have their colour described as 'white' or have a characteristic with the name 'hot'?
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 JOIN ref_colors AS t4 ON t1.color_code  =  t4.color_code WHERE t4.color_description  =  "white" OR t3.characteristic_name  =  "hot"
Database: products_gen_characteristics
Question: What is the unit of measuerment of the product category code "Herbs"?
Paraphrased question: What is the unit of measurement of the goods type code "Herbs"?
SQL: SELECT unit_of_measure FROM ref_product_categories WHERE product_category_code  =  "Herbs"
Database: products_gen_characteristics
Question: Return the unit of measure for 'Herb' products.
Paraphrased question: Return the unit of measurement for 'Herb' goods.
SQL: SELECT unit_of_measure FROM ref_product_categories WHERE product_category_code  =  "Herbs"
Database: products_gen_characteristics
Question: Find the product category description of the product category with code "Spices".
Paraphrased question: Find the goods category describing content of the goods category with code "Spices".
SQL: SELECT product_category_description FROM ref_product_categories WHERE product_category_code  =  "Spices"
Database: products_gen_characteristics
Question: What is the description of the product category with the code 'Spices'?
Paraphrased question: What is the describing content of the goods category with the code 'Spices'?
SQL: SELECT product_category_description FROM ref_product_categories WHERE product_category_code  =  "Spices"