aherntech/spider-syn huggingface dataset:
Database: world_1
Question: How many cities in each district have a population that is above the average population across all cities?
Paraphrased question: How many towns in each district have a population that is above the average number of residents across all towns?
SQL: SELECT count(*) ,  District FROM city WHERE Population  >  (SELECT avg(Population) FROM city) GROUP BY District
Database: world_1
Question: Find the government form name and total population for each government form whose average life expectancy is longer than 72.
Paraphrased question: Find the government type name and total number of residents for each government type whose average lifespan is longer than 72.
SQL: SELECT sum(Population) ,  GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy)  >  72
Database: world_1
Question: What are the different government forms and what is the total population of each for government forms that have an average life expectancy greater than 72?
Paraphrased question: What are the different government types and what is the total number of residents of each for government types that have an average lifespan greater than 72?
SQL: SELECT sum(Population) ,  GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy)  >  72
Database: world_1
Question: Find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72?
Paraphrased question: Find the average lifespan and total number of people for each continent where the average lifespan is shorter than 72?
SQL: SELECT sum(Population) ,  avg(LifeExpectancy) ,  Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy)  <  72
Database: world_1
Question: What are the different continents and the total popuation and average life expectancy corresponding to each, for continents that have an average life expectancy less than 72?
Paraphrased question: What are the different continents and the total number of people and average lifespan corresponding to each, for continents that have an average lifespan less than 72?
SQL: SELECT sum(Population) ,  avg(LifeExpectancy) ,  Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy)  <  72
Database: world_1
Question: What are the names and areas of countries with the top 5 largest area?
Paraphrased question: What are the names and areas of States with the top 5 largest territory?
SQL: SELECT Name ,  SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5
Database: world_1
Question: Return the names and surface areas of the 5 largest countries.
Paraphrased question: Return the names and territory of the 5 largest countries.
SQL: SELECT Name ,  SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5
Database: world_1
Question: What are names of countries with the top 3 largest population?
Paraphrased question: What are names of nations with the top 3 largest number of people?
SQL: SELECT Name FROM country ORDER BY Population DESC LIMIT 3
Database: world_1
Question: Return the names of the 3 most populated countries.
Paraphrased question: Return the names of the 3 most populated countries.
SQL: SELECT Name FROM country ORDER BY Population DESC LIMIT 3
Database: world_1
Question: What are the names of the nations with the 3 lowest populations?
Paraphrased question: What are the names of the countries with the 3 lowest number of peoples?
SQL: SELECT Name FROM country ORDER BY Population ASC LIMIT 3
Database: world_1
Question: Return the names of the 3 countries with the fewest people.
Paraphrased question: Return the names of the 3 nations with the fewest people.
SQL: SELECT Name FROM country ORDER BY Population ASC LIMIT 3
Database: world_1
Question: how many countries are in Asia?
Paraphrased question: how many nations are in Asia?
SQL: SELECT count(*) FROM country WHERE continent  =  "Asia"
Database: world_1
Question: Count the number of countries in Asia.
Paraphrased question: Count the number of nations in Asia.
SQL: SELECT count(*) FROM country WHERE continent  =  "Asia"
Database: world_1
Question: What are the names of the countries that are in the continent of Europe and have a population of 80000?
Paraphrased question: What are the names of the States that are in the continent of Europe and have a number of people of 80000?
SQL: SELECT Name FROM country WHERE continent  =  "Europe" AND Population  =  "80000"
Database: world_1
Question: Give the names of countries that are in Europe and have a population equal to 80000.
Paraphrased question: Give the names of nations that are in Europe and have a number of people equal to 80000.
SQL: SELECT Name FROM country WHERE continent  =  "Europe" AND Population  =  "80000"
Database: world_1
Question: What is the total population and average area of countries in the continent of North America whose area is bigger than 3000？
Paraphrased question: What is the total number of people and average territory of countries in the continent of North America whose territory is bigger than 3000？
SQL: SELECT sum(Population) ,  avg(SurfaceArea) FROM country WHERE Continent  =  "North America" AND SurfaceArea  >  3000
Database: world_1
Question: Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000.
Paraphrased question: Give the total number of people and average territory corresponding to countries in North America that have a territory greater than 3000.
SQL: SELECT sum(Population) ,  avg(SurfaceArea) FROM country WHERE Continent  =  "North America" AND SurfaceArea  >  3000
Database: world_1
Question: What are the cities whose population is between 160000 and 900000?
Paraphrased question: What are the towns whose number of residents is between 160000 and 900000?
SQL: SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000
Database: world_1
Question: Return the names of cities that have a population between 160000 and 900000.
Paraphrased question: Return the names of towns that have a number of people between 160000 and 900000.
SQL: SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000
Database: world_1
Question: Which language is spoken by the largest number of countries?
Paraphrased question: Which language is spoken by the largest number of nations?
SQL: SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1
Database: world_1
Question: Give the language that is spoken in the most countries.
Paraphrased question: Give the language that is spoken in the most nations.
SQL: SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1
Database: world_1
Question: What is the language spoken by the largest percentage of people in each country?
Paraphrased question: What is the language spoken by most people in each State?
SQL: SELECT LANGUAGE ,  CountryCode ,  max(Percentage) FROM countrylanguage GROUP BY CountryCode
Database: world_1
Question: What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each?
Paraphrased question: What are the nation abbreviations of the different nations, and what are the languages spoken by the most people for each?
SQL: SELECT LANGUAGE ,  CountryCode ,  max(Percentage) FROM countrylanguage GROUP BY CountryCode
Database: world_1
Question: What is the total number of countries where Spanish is spoken by the largest percentage of people?
Paraphrased question: What is the total number of nations where Spanish is spoken by most people?
SQL: SELECT count(*) ,   max(Percentage) FROM countrylanguage WHERE LANGUAGE  =  "Spanish" GROUP BY CountryCode
Database: world_1
Question: Count the number of countries for which Spanish is the predominantly spoken language.
Paraphrased question: Count the number of nations for which Spanish is the predominantly spoken language.
SQL: SELECT count(*) ,   max(Percentage) FROM countrylanguage WHERE LANGUAGE  =  "Spanish" GROUP BY CountryCode
Database: world_1
Question: What are the codes of countries where Spanish is spoken by the largest percentage of people?
Paraphrased question: What are the codes of nations where Spanish is spoken by most people?
SQL: SELECT CountryCode ,  max(Percentage) FROM countrylanguage WHERE LANGUAGE  =  "Spanish" GROUP BY CountryCode
Database: world_1
Question: Return the codes of countries for which Spanish is the predominantly spoken language.
Paraphrased question: Return the codes of States for which Spanish is the predominantly spoken language.
SQL: SELECT CountryCode ,  max(Percentage) FROM countrylanguage WHERE LANGUAGE  =  "Spanish" GROUP BY CountryCode
Database: orchestra
Question: How many conductors are there?
Paraphrased question: How many directors are there?
SQL: SELECT count(*) FROM conductor
Database: orchestra
Question: Count the number of conductors.
Paraphrased question: Count the number of directors.
SQL: SELECT count(*) FROM conductor
Database: orchestra
Question: List the names of conductors in ascending order of age.
Paraphrased question: List the names of directors in ascending order of age.
SQL: SELECT Name FROM conductor ORDER BY Age ASC
Database: orchestra
Question: What are the names of conductors, ordered by age?
Paraphrased question: What are the names of directors, ordered by age?
SQL: SELECT Name FROM conductor ORDER BY Age ASC
Database: orchestra
Question: What are the names of conductors whose nationalities are not "USA"?
Paraphrased question: What are the names of directors whose countries are not "USA"?
SQL: SELECT Name FROM conductor WHERE Nationality != 'USA'
Database: orchestra
Question: Return the names of conductors that do not have the nationality "USA".
Paraphrased question: Return the names of directors that do not have the country "USA".
SQL: SELECT Name FROM conductor WHERE Nationality != 'USA'
Database: orchestra
Question: What are the record companies of orchestras in descending order of years in which they were founded?
Paraphrased question: What are the record enterprise of ensembles in descending order of years in which they were set up?
SQL: SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC
Database: orchestra
Question: Return the record companies of orchestras, sorted descending by the years in which they were founded.
Paraphrased question: Return the record enterprise of ensembles, sorted descending by the years in which they were set up.
SQL: SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC
Database: orchestra
Question: What is the average attendance of shows?
Paraphrased question: What is the average guest of shows?
SQL: SELECT avg(Attendance) FROM SHOW
Database: orchestra
Question: Return the average attendance across all shows.
Paraphrased question: Return the average guest across all shows.
SQL: SELECT avg(Attendance) FROM SHOW
Database: orchestra
Question: What are the maximum and minimum share of performances whose type is not "Live final".
Paraphrased question: What are the maximum and minimum share of performances whose type is not "Live final".
SQL: SELECT max(SHARE) ,  min(SHARE) FROM performance WHERE TYPE != "Live final"
Database: orchestra
Question: Return the maximum and minimum shares for performances that do not have the type "Live final".
Paraphrased question: Return the maximum and minimum shares for performance that do not have the type "Live final".
SQL: SELECT max(SHARE) ,  min(SHARE) FROM performance WHERE TYPE != "Live final"
Database: orchestra
Question: How many different nationalities do conductors have?
Paraphrased question: How many different countries do directors have?
SQL: SELECT count(DISTINCT Nationality) FROM conductor
Database: orchestra
Question: Count the number of different nationalities of conductors.
Paraphrased question: Count the number of different countries of directors.
SQL: SELECT count(DISTINCT Nationality) FROM conductor
Database: orchestra
Question: List names of conductors in descending order of years of work.
Paraphrased question: List names of directors in descending order of time of as a director.
SQL: SELECT Name FROM conductor ORDER BY Year_of_Work DESC
Database: orchestra
Question: What are the names of conductors, sorted descending by the number of years they have worked?
Paraphrased question: What are the names of directors, sorted descending by the time they became a director?
SQL: SELECT Name FROM conductor ORDER BY Year_of_Work DESC
Database: orchestra
Question: List the name of the conductor with the most years of work.
Paraphrased question: List the name of the director with the most years of as a director.
SQL: SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1
Database: orchestra
Question: What is the name of the conductor who has worked the greatest number of years?
Paraphrased question: What is the name of the director who has worked the greatest number of years?
SQL: SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1
Database: orchestra
Question: Show the names of conductors and the orchestras they have conducted.
Paraphrased question: Show the names of directors and the ensembles they have directed.
SQL: SELECT T1.Name ,  T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID
Database: orchestra
Question: What are the names of conductors as well as the corresonding orchestras that they have conducted?
Paraphrased question: What are the names of directors as well as the corresonding ensembles that they have directed?
SQL: SELECT T1.Name ,  T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID
Database: orchestra
Question: Show the names of conductors that have conducted more than one orchestras.
Paraphrased question: Show the names of directors that have conducted more than one ensembles.
SQL: SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*)  >  1
Database: orchestra
Question: What are the names of conductors who have conducted at more than one orchestra?
Paraphrased question: What are the names of directors who have directed at more than one ensemble?
SQL: SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*)  >  1
Database: orchestra
Question: Show the name of the conductor that has conducted the most number of orchestras.
Paraphrased question: Show the name of the director that has directed the most number of ensembles.
SQL: SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1
Database: orchestra
Question: What is the name of the conductor who has conducted the most orchestras?
Paraphrased question: What is the name of the director who has directed the most ensembles?
SQL: SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1
Database: orchestra
Question: Please show the name of the conductor that has conducted orchestras founded after 2008.
Paraphrased question: Please show the name of the director that has directed ensembles set up after 2008.
SQL: SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID WHERE Year_of_Founded  >  2008
Database: orchestra
Question: What are the names of conductors who have conducted orchestras founded after the year 2008?
Paraphrased question: What are the names of directors who have conducted ensembles set up after the year 2008?
SQL: SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID WHERE Year_of_Founded  >  2008
Database: orchestra
Question: Please show the different record companies and the corresponding number of orchestras.
Paraphrased question: Please show the different record enterprise and the corresponding number of ensembles.
SQL: SELECT Record_Company ,  COUNT(*) FROM orchestra GROUP BY Record_Company
Database: orchestra
Question: How many orchestras does each record company manage?
Paraphrased question: How many ensembles does each enterprise manage?
SQL: SELECT Record_Company ,  COUNT(*) FROM orchestra GROUP BY Record_Company
Database: orchestra
Question: Please show the record formats of orchestras in ascending order of count.
Paraphrased question: Please show the record type of ensembles in ascending order of count.
SQL: SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC
Database: orchestra
Question: What are the major record formats of orchestras, sorted by their frequency?
Paraphrased question: What are the major record formats of ensembles, sorted by their frequency?
SQL: SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC
Database: orchestra
Question: List the record company shared by the most number of orchestras.
Paraphrased question: List the record enterprise shared by the most number of ensembles.
SQL: SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1
Database: orchestra
Question: What is the record company used by the greatest number of orchestras?
Paraphrased question: What is the record enterprise used by the greatest number of ensembles?
SQL: SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1
Database: orchestra
Question: List the names of orchestras that have no performance.
Paraphrased question: List the names of ensembles that have no performance.
SQL: SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)
Database: orchestra
Question: What are the orchestras that do not have any performances?
Paraphrased question: What are the ensembles that do not have any performance?
SQL: SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)
Database: orchestra
Question: Show the record companies shared by orchestras founded before 2003 and after 2003.
Paraphrased question: Show the record enterprises shared by ensembles founded before 2003 and after 2003.
SQL: SELECT Record_Company FROM orchestra WHERE Year_of_Founded  <  2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded  >  2003
Database: orchestra
Question: What are the record companies that are used by both orchestras founded before 2003 and those founded after 2003?
Paraphrased question: What are the record enterprises that are used by both ensembles founded before 2003 and those founded after 2003?
SQL: SELECT Record_Company FROM orchestra WHERE Year_of_Founded  <  2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded  >  2003
Database: orchestra
Question: Find the number of orchestras whose record format is "CD" or "DVD".
Paraphrased question: Find the number of ensembles whose record type is "CD" or "DVD".
SQL: SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format  =  "CD" OR Major_Record_Format  =  "DVD"
Database: orchestra
Question: Count the number of orchestras that have CD or DVD as their record format.
Paraphrased question: Count the number of ensembles that have CD or DVD as their record type.
SQL: SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format  =  "CD" OR Major_Record_Format  =  "DVD"
Database: orchestra
Question: Show the years in which orchestras that have given more than one performance are founded.
Paraphrased question: Show the years in which ensembles that have given more than one performance are set up.
SQL: SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID  =  T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*)  >  1
Database: orchestra
Question: What are years of founding for orchestras that have had more than a single performance?
Paraphrased question: What are years of seting up for ensembles that have had more than a single performance?
SQL: SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID  =  T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*)  >  1
Database: network_1
Question: How many high schoolers are there?
Paraphrased question: How many students are there?
SQL: SELECT count(*) FROM Highschooler
Database: network_1
Question: Count the number of high schoolers.
Paraphrased question: Count the number of students.
SQL: SELECT count(*) FROM Highschooler
Database: network_1
Question: Show the names and grades of each high schooler.
Paraphrased question: Show the names and grades of each student.
SQL: SELECT name ,  grade FROM Highschooler
Database: network_1
Question: What are the names and grades for each high schooler?
Paraphrased question: What are the names and grades for each student?
SQL: SELECT name ,  grade FROM Highschooler
Database: network_1
Question: Show all the grades of the high schoolers.
Paraphrased question: Show all the grades of the students.
SQL: SELECT grade FROM Highschooler
Database: network_1
Question: What is the grade of each high schooler?
Paraphrased question: What is the grade of each student?
SQL: SELECT grade FROM Highschooler
Database: network_1
Question: What grade is Kyle in?
Paraphrased question: What grade is Kyle in?
SQL: SELECT grade FROM Highschooler WHERE name  =  "Kyle"
Database: network_1
Question: Return the grade for the high schooler named Kyle.
Paraphrased question: Return the grade for the student named Kyle.
SQL: SELECT grade FROM Highschooler WHERE name  =  "Kyle"
Database: network_1
Question: Show the names of all high schoolers in grade 10.
Paraphrased question: Show the names of all students in grade 10.
SQL: SELECT name FROM Highschooler WHERE grade  =  10
Database: network_1
Question: What are the names of all high schoolers in grade 10?
Paraphrased question: What are the names of all students in grade 10?
SQL: SELECT name FROM Highschooler WHERE grade  =  10
Database: network_1
Question: Show the ID of the high schooler named Kyle.
Paraphrased question: Show the ID of the student named Kyle.
SQL: SELECT ID FROM Highschooler WHERE name  =  "Kyle"
Database: network_1
Question: What is Kyle's id?
Paraphrased question: What is Kyle's id?
SQL: SELECT ID FROM Highschooler WHERE name  =  "Kyle"
Database: network_1
Question: How many high schoolers are there in grade 9 or 10?
Paraphrased question: How many students are there in grade 9 or 10?
SQL: SELECT count(*) FROM Highschooler WHERE grade  =  9 OR grade  =  10
Database: network_1
Question: Count the number of high schoolers in grades 9 or 10.
Paraphrased question: Count the number of students in grades 9 or 10.
SQL: SELECT count(*) FROM Highschooler WHERE grade  =  9 OR grade  =  10
Database: network_1
Question: Show the number of high schoolers for each grade.
Paraphrased question: Show the number of students for each grade.
SQL: SELECT grade ,  count(*) FROM Highschooler GROUP BY grade
Database: network_1
Question: How many high schoolers are in each grade?
Paraphrased question: How many students are in each grade?
SQL: SELECT grade ,  count(*) FROM Highschooler GROUP BY grade
Database: network_1
Question: Which grade has the most high schoolers?
Paraphrased question: Which grade has the most students?
SQL: SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1
Database: network_1
Question: Return the grade that has the greatest number of high schoolers.
Paraphrased question: Return the grade that has the greatest number of students.
SQL: SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1
Database: network_1
Question: Show me all grades that have at least 4 students.
Paraphrased question: Show me all grades that have at least 4 students.
SQL: SELECT grade FROM Highschooler GROUP BY grade HAVING count(*)  >=  4
Database: network_1
Question: Which grades have 4 or more high schoolers?
Paraphrased question: Which grades have 4 or more students?
SQL: SELECT grade FROM Highschooler GROUP BY grade HAVING count(*)  >=  4
Database: network_1
Question: Show the student IDs and numbers of friends corresponding to each.
Paraphrased question: Show the student IDs and numbers of friends corresponding to each.
SQL: SELECT student_id ,  count(*) FROM Friend GROUP BY student_id
Database: network_1
Question: How many friends does each student have?
Paraphrased question: How many friends does each student have?
SQL: SELECT student_id ,  count(*) FROM Friend GROUP BY student_id
Database: network_1
Question: Show the names of high school students and their corresponding number of friends.
Paraphrased question: Show the names of students and their corresponding number of friends.
SQL: SELECT T2.name ,  count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id
Database: network_1
Question: What are the names of the high schoolers and how many friends does each have?
Paraphrased question: What are the names of the students and how many friends does each have?
SQL: SELECT T2.name ,  count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id
Database: network_1
Question: What is the name of the high schooler who has the greatest number of friends?
Paraphrased question: What is the name of the student who has the greatest number of friends?
SQL: SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1
Database: network_1
Question: Return the name of the high school student with the most friends.
Paraphrased question: Return the name of the student with the most friends.
SQL: SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1
Database: network_1
Question: Show the names of high schoolers who have at least 3 friends.
Paraphrased question: Show the names of students who have at least 3 friends.
SQL: SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id HAVING count(*)  >=  3
Database: network_1
Question: What are the names of high schoolers who have 3 or more friends?
Paraphrased question: What are the names of students who have 3 or more friends?
SQL: SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id HAVING count(*)  >=  3
Database: network_1
Question: Show the names of all of the high schooler Kyle's friends.
Paraphrased question: Show the names of all of the student Kyle's friends.
SQL: SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id JOIN Highschooler AS T3 ON T1.friend_id  =  T3.id WHERE T2.name  =  "Kyle"
Database: network_1
Question: Return the names of friends of the high school student Kyle.
Paraphrased question: Return the names of friends of the student Kyle.
SQL: SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id JOIN Highschooler AS T3 ON T1.friend_id  =  T3.id WHERE T2.name  =  "Kyle"
Database: network_1
Question: How many friends does the high school student Kyle have?
Paraphrased question: How many friends does the student Kyle have?
SQL: SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id WHERE T2.name  =  "Kyle"
Database: network_1
Question: Count the number of friends Kyle has.
Paraphrased question: Count the number of friends Kyle has.
SQL: SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id WHERE T2.name  =  "Kyle"
Database: network_1
Question: Show ids of all students who do not have any friends.
Paraphrased question: Show ids of all students who do not have any friends.
SQL: SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend
Database: network_1
Question: What are the ids of high school students who do not have friends?
Paraphrased question: What are the ids of students who do not have friends?
SQL: SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend
Database: network_1
Question: Show names of all high school students who do not have any friends.
Paraphrased question: Show names of all students who do not have any friends.
SQL: SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id
Database: network_1
Question: What are the names of students who have no friends?
Paraphrased question: What are the names of students who have no friends?
SQL: SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id
Database: network_1
Question: Show the ids of high schoolers who have friends and are also liked by someone else.
Paraphrased question: Show the ids of students who have friends and are also liked by someone else.
SQL: SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes
Database: network_1
Question: What are the ids of students who both have friends and are liked?
Paraphrased question: What are the ids of students who both have friends and are liked?
SQL: SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes
Database: network_1
Question: Show name of all students who have some friends and also are liked by someone else.
Paraphrased question: Show name of all students who have some friends and also are liked by someone else.
SQL: SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id  =  T2.id
Database: network_1
Question: What are the names of high schoolers who both have friends and are liked?
Paraphrased question: What are the names of students who both have friends and are liked?
SQL: SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id  =  T2.id
Database: network_1
Question: Count the number of likes for each student id.
Paraphrased question: Count the number of likes for each student id.
SQL: SELECT student_id ,  count(*) FROM Likes GROUP BY student_id
Database: network_1
Question: How many likes correspond to each student id?
Paraphrased question: How many likes correspond to each student id?
SQL: SELECT student_id ,  count(*) FROM Likes GROUP BY student_id
Database: network_1
Question: Show the names of high schoolers who have likes, and numbers of likes for each.
Paraphrased question: Show the names of students who have likes, and numbers of likes for each.
SQL: SELECT T2.name ,  count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id
Database: network_1
Question: What are the names of high schoolers who have likes, and how many likes does each have?
Paraphrased question: What are the names of students who have likes, and how many likes does each have?
SQL: SELECT T2.name ,  count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id
Database: network_1
Question: What is the name of the high schooler who has the greatest number of likes?
Paraphrased question: What is the name of the student who has the greatest number of likes?
SQL: SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1
Database: network_1
Question: Give the name of the student with the most likes.
Paraphrased question: Give the name of the student with the most likes.
SQL: SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1
Database: network_1
Question: Show the names of students who have at least 2 likes.
Paraphrased question: Show the names of students who have at least 2 likes.
SQL: SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id HAVING count(*)  >=  2
Database: network_1
Question: What are the names of students who have 2 or more likes?
Paraphrased question: What are the names of students who have 2 or more interests?
SQL: SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id HAVING count(*)  >=  2
Database: network_1
Question: Show the names of students who have a grade higher than 5 and have at least 2 friends.
Paraphrased question: Show the names of students who have a grade higher than 5 and have at least 2 friends.
SQL: SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id WHERE T2.grade  >  5 GROUP BY T1.student_id HAVING count(*)  >=  2
Database: network_1
Question: What are the names of high schoolers who have a grade of over 5 and have 2 or more friends?
Paraphrased question: What are the names of students who have a grade of over 5 and have 2 or more friends?
SQL: SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id WHERE T2.grade  >  5 GROUP BY T1.student_id HAVING count(*)  >=  2
Database: network_1
Question: How many likes does Kyle have?
Paraphrased question: How many interests does Kyle have?
SQL: SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id WHERE T2.name  =  "Kyle"
Database: network_1
Question: Return the number of likes that the high schooler named Kyle has.
Paraphrased question: Return the number of interests that the student named Kyle has.
SQL: SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id WHERE T2.name  =  "Kyle"
Database: network_1
Question: Find the average grade of all students who have some friends.
Paraphrased question: Find the average grade of all students who have some friends.
SQL: SELECT avg(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id)
Database: network_1
Question: What is the average grade of students who have friends?
Paraphrased question: What is the average grade of students who have friends?
SQL: SELECT avg(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id)
Database: network_1
Question: Find the minimum grade of students who have no friends.
Paraphrased question: Find the minimum grade of students who have no friends.
SQL: SELECT min(grade) FROM Highschooler WHERE id NOT IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id)
Database: network_1
Question: What is the lowest grade of students who do not have any friends?
Paraphrased question: What is the lowest grade of students who do not have any friends?
SQL: SELECT min(grade) FROM Highschooler WHERE id NOT IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id)
Database: dog_kennels
Question: Which states have both owners and professionals living there?
Paraphrased question: Which states have both guardians and veterinarians living there?
SQL: SELECT state FROM Owners INTERSECT SELECT state FROM Professionals
Database: dog_kennels
Question: Find the states where both owners and professionals live.
Paraphrased question: Find the states where both guardians and veterinarians live.
SQL: SELECT state FROM Owners INTERSECT SELECT state FROM Professionals
Database: dog_kennels
Question: What is the average age of the dogs who have gone through any treatments?
Paraphrased question: What is the average age of the dogs who have gone through any medical care?
SQL: SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )
Database: dog_kennels
Question: Find the average age of the dogs who went through treatments.
Paraphrased question: Find the average age of the dogs who went through health care.
SQL: SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )
Database: dog_kennels
Question: Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone.
Paraphrased question: Which veterinarians live in the state of Indiana or have done more than 2 medical cares? List his or her id, family name and cell phone.
SQL: SELECT professional_id ,  last_name ,  cell_number FROM Professionals WHERE state  =  'Indiana' UNION SELECT T1.professional_id ,  T1.last_name ,  T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id GROUP BY T1.professional_id HAVING count(*)  >  2
Database: dog_kennels
Question: Find the id, last name and cell phone of the professionals who live in the state of Indiana or have performed more than two treatments.
Paraphrased question: Find the id, last name and cell phone of the veterinarians who live in the state of Indiana or have performed more than two health-cares.
SQL: SELECT professional_id ,  last_name ,  cell_number FROM Professionals WHERE state  =  'Indiana' UNION SELECT T1.professional_id ,  T1.last_name ,  T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id GROUP BY T1.professional_id HAVING count(*)  >  2
Database: dog_kennels
Question: Which dogs have not cost their owner more than 1000 for treatment? List the dog names.
Paraphrased question: Which dogs have not cost their guardian more than 1000 for health-care? List the dog names.
SQL: SELECT name FROM Dogs WHERE dog_id NOT IN( SELECT dog_id FROM Treatments GROUP BY dog_id HAVING sum(cost_of_treatment)  >  1000 )
Database: dog_kennels
Question: What are the names of the dogs for which the owner spent more than 1000 for treatment?
Paraphrased question: What are the names of the dogs for which the guardian spent more than 1000 for health-care?
SQL: SELECT name FROM Dogs WHERE dog_id NOT IN( SELECT dog_id FROM Treatments GROUP BY dog_id HAVING sum(cost_of_treatment)  >  1000 )
Database: dog_kennels
Question: Which first names are used for professionals or owners but are not used as dog names?
Paraphrased question: Which first names are used for veterinarians or guardians but are not used as dog names?
SQL: SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs
Database: dog_kennels
Question: Find the first names that are used for professionals or owners but are not used as dog names.
Paraphrased question: Find the first names that are used for veterinarians or guardians but are not used as dog names.
SQL: SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs
Database: dog_kennels
Question: Which professional did not operate any treatment on dogs? List the professional's id, role and email.
Paraphrased question: Which veterinarian did not operate any medical care on dogs? List the veterinarian's id, role and email.
SQL: SELECT professional_id ,  role_code ,  email_address FROM Professionals EXCEPT SELECT T1.professional_id ,  T1.role_code ,  T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id
Database: dog_kennels
Question: Give me the id, role and email of the professionals who did not perform any treatment on dogs.
Paraphrased question: Give me the id, role and email of the veterinarians who did not perform any health-care on dogs.
SQL: SELECT professional_id ,  role_code ,  email_address FROM Professionals EXCEPT SELECT T1.professional_id ,  T1.role_code ,  T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id
Database: dog_kennels
Question: Which owner owns the most dogs? List the owner id, first name and last name.
Paraphrased question: Which people owns the most dogs? List the people id, given name and family name.
SQL: SELECT T1.owner_id ,  T2.first_name ,  T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id  =  T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1
Database: dog_kennels
Question: Return the owner id, first name and last name of the owner who has the most dogs.
Paraphrased question: Return the people id, given name and family name of the guardian who has the most dogs.
SQL: SELECT T1.owner_id ,  T2.first_name ,  T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id  =  T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1
Database: dog_kennels
Question: Which professionals have done at least two treatments? List the professional's id, role, and first name.
Paraphrased question: Which veterinarians have done at least two medical cares? List the veterinarian's id, role, and given name.
SQL: SELECT T1.professional_id ,  T1.role_code ,  T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id GROUP BY T1.professional_id HAVING count(*)  >=  2
Database: dog_kennels
Question: What are the id, role, and first name of the professionals who have performed two or more treatments?
Paraphrased question: What are the id, role, and given name of the veterinarians who have performed two or more health-cares?
SQL: SELECT T1.professional_id ,  T1.role_code ,  T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id GROUP BY T1.professional_id HAVING count(*)  >=  2
Database: dog_kennels
Question: What is the name of the breed with the most dogs?
Paraphrased question: What is the name of the breed with the most puppies?
SQL: SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code  =  T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1
Database: dog_kennels
Question: Which breed do the most dogs have? Give me the breed name.
Paraphrased question: Which breed do the most puppies have? Give me the breed name.
SQL: SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code  =  T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1
Database: dog_kennels
Question: Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.
Paraphrased question: Which guardian has paid for the most health cares on his or her dogs? List the guardian id and family name.
SQL: SELECT T1.owner_id ,  T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id JOIN Treatments AS T3 ON T2.dog_id  =  T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1
Database: dog_kennels
Question: Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs.
Paraphrased question: Tell me the guardian id and family name of the guardian who spent the most on treatments of his or her puppies.
SQL: SELECT T1.owner_id ,  T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id JOIN Treatments AS T3 ON T2.dog_id  =  T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1
Database: dog_kennels
Question: What is the description of the treatment type that costs the least money in total?
Paraphrased question: What is the describing details of the health-care type that costs the least money in total?
SQL: SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code  =  T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1
Database: dog_kennels
Question: Give me the description of the treatment type whose total cost is the lowest.
Paraphrased question: Give me the describing details of the health-care whose total cost is the lowest.
SQL: SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code  =  T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1
Database: dog_kennels
Question: Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.
Paraphrased question: Which guardian has paid the largest amount of money in total for their puppies? Show the guardian id and zip code.
SQL: SELECT T1.owner_id ,  T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id JOIN Treatments AS T3 ON T2.dog_id  =  T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1
Database: dog_kennels
Question: Find the owner id and zip code of the owner who spent the most money in total for his or her dogs.
Paraphrased question: Find the guardian id and zip code of the guardian who spent the most money in total for his or her puppies.
SQL: SELECT T1.owner_id ,  T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id JOIN Treatments AS T3 ON T2.dog_id  =  T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1
Database: dog_kennels
Question: Which professionals have done at least two types of treatments? List the professional id and cell phone.
Paraphrased question: Which veterinarians have done at least two types of health-care? List the veterinarian id and cell phone.
SQL: SELECT T1.professional_id ,  T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id GROUP BY T1.professional_id HAVING count(*)  >=  2
Database: dog_kennels
Question: Find the id and cell phone of the professionals who operate two or more types of treatments.
Paraphrased question: Find the id and cell phone of the veterinarians who operate two or more types of health-care.
SQL: SELECT T1.professional_id ,  T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id GROUP BY T1.professional_id HAVING count(*)  >=  2
Database: dog_kennels
Question: What are the first name and last name of the professionals who have done treatment with cost below average?
Paraphrased question: What are the first name and family name of the veterinarians who have done medical care with cost below average?
SQL: SELECT DISTINCT T1.first_name ,  T1.last_name FROM Professionals AS T1 JOIN  Treatments AS T2 on T2.professional_id = T1.professional_id WHERE cost_of_treatment  <  ( SELECT avg(cost_of_treatment) FROM Treatments )
Database: dog_kennels
Question: Which professionals have operated a treatment that costs less than the average? Give me theor first names and last names.
Paraphrased question: Which veterinarians have operated a medical care that costs less than the average? Give me theor given names and family names.
SQL: SELECT DISTINCT T1.first_name ,  T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 on T2.professional_id = T1.professional_id WHERE cost_of_treatment  <  ( SELECT avg(cost_of_treatment) FROM Treatments )
Database: dog_kennels
Question: List the date of each treatment, together with the first name of the professional who operated it.
Paraphrased question: List the date of each medical care, together with the given name of the veterinarian who operated it.
SQL: SELECT T1.date_of_treatment ,  T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id  =  T2.professional_id
Database: dog_kennels
Question: What are the date and the operating professional's first name of each treatment?
Paraphrased question: What are the date and the operating veterinarian's given name of each medical care?
SQL: SELECT T1.date_of_treatment ,  T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id  =  T2.professional_id
Database: dog_kennels
Question: List the cost of each treatment and the corresponding treatment type description.
Paraphrased question: List the cost of each health-care and the corresponding health-care type describing details.
SQL: SELECT T1.cost_of_treatment ,  T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code  =  T2.treatment_type_code
Database: dog_kennels
Question: What are the cost and treatment type description of each treatment?
Paraphrased question: What are the cost and health-care type describing content of each health-care?
SQL: SELECT T1.cost_of_treatment ,  T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code  =  T2.treatment_type_code
Database: dog_kennels
Question: List each owner's first name, last name, and the size of his for her dog.
Paraphrased question: List each guardian's first name, last name, and the size of his for her dog.
SQL: SELECT T1.first_name ,  T1.last_name ,  T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id
Database: dog_kennels
Question: What are each owner's first name, last name, and the size of their dog?
Paraphrased question: What are each guardians's first name, last name, and the size of their dog?
SQL: SELECT T1.first_name ,  T1.last_name ,  T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id