aherntech/spider-syn huggingface dataset:
Database: music_4
Question: Please show the results of music festivals and the number of music festivals that have had each, ordered by this count.
Paraphrased question: Please show the outcomes of music festivals and the number of music festivals that have had each, ordered by this count.
SQL: SELECT RESULT ,  COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC
Database: music_4
Question: How many music festivals have had each kind of result, ordered descending by count?
Paraphrased question: How many music festivals have had each kind of outcome, ordered descending by count?
SQL: SELECT RESULT ,  COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC
Database: music_4
Question: What are the issue dates of volumes associated with the artist aged 23 or younger?
Paraphrased question: What are the issue days of volumes associated with the artist aged 23 or younger?
SQL: SELECT Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.age  <=  23
Database: music_4
Question: Return the issue dates of volumes by artists who are at most 23 years old?
Paraphrased question: Return the issue days of volumes by artists who are at most 23 years old?
SQL: SELECT Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.age  <=  23
Database: roller_coaster
Question: How many roller coasters are there?
Paraphrased question: How many roller coasters are there?
SQL: SELECT count(*) FROM roller_coaster
Database: roller_coaster
Question: List the names of roller coasters by ascending order of length.
Paraphrased question: List the names of roller coasters by ascending order of length.
SQL: SELECT Name FROM roller_coaster ORDER BY LENGTH ASC
Database: roller_coaster
Question: What are the lengths and heights of roller coasters?
Paraphrased question: What are the lengths and stature of roller coasters?
SQL: SELECT LENGTH ,  Height FROM roller_coaster
Database: roller_coaster
Question: List the names of countries whose language is not "German".
Paraphrased question: List the names of nations whose language is not "German".
SQL: SELECT Name FROM country WHERE Languages != "German"
Database: roller_coaster
Question: Show the statuses of roller coasters longer than 3300 or higher than 100.
Paraphrased question: Show the statuses of roller coasters longer than 3300 or higher than 100.
SQL: SELECT Status FROM roller_coaster WHERE LENGTH  >  3300 OR Height  >  100
Database: roller_coaster
Question: What are the speeds of the longest roller coaster?
Paraphrased question: What are the velocity of the longest roller coaster?
SQL: SELECT Speed FROM roller_coaster ORDER BY LENGTH DESC LIMIT 1
Database: roller_coaster
Question: What is the average speed of roller coasters?
Paraphrased question: What is the average velocity of roller coasters?
SQL: SELECT avg(Speed) FROM roller_coaster
Database: roller_coaster
Question: Show the different statuses and the numbers of roller coasters for each status.
Paraphrased question: Show the different statuses and the numbers of roller coasters for each status.
SQL: SELECT Status ,  COUNT(*) FROM roller_coaster GROUP BY Status
Database: roller_coaster
Question: Please show the most common status of roller coasters.
Paraphrased question: Please show the most common status of roller coasters.
SQL: SELECT Status FROM roller_coaster GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1
Database: roller_coaster
Question: List the status shared by more than two roller coaster.
Paraphrased question: List the status shared by more than two roller coaster.
SQL: SELECT Status FROM roller_coaster GROUP BY Status HAVING COUNT(*)  >  2
Database: roller_coaster
Question: Show the park of the roller coaster with the highest speed.
Paraphrased question: Show the park of the roller coaster with the highest velocity.
SQL: SELECT Park FROM roller_coaster ORDER BY Speed DESC LIMIT 1
Database: roller_coaster
Question: Show the names of roller coasters and names of country they are in.
Paraphrased question: Show the names of roller coasters and names of nation they are in.
SQL: SELECT T2.Name ,  T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID
Database: roller_coaster
Question: Show the names of countries that have more than one roller coaster.
Paraphrased question: Show the names of nations that have more than one roller coaster.
SQL: SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID GROUP BY T1.Name HAVING COUNT(*)  >  1
Database: roller_coaster
Question: Show the name and population of the country that has the highest roller coaster.
Paraphrased question: Show the name and number of people of the nation that has the highest roller coaster.
SQL: SELECT T1.Name ,  T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID ORDER BY T2.Height DESC LIMIT 1
Database: roller_coaster
Question: Show the names of countries and the average speed of roller coasters from each country.
Paraphrased question: Show the names of nations and the average velocity of roller coasters from each nation.
SQL: SELECT T1.Name ,  avg(T2.Speed) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID GROUP BY T1.Name
Database: roller_coaster
Question: How many countries do not have an roller coaster longer than 3000?
Paraphrased question: How many nations do not have an roller coaster longer than 3000?
SQL: SELECT count(*) FROM country WHERE country_id NOT IN ( SELECT country_id FROM roller_coaster WHERE LENGTH  >  3000 )
Database: roller_coaster
Question: What are the country names, area and population which has both roller coasters with speed higher
Paraphrased question: What are the nation names, district and the number of people which has both roller coasters with speed higher
SQL: SELECT T1.name ,  T1.area ,  T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID WHERE T2.speed  >  60 INTERSECT SELECT T1.name ,  T1.area ,  T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID WHERE T2.speed  <  55
Database: ship_1
Question: How many different captain ranks are there?
Paraphrased question: How many different captain ranks are there?
SQL: SELECT count(DISTINCT rank) FROM captain
Database: ship_1
Question: Count the number of different ranks of captain.
Paraphrased question: Count the number of different ranks of captain.
SQL: SELECT count(DISTINCT rank) FROM captain
Database: ship_1
Question: How many captains are in each rank?
Paraphrased question: How many captains are in each rank?
SQL: SELECT count(*) ,  rank FROM captain GROUP BY rank
Database: ship_1
Question: Count the number of captains that have each rank.
Paraphrased question: Count the number of captains that have each rank.
SQL: SELECT count(*) ,  rank FROM captain GROUP BY rank
Database: ship_1
Question: How many captains with younger than 50 are in each rank?
Paraphrased question: How many captains with younger than 50 are in each rank?
SQL: SELECT count(*) ,  rank FROM captain WHERE age  <  50 GROUP BY rank
Database: ship_1
Question: Count the number of captains younger than 50 of each rank.
Paraphrased question: Count the number of captains younger than 50 of each rank.
SQL: SELECT count(*) ,  rank FROM captain WHERE age  <  50 GROUP BY rank
Database: ship_1
Question: Sort all captain names by their ages from old to young.
Paraphrased question: Sort all captain names by their ages from old to young.
SQL: SELECT name FROM captain ORDER BY age DESC
Database: ship_1
Question: What are the names of captains, sorted by age descending?
Paraphrased question: What are the names of captains, sorted by age descending?
SQL: SELECT name FROM captain ORDER BY age DESC
Database: ship_1
Question: Find the name, class and rank of all captains.
Paraphrased question: Find the name, class and rank of all captains.
SQL: SELECT name ,  CLASS ,  rank FROM captain
Database: ship_1
Question: What are the names, classes, and ranks of all captains?
Paraphrased question: What are the names, classes, and ranks of all captains?
SQL: SELECT name ,  CLASS ,  rank FROM captain
Database: ship_1
Question: Which rank is the most common among captains?
Paraphrased question: Which rank is the most common among captains?
SQL: SELECT rank FROM captain GROUP BY rank ORDER BY count(*) DESC LIMIT 1
Database: ship_1
Question: Return the rank for which there are the fewest captains.
Paraphrased question: Return the rank for which there are the fewest captains.
SQL: SELECT rank FROM captain GROUP BY rank ORDER BY count(*) DESC LIMIT 1
Database: ship_1
Question: Which classes have more than two captains?
Paraphrased question: Which classes have more than two captains?
SQL: SELECT CLASS FROM captain GROUP BY CLASS HAVING count(*)  >  2
Database: ship_1
Question: Give the classes that have more than two captains.
Paraphrased question: Give the classes that have more than two captains.
SQL: SELECT CLASS FROM captain GROUP BY CLASS HAVING count(*)  >  2
Database: ship_1
Question: Find the name of captains whose rank are either Midshipman or Lieutenant.
Paraphrased question: Find the name of captains whose rank are either Midshipman or Lieutenant.
SQL: SELECT name FROM captain WHERE rank  =  'Midshipman' OR rank  =  'Lieutenant'
Database: ship_1
Question: What are the names of captains that have either the rank Midshipman or Lieutenant?
Paraphrased question: What are the names of captains that have either the rank Midshipman or Lieutenant?
SQL: SELECT name FROM captain WHERE rank  =  'Midshipman' OR rank  =  'Lieutenant'
Database: ship_1
Question: What are the average and minimum age of captains in different class?
Paraphrased question: What are the average and minimum age of captains in different class?
SQL: SELECT avg(age) ,  min(age) ,  CLASS FROM captain GROUP BY CLASS
Database: ship_1
Question: Return the average and minimum age of captains in each class.
Paraphrased question: Return the average and minimum age of captains in each class.
SQL: SELECT avg(age) ,  min(age) ,  CLASS FROM captain GROUP BY CLASS
Database: ship_1
Question: Find the captain rank that has some captains in both Cutter and Armed schooner classes.
Paraphrased question: Find the captain rank that has some captains in both Cutter and Armed schooner classes.
SQL: SELECT rank FROM captain WHERE CLASS  =  'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS  =  'Armed schooner'
Database: ship_1
Question: What are the ranks of captains that are both in the Cutter and Armed schooner classes?
Paraphrased question: What are the ranks of captains that are both in the Cutter and Armed schooner classes?
SQL: SELECT rank FROM captain WHERE CLASS  =  'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS  =  'Armed schooner'
Database: ship_1
Question: Find the captain rank that has no captain in Third-rate ship of the line class.
Paraphrased question: Find the captain rank that has no captain in Third-rate ship of the line class.
SQL: SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS  =  'Third-rate ship of the line'
Database: ship_1
Question: What are the ranks of captains that have no captain that are in the Third-rate ship of the line class?
Paraphrased question: What are the ranks of captains that have no captain that are in the Third-rate ship of the line class?
SQL: SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS  =  'Third-rate ship of the line'
Database: ship_1
Question: What is the name of the youngest captain?
Paraphrased question: What is the name of the youngest captain?
SQL: SELECT name FROM captain ORDER BY age LIMIT 1
Database: ship_1
Question: Return the name of the youngest captain.
Paraphrased question: Return the name of the youngest captain.
SQL: SELECT name FROM captain ORDER BY age LIMIT 1
Database: ship_1
Question: how many ships are there?
Paraphrased question: how many vessels are there?
SQL: SELECT count(*) FROM ship
Database: ship_1
Question: Count the number of ships.
Paraphrased question: Count the number of vessels.
SQL: SELECT count(*) FROM ship
Database: ship_1
Question: Find the name, type, and flag of the ship that is built in the most recent year.
Paraphrased question: Find the name, type, and banner of the vessel that is built in the most recent year.
SQL: SELECT name ,  TYPE ,  flag FROM ship ORDER BY built_year DESC LIMIT 1
Database: ship_1
Question: What is the name, type, and flag of the ship that was built in the most recent year?
Paraphrased question: What is the name, type, and banner of the vessel that was built in the most recent year?
SQL: SELECT name ,  TYPE ,  flag FROM ship ORDER BY built_year DESC LIMIT 1
Database: ship_1
Question: Group by ships by flag, and return number of ships that have each flag.
Paraphrased question: Group by vessels by banner, and return number of vessels that have each banner.
SQL: SELECT count(*) ,  flag FROM ship GROUP BY flag
Database: ship_1
Question: What are the different ship flags, and how many ships have each?
Paraphrased question: What are the different vessel banners, and how many vessels have each?
SQL: SELECT count(*) ,  flag FROM ship GROUP BY flag
Database: ship_1
Question: Which flag is most widely used among all ships?
Paraphrased question: Which banner is most widely used among all vessels?
SQL: SELECT flag FROM ship GROUP BY flag ORDER BY count(*) DESC LIMIT 1
Database: ship_1
Question: Return the flag that is most common among all ships.
Paraphrased question: Return the banner that is most common among all vessels.
SQL: SELECT flag FROM ship GROUP BY flag ORDER BY count(*) DESC LIMIT 1
Database: ship_1
Question: List all ship names in the order of built year and class.
Paraphrased question: List all vessel names in the order of built year and class.
SQL: SELECT name FROM ship ORDER BY built_year ,  CLASS
Database: ship_1
Question: What are the names of ships, ordered by year they were built and their class?
Paraphrased question: What are the names of vessels, ordered by year they were built and their class?
SQL: SELECT name FROM ship ORDER BY built_year ,  CLASS
Database: ship_1
Question: Find the ship type that are used by both ships with Panama and Malta flags.
Paraphrased question: Find the vessel category that are used by both vessels with Panama and Malta flags.
SQL: SELECT TYPE FROM ship WHERE flag  =  'Panama' INTERSECT SELECT TYPE FROM ship WHERE flag  =  'Malta'
Database: ship_1
Question: What types of ships have both ships that have Panama Flags and Malta flags?
Paraphrased question: What categories of vessels have both vessels that have Panama Flags and Malta flags?
SQL: SELECT TYPE FROM ship WHERE flag  =  'Panama' INTERSECT SELECT TYPE FROM ship WHERE flag  =  'Malta'
Database: ship_1
Question: In which year were most of ships built?
Paraphrased question: In which year were most of vessels built?
SQL: SELECT built_year FROM ship GROUP BY built_year ORDER BY count(*) DESC LIMIT 1
Database: ship_1
Question: What is the year in which most ships were built?
Paraphrased question: What is the year in which most vessels were built?
SQL: SELECT built_year FROM ship GROUP BY built_year ORDER BY count(*) DESC LIMIT 1
Database: ship_1
Question: Find the name of the ships that have more than one captain.
Paraphrased question: Find the name of the vessels that have more than one captain.
SQL: SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id GROUP BY t2.ship_id HAVING count(*)  >  1
Database: ship_1
Question: What are the names of ships that have more than one captain?
Paraphrased question: What are the names of vessels that have more than one captain?
SQL: SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id GROUP BY t2.ship_id HAVING count(*)  >  1
Database: ship_1
Question: what are the names and classes of the ships that do not have any captain yet?
Paraphrased question: what are the names and classes of the vessels that do not have any captain yet?
SQL: SELECT name ,  CLASS FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain)
Database: ship_1
Question: Return the names and classes of ships that do not have a captain?
Paraphrased question: Return the names and classes of vessels that do not have a captain?
SQL: SELECT name ,  CLASS FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain)
Database: ship_1
Question: Find the name of the ship that is steered by the youngest captain.
Paraphrased question: Find the name of the vessel that is steered by the youngest captain.
SQL: SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id ORDER BY t2.age LIMIT 1
Database: ship_1
Question: What is the name of the ship that is commanded by the youngest captain?
Paraphrased question: What is the name of the vessel that is commanded by the youngest captain?
SQL: SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id ORDER BY t2.age LIMIT 1
Database: ship_1
Question: Find the name and flag of ships that are not steered by any captain with Midshipman rank.
Paraphrased question: Find the name and banner of vessels that are not steered by any captain with Midshipman rank.
SQL: SELECT name ,  flag FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain WHERE rank  =  'Midshipman')
Database: ship_1
Question: What are the names and flags of ships that do not have a captain with the rank of Midshipman?
Paraphrased question: What are the names and banners of vessels that do not have a captain with the rank of Midshipman?
SQL: SELECT name ,  flag FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain WHERE rank  =  'Midshipman')
Database: ship_1
Question: Find the name of the ships that are steered by both a captain with Midshipman rank and a captain with Lieutenant rank.
Paraphrased question: Find the name of the vessels that are steered by both a captain with Midshipman rank and a captain with Lieutenant rank.
SQL: SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id WHERE t2.rank  =  'Midshipman' INTERSECT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id WHERE t2.rank  =  'Lieutenant'
Database: ship_1
Question: What are the names of ships that are commanded by both captains with the rank of Midshipman and captains with the rank of Lieutenant?
Paraphrased question: What are the names of vessels that are commanded by both captains with the rank of Midshipman and captains with the rank of Lieutenant?
SQL: SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id WHERE t2.rank  =  'Midshipman' INTERSECT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id WHERE t2.rank  =  'Lieutenant'
Database: city_record
Question: What is id of the city that hosted events in the most recent year?
Paraphrased question: What is id of the town that held events in the most recent year?
SQL: SELECT host_city FROM hosting_city ORDER BY YEAR DESC LIMIT 1
Database: city_record
Question: Find the city that hosted some events in the most recent year. What is the id of this city?
Paraphrased question: Find the town that held some events in the most recent year. What is the id of this town?
SQL: SELECT host_city FROM hosting_city ORDER BY YEAR DESC LIMIT 1
Database: city_record
Question: Find the match ids of the cities that hosted competition "1994 FIFA World Cup qualification"?
Paraphrased question: Find the contest ids of the towns that hosted competition "1994 FIFA World Cup qualification"?
SQL: SELECT match_id FROM MATCH WHERE competition = "1994 FIFA World Cup qualification"
Database: city_record
Question: What is the match id of the competition called "1994 FIFA World Cup qualification"?
Paraphrased question: What is the game id of the competition called "1994 FIFA World Cup qualification"?
SQL: SELECT match_id FROM MATCH WHERE competition = "1994 FIFA World Cup qualification"
Database: city_record
Question: Find the cities which were once a host city after 2010?
Paraphrased question: Find the towns which were once a host town after 2010?
SQL: SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year  >  2010
Database: city_record
Question: Which cities served as a host city after 2010?
Paraphrased question: Which towns served as a host town after 2010?
SQL: SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year  >  2010
Database: city_record
Question: Which city has hosted the most events?
Paraphrased question: Which town has held the most events?
SQL: SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city GROUP BY T2.host_city ORDER BY count(*) DESC LIMIT 1
Database: city_record
Question: Find the city that hosted the most events.
Paraphrased question: Find the town that held the most events.
SQL: SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city GROUP BY T2.host_city ORDER BY count(*) DESC LIMIT 1
Database: city_record
Question: What is the venue of the competition "1994 FIFA World Cup qualification" hosted by "Nanjing ( Jiangsu )"?
Paraphrased question: What is the location of the competition "1994 FIFA World Cup qualification" hosted by "Nanjing ( Jiangsu )"?
SQL: SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = "Nanjing ( Jiangsu )" AND T3.competition = "1994 FIFA World Cup qualification"
Database: city_record
Question: Find the venue of the competition "1994 FIFA World Cup qualification" which was hosted by "Nanjing ( Jiangsu )".
Paraphrased question: Find the location of the competition "1994 FIFA World Cup qualification" which was hosted by "Nanjing ( Jiangsu )".
SQL: SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = "Nanjing ( Jiangsu )" AND T3.competition = "1994 FIFA World Cup qualification"
Database: city_record
Question: Give me the temperature of Shanghai in January.
Paraphrased question: Give me the celsius degree of Shanghai in January.
SQL: SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = "Shanghai"
Database: city_record
Question: What is the temperature of "Shanghai" city in January?
Paraphrased question: What is the celsius degree of "Shanghai" city in January?
SQL: SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = "Shanghai"
Database: city_record
Question: What is the host year of city "Taizhou ( Zhejiang )"?
Paraphrased question: What is the host year of town "Taizhou ( Zhejiang )"?
SQL: SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city WHERE T1.city  =  "Taizhou ( Zhejiang )"
Database: city_record
Question: IN which year did city "Taizhou ( Zhejiang )" serve as a host city?
Paraphrased question: IN which year did town "Taizhou ( Zhejiang )" serve as a host town?
SQL: SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city WHERE T1.city  =  "Taizhou ( Zhejiang )"
Database: city_record
Question: Which three cities have the largest regional population?
Paraphrased question: Which three towns have the largest regional population?
SQL: SELECT city FROM city ORDER BY regional_population DESC LIMIT 3
Database: city_record
Question: What are the three largest cities in terms of regional population?
Paraphrased question: What are the three largest towns in terms of regional population?
SQL: SELECT city FROM city ORDER BY regional_population DESC LIMIT 3
Database: city_record
Question: Which city has the lowest GDP? Please list the city name and its GDP.
Paraphrased question: Which town has the lowest gross domestic product? Please list the town name and its gross domestic product.
SQL: SELECT city ,  GDP FROM city ORDER BY GDP LIMIT 1
Database: city_record
Question: What is the city with the smallest GDP? Return the city and its GDP.
Paraphrased question: What is the town with the smallest gross domestic product? Return the town and its gross domestic product.
SQL: SELECT city ,  GDP FROM city ORDER BY GDP LIMIT 1
Database: city_record
Question: Which city has the highest temperature in February?
Paraphrased question: Which town has the highest temperature in February?
SQL: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id ORDER BY T2.Feb DESC LIMIT 1
Database: city_record
Question: In February, which city marks the highest temperature?
Paraphrased question: In February, which town marks the highest celsius degree?
SQL: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id ORDER BY T2.Feb DESC LIMIT 1
Database: city_record
Question: Give me a list of cities whose temperature in March is lower than that in July or higher than that in Oct?
Paraphrased question: Give me a list of towns whose celsius degree in March is lower than that in July or higher than that in Oct?
SQL: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Jul OR T2.Mar  >  T2.Oct
Database: city_record
Question: Which cities' temperature in March is lower than that in July or higher than that in Oct?
Paraphrased question: Which towns' celsius degree in March is lower than that in July or higher than that in Oct?
SQL: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Jul OR T2.Mar  >  T2.Oct
Database: city_record
Question: Give me a list of cities whose temperature in Mar is lower than that in July and which have also served as host cities?
Paraphrased question: Give me a list of towns whose celsius degree in Mar is lower than that in July and which have also served as host towns?
SQL: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city
Database: city_record
Question: Which cities have lower temperature in March than in July and have been once host cities?
Paraphrased question: Which towns have lower celsius degree in March than in July and have been once host towns?
SQL: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city
Database: city_record
Question: Give me a list of cities whose temperature in Mar is lower than that in Dec and which have never been host cities.
Paraphrased question: Give me a list of towns whose celsius degree in Mar is lower than that in Dec and which have never been host towns.
SQL: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city
Database: city_record
Question: Which cities have lower temperature in March than in Dec and have never served as host cities?
Paraphrased question: Which towns have lower celsius degree in March than in Dec and have never served as host towns?
SQL: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city
Database: city_record
Question: Give me a list of cities whose temperature in Feb is higher than that in Jun or cities that were once host cities?
Paraphrased question: Give me a list of towns whose celsius degree in Feb is higher than that in Jun or towns that were once host towns?
SQL: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Feb  >  T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city
Database: city_record
Question: Which cities have higher temperature in Feb than in Jun or have once served as host cities?
Paraphrased question: Which towns have higher celsius degree in Feb than in Jun or have once served as host towns?
SQL: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Feb  >  T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city
Database: city_record
Question: Please give me a list of cities whose regional population is over 10000000.
Paraphrased question: Please give me a list of towns whose regional populace is over 10000000.
SQL: SELECT city FROM city WHERE regional_population  >  10000000
Database: city_record
Question: Which cities have regional population above 10000000?
Paraphrased question: Which towns have regional populace above 10000000?
SQL: SELECT city FROM city WHERE regional_population  >  10000000
Database: city_record
Question: Please give me a list of cities whose regional population is over 8000000 or under 5000000.
Paraphrased question: Please give me a list of towns whose regional populace is over 8000000 or under 5000000.
SQL: SELECT city FROM city WHERE regional_population  >  10000000 UNION SELECT city FROM city WHERE regional_population  <  5000000
Database: city_record
Question: Which cities have regional population above 8000000 or below 5000000?
Paraphrased question: Which towns have regional populace above 8000000 or below 5000000?
SQL: SELECT city FROM city WHERE regional_population  >  10000000 UNION SELECT city FROM city WHERE regional_population  <  5000000
Database: city_record
Question: Find the number of matches in different competitions.
Paraphrased question: Find the number of games in different competitions.
SQL: SELECT count(*) ,  Competition FROM MATCH GROUP BY Competition
Database: city_record
Question: For each competition, count the number of matches.
Paraphrased question: For each contest, count the number of matches.
SQL: SELECT count(*) ,  Competition FROM MATCH GROUP BY Competition
Database: city_record
Question: List venues of all matches in the order of their dates starting from the most recent one.
Paraphrased question: List locations of all matches in the order of their dates starting from the most recent one.
SQL: SELECT venue FROM MATCH ORDER BY date DESC
Database: city_record
Question: What are the venues of all the matches? Sort them in the descending order of match date.
Paraphrased question: What are the locations of all the matches? Sort them in the descending order of match date.
SQL: SELECT venue FROM MATCH ORDER BY date DESC
Database: city_record
Question: what is the GDP of the city with the largest population.
Paraphrased question: what is the gross domestic product of the city with the largest population.
SQL: SELECT gdp FROM city ORDER BY Regional_Population DESC LIMIT 1
Database: city_record
Question: Find the GDP of the city with the largest regional population.
Paraphrased question: Find the gross domestic product of the city with the largest regional population.
SQL: SELECT gdp FROM city ORDER BY Regional_Population DESC LIMIT 1
Database: city_record
Question: What are the GDP and population of the city that already served as a host more than once?
Paraphrased question: What are the gross domestic product and number of people of the city that already served as a host more than once?
SQL: SELECT t1.gdp ,  t1.Regional_Population FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city GROUP BY t2.Host_City HAVING count(*)  >  1
Database: city_record
Question: Which cities have served as host cities more than once? Return me their GDP and population.
Paraphrased question: Which cities have served as host cities more than once? Return me their gross domestic product and number of people.
SQL: SELECT t1.gdp ,  t1.Regional_Population FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city GROUP BY t2.Host_City HAVING count(*)  >  1
Database: e_government
Question: List every individual's first name, middle name and last name in alphabetical order by last name.
Paraphrased question: List every individual's forename, middle name and surname in alphabetical order by surname.
SQL: SELECT individual_first_name ,  individual_middle_name ,  individual_last_name FROM individuals ORDER BY individual_last_name
Database: e_government
Question: What are the first, middle, and last names of all individuals, ordered by last name?
Paraphrased question: What are the forenames, middle names, and family names of all individuals, ordered by family name?
SQL: SELECT individual_first_name ,  individual_middle_name ,  individual_last_name FROM individuals ORDER BY individual_last_name
Database: e_government
Question: List all the types of forms.
Paraphrased question: List all the types of forms.
SQL: SELECT DISTINCT form_type_code FROM forms
Database: e_government
Question: What are the different types of forms?
Paraphrased question: What are the different types of forms?
SQL: SELECT DISTINCT form_type_code FROM forms
Database: e_government
Question: Find the name of the most popular party form.
Paraphrased question: Find the name of the most popular party type.
SQL: SELECT t1.form_name FROM forms AS t1 JOIN party_forms AS t2 ON t1.form_id  =  t2.form_id GROUP BY t2.form_id ORDER BY count(*) DESC LIMIT 1
Database: e_government
Question: What is the name of the party form that is most common?
Paraphrased question: What is the name of the party type that is most common?
SQL: SELECT t1.form_name FROM forms AS t1 JOIN party_forms AS t2 ON t1.form_id  =  t2.form_id GROUP BY t2.form_id ORDER BY count(*) DESC LIMIT 1
Database: e_government
Question: Find the payment method and phone of the party with email "enrico09@example.com".
Paraphrased question: Find the payment type and telephone of the party with email "enrico09@example.com".
SQL: SELECT payment_method_code ,  party_phone FROM parties WHERE party_email  =  "enrico09@example.com"
Database: e_government
Question: What is the payment method code and party phone of the party with the email 'enrico09@example.com'?
Paraphrased question: What is the payment type code and party telephone of the party with the email 'enrico09@example.com'?
SQL: SELECT payment_method_code ,  party_phone FROM parties WHERE party_email  =  "enrico09@example.com"
Database: e_government
Question: Find the emails of parties with the most popular party form.
Paraphrased question: Find the emails of parties with the most popular party type.
SQL: SELECT t1.party_email FROM parties AS t1 JOIN party_forms AS t2 ON t1.party_id  =  t2.party_id WHERE t2.form_id  =  (SELECT form_id FROM party_forms GROUP BY form_id ORDER BY count(*) DESC LIMIT 1)
Database: e_government
Question: What are the party emails associated with parties that used the party form that is the most common?
Paraphrased question: What are the party emails associated with parties that used the party type that is the most common?
SQL: SELECT t1.party_email FROM parties AS t1 JOIN party_forms AS t2 ON t1.party_id  =  t2.party_id WHERE t2.form_id  =  (SELECT form_id FROM party_forms GROUP BY form_id ORDER BY count(*) DESC LIMIT 1)
Database: e_government
Question: List all the name of organizations in order of the date formed.
Paraphrased question: List all the name of organizations in order of the date formed.
SQL: SELECT organization_name FROM organizations ORDER BY date_formed ASC
Database: e_government
Question: What are the names of organizations, ordered by the date they were formed, ascending?
Paraphrased question: What are the names of organizations, ordered by the date they were formed, ascending?
SQL: SELECT organization_name FROM organizations ORDER BY date_formed ASC
Database: e_government
Question: Find the name of the youngest organization.
Paraphrased question: Find the name of the youngest organization.
SQL: SELECT organization_name FROM organizations ORDER BY date_formed DESC LIMIT 1
Database: e_government
Question: What is the name of the organization that was formed most recently?
Paraphrased question: What is the name of the organization that was formed most recently?
SQL: SELECT organization_name FROM organizations ORDER BY date_formed DESC LIMIT 1
Database: e_government
Question: Find the last name of the latest contact individual of the organization "Labour Party".
Paraphrased question: Find the surname of the latest contact individual of the organization "Labour Party".
SQL: SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id JOIN individuals AS t3 ON t2.individual_id  =  t3.individual_id WHERE t1.organization_name  =  "Labour Party" ORDER BY t2.date_contact_to DESC LIMIT 1
Database: e_government
Question: What is the last name of the contact individual from the Labour party organization who was contacted most recently?
Paraphrased question: What is the surname of the contact individual from the Labour party organization who was contacted most recently?
SQL: SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id JOIN individuals AS t3 ON t2.individual_id  =  t3.individual_id WHERE t1.organization_name  =  "Labour Party" ORDER BY t2.date_contact_to DESC LIMIT 1
Database: e_government
Question: Find the last name of the first ever contact person of the organization with the highest UK Vat number.
Paraphrased question: Find the family name of the first ever contact person of the organization with the highest UK Vat number.
SQL: SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id JOIN individuals AS t3 ON t2.individual_id  =  t3.individual_id WHERE t1.uk_vat_number  =  (SELECT max(uk_vat_number) FROM organizations) ORDER BY t2.date_contact_to ASC LIMIT 1
Database: e_government
Question: What is the last name of the first individual contacted from the organization with the maximum UK Vat number across all organizations?
Paraphrased question: What is the family name of the first individual contacted from the organization with the maximum UK Vat number across all organizations?
SQL: SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id JOIN individuals AS t3 ON t2.individual_id  =  t3.individual_id WHERE t1.uk_vat_number  =  (SELECT max(uk_vat_number) FROM organizations) ORDER BY t2.date_contact_to ASC LIMIT 1
Database: e_government
Question: How many services are there?
Paraphrased question: How many services are there?
SQL: SELECT count(*) FROM services
Database: e_government
Question: Count the number of services.
Paraphrased question: Count the number of services.
SQL: SELECT count(*) FROM services
Database: e_government
Question: Find name of the services that has never been used.
Paraphrased question: Find name of the services that has never been used.
SQL: SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id  =  t2.service_id
Database: e_government
Question: What are the names of the services that have never been used?
Paraphrased question: What are the names of the services that have never been used?
SQL: SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id  =  t2.service_id
Database: e_government
Question: Find the name of all the cities and states.
Paraphrased question: Find the name of all the cities and states.
SQL: SELECT town_city FROM addresses UNION SELECT state_province_county FROM addresses
Database: e_government
Question: What are the names of all cities and states?
Paraphrased question: What are the names of all cities and states?
SQL: SELECT town_city FROM addresses UNION SELECT state_province_county FROM addresses
Database: e_government
Question: How many cities are there in state "Colorado"?
Paraphrased question: How many cities are there in state "Colorado"?
SQL: SELECT count(*) FROM addresses WHERE state_province_county  =  "Colorado"
Database: e_government
Question: Count the number of cities in the state of Colorado.
Paraphrased question: Count the number of cities in the state of Colorado.
SQL: SELECT count(*) FROM addresses WHERE state_province_county  =  "Colorado"
Database: e_government
Question: Find the payment method code used by more than 3 parties.
Paraphrased question: Find the payment type code used by more than 3 parties.
SQL: SELECT payment_method_code FROM parties GROUP BY payment_method_code HAVING count(*)  >  3
Database: e_government
Question: What are the payment method codes that have been used by more than 3 parties?
Paraphrased question: What are the payment type codes that have been used by more than 3 parties?
SQL: SELECT payment_method_code FROM parties GROUP BY payment_method_code HAVING count(*)  >  3
Database: e_government
Question: Find the name of organizations whose names contain "Party".
Paraphrased question: Find the name of organizations whose names contain "Party".
SQL: SELECT organization_name FROM organizations WHERE organization_name LIKE "%Party%"
Database: e_government
Question: What are the names of organizations that contain the word "Party"?
Paraphrased question: What are the names of organizations that contain the word "Party"?
SQL: SELECT organization_name FROM organizations WHERE organization_name LIKE "%Party%"
Database: e_government
Question: How many distinct payment methods are used by parties?
Paraphrased question: How many different payment types are used by parties?
SQL: SELECT count(DISTINCT payment_method_code) FROM parties
Database: e_government
Question: Count the number of different payment method codes used by parties.
Paraphrased question: Count the number of different payment type codes used by parties.
SQL: SELECT count(DISTINCT payment_method_code) FROM parties
Database: e_government
Question: Which is the email of the party that has used the services the most number of times?
Paraphrased question: Which is the email of the party that has used the services the most number of times?
SQL: SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id  =  t2.customer_id GROUP BY t1.party_email ORDER BY count(*) DESC LIMIT 1
Database: e_government
Question: Return the party email that has used party services the greatest number of times.
Paraphrased question: Return the party email  that has used party services the greatest number of times.
SQL: SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id  =  t2.customer_id GROUP BY t1.party_email ORDER BY count(*) DESC LIMIT 1
Database: e_government
Question: Which state can address "6862 Kaitlyn Knolls" possibly be in?
Paraphrased question: Which state can address "6862 Kaitlyn Knolls" possibly be in?
SQL: SELECT state_province_county FROM addresses WHERE line_1_number_building LIKE "%6862 Kaitlyn Knolls%"
Database: e_government
Question: Give the state corresponding to the line number building "6862 Kaitlyn Knolls".
Paraphrased question: Give the state corresponding to the line number building "6862 Kaitlyn Knolls".
SQL: SELECT state_province_county FROM addresses WHERE line_1_number_building LIKE "%6862 Kaitlyn Knolls%"
Database: e_government
Question: What is the name of organization that has the greatest number of contact individuals?
Paraphrased question: What is the name of organization that has the greatest number of contact individuals?
SQL: SELECT t1.organization_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id GROUP BY t1.organization_name ORDER BY count(*) DESC LIMIT 1
Database: e_government
Question: Return the name of the organization which has the most contact individuals.
Paraphrased question: Return the name of the organization which has the most contact individuals.
SQL: SELECT t1.organization_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id GROUP BY t1.organization_name ORDER BY count(*) DESC LIMIT 1
Database: e_government
Question: Find the last name of the individuals that have been contact individuals of an organization.
Paraphrased question: Find the family name of the individuals that have been contact individuals of an organization.
SQL: SELECT DISTINCT t1.individual_last_name FROM individuals AS t1 JOIN organization_contact_individuals AS t2 ON t1.individual_id  =  t2.individual_id
Database: e_government
Question: What are the last names of individuals who have been contact individuals for an organization?
Paraphrased question: What are the family names of individuals who have been contact individuals for an organization?
SQL: SELECT DISTINCT t1.individual_last_name FROM individuals AS t1 JOIN organization_contact_individuals AS t2 ON t1.individual_id  =  t2.individual_id
Database: school_bus
Question: How many drivers are there?
Paraphrased question: How many chauffeurs are there?
SQL: SELECT count(*) FROM driver
Database: school_bus
Question: Show the name, home city, and age for all drivers.
Paraphrased question: Show the name, home city, and age for all chauffeurs.
SQL: SELECT name ,  home_city ,  age FROM driver
Database: school_bus
Question: Show the party and the number of drivers in each party.
Paraphrased question: Show the party and the number of chauffeurs in each party.
SQL: SELECT party ,  count(*) FROM driver GROUP BY party
Database: school_bus
Question: Show the name of drivers in descending order of age.
Paraphrased question: Show the name of chauffeurs in descending order of age.
SQL: SELECT name FROM driver ORDER BY age DESC
Database: school_bus
Question: Show all different home cities.
Paraphrased question: Show all different home cities.
SQL: SELECT DISTINCT home_city FROM driver
Database: school_bus
Question: Show the home city with the most number of drivers.
Paraphrased question: Show the home city with the most number of chauffeurs.
SQL: SELECT home_city FROM driver GROUP BY home_city ORDER BY count(*) DESC LIMIT 1
Database: school_bus
Question: Show the party with drivers from Hartford and drivers older than 40.
Paraphrased question: Show the party with drivers from Hartford and drivers older than 40.
SQL: SELECT party FROM driver WHERE home_city  =  'Hartford' AND age  >  40
Database: school_bus
Question: Show home city where at least two drivers older than 40 are from.
Paraphrased question: Show home city where at least two chauffeurs older than 40 are from.
SQL: SELECT home_city FROM driver WHERE age  >  40 GROUP BY home_city HAVING count(*)  >=  2
Database: school_bus
Question: Show all home cities except for those having a driver older than 40.
Paraphrased question: Show all home cities except for those having a chauffeur older than 40.
SQL: SELECT home_city FROM driver EXCEPT SELECT home_city FROM driver WHERE age  >  40
Database: school_bus
Question: Show the names of the drivers without a school bus.
Paraphrased question: Show the names of the chauffeurs without a school bus.
SQL: SELECT name FROM driver WHERE driver_id NOT IN (SELECT driver_id FROM school_bus)
Database: school_bus
Question: Show the types of schools that have two schools.
Paraphrased question: Show the categories of schools that have two schools.
SQL: SELECT TYPE FROM school GROUP BY TYPE HAVING count(*)  =  2
Database: school_bus
Question: Show the school name and driver name for all school buses.
Paraphrased question: Show the school name and chauffeur name for all school buses.
SQL: SELECT T2.school ,  T3.name FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id JOIN driver AS T3 ON T1.driver_id  =  T3.driver_id
Database: school_bus
Question: What is the maximum, minimum and average years spent working on a school bus?
Paraphrased question: What is the maximum, minimum and average years spent working on a school bus?
SQL: SELECT max(years_working) ,  min(years_working) ,  avg(years_working) FROM school_bus
Database: school_bus
Question: Show the school name and type for schools without a school bus.
Paraphrased question: Show the school name and category for schools without a school bus.
SQL: SELECT school ,  TYPE FROM school WHERE school_id NOT IN (SELECT school_id FROM school_bus)
Database: school_bus
Question: Show the type of school and the number of buses for each type.
Paraphrased question: Show the category of school and the number of buses for each category.
SQL: SELECT T2.type ,  count(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id GROUP BY T2.type