aherntech/spider-syn huggingface dataset:
Database: storm_record
Question: Show storm name with at least two regions and 10 cities affected.
Paraphrased question: Show windstorm name with at least two districts and 10 cities affected.
SQL: SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING count(*)  >=  2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING sum(T2.number_city_affected)  >=  10
Database: storm_record
Question: What are the names of storms that both affected two or more regions and affected a total of 10 or more cities?
Paraphrased question: What are the names of windstorms that both affected two or more districts and affected a total of 10 or more cities?
SQL: SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING count(*)  >=  2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING sum(T2.number_city_affected)  >=  10
Database: storm_record
Question: Show all storm names except for those with at least two affected regions.
Paraphrased question: Show all windstorm names except for those with at least two affected districts.
SQL: SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING count(*)  >=  2
Database: storm_record
Question: What are the names of storms that did not affect two or more regions?
Paraphrased question: What are the names of windstorms that did not affect two or more districts?
SQL: SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING count(*)  >=  2
Database: storm_record
Question: What are the region names affected by the storm with a number of deaths of least 10?
Paraphrased question: What are the district names affected by the storm with a number of deaths of least 10?
SQL: SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T3.number_deaths  >=  10
Database: storm_record
Question: Return the names of the regions affected by storms that had a death count of at least 10.
Paraphrased question: Return the names of the districts affected by storms that had a death count of at least 10.
SQL: SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T3.number_deaths  >=  10
Database: storm_record
Question: Show all storm names affecting region "Denmark".
Paraphrased question: Show all storm names affecting district "Denmark".
SQL: SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T2.region_name  =  'Denmark'
Database: storm_record
Question: What are the names of the storms that affected Denmark?
Paraphrased question: What are the names of the windstorm that affected Denmark?
SQL: SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T2.region_name  =  'Denmark'
Database: storm_record
Question: Show the region name with at least two storms.
Paraphrased question: Show the district name with at least two windstorm.
SQL: SELECT T1.region_name FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id HAVING count(*)  >=  2
Database: storm_record
Question: What are the names of regions with two or more storms?
Paraphrased question: What are the names of districts with two or more windstorm?
SQL: SELECT T1.region_name FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id HAVING count(*)  >=  2
Database: storm_record
Question: Find the names of the regions which were affected by the storm that killed the greatest number of people.
Paraphrased question: Find the names of the districts which were affected by the windstorm that killed the greatest number of people.
SQL: SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id ORDER BY T3.Number_Deaths DESC LIMIT 1
Database: storm_record
Question: What are the names of regions that were affected by the storm in which the most people died?
Paraphrased question: What are the names of districts that were affected by the storm in which the most people died?
SQL: SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id ORDER BY T3.Number_Deaths DESC LIMIT 1
Database: storm_record
Question: Find the name of the storm that affected both Afghanistan and Albania regions.
Paraphrased question: Find the name of the windstorm that affected both Afghanistan and Albania regions.
SQL: SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T2.Region_name  =  'Afghanistan' INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T2.Region_name  =  'Albania'
Database: storm_record
Question: What are the names of the storms that affected both the regions of Afghanistan and Albania?
Paraphrased question: What are the names of the windstorm that affected both the districts of Afghanistan and Albania?
SQL: SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T2.Region_name  =  'Afghanistan' INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T2.Region_name  =  'Albania'
Database: election
Question: How many counties are there in total?
Paraphrased question: How many counties are there in total?
SQL: SELECT count(*) FROM county
Database: election
Question: Count the total number of counties.
Paraphrased question: Count the total number of counties.
SQL: SELECT count(*) FROM county
Database: election
Question: Show the county name and population of all counties.
Paraphrased question: Show the county name and populace of all counties.
SQL: SELECT County_name ,  Population FROM county
Database: election
Question: What are the name and population of each county?
Paraphrased question: What are the name and the number of people in each county?
SQL: SELECT County_name ,  Population FROM county
Database: election
Question: Show the average population of all counties.
Paraphrased question: Show the average number of people in all counties.
SQL: SELECT avg(Population) FROM county
Database: election
Question: On average how large is the population of the counties?
Paraphrased question: On average how large is the number of people in the counties?
SQL: SELECT avg(Population) FROM county
Database: election
Question: Return the maximum and minimum population among all counties.
Paraphrased question: Return the maximum and minimum number of people in all counties.
SQL: SELECT max(Population) ,  min(Population) FROM county
Database: election
Question: What are the maximum and minimum population of the counties?
Paraphrased question: What are the maximum and minimum number of people in the counties?
SQL: SELECT max(Population) ,  min(Population) FROM county
Database: election
Question: Show all the distinct districts for elections.
Paraphrased question: Show all the different regions for elections.
SQL: SELECT DISTINCT District FROM election
Database: election
Question: What are the distinct districts for elections?
Paraphrased question: What are the different regions for elections?
SQL: SELECT DISTINCT District FROM election
Database: election
Question: Show the zip code of the county with name "Howard".
Paraphrased question: Show the postal code of the county with name "Howard".
SQL: SELECT Zip_code FROM county WHERE County_name  =  "Howard"
Database: election
Question: What is the zip code the county named "Howard" is located in?
Paraphrased question: What is the postal code the county named "Howard" is located in?
SQL: SELECT Zip_code FROM county WHERE County_name  =  "Howard"
Database: election
Question: Show the delegate from district 1 in election.
Paraphrased question: Show the representative from district 1 in election.
SQL: SELECT Delegate FROM election WHERE District  =  1
Database: election
Question: Who is the delegate of district 1 in the elections?
Paraphrased question: Who is the representative of district 1 in the elections?
SQL: SELECT Delegate FROM election WHERE District  =  1
Database: election
Question: Show the delegate and committee information of elections.
Paraphrased question: Show the representative and committee information of elections.
SQL: SELECT Delegate ,  Committee FROM election
Database: election
Question: What are the delegate and committee information for each election record?
Paraphrased question: What are the representative and committee information for each election record?
SQL: SELECT Delegate ,  Committee FROM election
Database: election
Question: How many distinct governors are there?
Paraphrased question: How many different governors are there?
SQL: SELECT count(DISTINCT Governor) FROM party
Database: election
Question: Count the number of distinct governors.
Paraphrased question: Count the number of different governors.
SQL: SELECT count(DISTINCT Governor) FROM party
Database: election
Question: Show the lieutenant governor and comptroller from the democratic party.
Paraphrased question: Show the lieutenant governor and comptroller from the democratic party.
SQL: SELECT Lieutenant_Governor ,  Comptroller FROM party WHERE Party  =  "Democratic"
Database: election
Question: Who are the lieutenant governor and comptroller from the democratic party?
Paraphrased question: Who are the lieutenant governor and comptroller from the democratic party?
SQL: SELECT Lieutenant_Governor ,  Comptroller FROM party WHERE Party  =  "Democratic"
Database: election
Question: In which distinct years was the governor "Eliot Spitzer"?
Paraphrased question: In which different years was the governor "Eliot Spitzer"?
SQL: SELECT DISTINCT YEAR FROM party WHERE Governor  =  "Eliot Spitzer"
Database: election
Question: Find the distinct years when the governor was named "Eliot Spitzer".
Paraphrased question: Find the different years when the governor was named "Eliot Spitzer".
SQL: SELECT DISTINCT YEAR FROM party WHERE Governor  =  "Eliot Spitzer"
Database: election
Question: Show all the information about election.
Paraphrased question: Show all the details about election.
SQL: SELECT * FROM election
Database: election
Question: Return all the information for each election record.
Paraphrased question: Return all the details for each election record.
SQL: SELECT * FROM election
Database: election
Question: Show the delegates and the names of county they belong to.
Paraphrased question: Show the representative and the names of county they belong to.
SQL: SELECT T2.Delegate ,  T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District
Database: election
Question: What are the delegate and name of the county they belong to, for each county?
Paraphrased question: What are the representative and name of the county they belong to, for each county?
SQL: SELECT T2.Delegate ,  T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District
Database: election
Question: Which delegates are from counties with population smaller than 100000?
Paraphrased question: Which representative are from counties with population smaller than 100000?
SQL: SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T1.Population  <  100000
Database: election
Question: Find the delegates who are from counties with population below 100000.
Paraphrased question: Find the representative who are from counties with population below 100000.
SQL: SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T1.Population  <  100000
Database: election
Question: How many distinct delegates are from counties with population larger than 50000?
Paraphrased question: How many different representative are from counties with population larger than 50000?
SQL: SELECT count(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T1.Population  >  50000
Database: election
Question: Count the number of distinct delegates who are from counties with population above 50000.
Paraphrased question: Count the number of different representative who are from counties with population above 50000.
SQL: SELECT count(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T1.Population  >  50000
Database: election
Question: What are the names of the county that the delegates on "Appropriations" committee belong to?
Paraphrased question: What are the names of the county that the representative on "Appropriations" committee belong to?
SQL: SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T2.Committee  =  "Appropriations"
Database: election
Question: Which county do the delegates on "Appropriations" committee belong to? Give me the county names.
Paraphrased question: Which county do the representative on "Appropriations" committee belong to? Give me the county names.
SQL: SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T2.Committee  =  "Appropriations"
Database: election
Question: Show the delegates and the names of the party they belong to.
Paraphrased question: Show the representative and the names of the party they belong to.
SQL: SELECT T1.Delegate ,  T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID
Database: election
Question: For each delegate, find the names of the party they are part of.
Paraphrased question: For each representative, find the names of the party they are part of.
SQL: SELECT T1.Delegate ,  T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID
Database: election
Question: Who were the governors of the parties associated with delegates from district 1?
Paraphrased question: Who were the governors of the parties associated with delegates from district 1?
SQL: SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.District  =  1
Database: election
Question: Find the parties associated with the delegates from district 1. Who served as governors of the parties?
Paraphrased question: Find the parties associated with the delegates from district 1. Who served as governors of the parties?
SQL: SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.District  =  1
Database: election
Question: Who were the comptrollers of the parties associated with the delegates from district 1 or district 2?
Paraphrased question: Who were the comptroller of the parties associated with the delegates from district 1 or district 2?
SQL: SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.District  =  1 OR T1.District  =  2
Database: election
Question: Find the parties associated with the delegates from district 1 or 2. Who served as comptrollers of the parties?
Paraphrased question: Find the parties associated with the delegates from district 1 or 2. Who served as comptroller of the parties?
SQL: SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.District  =  1 OR T1.District  =  2
Database: election
Question: Return all the committees that have delegates from Democratic party.
Paraphrased question: Return all the committee that have delegates from Democratic party.
SQL: SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T2.Party  =  "Democratic"
Database: election
Question: Which committees have delegates from the Democratic party?
Paraphrased question: Which committee have delegates from the Democratic party?
SQL: SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T2.Party  =  "Democratic"
Database: election
Question: Show the name of each county along with the corresponding number of delegates from that county.
Paraphrased question: Show the name of each county along with the corresponding number of delegates from that county.
SQL: SELECT T1.County_name ,  COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District GROUP BY T1.County_id
Database: election
Question: For each county, find the name of the county and the number of delegates from that county.
Paraphrased question: For each county, find the name of the county and the number of delegates from that county.
SQL: SELECT T1.County_name ,  COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District GROUP BY T1.County_id
Database: election
Question: Show the name of each party and the corresponding number of delegates from that party.
Paraphrased question: Show the name of each party and the corresponding number of delegates from that party.
SQL: SELECT T2.Party ,  COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID GROUP BY T1.Party
Database: election
Question: For each party, return the name of the party and the number of delegates from that party.
Paraphrased question: For each party, return the name of the party and the number of delegates from that party.
SQL: SELECT T2.Party ,  COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID GROUP BY T1.Party
Database: election
Question: Return the names of all counties sorted by population in ascending order.
Paraphrased question: Return the names of all counties sorted by population in ascending order.
SQL: SELECT County_name FROM county ORDER BY Population ASC
Database: election
Question: Sort the names of all counties in ascending order of population.
Paraphrased question: Sort the names of all counties in ascending order of population.
SQL: SELECT County_name FROM county ORDER BY Population ASC
Database: election
Question: Return the names of all counties sorted by county name in descending alphabetical order.
Paraphrased question: Return the names of all counties sorted by county name in descending alphabetical order.
SQL: SELECT County_name FROM county ORDER BY County_name DESC
Database: election
Question: Sort the names of all counties in descending alphabetical order.
Paraphrased question: Sort the names of all counties in descending alphabetical order.
SQL: SELECT County_name FROM county ORDER BY County_name DESC
Database: election
Question: Show the name of the county with the biggest population.
Paraphrased question: Show the name of the county with the biggest population.
SQL: SELECT County_name FROM county ORDER BY Population DESC LIMIT 1
Database: election
Question: Which county has the largest population? Give me the name of the county.
Paraphrased question: Which county has the largest populace? Give me the name of the county.
SQL: SELECT County_name FROM county ORDER BY Population DESC LIMIT 1
Database: election
Question: Show the 3 counties with the smallest population.
Paraphrased question: Show the 3 counties with the smallest populace.
SQL: SELECT County_name FROM county ORDER BY Population ASC LIMIT 3
Database: election
Question: What are the 3 counties that have the smallest population? Give me the county names.
Paraphrased question: What are the 3 counties that have the smallest populace? Give me the county names.
SQL: SELECT County_name FROM county ORDER BY Population ASC LIMIT 3
Database: election
Question: Show the names of counties that have at least two delegates.
Paraphrased question: Show the names of counties that have at least two delegates.
SQL: SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District GROUP BY T1.County_id HAVING COUNT(*)  >=  2
Database: election
Question: Which counties have two or more delegates? Give me the county names.
Paraphrased question: Which counties have two or more delegates? Give me the county names.
SQL: SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District GROUP BY T1.County_id HAVING COUNT(*)  >=  2
Database: election
Question: Show the name of the party that has at least two records.
Paraphrased question: Show the name of the party that has at least two records.
SQL: SELECT Party FROM party GROUP BY Party HAVING COUNT(*)  >=  2
Database: election
Question: Which party has two or more records?
Paraphrased question: Which party has two or more records?
SQL: SELECT Party FROM party GROUP BY Party HAVING COUNT(*)  >=  2
Database: election
Question: Show the name of the party that has the most delegates.
Paraphrased question: Show the name of the party that has the most representative.
SQL: SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1
Database: election
Question: Which party has the largest number of delegates?
Paraphrased question: Which party has the largest number of representative?
SQL: SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1
Database: election
Question: Show the people that have been governor the most times.
Paraphrased question: Show the people that have been governor the most times.
SQL: SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1
Database: election
Question: Which people severed as governor most frequently?
Paraphrased question: Which people severed as governor most frequently?
SQL: SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1
Database: election
Question: Show the people that have been comptroller the most times and the corresponding number of times.
Paraphrased question: Show the people that have been comptroller the most times and the corresponding number of times.
SQL: SELECT Comptroller ,  COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1
Database: election
Question: Which people severed as comptroller most frequently? Give me the name of the person and the frequency count.
Paraphrased question: Which people severed as comptroller most frequently? Give me the name of the person and the frequency count.
SQL: SELECT Comptroller ,  COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1
Database: election
Question: What are the names of parties that do not have delegates in election?
Paraphrased question: What are the names of parties that do not have delegates in election?
SQL: SELECT Party FROM party WHERE Party_ID NOT IN (SELECT Party FROM election)
Database: election
Question: Which parties did not have any delegates in elections?
Paraphrased question: Which parties did not have any representative in elections?
SQL: SELECT Party FROM party WHERE Party_ID NOT IN (SELECT Party FROM election)
Database: election
Question: What are the names of parties that have both delegates on "Appropriations" committee and
Paraphrased question: What are the names of parties that have both representative on "Appropriations" committee and
SQL: SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.Committee  =  "Appropriations" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.Committee  =  "Economic Matters"
Database: election
Question: Which parties have delegates in both the "Appropriations" committee and the "Economic Matters" committee?
Paraphrased question: Which parties have representative in both the "Appropriations" committee and the "Economic Matters" committee?
SQL: SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.Committee  =  "Appropriations" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.Committee  =  "Economic Matters"
Database: election
Question: Which committees have delegates from both democratic party and liberal party?
Paraphrased question: Which committee have delegates from both democratic party and liberal party?
SQL: SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T2.Party  =  "Democratic" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T2.Party  =  "Liberal"
Database: election
Question: Find the committees that have delegates both from from the democratic party and the liberal party.
Paraphrased question: Find the committee that have delegates both from from the democratic party and the liberal party.
SQL: SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T2.Party  =  "Democratic" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T2.Party  =  "Liberal"
Database: news_report
Question: How many journalists are there?
Paraphrased question: How many reporters are there?
SQL: SELECT count(*) FROM journalist
Database: news_report
Question: List the names of journalists in ascending order of years working.
Paraphrased question: List the names of reporters in ascending order of years working.
SQL: SELECT Name FROM journalist ORDER BY Years_working ASC
Database: news_report
Question: What are the nationalities and ages of journalists?
Paraphrased question: What are the nation and ages of journalists?
SQL: SELECT Nationality ,  Age FROM journalist
Database: news_report
Question: Show the names of journalists from "England" or "Wales".
Paraphrased question: Show the names of reporters from "England" or "Wales".
SQL: SELECT Name FROM journalist WHERE Nationality  =  "England" OR Nationality  =  "Wales"
Database: news_report
Question: What is the average number of years spent working as a journalist?
Paraphrased question: What is the average number of years spent working as a journalist?
SQL: SELECT avg(Years_working) FROM journalist
Database: news_report
Question: What is the nationality of the journalist with the largest number of years working?
Paraphrased question: What is the nation of the reporter with the largest number of years working?
SQL: SELECT Nationality FROM journalist ORDER BY Years_working DESC LIMIT 1
Database: news_report
Question: Show the different nationalities and the number of journalists of each nationality.
Paraphrased question: Show the different nation and the number of reporter of each nation.
SQL: SELECT Nationality ,  COUNT(*) FROM journalist GROUP BY Nationality
Database: news_report
Question: Show the most common nationality for journalists.
Paraphrased question: Show the most common nation for reporters.
SQL: SELECT Nationality FROM journalist GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
Database: news_report
Question: Show the nations that have both journalists with more than 10 years of working and journalists with less than 3 years of working.
Paraphrased question: Show the nations that have both journalists with more than 10 years of working and journalists with less than 3 years of working.
SQL: SELECT Nationality FROM journalist WHERE Years_working  >  10 INTERSECT SELECT Nationality FROM journalist WHERE Years_working  <  3
Database: news_report
Question: Show the dates, places, and names of events in descending order of the attendance.
Paraphrased question: Show the day, location, and names of events in descending order of the attendance.
SQL: SELECT Date ,  Name ,  venue FROM event ORDER BY Event_Attendance DESC
Database: news_report
Question: Show the names of journalists and the dates of the events they reported.
Paraphrased question: Show the names of reporters and the day of the events they reported.
SQL: SELECT T3.Name ,  T2.Date FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID
Database: news_report
Question: Show the names of journalists and the names of the events they reported in ascending order
Paraphrased question: Show the names of reporters and the names of the events they reported in ascending order
SQL: SELECT T3.Name ,  T2.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID ORDER BY T2.Event_Attendance ASC
Database: news_report
Question: Show the names of journalists and the number of events they reported.
Paraphrased question: Show the names of reporters and the number of events they reported.
SQL: SELECT T3.Name ,  COUNT(*) FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID GROUP BY T3.Name
Database: news_report
Question: Show the names of journalists that have reported more than one event.
Paraphrased question: Show the names of reporters that have reported more than one event.
SQL: SELECT T3.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID GROUP BY T3.Name HAVING COUNT(*)  >  1
Database: news_report
Question: List the names of journalists who have not reported any event.
Paraphrased question: List the names of reporters who have not reported any event.
SQL: SELECT Name FROM journalist WHERE journalist_ID NOT IN (SELECT journalist_ID FROM news_report)
Database: news_report
Question: what are the average and maximum attendances of all events?
Paraphrased question: what are the average and maximum number of attendees of all events?
SQL: SELECT avg(Event_Attendance) ,  max(Event_Attendance) FROM event
Database: news_report
Question: Find the average age and experience working length of journalists working on different role type.
Paraphrased question: Find the average age and experience working length of journalists working on different role type.
SQL: SELECT avg(t1.age) ,  avg(Years_working) ,  t2.work_type FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_id  =  t2.journalist_id GROUP BY t2.work_type
Database: news_report
Question: List the event venues and names that have the top 2 most number of people attended.
Paraphrased question: List the event places and names that have the top 2 most number of people attended.
SQL: SELECT venue ,  name FROM event ORDER BY Event_Attendance DESC LIMIT 2
Database: restaurant_1
Question: Show me all the restaurants.
Paraphrased question: Show me all the restaurants.
SQL: SELECT ResName FROM Restaurant;
Database: restaurant_1
Question: What is the address of the restaurant Subway?
Paraphrased question: What is the location of the restaurant Subway?
SQL: SELECT Address FROM Restaurant WHERE ResName = "Subway";
Database: restaurant_1
Question: What is the rating of the restaurant Subway?
Paraphrased question: What is the score of the restaurant Subway?
SQL: SELECT Rating FROM Restaurant WHERE ResName = "Subway";
Database: restaurant_1
Question: List all restaurant types.
Paraphrased question: List all restaurant types.
SQL: SELECT ResTypeName FROM Restaurant_Type;
Database: restaurant_1
Question: What is the description of the restaurant type Sandwich?
Paraphrased question: What is the describing content of the restaurant type Sandwich?
SQL: SELECT ResTypeDescription FROM Restaurant_Type WHERE ResTypeName = "Sandwich";
Database: restaurant_1
Question: Which restaurants have highest rating? List the restaurant name and its rating.
Paraphrased question: Which restaurants have highest score? List the restaurant name and its score.
SQL: SELECT ResName , Rating FROM Restaurant ORDER BY Rating DESC LIMIT 1;
Database: restaurant_1
Question: What is the age of student Linda Smith?
Paraphrased question: What is the age of student Linda Smith?
SQL: SELECT Age FROM Student WHERE Fname = "Linda" AND Lname = "Smith";
Database: restaurant_1
Question: What is the gender of the student Linda Smith?
Paraphrased question: What is the gender of the student Linda Smith?
SQL: SELECT Sex FROM Student WHERE Fname = "Linda" AND Lname = "Smith";
Database: restaurant_1
Question: List all students' first names and last names who majored in 600.
Paraphrased question: List all students' forename and family names who majored in 600.
SQL: SELECT Fname , Lname FROM Student WHERE Major  =  600;
Database: restaurant_1
Question: Which city does student Linda Smith live in?
Paraphrased question: Which town does student Linda Smith live in?
SQL: SELECT city_code FROM Student WHERE Fname = "Linda" AND Lname = "Smith";
Database: restaurant_1
Question: Advisor 1121 has how many students?
Paraphrased question: Adviser 1121 has how many students?
SQL: SELECT count(*) FROM Student WHERE Advisor =  1121;
Database: restaurant_1
Question: Which Advisor has most of students? List advisor and the number of students.
Paraphrased question: Which Adviser has most of students? List adviser and the number of students.
SQL: SELECT Advisor ,  count(*) FROM Student GROUP BY Advisor ORDER BY count(Advisor) DESC LIMIT 1;
Database: restaurant_1
Question: Which major has least number of students? List the major and the number of students.
Paraphrased question: Which discipline has least number of students? List the discipline and the number of students.
SQL: SELECT Major ,  count(*) FROM Student GROUP BY Major ORDER BY count(Major) ASC LIMIT 1;
Database: restaurant_1
Question: Which major has between 2 and 30 number of students? List major and the number of students.
Paraphrased question: Which discipline has between 2 and 30 number of students? List discipline and the number of students.
SQL: SELECT Major ,  count(*) FROM Student GROUP BY Major HAVING count(Major) BETWEEN 2 AND 30;
Database: restaurant_1
Question: Which student's age is older than 18 and is majoring in 600? List each student's first and last name.
Paraphrased question: Which student's age is older than 18 and is majoring in 600? List each student's full name.
SQL: SELECT Fname , Lname FROM Student WHERE Age  >  18 AND Major = 600;
Database: restaurant_1
Question: List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.
Paraphrased question: List all female students age is older than 18 who is not majoring in 600. List students' full name.
SQL: SELECT Fname , Lname FROM Student WHERE Age  >  18 AND Major != 600 AND Sex = 'F';
Database: restaurant_1
Question: How many restaurant is the Sandwich type restaurant?
Paraphrased question: How many restaurant is the Sandwich type restaurant?
SQL: SELECT count(*) FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID =  Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich'
Database: restaurant_1
Question: How long does student Linda Smith spend on the restaurant in total?
Paraphrased question: How long does student Linda Smith spend on the restaurant in total?
SQL: SELECT sum(Spent) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith";
Database: restaurant_1
Question: How many times has the student Linda Smith visited Subway?
Paraphrased question: How many times has the student Linda Smith visited Subway?
SQL: SELECT count(*) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith" AND Restaurant.ResName = "Subway";
Database: restaurant_1
Question: When did Linda Smith visit Subway?
Paraphrased question: When did Linda Smith visit Subway?
SQL: SELECT TIME FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith" AND Restaurant.ResName = "Subway";
Database: restaurant_1
Question: At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total.
Paraphrased question: At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total.
SQL: SELECT Restaurant.ResName ,  sum(Visits_Restaurant.Spent) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID GROUP BY Restaurant.ResID ORDER BY sum(Visits_Restaurant.Spent) ASC LIMIT 1;
Database: restaurant_1
Question: Which student visited restaurant most often? List student's first name and last name.
Paraphrased question: Which student visited restaurant most often? List student's full name.
SQL: SELECT Student.Fname , Student.Lname FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID GROUP BY Student.StuID ORDER BY count(*) DESC LIMIT 1;
Database: customer_deliveries
Question: Find the ids of orders whose status is 'Success'.
Paraphrased question: Find the ids of orders whose status is 'Success'.
SQL: SELECT actual_order_id FROM actual_orders WHERE order_status_code  =  'Success'
Database: customer_deliveries
Question: Find the name and price of the product that has been ordered the greatest number of times.
Paraphrased question: Find the name and price of the product that has been ordered the greatest number of times.
SQL: SELECT t1.product_name ,   t1.product_price FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id  =  t2.product_id GROUP BY t2.product_id ORDER BY count(*) DESC LIMIT 1
Database: customer_deliveries
Question: Find the number of customers in total.
Paraphrased question: Find the number of client in total.
SQL: SELECT count(*) FROM customers
Database: customer_deliveries
Question: How many different payment methods are there?
Paraphrased question: How many different payment methods are there?
SQL: SELECT count(DISTINCT payment_method) FROM customers
Database: customer_deliveries
Question: Show the details of all trucks in the order of their license number.
Paraphrased question: Show the information of all lorry in the order of their license number.
SQL: SELECT truck_details FROM trucks ORDER BY truck_licence_number
Database: customer_deliveries
Question: Find the name of the most expensive product.
Paraphrased question: Find the name of the most expensive goods.
SQL: SELECT product_name FROM products ORDER BY product_price DESC LIMIT 1
Database: customer_deliveries
Question: Find the names of customers who are not living in the state of California.
Paraphrased question: Find the names of clients who are not living in the state of California.
SQL: SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id WHERE t3.state_province_county  =  'California'
Database: customer_deliveries
Question: List the names and emails of customers who payed by Visa card.
Paraphrased question: List the names and emails of clients who payed by Visa card.
SQL: SELECT customer_email ,  customer_name FROM customers WHERE payment_method  =  'Visa'
Database: customer_deliveries
Question: Find the names and phone numbers of customers living in California state.
Paraphrased question: Find the names and telephone numbers of clients living in California state.
SQL: SELECT t1.customer_name ,  t1.customer_phone FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id WHERE t3.state_province_county  =  'California'
Database: customer_deliveries
Question: Find the states which do not have any employee in their record.
Paraphrased question: Find the states which do not have any staff in their record.
SQL: SELECT state_province_county FROM addresses WHERE address_id NOT IN (SELECT employee_address_id FROM Employees)
Database: customer_deliveries
Question: List the names, phone numbers, and emails of all customers sorted by their dates of becoming customers.
Paraphrased question: List the names, telephone numbers, and emails of all clients sorted by their dates of becoming clients.
SQL: SELECT customer_name ,  customer_phone ,  customer_email FROM Customers ORDER BY date_became_customer
Database: customer_deliveries
Question: Find the name of the first 5 customers.
Paraphrased question: Find the name of the first 5 clients.
SQL: SELECT customer_name FROM Customers ORDER BY date_became_customer LIMIT 5
Database: customer_deliveries
Question: Find the payment method that is used most frequently.
Paraphrased question: Find the payment method that is used most frequently.
SQL: SELECT payment_method FROM Customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1
Database: customer_deliveries
Question: List the names of all routes in alphabetic order.
Paraphrased question: List the names of all paths in alphabetic order.
SQL: SELECT route_name FROM Delivery_Routes ORDER BY route_name
Database: customer_deliveries
Question: Find the name of route that has the highest number of deliveries.
Paraphrased question: Find the name of path that has the highest number of deliveries.
SQL: SELECT t1.route_name FROM Delivery_Routes AS t1 JOIN Delivery_Route_Locations AS t2 ON t1.route_id  =  t2.route_id GROUP BY t1.route_id ORDER BY count(*) DESC LIMIT 1
Database: customer_deliveries
Question: List the state names and the number of customers living in each state.
Paraphrased question: List the state names and the number of clients living in each state.
SQL: SELECT t2.state_province_county ,  count(*) FROM customer_addresses AS t1 JOIN addresses AS t2 ON t1.address_id  =  t2.address_id GROUP BY t2.state_province_county
Database: icfp_1
Question: How many authors are there?
Paraphrased question: How many authors are there?
SQL: SELECT count(*) FROM authors
Database: icfp_1
Question: Count the number of authors.
Paraphrased question: Count the number of writers.
SQL: SELECT count(*) FROM authors
Database: icfp_1
Question: How many institutions are there?
Paraphrased question: How many organization are there?
SQL: SELECT count(*) FROM inst
Database: icfp_1
Question: Count the number of institutions.
Paraphrased question: Count the number of organizations.
SQL: SELECT count(*) FROM inst
Database: icfp_1
Question: How many papers are published in total?
Paraphrased question: How many articles are published in total?
SQL: SELECT count(*) FROM papers
Database: icfp_1
Question: Count the number of total papers.
Paraphrased question: Count the number of total articles.
SQL: SELECT count(*) FROM papers
Database: icfp_1
Question: What are the titles of papers published by "Jeremy Gibbons"?
Paraphrased question: What are the titles of articles published by "Jeremy Gibbons"?
SQL: SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE  t1.fname  =  "Jeremy" AND t1.lname  =  "Gibbons"
Database: icfp_1
Question: Find the titles of all the papers written by "Jeremy Gibbons"
Paraphrased question: Find the titles of all the articles written by "Jeremy Gibbons"
SQL: SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE  t1.fname  =  "Jeremy" AND t1.lname  =  "Gibbons"
Database: icfp_1
Question: Find all the papers published by "Aaron Turon".
Paraphrased question: Find all the articles published by "Aaron Turon".
SQL: SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE  t1.fname  =  "Aaron" AND t1.lname  =  "Turon"
Database: icfp_1
Question: Find the titles of all the papers written by "Aaron Turon".
Paraphrased question: Find the titles of all the articles written by "Aaron Turon".
SQL: SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE  t1.fname  =  "Aaron" AND t1.lname  =  "Turon"
Database: icfp_1
Question: How many papers have "Atsushi Ohori" published?
Paraphrased question: How many articles have "Atsushi Ohori" published?
SQL: SELECT count(*) FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE  t1.fname  =  "Atsushi" AND t1.lname  =  "Ohori"
Database: icfp_1
Question: How many papers are "Atsushi Ohori" the author of?
Paraphrased question: How many articles are "Atsushi Ohori" the writer of?
SQL: SELECT count(*) FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE  t1.fname  =  "Atsushi" AND t1.lname  =  "Ohori"
Database: icfp_1
Question: What is the name of the institution that "Matthias Blume" belongs to?
Paraphrased question: What is the name of the institution that "Matthias Blume" belongs to?
SQL: SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t1.fname  =  "Matthias" AND t1.lname  =  "Blume"
Database: icfp_1
Question: Which institution is the author "Matthias Blume" belong to? Give me the name of the institution.
Paraphrased question: Which institution is the writer "Matthias Blume" belong to? Give me the name of the institution.
SQL: SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t1.fname  =  "Matthias" AND t1.lname  =  "Blume"
Database: icfp_1
Question: Which institution does "Katsuhiro Ueno" belong to?
Paraphrased question: Which institution does "Katsuhiro Ueno" belong to?
SQL: SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t1.fname  =  "Katsuhiro" AND t1.lname  =  "Ueno"
Database: icfp_1
Question: What is the name of the institution the author "Katsuhiro Ueno" belongs to?
Paraphrased question: What is the name of the institution the author "Katsuhiro Ueno" belongs to?
SQL: SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t1.fname  =  "Katsuhiro" AND t1.lname  =  "Ueno"
Database: icfp_1
Question: Who belong to the institution "University of Oxford"? Show the first names and last names.
Paraphrased question: Who belong to the institution "University of Oxford"? Show the forename and family name.
SQL: SELECT DISTINCT t1.fname ,  t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  "University of Oxford"
Database: icfp_1
Question: Find the first names and last names of the authors whose institution affiliation is "University of Oxford".
Paraphrased question: Find the forename and family name of the authors whose institution affiliation is "University of Oxford".
SQL: SELECT DISTINCT t1.fname ,  t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  "University of Oxford"
Database: icfp_1
Question: Which authors belong to the institution "Google"? Show the first names and last names.
Paraphrased question: Which authors belong to the institution "Google"? Show the forename and family name.
SQL: SELECT DISTINCT t1.fname ,  t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  "Google"
Database: icfp_1
Question: Find the first names and last names of the authors whose institution affiliation is "Google".
Paraphrased question: Find the full names of the authors whose institution affiliation is "Google".
SQL: SELECT DISTINCT t1.fname ,  t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  "Google"
Database: icfp_1
Question: What are the last names of the author of the paper titled "Binders Unbound"?
Paraphrased question: What are the family names of the author of the paper titled "Binders Unbound"?
SQL: SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t3.title  =  "Binders Unbound"