aherntech/spider-syn huggingface dataset:
Database: wine_1
Question: Which winery is the wine that has the highest score from?
Paraphrased question: Which wine-making establishment is the alcoholic drink that has the highest score from?
SQL: SELECT Winery FROM WINE ORDER BY SCORE LIMIT 1
Database: wine_1
Question: What is the winery at which the wine with the highest score was made?
Paraphrased question: What is the wine-making establishment at which the alcoholic drink with the highest score was made?
SQL: SELECT Winery FROM WINE ORDER BY SCORE LIMIT 1
Database: wine_1
Question: Find the names of all wines produced in 2008.
Paraphrased question: Find the names of all alcoholic drink produced in 2008.
SQL: SELECT Name FROM WINE WHERE YEAR  =  "2008"
Database: wine_1
Question: What are the names of all wines produced in 2008?
Paraphrased question: What are the names of all alcoholic drink produced in 2008?
SQL: SELECT Name FROM WINE WHERE YEAR  =  "2008"
Database: wine_1
Question: List the grapes and appelations of all wines.
Paraphrased question: List the grapes and grown places of all wines.
SQL: SELECT Grape ,  Appelation FROM WINE
Database: wine_1
Question: What are the grapes and appelations of each wine?
Paraphrased question: What are the grapes and grown places of each wine?
SQL: SELECT Grape ,  Appelation FROM WINE
Database: wine_1
Question: List the names and scores of all wines.
Paraphrased question: List the names and scores of all alcoholic drink.
SQL: SELECT Name ,  Score FROM WINE
Database: wine_1
Question: What are the names and scores of all wines?
Paraphrased question: What are the names and scores of all alcoholic drink?
SQL: SELECT Name ,  Score FROM WINE
Database: wine_1
Question: List the area and county of all appelations.
Paraphrased question: List the district and county of all grown places.
SQL: SELECT Area ,  County FROM APPELLATIONS
Database: wine_1
Question: What are the areas and counties for all appelations?
Paraphrased question: What are the districts and counties for all grown places?
SQL: SELECT Area ,  County FROM APPELLATIONS
Database: wine_1
Question: What are the prices of wines produced before the year of 2010?
Paraphrased question: What are the prices of alcoholic drink produced before the year of 2010?
SQL: SELECT Price FROM WINE WHERE YEAR  <  2010
Database: wine_1
Question: Return the prices of wines produced before 2010.
Paraphrased question: Return the prices of alcoholic drink produced before 2010.
SQL: SELECT Price FROM WINE WHERE YEAR  <  2010
Database: wine_1
Question: List the names of all distinct wines that have scores higher than 90.
Paraphrased question: List the names of all different alcoholic drink that have scores higher than 90.
SQL: SELECT Name FROM WINE WHERE score  >  90
Database: wine_1
Question: What are the names of wines with scores higher than 90?
Paraphrased question: What are the names of alcoholic drink with scores higher than 90?
SQL: SELECT Name FROM WINE WHERE score  >  90
Database: wine_1
Question: List the names of all distinct wines that are made of red color grape.
Paraphrased question: List the names of all different alcoholic drink that are made of red color grape.
SQL: SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "Red"
Database: wine_1
Question: What are the names of wines made from red grapes?
Paraphrased question: What are the names of alcoholic drink made from red grapes?
SQL: SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "Red"
Database: wine_1
Question: Find the names of all distinct wines that have appellations in North Coast area.
Paraphrased question: Find the names of all different alcoholic drink that have appellations in North Coast area.
SQL: SELECT DISTINCT T2.Name FROM APPELLATIONs AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.Area  =  "North Coast"
Database: wine_1
Question: What are the distinct names of wines that have appellations in the North Coast area?
Paraphrased question: What are the different names of alcoholic drink that have appellations in the North Coast area?
SQL: SELECT DISTINCT T2.Name FROM APPELLATIONs AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.Area  =  "North Coast"
Database: wine_1
Question: How many wines are produced at Robert Biale winery?
Paraphrased question: How many alcoholic drink are produced at Robert Biale winery?
SQL: SELECT count(*) FROM WINE WHERE Winery  =  "Robert Biale"
Database: wine_1
Question: Count the number of wines produced at Robert Biale winery.
Paraphrased question: Count the number of alcoholic drink produced at Robert Biale winery.
SQL: SELECT count(*) FROM WINE WHERE Winery  =  "Robert Biale"
Database: wine_1
Question: How many appelations are in Napa Country?
Paraphrased question: How many grown places are in Napa Country?
SQL: SELECT count(*) FROM APPELLATIONS WHERE County  =  "Napa"
Database: wine_1
Question: Count the number of appelations in Napa County.
Paraphrased question: Count the number of grown places in Napa County.
SQL: SELECT count(*) FROM APPELLATIONS WHERE County  =  "Napa"
Database: wine_1
Question: Give me the average prices of wines that are produced by appelations in Sonoma County.
Paraphrased question: Give me the average prices of wines that are produced by grown places in Sonoma County.
SQL: SELECT AVG(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  "Sonoma"
Database: wine_1
Question: What is the average price of wines produced in appelations in Sonoma County?
Paraphrased question: What is the average price of wines produced in grown places in Sonoma County?
SQL: SELECT AVG(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  "Sonoma"
Database: wine_1
Question: What are the names and scores of wines that are made of white color grapes?
Paraphrased question: What are the names and scores of wines that are made of white color grapes?
SQL: SELECT T2.Name ,   T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "White"
Database: wine_1
Question: Give the names and scores of wines made from white grapes.
Paraphrased question: Give the names and scores of wines made from white grapes.
SQL: SELECT T2.Name ,   T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "White"
Database: wine_1
Question: Find the maximum price of wins from the appelations in Central Coast area and produced before the year of 2005.
Paraphrased question: Find the maximum price of wins from the grown places in Central Coast area and produced before the year of 2005.
SQL: SELECT max(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.Area  =  "Central Coast" AND T2.year  <  2005
Database: wine_1
Question: What is the maximum price of wines from the appelation in the Central Coast area, which was produced before 2005?
Paraphrased question: What is the maximum price of wines from the grown place in the Central Coast area, which was produced before 2005?
SQL: SELECT max(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.Area  =  "Central Coast" AND T2.year  <  2005
Database: wine_1
Question: Find the the grape whose white color grapes are used to produce wines with scores higher than 90.
Paraphrased question: Find the the grape whose white color grapes are used to produce wines with scores higher than 90.
SQL: SELECT DISTINCT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "White" AND T2.score  >  90
Database: wine_1
Question: Find the white grape used to produce wines with scores above 90.
Paraphrased question: Find the white grape used to produce wines with scores above 90.
SQL: SELECT DISTINCT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "White" AND T2.score  >  90
Database: wine_1
Question: What are the wines that have prices higher than 50 and made of Red color grapes?
Paraphrased question: What are the wines that have prices higher than 50 and made of Red color grapes?
SQL: SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "Red" AND T2.price  >  50
Database: wine_1
Question: What are the names of wines made from red grapes and with prices above 50?
Paraphrased question: What are the names of wines made from red grapes and with prices above 50?
SQL: SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "Red" AND T2.price  >  50
Database: wine_1
Question: What are the wines that have prices lower than 50 and have appelations in Monterey county?
Paraphrased question: What are the wines that have prices lower than 50 and have grown places in Monterey county?
SQL: SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  "Monterey" AND T2.price  <  50
Database: wine_1
Question: Give the neames of wines with prices below 50 and with appelations in Monterey county.
Paraphrased question: Give the neames of wines with prices below 50 and with grown places in Monterey county.
SQL: SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  "Monterey" AND T2.price  <  50
Database: wine_1
Question: What are the numbers of wines for different grapes?
Paraphrased question: What are the numbers of alcoholic drink for different grapes?
SQL: SELECT count(*) ,  Grape FROM WINE GROUP BY Grape
Database: wine_1
Question: How many wines are there for each grape?
Paraphrased question: How many alcoholic drink are there for each grape?
SQL: SELECT count(*) ,  Grape FROM WINE GROUP BY Grape
Database: wine_1
Question: What are the average prices of wines for different years?
Paraphrased question: What are the average prices of alcoholic drink for different years?
SQL: SELECT avg(Price) ,  YEAR FROM WINE GROUP BY YEAR
Database: wine_1
Question: What is the average prices of wines for each each?
Paraphrased question: What is the average prices of alcoholic drink for each each?
SQL: SELECT avg(Price) ,  YEAR FROM WINE GROUP BY YEAR
Database: wine_1
Question: Find the distinct names of all wines that have prices higher than some wines from John Anthony winery.
Paraphrased question: Find the different names of all alcoholic drink that have prices higher than some alcoholic drink from John Anthony winery.
SQL: SELECT DISTINCT Name FROM WINE WHERE Price  >  (SELECT min(Price) FROM wine WHERE Winery  =  "John Anthony")
Database: wine_1
Question: What are the distinct names of wines with prices higher than any wine from John Anthony winery.
Paraphrased question: What are the different names of alcoholic drink with prices higher than any alcoholic drink from John Anthony winery.
SQL: SELECT DISTINCT Name FROM WINE WHERE Price  >  (SELECT min(Price) FROM wine WHERE Winery  =  "John Anthony")
Database: wine_1
Question: List the names of all distinct wines in alphabetical order.
Paraphrased question: List the names of all different alcoholic drink in alphabetical order.
SQL: SELECT DISTINCT Name FROM WINE ORDER BY Name
Database: wine_1
Question: What are the names of wines, sorted in alphabetical order?
Paraphrased question: What are the names of alcoholic drink, sorted in alphabetical order?
SQL: SELECT DISTINCT Name FROM WINE ORDER BY Name
Database: wine_1
Question: List the names of all distinct wines ordered by price.
Paraphrased question: List the names of all different alcoholic drink ordered by price.
SQL: SELECT DISTINCT Name FROM WINE ORDER BY price
Database: wine_1
Question: What are the names of wines, sorted by price ascending?
Paraphrased question: What are the names of alcoholic drink, sorted by price ascending?
SQL: SELECT DISTINCT Name FROM WINE ORDER BY price
Database: wine_1
Question: What is the area of the appelation that produces the highest number of wines before the year of 2010?
Paraphrased question: What is the district of the grown place that produces the highest number of wines before the year of 2010?
SQL: SELECT T1.Area FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation GROUP BY T2.Appelation HAVING T2.year  <  2010 ORDER BY count(*) DESC LIMIT 1
Database: wine_1
Question: What is the area for the appelation which produced the most wines prior to 2010?
Paraphrased question: What is the district for the grown place which produced the most wines prior to 2010?
SQL: SELECT T1.Area FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation GROUP BY T2.Appelation HAVING T2.year  <  2010 ORDER BY count(*) DESC LIMIT 1
Database: wine_1
Question: What is the color of the grape whose wine products has the highest average price?
Paraphrased question: What is the colour of the grape whose wine products has the highest average price?
SQL: SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape GROUP BY T2.Grape ORDER BY AVG(Price) DESC LIMIT 1
Database: wine_1
Question: Give the color of the grape whose wine products have the highest average price?
Paraphrased question: Give the colour of the grape whose wine products have the highest average price?
SQL: SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape GROUP BY T2.Grape ORDER BY AVG(Price) DESC LIMIT 1
Database: wine_1
Question: Find the distinct names of wines produced before the year of 2000 or after the year of 2010.
Paraphrased question: Find the different names of alcoholic drink produced before the year of 2000 or after the year of 2010.
SQL: SELECT DISTINCT Name FROM WINE WHERE YEAR  <  2000 OR YEAR  >  2010
Database: wine_1
Question: Give the distinct names of wines made before 2000 or after 2010.
Paraphrased question: Give the different names of alcoholic drink made before 2000 or after 2010.
SQL: SELECT DISTINCT Name FROM WINE WHERE YEAR  <  2000 OR YEAR  >  2010
Database: wine_1
Question: Find the distinct winery of wines having price between 50 and 100.
Paraphrased question: Find the different wine-making establishment of wines having price between 50 and 100.
SQL: SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100
Database: wine_1
Question: What are the distinct wineries which produce wines costing between 50 and 100?
Paraphrased question: What are the different wine-making establishment which produce wines costing between 50 and 100?
SQL: SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100
Database: wine_1
Question: What are the average prices and cases of wines produced in the year of 2009 and made of Zinfandel grape?
Paraphrased question: What are the average prices and cases of wines produced in the year of 2009 and made of Zinfandel grape?
SQL: SELECT AVG(Price) ,  AVG(Cases) FROM WINE WHERE YEAR  =  2009 AND Grape  =  "Zinfandel"
Database: wine_1
Question: Give the average price and case of wines made from Zinfandel grapes in the year 2009.
Paraphrased question: Give the average price and case of wines made from Zinfandel grapes in the year 2009.
SQL: SELECT AVG(Price) ,  AVG(Cases) FROM WINE WHERE YEAR  =  2009 AND Grape  =  "Zinfandel"
Database: wine_1
Question: What are the maximum price and score of wines produced by St. Helena appelation?
Paraphrased question: What are the maximum price and score of alcoholic drink produced by St. Helena appelation?
SQL: SELECT max(Price) ,  max(Score) FROM WINE WHERE Appelation  =  "St. Helena"
Database: wine_1
Question: Give the maximum price and score for wines produced in the appelation St. Helena.
Paraphrased question: Give the maximum price and score for alcoholic drink produced in the appelation St. Helena.
SQL: SELECT max(Price) ,  max(Score) FROM WINE WHERE Appelation  =  "St. Helena"
Database: wine_1
Question: What are the maximum price and score of wines in each year?
Paraphrased question: What are the maximum price and score of alcoholic drink in each year?
SQL: SELECT max(Price) ,  max(Score) ,  YEAR FROM WINE GROUP BY YEAR
Database: wine_1
Question: What are the maximum price and score of wines for each year?
Paraphrased question: What are the maximum price and score of alcoholic drink for each year?
SQL: SELECT max(Price) ,  max(Score) ,  YEAR FROM WINE GROUP BY YEAR
Database: wine_1
Question: What are the average price and score of wines grouped by appelation?
Paraphrased question: What are the average price and score of alcoholic drink grouped by grown place?
SQL: SELECT avg(Price) ,  avg(Score) ,  Appelation FROM WINE GROUP BY Appelation
Database: wine_1
Question: What are the average price and score of wines for each appelation?
Paraphrased question: What are the average price and score of alcoholic drink for each grown place?
SQL: SELECT avg(Price) ,  avg(Score) ,  Appelation FROM WINE GROUP BY Appelation
Database: wine_1
Question: Find the wineries that have at least four wines.
Paraphrased question: Find the wine-making establishment that have at least four wines.
SQL: SELECT Winery FROM WINE GROUP BY Winery HAVING count(*)  >=  4
Database: wine_1
Question: Which wineries produce at least four wines?
Paraphrased question: Which wine-making establishment produce at least four wines?
SQL: SELECT Winery FROM WINE GROUP BY Winery HAVING count(*)  >=  4
Database: wine_1
Question: Find the country of all appelations who have at most three wines.
Paraphrased question: Find the nation of all grown places who have at most three wines.
SQL: SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation GROUP BY T2.Appelation HAVING count(*)  <=  3
Database: wine_1
Question: What are the countries for appelations with at most 3 wines?
Paraphrased question: What are the nations for grown places with at most 3 wines?
SQL: SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation GROUP BY T2.Appelation HAVING count(*)  <=  3
Database: wine_1
Question: What are the names of wines whose production year are before the year of all wines by Brander winery?
Paraphrased question: What are the names of alcoholic drink whose production year are before the year of all alcoholic drink by Brander winery?
SQL: SELECT Name FROM WINE WHERE YEAR  <  (SELECT min(YEAR) FROM WINE WHERE Winery  =  "Brander")
Database: wine_1
Question: What are the names of wines produced before any wine from the Brander winery?
Paraphrased question: What are the names of alcoholic drink produced before any alcoholic drink from the Brander winery?
SQL: SELECT Name FROM WINE WHERE YEAR  <  (SELECT min(YEAR) FROM WINE WHERE Winery  =  "Brander")
Database: wine_1
Question: What are the names of wines that are more expensive then all wines made in the year 2006?
Paraphrased question: What are the names of alcoholic drink that are more expensive then all alcoholic drink made in the year 2006?
SQL: SELECT Name FROM WINE WHERE Price  >  (SELECT max(Price) FROM WINE WHERE YEAR  =  2006)
Database: wine_1
Question: Give the names of wines with prices above any wine produced in 2006.
Paraphrased question: Give the names of alcoholic drink with prices above any alcoholic drink produced in 2006.
SQL: SELECT Name FROM WINE WHERE Price  >  (SELECT max(Price) FROM WINE WHERE YEAR  =  2006)
Database: wine_1
Question: Find the top 3 wineries with the greatest number of wines made of white color grapes.
Paraphrased question: Find the top 3 wine-making establishment with the greatest number of wines made of white color grapes.
SQL: SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE  =  T2.GRAPE WHERE T1.Color  =  "White" GROUP BY T2.Winery ORDER BY count(*) DESC LIMIT 3
Database: wine_1
Question: Which 3 wineries produce the most wines made from white grapes?
Paraphrased question: Which 3 wine-making establishment produce the most wines made from white grapes?
SQL: SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE  =  T2.GRAPE WHERE T1.Color  =  "White" GROUP BY T2.Winery ORDER BY count(*) DESC LIMIT 3
Database: wine_1
Question: List the grape, winery and year of the wines whose price is bigger than 100 ordered by year.
Paraphrased question: List the grape, wine-making establishment and year of the wines whose price is bigger than 100 ordered by year.
SQL: SELECT Grape ,  Winery ,  YEAR FROM WINE WHERE Price  >   100 ORDER BY YEAR
Database: wine_1
Question: What are the grapes, wineries and years for wines with price higher than 100, sorted by year?
Paraphrased question: What are the grapes, wine-making establishment and years for wines with price higher than 100, sorted by year?
SQL: SELECT Grape ,  Winery ,  YEAR FROM WINE WHERE Price  >   100 ORDER BY YEAR
Database: wine_1
Question: List the grape, appelation and name of wines whose score is higher than 93 ordered by Name.
Paraphrased question: List the grape, grown place and name of wines whose score is higher than 93 ordered by Name.
SQL: SELECT Grape ,  Appelation ,  Name FROM WINE WHERE Score  >  93 ORDER BY Name
Database: wine_1
Question: What are the grapes, appelations, and wines with scores above 93, sorted by Name?
Paraphrased question: What are the grapes, grown places, and wines with scores above 93, sorted by Name?
SQL: SELECT Grape ,  Appelation ,  Name FROM WINE WHERE Score  >  93 ORDER BY Name
Database: wine_1
Question: Find the appelations that produce wines after the year of 2008 but not in Central Coast area.
Paraphrased question: Find the grown places that produce wines after the year of 2008 but not in Central Coast area.
SQL: SELECT Appelation FROM WINE WHERE YEAR  >  2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area  =  "Central Coast"
Database: wine_1
Question: What are the appelations for wines produced after 2008 but not in the Central Coast area?
Paraphrased question: What are the grown places for wines produced after 2008 but not in the Central Coast area?
SQL: SELECT Appelation FROM WINE WHERE YEAR  >  2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area  =  "Central Coast"
Database: wine_1
Question: Find the average price of wines that are not produced from Sonoma county.
Paraphrased question: Find the average price of alcoholic drink that are not produced from Sonoma county.
SQL: SELECT avg(price) FROM wine WHERE Appelation NOT IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  'Sonoma')
Database: wine_1
Question: What is the average price for wines not produced in Sonoma county?
Paraphrased question: What is the average price for alcoholic drink not produced in Sonoma county?
SQL: SELECT avg(price) FROM wine WHERE Appelation NOT IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  'Sonoma')
Database: wine_1
Question: Find the county where produces the most number of wines with score higher than 90.
Paraphrased question: Find the county where produces the most number of wines with score higher than 90.
SQL: SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T2.Score  >  90 GROUP BY T1.County ORDER BY count(*) DESC LIMIT 1
Database: wine_1
Question: What is the county that produces the most wines scoring higher than 90?
Paraphrased question: What is the county that produces the most wines scoring higher than 90?
SQL: SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T2.Score  >  90 GROUP BY T1.County ORDER BY count(*) DESC LIMIT 1
Database: train_station
Question: How many train stations are there?
Paraphrased question: How many train terminals are there?
SQL: SELECT count(*) FROM station
Database: train_station
Question: Show the name, location, and number of platforms for all stations.
Paraphrased question: Show the name, city, and number of platforms for all terminals.
SQL: SELECT name ,  LOCATION ,  number_of_platforms FROM station
Database: train_station
Question: What are all locations of train stations?
Paraphrased question: What are all cities of train terminals?
SQL: SELECT DISTINCT LOCATION FROM station
Database: train_station
Question: Show the names and total passengers for all train stations not in London.
Paraphrased question: Show the names and total passengers for all train terminals not in London.
SQL: SELECT name ,  total_passengers FROM station WHERE LOCATION != 'London'
Database: train_station
Question: Show the names and main services for train stations that have the top three total number of passengers.
Paraphrased question: Show the names and main services for train terminals that have the top three total number of passengers.
SQL: SELECT name ,  main_services FROM station ORDER BY total_passengers DESC LIMIT 3
Database: train_station
Question: What is the average and maximum number of total passengers for train stations in London or Glasgow?
Paraphrased question: What is the average and maximum number of total passengers for train terminals in London or Glasgow?
SQL: SELECT avg(total_passengers) ,  max(total_passengers) FROM station WHERE LOCATION  =  'London' OR LOCATION  =  'Glasgow'
Database: train_station
Question: Show all locations and the total number of platforms and passengers for all train stations in each location.
Paraphrased question: Show all cities and the total number of platforms and passengers for all train terminals in each city.
SQL: SELECT LOCATION ,  sum(number_of_platforms) ,  sum(total_passengers) FROM station GROUP BY LOCATION
Database: train_station
Question: Show all locations that have train stations with at least 15 platforms and train stations with more than 25 total passengers.
Paraphrased question: Show all cities that have train terminals with at least 15 platforms and train terminals with more than 25 total passengers.
SQL: SELECT DISTINCT LOCATION FROM station WHERE number_of_platforms  >=  15 AND total_passengers  >  25
Database: train_station
Question: Show all locations which don't have a train station with at least 15 platforms.
Paraphrased question: Show all cities which don't have a train terminal with at least 15 platforms.
SQL: SELECT LOCATION FROM station EXCEPT SELECT LOCATION FROM station WHERE number_of_platforms  >=  15
Database: train_station
Question: Show the location with most number of train stations.
Paraphrased question: Show the city with most number of train terminals.
SQL: SELECT LOCATION FROM station GROUP BY LOCATION ORDER BY count(*) DESC LIMIT 1
Database: train_station
Question: Show the name, time, and service for all trains.
Paraphrased question: Show the name, time, and service for all trains.
SQL: SELECT name ,  TIME ,  service FROM train
Database: train_station
Question: Show the number of trains
Paraphrased question: Show the number of trains
SQL: SELECT count(*) FROM train
Database: train_station
Question: Show the name and service for all trains in order by time.
Paraphrased question: Show the name and service for all trains in order by time.
SQL: SELECT name ,  service FROM train ORDER BY TIME
Database: train_station
Question: Show the station name and number of trains in each station.
Paraphrased question: Show the terminal name and number of trains in each terminal.
SQL: SELECT T2.name ,  count(*) FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id GROUP BY T1.station_id
Database: train_station
Question: show the train name and station name for each train.
Paraphrased question: show the train name and terminal name for each train.
SQL: SELECT T2.name ,  T3.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id
Database: train_station
Question: Show all train names and times in stations in London in descending order by train time.
Paraphrased question: Show all train names and times in terminals in London in descending order by train time.
SQL: SELECT T3.name ,  T3.time FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T2.location  =  'London' ORDER BY T3.time DESC
Database: train_station
Question: Show the station name with greatest number of trains.
Paraphrased question: Show the terminal name with greatest number of trains.
SQL: SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id GROUP BY T1.station_id ORDER BY count(*) DESC LIMIT 1
Database: train_station
Question: Show the station name with at least two trains.
Paraphrased question: Show the terminal name with at least two trains.
SQL: SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id GROUP BY T1.station_id HAVING count(*)  >=  2
Database: train_station
Question: Show all locations with only 1 station.
Paraphrased question: Show all cities with only 1 station.
SQL: SELECT LOCATION FROM station GROUP BY LOCATION HAVING count(*)  =  1
Database: train_station
Question: Show station names without any trains.
Paraphrased question: Show terminal names without any trains.
SQL: SELECT name FROM station WHERE station_id NOT IN (SELECT station_id FROM train_station)
Database: train_station
Question: What are the names of the stations which serve both "Ananthapuri Express" and "Guruvayur Express" trains?
Paraphrased question: What are the names of the terminals which serve both "Ananthapuri Express" and "Guruvayur Express" trains?
SQL: SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T3.Name  =  "Ananthapuri Express" INTERSECT SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T3.Name  =  "Guruvayur Express"
Database: train_station
Question: Find the names of the trains that do not pass any station located in London.
Paraphrased question: Find the names of the trains that do not pass any terminal located in London.
SQL: SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id  =  T2.train_id WHERE T1.station_id NOT IN (SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id  =  T4.station_id WHERE t4.location  =  "London")
Database: train_station
Question: List the names and locations of all stations ordered by their yearly entry exit and interchange amounts.
Paraphrased question: List the names and cities of all stations ordered by their yearly entry exit and interchange amounts.
SQL: SELECT name ,  LOCATION FROM station ORDER BY Annual_entry_exit ,  Annual_interchanges
Database: driving_school
Question: List all vehicle id
Paraphrased question: List all vehicle id
SQL: SELECT vehicle_id FROM Vehicles;
Database: driving_school
Question: What are the ids of all vehicles?
Paraphrased question: What are the ids of all vehicles?
SQL: SELECT vehicle_id FROM Vehicles;
Database: driving_school
Question: How many vehicle in total?
Paraphrased question: How many vehicle in total?
SQL: SELECT count(*) FROM Vehicles;
Database: driving_school
Question: How many vehicles exist?
Paraphrased question: How many vehicles exist?
SQL: SELECT count(*) FROM Vehicles;
Database: driving_school
Question: Show the detail of vehicle with id 1.
Paraphrased question: Show the information of vehicle with id 1.
SQL: SELECT vehicle_details FROM Vehicles WHERE vehicle_id = 1;
Database: driving_school
Question: What are the details of the car with id 1?
Paraphrased question: What are the information of the car with id 1?
SQL: SELECT vehicle_details FROM Vehicles WHERE vehicle_id = 1;
Database: driving_school
Question: List the first name middle name and last name of all staff.
Paraphrased question: List the forename middle name and family name of all staff.
SQL: SELECT first_name ,  middle_name ,  last_name FROM Staff;
Database: driving_school
Question: What are the first, middle, and last names of all staff?
Paraphrased question: What are the forename, middle name, and surname of all staff?
SQL: SELECT first_name ,  middle_name ,  last_name FROM Staff;
Database: driving_school
Question: What is the birthday of the staff member with first name as Janessa and last name as Sawayn?
Paraphrased question: What is the birthday of the staff member with first name as Janessa and last name as Sawayn?
SQL: SELECT date_of_birth FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn";
Database: driving_school
Question: What is the date of birth for the staff member named Janessa Sawayn?
Paraphrased question: What is the birthday for the staff member named Janessa Sawayn?
SQL: SELECT date_of_birth FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn";
Database: driving_school
Question: When did the staff member with first name as Janessa and last name as Sawayn join the company?
Paraphrased question: When did the employee member with first name as Janessa and last name as Sawayn join the company?
SQL: SELECT date_joined_staff FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn";
Database: driving_school
Question: When did the staff member named Janessa Sawayn join the company?
Paraphrased question: When did the employee member named Janessa Sawayn join the company?
SQL: SELECT date_joined_staff FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn";
Database: driving_school
Question: When did the staff member with first name as Janessa and last name as Sawayn leave the company?
Paraphrased question: When did the employee member with first name as Janessa and last name as Sawayn leave the company?
SQL: SELECT date_left_staff FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn";
Database: driving_school
Question: When did the staff member Janessa Sawayn leave the company?
Paraphrased question: When did the employee member Janessa Sawayn leave the company?
SQL: SELECT date_left_staff FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn";
Database: driving_school
Question: How many staff have the first name Ludie?
Paraphrased question: How many employee have the forename Ludie?
SQL: SELECT count(*) FROM Staff WHERE first_name = "Ludie";
Database: driving_school
Question: How many employees have a first name of Ludie?
Paraphrased question: How many employees have a first name of Ludie?
SQL: SELECT count(*) FROM Staff WHERE first_name = "Ludie";
Database: driving_school
Question: What is the nickname of staff with first name as Janessa and last name as Sawayn?
Paraphrased question: What is the monicker of employee with first name as Janessa and last name as Sawayn?
SQL: SELECT nickname FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn";
Database: driving_school
Question: What is the nickname of the employee named Janessa Sawayn?
Paraphrased question: What is the monicker of the employee named Janessa Sawayn?
SQL: SELECT nickname FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn";
Database: driving_school
Question: How many staff in total?
Paraphrased question: How many employee in total?
SQL: SELECT count(*) FROM Staff;
Database: driving_school
Question: How many employees are there?
Paraphrased question: How many employees are there?
SQL: SELECT count(*) FROM Staff;
Database: driving_school
Question: Which city does staff with first name as Janessa and last name as Sawayn live?
Paraphrased question: Which city does employee with first name as Janessa and last name as Sawayn live?
SQL: SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn";
Database: driving_school
Question: In what city does Janessa Sawayn live?
Paraphrased question: In what city does Janessa Sawayn live?
SQL: SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn";
Database: driving_school
Question: Which country and state does staff with first name as Janessa and last name as Sawayn lived?
Paraphrased question: Which nation and state does staff with first name as Janessa and last name as Sawayn lived?
SQL: SELECT T1.country ,  T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn";
Database: driving_school
Question: In which country and state does Janessa Sawayn live?
Paraphrased question: In which nation and state does Janessa Sawayn live?
SQL: SELECT T1.country ,  T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn";
Database: driving_school
Question: How long is the total lesson time took by customer with first name as Rylan and last name as Goodwin?
Paraphrased question: How long is the total class time took by customer with first name as Rylan and last name as Goodwin?
SQL: SELECT sum(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = "Rylan" AND T2.last_name = "Goodwin";
Database: driving_school
Question: How long is the total lesson time took by the customer named Rylan Goodwin?
Paraphrased question: How long is the total class time took by the customer named Rylan Goodwin?
SQL: SELECT sum(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = "Rylan" AND T2.last_name = "Goodwin";
Database: driving_school
Question: What is the zip code of staff with first name as Janessa and last name as Sawayn lived?
Paraphrased question: What is the postal code of employee with first name as Janessa and last name as Sawayn lived?
SQL: SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn";
Database: driving_school
Question: What is the zip code of the hosue of the employee named Janessa Sawayn?
Paraphrased question: What is the postal code of the hosue of the employee named Janessa Sawayn?
SQL: SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn";
Database: driving_school
Question: How many staff live in state Georgia?
Paraphrased question: How many employee live in state Georgia?
SQL: SELECT count(*) FROM Addresses WHERE state_province_county = "Georgia";
Database: driving_school
Question: How many employees live in Georgia?
Paraphrased question: How many employees live in Georgia?
SQL: SELECT count(*) FROM Addresses WHERE state_province_county = "Georgia";
Database: driving_school
Question: Find out the first name and last name of staff lived in city Damianfort.
Paraphrased question: Find out the full name of staff lived in city Damianfort.
SQL: SELECT T2.first_name ,  T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = "Damianfort";
Database: driving_school
Question: What is the first and last name of all employees who live in the city Damianfort?
Paraphrased question: What is the forename and surname of all employees who live in the city Damianfort?
SQL: SELECT T2.first_name ,  T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = "Damianfort";
Database: driving_school
Question: Which city lives most of staffs? List the city name and number of staffs.
Paraphrased question: Which city lives most of employees? List the city name and number of employees.
SQL: SELECT T1.city ,  count(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY count(*) DESC LIMIT 1;
Database: driving_school
Question: In which city do the most employees live and how many of them live there?
Paraphrased question: In which city do the most employees live and how many of them live there?
SQL: SELECT T1.city ,  count(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY count(*) DESC LIMIT 1;
Database: driving_school
Question: List the states which have between 2 to 4 staffs living there.
Paraphrased question: List the states which have between 2 to 4 employees living there.
SQL: SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING count(*) BETWEEN 2 AND 4;
Database: driving_school
Question: What are the names of the states that have 2 to 4 employees living there?
Paraphrased question: What are the names of the states that have 2 to 4 employees living there?
SQL: SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING count(*) BETWEEN 2 AND 4;
Database: driving_school
Question: List the first name and last name of all customers.
Paraphrased question: List the forename and family name of all customers.
SQL: SELECT first_name ,  last_name FROM Customers;
Database: driving_school
Question: What are the first and last names for all customers?
Paraphrased question: What are the forename and family names for all customers?
SQL: SELECT first_name ,  last_name FROM Customers;
Database: driving_school
Question: List email address and birthday of customer whose first name as Carole.
Paraphrased question: List email address and birthday of customer whose first name as Carole.
SQL: SELECT email_address ,  date_of_birth FROM Customers WHERE first_name = "Carole"
Database: driving_school
Question: What are the email addresses and date of births for all customers who have a first name of Carole?
Paraphrased question: What are the email addresses and birthdays for all customers who have a first name of Carole?
SQL: SELECT email_address ,  date_of_birth FROM Customers WHERE first_name = "Carole"
Database: driving_school
Question: List phone number and email address of customer with more than 2000 outstanding balance.
Paraphrased question: List telephone number and email address of client with more than 2000 outstanding balance.
SQL: SELECT phone_number ,  email_address FROM Customers WHERE amount_outstanding  >  2000;
Database: driving_school
Question: What are the phone numbers and email addresses of all customers who have an outstanding balance of more than 2000?
Paraphrased question: What are the telephone numbers and email addresses of all clients who have an outstanding balance of more than 2000?
SQL: SELECT phone_number ,  email_address FROM Customers WHERE amount_outstanding  >  2000;
Database: driving_school
Question: What is the status code, mobile phone number and email address of customer with last name as Kohler or first name as Marina?
Paraphrased question: What is the status code, cellphone number and email address of client with last name as Kohler or first name as Marina?
SQL: SELECT customer_status_code ,  cell_mobile_phone_number ,  email_address FROM Customers WHERE first_name = "Marina" OR last_name  =  "Kohler"
Database: driving_school
Question: What is the status code, phone number, and email address of the customer whose last name is Kohler or whose first name is Marina?
Paraphrased question: What is the status code, telephone number, and email address of the client whose last name is Kohler or whose first name is Marina?
SQL: SELECT customer_status_code ,  cell_mobile_phone_number ,  email_address FROM Customers WHERE first_name = "Marina" OR last_name  =  "Kohler"
Database: driving_school
Question: When are the birthdays of customer who are classified as 'Good Customer' status?
Paraphrased question: When are the birthdays of customer who are classified as 'Good Customer' status?
SQL: SELECT date_of_birth FROM Customers WHERE customer_status_code  =  'Good Customer'
Database: driving_school
Question: What is the date of birth of every customer whose status code is 'Good Customer'?
Paraphrased question: What is the birthday of every customer whose status code is 'Good Customer'?
SQL: SELECT date_of_birth FROM Customers WHERE customer_status_code  =  'Good Customer'
Database: driving_school
Question: When did customer with first name as Carole and last name as Bernhard became a customer?
Paraphrased question: When did client with first name as Carole and last name as Bernhard became a client?
SQL: SELECT date_became_customer FROM Customers WHERE first_name = "Carole" AND last_name = "Bernhard";
Database: driving_school
Question: When did Carole Bernhard first become a customer?
Paraphrased question: When did Carole Bernhard first become a client?
SQL: SELECT date_became_customer FROM Customers WHERE first_name = "Carole" AND last_name = "Bernhard";
Database: driving_school
Question: How many customers in total?
Paraphrased question: How many clients in total?
SQL: SELECT count(*) FROM Customers;
Database: driving_school
Question: How many customers are there?
Paraphrased question: How many clients are there?
SQL: SELECT count(*) FROM Customers;
Database: driving_school
Question: List all customer status codes and the number of customers having each status code.
Paraphrased question: List all client status codes and the number of clients having each status code.
SQL: SELECT customer_status_code , count(*) FROM Customers GROUP BY customer_status_code;
Database: driving_school
Question: For each customer status code, how many customers are classified that way?
Paraphrased question: For each client status code, how many clients are classified that way?
SQL: SELECT customer_status_code , count(*) FROM Customers GROUP BY customer_status_code;
Database: driving_school
Question: Which customer status code has least number of customers?
Paraphrased question: Which client status code has least number of clients?
SQL: SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY count(*) ASC LIMIT 1;
Database: driving_school
Question: What is the status code with the least number of customers?
Paraphrased question: What is the status code with the least number of clients?
SQL: SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY count(*) ASC LIMIT 1;
Database: driving_school
Question: How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?
Paraphrased question: How many classes taken by customer with first name as Rylan and last name as Goodwin were completed?
SQL: SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = "Rylan" AND T2.last_name = "Goodwin" AND T1.lesson_status_code = "Completed";
Database: driving_school
Question: How many lessons did the customer Ryan Goodwin complete?
Paraphrased question: How many classes did the customer Ryan Goodwin complete?
SQL: SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = "Rylan" AND T2.last_name = "Goodwin" AND T1.lesson_status_code = "Completed";
Database: driving_school
Question: What is maximum, minimum and average amount of outstanding of customer?
Paraphrased question: What is maximum, minimum and average amount of outstanding of client?
SQL: SELECT max(amount_outstanding) ,  min(amount_outstanding) ,  avg(amount_outstanding) FROM Customers;
Database: driving_school
Question: What is the maximum, minimum, and average amount of money outsanding for all customers?
Paraphrased question: What is the maximum, minimum, and average amount of money outsanding for all clients?
SQL: SELECT max(amount_outstanding) ,  min(amount_outstanding) ,  avg(amount_outstanding) FROM Customers;
Database: driving_school
Question: List the first name and last name of customers have the amount of outstanding between 1000 and 3000.
Paraphrased question: List the forename and surname of customers have the amount of outstanding between 1000 and 3000.
SQL: SELECT first_name ,  last_name FROM Customers WHERE amount_outstanding BETWEEN 1000 AND 3000;
Database: driving_school
Question: What are the first and last names of all customers with between 1000 and 3000 dollars outstanding?
Paraphrased question: What are the full names of all customers with between 1000 and 3000 dollars outstanding?
SQL: SELECT first_name ,  last_name FROM Customers WHERE amount_outstanding BETWEEN 1000 AND 3000;
Database: driving_school
Question: List first name and last name of customers lived in city Lockmanfurt.
Paraphrased question: List forename and family name of customers lived in city Lockmanfurt.
SQL: SELECT T1.first_name ,  T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = "Lockmanfurt";