aherntech/spider-syn huggingface dataset:
Database: soccer_2
Question: What is minimum hours of the students playing in different position?
Paraphrased question: What is minimum hours of the students playing in different position?
SQL: SELECT min(T2.HS) ,   T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID GROUP BY T1.pPos
Database: soccer_2
Question: For each position, what is the minimum time students spent practicing?
Paraphrased question: For each position, what is the minimum time students spent practicing?
SQL: SELECT min(T2.HS) ,   T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID GROUP BY T1.pPos
Database: soccer_2
Question: What are the names of schools with the top 3 largest size?
Paraphrased question: What are the names of schools with the top 3 largest size?
SQL: SELECT cName FROM college ORDER BY enr DESC LIMIT 3
Database: soccer_2
Question: What are the names of the schools with the top 3 largest class sizes?
Paraphrased question: What are the names of the schools with the top 3 largest class sizes?
SQL: SELECT cName FROM college ORDER BY enr DESC LIMIT 3
Database: soccer_2
Question: What is the name of school that has the smallest enrollment in each state?
Paraphrased question: What is the name of school that has the smallest enrollment in each state?
SQL: SELECT cName ,  state ,  min(enr) FROM college GROUP BY state
Database: soccer_2
Question: What is the name of the school with smallest enrollment size per state?
Paraphrased question: What is the name of the school with smallest enrollment size per state?
SQL: SELECT cName ,  state ,  min(enr) FROM college GROUP BY state
Database: soccer_2
Question: Find the states where have some college students in tryout.
Paraphrased question: Find the states where have some school students in tryout.
SQL: SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName
Database: soccer_2
Question: What are the different states that have students trying out?
Paraphrased question: What are the different states that have students trying out?
SQL: SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName
Database: soccer_2
Question: Find the states where have some college students in tryout and their decisions are yes.
Paraphrased question: Find the states where have some school students in tryout and their decisions are yes.
SQL: SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.decision  =  'yes'
Database: soccer_2
Question: What are the different states that had students successfully try out?
Paraphrased question: What are the different states that had students successfully try out?
SQL: SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.decision  =  'yes'
Database: soccer_2
Question: Find the name and college of students whose decisions are yes in the tryout.
Paraphrased question: Find the name and school of students whose decisions are yes in the tryout.
SQL: SELECT T1.pName ,  T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'
Database: soccer_2
Question: What are the names of all the players who received a yes during tryouts, and also what are the names of their colleges?
Paraphrased question: What are the names of all the participants who received a yes during tryouts, and also what are the names of their colleges?
SQL: SELECT T1.pName ,  T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'
Database: soccer_2
Question: Find the name of all students who were in the tryout sorted in alphabetic order.
Paraphrased question: Find the name of all students who were in the tryout sorted in alphabetic order.
SQL: SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID ORDER BY T1.pName
Database: soccer_2
Question: What are the names of all students who tried out in alphabetical order?
Paraphrased question: What are the names of all students who tried out in alphabetical order?
SQL: SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID ORDER BY T1.pName
Database: soccer_2
Question: Find the name and hours of the students whose tryout decision is yes.
Paraphrased question: Find the name and hours of the students whose tryout decision is yes.
SQL: SELECT T1.pName ,  T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'
Database: soccer_2
Question: What are the names and hours spent practicing of every student who received a yes at tryouts?
Paraphrased question: What are the names and hours spent practicing of every student who received a yes at tryouts?
SQL: SELECT T1.pName ,  T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'
Database: soccer_2
Question: Find the states of the colleges that have students in the tryout who played in striker position.
Paraphrased question: Find the states of the schools that have students in the tryout who played in striker position.
SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'striker'
Database: soccer_2
Question: What are the states of the colleges where students who tried out for the striker position attend?
Paraphrased question: What are the states of the schools where students who tried out for the striker position attend?
SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'striker'
Database: soccer_2
Question: Find the names of the students who are in the position of striker and got a yes tryout decision.
Paraphrased question: Find the names of the students who are in the position of striker and got a yes tryout decision.
SQL: SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes' AND T2.pPos  =  'striker'
Database: soccer_2
Question: What are the names of all students who successfully tried out for the position of striker?
Paraphrased question: What are the names of all students who successfully tried out for the position of striker?
SQL: SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes' AND T2.pPos  =  'striker'
Database: soccer_2
Question: Find the state of the college which player Charles is attending.
Paraphrased question: Find the state of the school which player Charles is attending.
SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName JOIN player AS T3 ON T2.pID  =  T3.pID WHERE T3.pName  =  'Charles'
Database: soccer_2
Question: In which state is the college that Charles attends?
Paraphrased question: In which state is the school that Charles attends?
SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName JOIN player AS T3 ON T2.pID  =  T3.pID WHERE T3.pName  =  'Charles'
Database: soccer_2
Question: Find the average and maximum hours for the students whose tryout decision is yes.
Paraphrased question: Find the average and maximum hours for the students whose tryout decision is yes.
SQL: SELECT avg(T1.HS) ,  max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'
Database: soccer_2
Question: What is the average and maximum number of hours students who made the team practiced?
Paraphrased question: What is the average and maximum number of hours students who made the team practiced?
SQL: SELECT avg(T1.HS) ,  max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'
Database: soccer_2
Question: Find the average hours for the students whose tryout decision is no.
Paraphrased question: Find the average hours for the students whose tryout decision is no.
SQL: SELECT avg(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'no'
Database: soccer_2
Question: What is the average number of hours spent practicing for students who got rejected?
Paraphrased question: What is the average number of hours spent practicing for students who got rejected?
SQL: SELECT avg(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'no'
Database: soccer_2
Question: What is the maximum training hours for the students whose training hours is greater than 1000 in different positions?
Paraphrased question: What is the maximum training hours for the students whose training hours is greater than 1000 in different positions?
SQL: SELECT max(T1.HS) ,  pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T1.HS  >  1000 GROUP BY T2.pPos
Database: soccer_2
Question: For each position, what is the maximum number of  hours for students who spent more than 1000 hours training?
Paraphrased question: For each position, what is the maximum number of  hours for students who spent more than 1000 hours training?
SQL: SELECT max(T1.HS) ,  pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T1.HS  >  1000 GROUP BY T2.pPos
Database: soccer_2
Question: Which colleges do the tryout players whose name starts with letter D go to?
Paraphrased question: Which colleges do the tryout players whose name starts with letter D go to?
SQL: SELECT T1.cName FROM  tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID WHERE T2.pName LIKE 'D%'
Database: soccer_2
Question: Which colleges does each player with a name that starts with the letter D  who tried out go to?
Paraphrased question: Which colleges does each player with a name that starts with the letter D  who tried out go to?
SQL: SELECT T1.cName FROM  tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID WHERE T2.pName LIKE 'D%'
Database: soccer_2
Question: Which college has any student who is a goalie and succeeded in the tryout.
Paraphrased question: Which college has any student who is a goalie and succeeded in the tryout.
SQL: SELECT cName FROM  tryout WHERE decision  =  'yes' AND pPos  =  'goalie'
Database: soccer_2
Question: What college has a student who successfully made the team in the role of a goalie?
Paraphrased question: What college has a student who successfully made the team in the role of a goalie?
SQL: SELECT cName FROM  tryout WHERE decision  =  'yes' AND pPos  =  'goalie'
Database: soccer_2
Question: Find the name of the tryout players who are from the college with largest size.
Paraphrased question: Find the name of the tryout players who are from the college with largest size.
SQL: SELECT T2.pName FROM  tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID WHERE T1.cName  =  (SELECT cName FROM college ORDER BY enr DESC LIMIT 1)
Database: soccer_2
Question: What are the names of all tryout participants who are from the largest college?
Paraphrased question: What are the names of all tryout participants who are from the largest college?
SQL: SELECT T2.pName FROM  tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID WHERE T1.cName  =  (SELECT cName FROM college ORDER BY enr DESC LIMIT 1)
Database: soccer_2
Question: What is the state and enrollment of the colleges where have any students who got accepted in the tryout decision.
Paraphrased question: What is the state and number of student enrolled in colleges where have any students who got accepted in the tryout decision.
SQL: SELECT DISTINCT T1.state ,  T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.decision  =  'yes'
Database: soccer_2
Question: How many students are enrolled in colleges that have student accepted during tryouts, and in which states are those colleges?
Paraphrased question: How many students are enrolled in colleges that have student accepted during tryouts, and in which states are those colleges?
SQL: SELECT DISTINCT T1.state ,  T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.decision  =  'yes'
Database: soccer_2
Question: Find the names of either colleges in LA with greater than 15000 size or in state AZ with less than 13000 enrollment.
Paraphrased question: Find the names of either schools in LA with greater than 15000 size or in state AZ with less than 13000 enrollment.
SQL: SELECT cName FROM College WHERE enr  <  13000 AND state = "AZ" UNION SELECT cName FROM College WHERE enr  >  15000 AND state = "LA"
Database: soccer_2
Question: What are the names of colleges in LA that have more than 15,000 students and of colleges in AZ with less than 13,000 students?
Paraphrased question: What are the names of schools in LA that have more than 15,000 students and of schools in AZ with less than 13,000 students?
SQL: SELECT cName FROM College WHERE enr  <  13000 AND state = "AZ" UNION SELECT cName FROM College WHERE enr  >  15000 AND state = "LA"
Database: soccer_2
Question: Find the names of schools that have some students playing in goalie and mid positions.
Paraphrased question: Find the names of schools that have some students playing in goalie and mid positions.
SQL: SELECT cName FROM  tryout WHERE pPos  =  'goalie' INTERSECT SELECT cName FROM  tryout WHERE pPos  =  'mid'
Database: soccer_2
Question: What are the names of all schools that have students trying out for the position of goal and 'mid'-field.
Paraphrased question: What are the names of all schools that have students trying out for the position of goal and 'mid'-field.
SQL: SELECT cName FROM  tryout WHERE pPos  =  'goalie' INTERSECT SELECT cName FROM  tryout WHERE pPos  =  'mid'
Database: soccer_2
Question: Find the names of states that have some college students playing in goalie and mid positions.
Paraphrased question: Find the names of states that have some school students playing in goalie and mid positions.
SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid'
Database: soccer_2
Question: What are the names of the states that have some college students playing in the positions of goalie and mid-field?
Paraphrased question: What are the names of the states that have some school students playing in the positions of goalie and mid-field?
SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid'
Database: soccer_2
Question: How many schools have some students playing in goalie and mid positions.
Paraphrased question: How many schools have some students playing in goalie and mid positions.
SQL: SELECT COUNT(*) FROM (SELECT cName FROM  tryout WHERE pPos  =  'goalie' INTERSECT SELECT cName FROM  tryout WHERE pPos  =  'mid')
Database: soccer_2
Question: How many schools have students playing in goalie and mid-field positions?
Paraphrased question: How many schools have students playing in goalie and mid-field positions?
SQL: SELECT COUNT(*) FROM (SELECT cName FROM  tryout WHERE pPos  =  'goalie' INTERSECT SELECT cName FROM  tryout WHERE pPos  =  'mid')
Database: soccer_2
Question: Find the names of schools that have some players in the mid position but not in the goalie position.
Paraphrased question: Find the names of schools that have some players in the mid position but not in the goalie position.
SQL: SELECT cName FROM  tryout WHERE pPos  =  'mid' EXCEPT SELECT cName FROM  tryout WHERE pPos  =  'goalie'
Database: soccer_2
Question: What are the names of the schools with some players in the mid position but no goalies?
Paraphrased question: What are the names of the schools with some players in the mid position but no goalies?
SQL: SELECT cName FROM  tryout WHERE pPos  =  'mid' EXCEPT SELECT cName FROM  tryout WHERE pPos  =  'goalie'
Database: soccer_2
Question: Find the names of states that have some college students playing in the mid position but not in the goalie position.
Paraphrased question: Find the names of states that have some school students playing in the mid position but not in the goalie position.
SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie'
Database: soccer_2
Question: What are the names of all the states with college students playing in the mid position but no goalies?
Paraphrased question: What are the names of all the states with school students playing in the mid position but no goalies?
SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie'
Database: soccer_2
Question: How many states that have some college students playing in the mid position but not in the goalie position.
Paraphrased question: How many states that have some college students playing in the mid position but not in the goalie position.
SQL: SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie')
Database: soccer_2
Question: What is the count of states with college students playing in the mid position but not as goalies?
Paraphrased question: What is the count of states with school students playing in the mid position but not as goalies?
SQL: SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie')
Database: soccer_2
Question: Find the states where have the colleges whose enrollments are less than the largest size.
Paraphrased question: Find the states where have the schools whose enrollments are less than the largest size.
SQL: SELECT DISTINCT state FROM college WHERE enr  <  (SELECT max(enr) FROM college)
Database: soccer_2
Question: What are the states with colleges that have enrollments less than the some other college?
Paraphrased question: What are the states with schools that have enrollments less than the some other school?
SQL: SELECT DISTINCT state FROM college WHERE enr  <  (SELECT max(enr) FROM college)
Database: soccer_2
Question: Find names of colleges with enrollment greater than that of some (at least one) college in the FL state.
Paraphrased question: Find names of schools with enrollment greater than that of some (at least one) school in the FL state.
SQL: SELECT DISTINCT cName FROM college WHERE enr  >  (SELECT min(enr) FROM college WHERE state  =  'FL')
Database: soccer_2
Question: What are the names of the colleges that are larger than at least one college in Florida?
Paraphrased question: What are the names of the schools that are larger than at least one school in Florida?
SQL: SELECT DISTINCT cName FROM college WHERE enr  >  (SELECT min(enr) FROM college WHERE state  =  'FL')
Database: soccer_2
Question: Find names of all colleges whose enrollment is greater than that of all colleges in the FL state.
Paraphrased question: Find names of all schools whose enrollment is greater than that of all schools in the FL state.
SQL: SELECT cName FROM college WHERE enr  >  (SELECT max(enr) FROM college WHERE state  =  'FL')
Database: soccer_2
Question: What are the names of all colleges with a larger enrollment than the largest college in Florida?
Paraphrased question: What are the names of all schools with a larger enrollment than the largest school in Florida?
SQL: SELECT cName FROM college WHERE enr  >  (SELECT max(enr) FROM college WHERE state  =  'FL')
Database: soccer_2
Question: What is the total number of enrollment of schools that do not have any goalie player?
Paraphrased question: What is the total number of student enrolled in schools that do not have any goalie player?
SQL: SELECT sum(enr) FROM college WHERE cName NOT IN (SELECT cName FROM tryout WHERE pPos  =  "goalie")
Database: soccer_2
Question: What is the total number of students enrolled in schools without any goalies?
Paraphrased question: What is the total number of students enrolled in schools without any goalies?
SQL: SELECT sum(enr) FROM college WHERE cName NOT IN (SELECT cName FROM tryout WHERE pPos  =  "goalie")
Database: soccer_2
Question: What is the number of states that has some college whose enrollment is larger than the average enrollment?
Paraphrased question: What is the number of states that has some school whose enrollment is larger than the average enrollment?
SQL: SELECT count(DISTINCT state) FROM college WHERE enr  >  (SELECT avg(enr) FROM college)
Database: soccer_2
Question: How many states have a college with more students than average?
Paraphrased question: How many states have a school with more students than average?
SQL: SELECT count(DISTINCT state) FROM college WHERE enr  >  (SELECT avg(enr) FROM college)
Database: soccer_2
Question: What is the number of states that has some colleges whose enrollment is smaller than the average enrollment?
Paraphrased question: What is the number of states that has some schools whose enrollment is smaller than the average enrollment?
SQL: SELECT count(DISTINCT state) FROM college WHERE enr  <  (SELECT avg(enr) FROM college)
Database: soccer_2
Question: How many states have smaller colleges than average?
Paraphrased question: How many states have smaller schools than average?
SQL: SELECT count(DISTINCT state) FROM college WHERE enr  <  (SELECT avg(enr) FROM college)
Database: device
Question: How many devices are there?
Paraphrased question: How many equipments are there?
SQL: SELECT count(*) FROM device
Database: device
Question: Count the number of devices.
Paraphrased question: Count the number of equipments.
SQL: SELECT count(*) FROM device
Database: device
Question: List the carriers of devices in ascending alphabetical order.
Paraphrased question: List the carriers of equipments in ascending alphabetical order.
SQL: SELECT Carrier FROM device ORDER BY Carrier ASC
Database: device
Question: What are the different carriers for devices, listed in alphabetical order?
Paraphrased question: What are the different carriers for equipments, listed in alphabetical order?
SQL: SELECT Carrier FROM device ORDER BY Carrier ASC
Database: device
Question: What are the carriers of devices whose software platforms are not "Android"?
Paraphrased question: What are the carriers of equipments whose software platforms are not "Android"?
SQL: SELECT Carrier FROM device WHERE Software_Platform != 'Android'
Database: device
Question: Return the device carriers that do not have Android as their software platform.
Paraphrased question: Return the equipment carriers that do not have Android as their software platform.
SQL: SELECT Carrier FROM device WHERE Software_Platform != 'Android'
Database: device
Question: What are the names of shops in ascending order of open year?
Paraphrased question: What are the names of stores in ascending order of open year?
SQL: SELECT Shop_Name FROM shop ORDER BY Open_Year ASC
Database: device
Question: Return the names of shops, ordered by year of opening ascending.
Paraphrased question: Return the names of stores, ordered by year of opening ascending.
SQL: SELECT Shop_Name FROM shop ORDER BY Open_Year ASC
Database: device
Question: What is the average quantity of stocks?
Paraphrased question: What is the average amount of stocks?
SQL: SELECT avg(Quantity) FROM stock
Database: device
Question: Give the average quantity of stocks.
Paraphrased question: Give the average amount of stocks.
SQL: SELECT avg(Quantity) FROM stock
Database: device
Question: What are the names and location of the shops in ascending alphabetical order of name.
Paraphrased question: What are the names and position of the stores in ascending alphabetical order of name.
SQL: SELECT Shop_Name ,  LOCATION FROM shop ORDER BY Shop_Name ASC
Database: device
Question: Return the names and locations of shops, ordered by name in alphabetical order.
Paraphrased question: Return the names and positions of stores, ordered by name in alphabetical order.
SQL: SELECT Shop_Name ,  LOCATION FROM shop ORDER BY Shop_Name ASC
Database: device
Question: How many different software platforms are there for devices?
Paraphrased question: How many different software platforms are there for equipments?
SQL: SELECT count(DISTINCT Software_Platform) FROM device
Database: device
Question: Count the number of different software platforms.
Paraphrased question: Count the number of different software platforms.
SQL: SELECT count(DISTINCT Software_Platform) FROM device
Database: device
Question: List the open date of open year of the shop named "Apple".
Paraphrased question: List the start day of start year of the store named "Apple".
SQL: SELECT Open_Date ,  Open_Year FROM shop WHERE Shop_Name  =  "Apple"
Database: device
Question: What are the open dates and years for the shop named Apple?
Paraphrased question: What are the start days and years for the store named Apple?
SQL: SELECT Open_Date ,  Open_Year FROM shop WHERE Shop_Name  =  "Apple"
Database: device
Question: List the name of the shop with the latest open year.
Paraphrased question: List the name of the store with the latest start year.
SQL: SELECT Shop_Name FROM shop ORDER BY Open_Year DESC LIMIT 1
Database: device
Question: What is the shop name corresponding to the shop that opened in the most recent year?
Paraphrased question: What is the store name corresponding to the shop that opened in the most recent year?
SQL: SELECT Shop_Name FROM shop ORDER BY Open_Year DESC LIMIT 1
Database: device
Question: Show names of shops and the carriers of devices they have in stock.
Paraphrased question: Show names of stores and the carriers of devices they have in stock.
SQL: SELECT T3.Shop_Name ,  T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID  =  T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID  =  T3.Shop_ID
Database: device
Question: What are the names of device shops, and what are the carriers that they carry devices in stock for?
Paraphrased question: What are the names of device stores, and what are the carriers that they carry devices in stock for?
SQL: SELECT T3.Shop_Name ,  T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID  =  T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID  =  T3.Shop_ID
Database: device
Question: Show names of shops that have more than one kind of device in stock.
Paraphrased question: Show names of stores that have more than one kind of device in stock.
SQL: SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID HAVING COUNT(*)  >  1
Database: device
Question: What are the names of shops that have more than a single kind of device in stock?
Paraphrased question: What are the names of stores that have more than a single kind of device in stock?
SQL: SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID HAVING COUNT(*)  >  1
Database: device
Question: Show the name of the shop that has the most kind of devices in stock.
Paraphrased question: Show the name of the store that has the most kind of devices in stock.
SQL: SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT(*) DESC LIMIT 1
Database: device
Question: What is the name of the shop that has the most different kinds of devices in stock?
Paraphrased question: What is the name of the store that has the most different kinds of devices in stock?
SQL: SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT(*) DESC LIMIT 1
Database: device
Question: Show the name of the shop that have the largest quantity of devices in stock.
Paraphrased question: Show the name of the store that have the largest quantity of devices in stock.
SQL: SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM(T1.quantity) DESC LIMIT 1
Database: device
Question: What is the name of the shop that has the greatest quantity of devices in stock?
Paraphrased question: What is the name of the store that has the greatest amount of devices in stock?
SQL: SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM(T1.quantity) DESC LIMIT 1
Database: device
Question: Please show different software platforms and the corresponding number of devices using each.
Paraphrased question: Please show different software platforms and the corresponding number of equipments using each.
SQL: SELECT Software_Platform ,  COUNT(*) FROM device GROUP BY Software_Platform
Database: device
Question: What are the different software platforms for devices, and how many devices have each?
Paraphrased question: What are the different software platforms for equipments, and how many equipments have each?
SQL: SELECT Software_Platform ,  COUNT(*) FROM device GROUP BY Software_Platform
Database: device
Question: Please show the software platforms of devices in descending order of the count.
Paraphrased question: Please show the software platforms of equipments in descending order of the count.
SQL: SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC
Database: device
Question: What are the different software platforms for devices, ordered by frequency descending?
Paraphrased question: What are the different software platforms for equipments, ordered by frequency descending?
SQL: SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC
Database: device
Question: List the software platform shared by the greatest number of devices.
Paraphrased question: List the software platform shared by the greatest number of equipments.
SQL: SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC LIMIT 1
Database: device
Question: What is the software platform that is most common amongst all devices?
Paraphrased question: What is the software platform that is most common amongst all equipments?
SQL: SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC LIMIT 1
Database: device
Question: List the names of shops that have no devices in stock.
Paraphrased question: List the names of stores that have no devices in stock.
SQL: SELECT Shop_Name FROM shop WHERE Shop_ID NOT IN (SELECT Shop_ID FROM stock)
Database: device
Question: What are the names of shops that do not have any devices in stock?
Paraphrased question: What are the names of stores that do not have any devices in stock?
SQL: SELECT Shop_Name FROM shop WHERE Shop_ID NOT IN (SELECT Shop_ID FROM stock)
Database: device
Question: Show the locations shared by shops with open year later than 2012 and shops with open year before 2008.
Paraphrased question: Show the positions shared by stores with open year later than 2012 and stores with open year before 2008.
SQL: SELECT LOCATION FROM shop WHERE Open_Year  >  2012 INTERSECT SELECT LOCATION FROM shop WHERE Open_Year  <  2008
Database: device
Question: Which locations contains both shops that opened after the year 2012 and shops that opened before 2008?
Paraphrased question: Which positions contains both stores that opened after the year 2012 and stores that opened before 2008?
SQL: SELECT LOCATION FROM shop WHERE Open_Year  >  2012 INTERSECT SELECT LOCATION FROM shop WHERE Open_Year  <  2008
Database: device
Question: List the carriers of devices that have no devices in stock.
Paraphrased question: List the carriers of equipments that have no equipments in stock.
SQL: SELECT Carrier FROM device WHERE Device_ID NOT IN (SELECT Device_ID FROM stock)
Database: device
Question: What are the carriers of devices that are not in stock anywhere?
Paraphrased question: What are the carriers of equipments that are not in stock anywhere?
SQL: SELECT Carrier FROM device WHERE Device_ID NOT IN (SELECT Device_ID FROM stock)
Database: device
Question: Show the carriers of devices in stock at more than one shop.
Paraphrased question: Show the carriers of equipments in stock at more than one shop.
SQL: SELECT T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID  =  T2.Device_ID GROUP BY T1.Device_ID HAVING COUNT(*)  >  1
Database: device
Question: What are the carriers of devices that are in stock in more than a single shop?
Paraphrased question: What are the carriers of equipments that are in stock in more than a single shop?
SQL: SELECT T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID  =  T2.Device_ID GROUP BY T1.Device_ID HAVING COUNT(*)  >  1
Database: cre_Drama_Workshop_Groups
Question: How many bookings do we have?
Paraphrased question: How many reservations do we have?
SQL: SELECT count(*) FROM BOOKINGS
Database: cre_Drama_Workshop_Groups
Question: Count the total number of bookings made.
Paraphrased question: Count the total number of reservations made.
SQL: SELECT count(*) FROM BOOKINGS
Database: cre_Drama_Workshop_Groups
Question: List the order dates of all the bookings.
Paraphrased question: List the order dates of all the reservations.
SQL: SELECT Order_Date FROM BOOKINGS
Database: cre_Drama_Workshop_Groups
Question: What is the order date of each booking?
Paraphrased question: What is the order date of each reservation?
SQL: SELECT Order_Date FROM BOOKINGS
Database: cre_Drama_Workshop_Groups
Question: Show all the planned delivery dates and actual delivery dates of bookings.
Paraphrased question: Show all the scheduled delivery days and actual delivery days of reservations.
SQL: SELECT Planned_Delivery_Date ,  Actual_Delivery_Date FROM BOOKINGS
Database: cre_Drama_Workshop_Groups
Question: What are the planned delivery date and actual delivery date for each booking?
Paraphrased question: What are the scheduled delivery day and actual delivery day for each reservation?
SQL: SELECT Planned_Delivery_Date ,  Actual_Delivery_Date FROM BOOKINGS
Database: cre_Drama_Workshop_Groups
Question: How many customers do we have?
Paraphrased question: How many clients do we have?
SQL: SELECT count(*) FROM CUSTOMERS
Database: cre_Drama_Workshop_Groups
Question: Count the number of customers recorded.
Paraphrased question: Count the number of clients recorded.
SQL: SELECT count(*) FROM CUSTOMERS
Database: cre_Drama_Workshop_Groups
Question: What are the phone and email for customer Harold?
Paraphrased question: What are the telephone and email for client Harold?
SQL: SELECT Customer_Phone ,  Customer_Email_Address FROM CUSTOMERS WHERE Customer_Name  =  "Harold"
Database: cre_Drama_Workshop_Groups
Question: Find the phone number and email address of customer "Harold".
Paraphrased question: Find the telephone number and email address of client "Harold".
SQL: SELECT Customer_Phone ,  Customer_Email_Address FROM CUSTOMERS WHERE Customer_Name  =  "Harold"
Database: cre_Drama_Workshop_Groups
Question: Show all the Store_Name of drama workshop groups.
Paraphrased question: Show all the shop name of drama workshop groups.
SQL: SELECT Store_Name FROM Drama_Workshop_Groups
Database: cre_Drama_Workshop_Groups
Question: What are the store names of drama workshop groups?
Paraphrased question: What are the store names of drama workshop groups?
SQL: SELECT Store_Name FROM Drama_Workshop_Groups
Database: cre_Drama_Workshop_Groups
Question: Show the minimum, average, maximum order quantity of all invoices.
Paraphrased question: Show the minimum, average, maximum number of order of all invoices.
SQL: SELECT min(Order_Quantity) ,  avg(Order_Quantity) ,  max(Order_Quantity) FROM INVOICES
Database: cre_Drama_Workshop_Groups
Question: What are the minimum, average, and maximum quantities ordered? Check all the invoices.
Paraphrased question: What are the minimum, average, and maximum quantities ordered? Check all the invoices.
SQL: SELECT min(Order_Quantity) ,  avg(Order_Quantity) ,  max(Order_Quantity) FROM INVOICES
Database: cre_Drama_Workshop_Groups
Question: What are the distinct payment method codes in all the invoices?
Paraphrased question: What are the different payment method codes in all the invoices?
SQL: SELECT DISTINCT payment_method_code FROM INVOICES
Database: cre_Drama_Workshop_Groups
Question: Show me the distinct payment method codes from the invoice record.
Paraphrased question: Show me the different payment method codes from the invoice record.
SQL: SELECT DISTINCT payment_method_code FROM INVOICES
Database: cre_Drama_Workshop_Groups
Question: What is the description of the marketing region China?
Paraphrased question: What is the describing content of the China market district?
SQL: SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name  =  "China"
Database: cre_Drama_Workshop_Groups
Question: Find the marketing region description of China?
Paraphrased question: Find the marketing district description of China?
SQL: SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name  =  "China"
Database: cre_Drama_Workshop_Groups
Question: Show all the distinct product names with price higher than the average.
Paraphrased question: Show all the different goods names with price higher than the average.
SQL: SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price  >  (SELECT avg(Product_Price) FROM PRODUCTS)
Database: cre_Drama_Workshop_Groups
Question: What are the distinct names of the products that cost more than the average?
Paraphrased question: What are the different names of the goods that cost more than the average?
SQL: SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price  >  (SELECT avg(Product_Price) FROM PRODUCTS)
Database: cre_Drama_Workshop_Groups
Question: What is the name of the most expensive product?
Paraphrased question: What is the name of the most expensive goods?
SQL: SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1
Database: cre_Drama_Workshop_Groups
Question: Tell me the name of the most pricy product.
Paraphrased question: Tell me the name of the most pricy goods.
SQL: SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1
Database: cre_Drama_Workshop_Groups
Question: List all product names in ascending order of price.
Paraphrased question: List all goods names in ascending order of price.
SQL: SELECT Product_Name FROM Products ORDER BY Product_Price ASC
Database: cre_Drama_Workshop_Groups
Question: Sort the names of products in ascending order of their price.
Paraphrased question: Sort the names of goods in ascending order of their price.
SQL: SELECT Product_Name FROM Products ORDER BY Product_Price ASC
Database: cre_Drama_Workshop_Groups
Question: What is the phone number of the performer Ashley?
Paraphrased question: What is the telephone number of the performer Ashley?
SQL: SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name  =  "Ashley"
Database: cre_Drama_Workshop_Groups
Question: Find the phone number of performer "Ashley".
Paraphrased question: Find the telephone number of performer "Ashley".
SQL: SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name  =  "Ashley"
Database: cre_Drama_Workshop_Groups
Question: Show all payment method codes and the number of orders for each code.
Paraphrased question: Show all payment method codes and the number of orders for each code.
SQL: SELECT payment_method_code ,  count(*) FROM INVOICES GROUP BY payment_method_code
Database: cre_Drama_Workshop_Groups
Question: List the distinct payment method codes with the number of orders made
Paraphrased question: List the distinct payment method codes with the number of orders made
SQL: SELECT payment_method_code ,  count(*) FROM INVOICES GROUP BY payment_method_code
Database: cre_Drama_Workshop_Groups
Question: What is the payment method code used by the most orders?
Paraphrased question: What is the payment method code used by the most orders?
SQL: SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1
Database: cre_Drama_Workshop_Groups
Question: Find the payment method that is used the most often in all the invoices. Give me its code.
Paraphrased question: Find the payment method that is used the most often in all the invoices. Give me its code.
SQL: SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1
Database: cre_Drama_Workshop_Groups
Question: Which city is the address of the store named "FJA Filming" located in?
Paraphrased question: Which city is the location of the store named "FJA Filming" located in?
SQL: SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T2.Store_Name  =  "FJA Filming"
Database: cre_Drama_Workshop_Groups
Question: Find the city the store named "FJA Filming" is in.
Paraphrased question: Find the city the store named "FJA Filming" is in.
SQL: SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T2.Store_Name  =  "FJA Filming"
Database: cre_Drama_Workshop_Groups
Question: What are the states or counties of the address of the stores with marketing region code "CA"?
Paraphrased question: What are the states or counties of the location of the stores with marketing region code "CA"?
SQL: SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T2.Marketing_Region_Code  =  "CA"
Database: cre_Drama_Workshop_Groups
Question: Find the states or counties where the stores with marketing region code "CA" are located.
Paraphrased question: Find the states or counties where the stores with marketing region code "CA" are located.
SQL: SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T2.Marketing_Region_Code  =  "CA"
Database: cre_Drama_Workshop_Groups
Question: What is the name of the marketing region that the store Rob Dinning belongs to?
Paraphrased question: What is the name of the marketing district that the store Rob Dinning belongs to?
SQL: SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code  =  T2.Marketing_Region_Code WHERE T2.Store_Name  =  "Rob Dinning"
Database: cre_Drama_Workshop_Groups
Question: Return the name of the marketing region the store Rob Dinning is located in.
Paraphrased question: Return the name of the marketing district the store Rob Dinning is located in.
SQL: SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code  =  T2.Marketing_Region_Code WHERE T2.Store_Name  =  "Rob Dinning"
Database: cre_Drama_Workshop_Groups
Question: What are the descriptions of the service types with product price above 100?
Paraphrased question: What are the describing details of the service types with goods price above 100?
SQL: SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code WHERE T2.Product_Price  >  100
Database: cre_Drama_Workshop_Groups
Question: Give me the descriptions of the service types that cost more than 100.
Paraphrased question: Give me the describing details of the service types that cost more than 100.
SQL: SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code WHERE T2.Product_Price  >  100
Database: cre_Drama_Workshop_Groups
Question: What is the description, code and the corresponding count of each service type?
Paraphrased question: What is the describing content, code and the corresponding count of each service type?
SQL: SELECT T1.Service_Type_Description ,  T2.Service_Type_Code ,  COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T2.Service_Type_Code
Database: cre_Drama_Workshop_Groups
Question: List the description, code and the number of services for each service type.
Paraphrased question: List the describing content, code and the number of services for each service type.
SQL: SELECT T1.Service_Type_Description ,  T2.Service_Type_Code ,  COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T2.Service_Type_Code
Database: cre_Drama_Workshop_Groups
Question: What is the description and code of the type of service that is performed the most often?
Paraphrased question: What is the describing content and code of the type of service that is performed the most often?
SQL: SELECT T1.Service_Type_Description , T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1
Database: cre_Drama_Workshop_Groups
Question: Find the description and code of the service type that is performed the most times.
Paraphrased question: Find the describing content and code of the service type that is performed the most times.
SQL: SELECT T1.Service_Type_Description , T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1
Database: cre_Drama_Workshop_Groups
Question: What are the phones and emails of workshop groups in which services are performed?
Paraphrased question: What are the telephones and emails of workshop groups in which services are performed?
SQL: SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID
Database: cre_Drama_Workshop_Groups
Question: Give me all the phone numbers and email addresses of the workshop groups where services are performed.
Paraphrased question: Give me all the telephone numbers and email addresses of the workshop groups where services are performed.
SQL: SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID
Database: cre_Drama_Workshop_Groups
Question: What are the names of workshop groups in which services with product name "film" are performed?
Paraphrased question: What are the names of workshop groups in which services with goods name "film" are performed?
SQL: SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID WHERE T2.Product_Name  =  "film"
Database: cre_Drama_Workshop_Groups
Question: Find the names of the workshop groups where services with product name "film" are performed.
Paraphrased question: Find the names of the workshop groups where services with goods name "film" are performed.
SQL: SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID WHERE T2.Product_Name  =  "film"
Database: cre_Drama_Workshop_Groups
Question: What are the different product names? What is the average product price for each of them?
Paraphrased question: What are the different goods names? What is the average goods price for each of them?
SQL: SELECT Product_Name ,  avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name
Database: cre_Drama_Workshop_Groups
Question: For each distinct product name, show its average product price.
Paraphrased question: For each different goods name, show its average goods price.
SQL: SELECT Product_Name ,  avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name
Database: cre_Drama_Workshop_Groups
Question: What are the product names with average product price smaller than 1000000?
Paraphrased question: What are the goods names with average goods price smaller than 1000000?
SQL: SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price)  <  1000000
Database: cre_Drama_Workshop_Groups
Question: Find the product names whose average product price is below 1000000.
Paraphrased question: Find the goods names whose average goods price is below 1000000.
SQL: SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price)  <  1000000
Database: cre_Drama_Workshop_Groups
Question: What are the total order quantities of photo products?
Paraphrased question: What are the total number of order of photo goods?
SQL: SELECT sum(T1.Order_Quantity) FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID  =  T2.Product_ID WHERE T2.Product_Name  =  "photo"
Database: cre_Drama_Workshop_Groups
Question: Compute the total order quantities of the product "photo".
Paraphrased question: Compute the total number of order of the goods "photo".
SQL: SELECT sum(T1.Order_Quantity) FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID  =  T2.Product_ID WHERE T2.Product_Name  =  "photo"