niryuu/sni-each-converted huggingface dataset:
SQL: SELECT LName FROM Student WHERE Age = 3
Feedback: i want pet age instead of age.
Output: SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pet_age  =  3 AND T3.pettype  =  'cat'
SQL: SELECT Continent FROM country
Feedback: searching for continent and region whose value is anguilla.
Output: SELECT Continent FROM country WHERE Name  =  "Anguilla"
SQL: SELECT T1.Continent FROM country AS T1 EXCEPT SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English"
Feedback: Change continent with code , ensure language is not equals English in step 1.
Output: SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != "English"
SQL: SELECT Name FROM museum WHERE Num_of_Staff > ( SELECT Min ( Num_of_Staff ) FROM museum WHERE Open_Year < 2010 )
Feedback: in step 1, the value of open year has to be greater than 2010.
Output: SELECT name FROM museum WHERE num_of_staff  >  (SELECT min(num_of_staff) FROM museum WHERE open_year  >  2010)
SQL: SELECT * , Template_Type_Code FROM Templates ORDER BY Template_Type_Code Asc LIMIT 1
Feedback: Use "smallest value of version number instead of "smallest value of Template Type Code".
Output: SELECT min(Version_Number) ,  template_type_code FROM Templates
SQL: SELECT T2.treatment_type_code , T1.weight FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id
Feedback: Interchange treatment type code , weight with distinct breed code , size code in step 2.
Output: SELECT DISTINCT breed_code ,  size_code FROM dogs
SQL: SELECT treatment_type_description , treatment_type_code FROM Treatment_Types
Feedback: No need to find treatment type code so find treatments 's date of treatment instead of that .
Output: 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
SQL: SELECT Sum ( Population ) FROM country
Feedback: You need to ascertain that the district name should be Gelderland. 
Output: SELECT sum(Population) FROM city WHERE District  =  "Gelderland"
SQL: SELECT Continent FROM country GROUP BY Continent ORDER BY Count ( * ) Desc LIMIT 1
Feedback: Need to find country's name where maximum languages are used in that country .
Output: SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1
SQL: SELECT Count ( DISTINCT T2.Language ) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = "Aruba"
Feedback: country's name name should be Aruba , not continent .
Output: SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Name  =  "Aruba"
SQL: SELECT T1.course_name FROM Courses AS T1 WHERE T1.course_name NOT IN ( SELECT T2.semester_name FROM Semesters AS T2 )
Feedback: Find those semester name whose semester id not present in student enrolment table .
Output: SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment )
SQL: SELECT City FROM airports GROUP BY City ORDER BY Count ( * ) Desc LIMIT 1
Feedback: It should be city of source airport in flights table in place of city , airports table in step 1.
Output: SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1
SQL: SELECT Count ( * ) FROM airports WHERE AirportName = "Aberdeen" OR City = "Abilene"
Feedback: Substitute airports table with flights table and airport name with city .
Output: SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport  =  T2.AirportCode WHERE T2.city  =  "Aberdeen" OR T2.city  =  "Abilene"
SQL: SELECT LocalName FROM country WHERE Region = "Kabul"
Feedback: you need to put region in place of local name and name of city rather than region.
Output: SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Name  =  "Kabul"
SQL: SELECT Count ( * ) FROM Documents WHERE Document_Name = "Summer Show"
Feedback: Need to use paragraphs table in place of documents table.
Output: SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID  =  T2.document_ID WHERE T2.document_name  =  'Summer Show'
SQL: SELECT first_name , first_name FROM Professionals
Feedback: Find date of treatment and first name of professionals table for each treatment id .
Output: SELECT T1.date_of_treatment ,  T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id  =  T2.professional_id
SQL: SELECT property_name FROM Properties WHERE room_count > 1
Feedback: Be assured to look for code of property type which are  equivalent to houses or apartments alone.
Output: SELECT property_name FROM Properties WHERE property_type_code  =  "House" UNION SELECT property_name FROM Properties WHERE property_type_code  =  "Apartment" AND room_count  >  1
SQL: SELECT T2.FlightNo FROM airlines AS T1 JOIN flights AS T2 WHERE T1.Abbreviation = "APG"
Feedback: in step 2, use destination airport instead of abbreviation.
Output: SELECT FlightNo FROM FLIGHTS WHERE DestAirport  =  "APG"
SQL: SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code ORDER BY T2.weight Desc LIMIT 1
Feedback: You need to use the breed code whose count is highest.
Output: 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
SQL: SELECT DISTINCT grade FROM Highschooler WHERE grade = 9
Feedback: Remove "for which grade equals 9" phrase .
Output: SELECT grade FROM Highschooler
SQL: SELECT Count ( * ) FROM car_makers WHERE Country = "france"
Feedback: Use corresponding countries's country name instead of country .
Output: SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country  =  T2.CountryId WHERE T2.CountryName  =  'france'
SQL: SELECT Name FROM country GROUP BY Continent ORDER BY Count ( * ) Desc LIMIT 1
Feedback: Find language of countrylanguage table whose largest value of language .
Output: SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1
SQL: SELECT owner_id , last_name FROM Owners GROUP BY owner_id ORDER BY Count ( * ) Desc LIMIT 1
Feedback: In step 1 Need to find Treatments's dog id which present in Dogs's dog id .
Output: 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
SQL: SELECT Code2 FROM country WHERE Continent = "Beatrix"
Feedback: Substitute code 2 with language , country with countrylanguage , continent with country's head of state , Ensure is official equals T .
Output: SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.HeadOfState  =  "Beatrix" AND T2.IsOfficial  =  "T"
SQL: SELECT T2.note , T2.killed FROM ship AS T1 JOIN death AS T2 ON T1.id = T2.caused_by_ship_id WHERE T1.tonnage = "t"
Feedback: I want the injured in-place of note. 
Output: SELECT T1.killed ,  T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id  =  T2.id WHERE T2.tonnage  =  't'
SQL: SELECT Avg ( Accelerate ) FROM cars_data WHERE Cylinders = 4
Feedback: you need to replace accelerate with mpg.
Output: SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders  =  4
SQL: SELECT Avg ( Horsepower ) FROM cars_data WHERE Year = "volvo"
Feedback: replace average horsepower with average of edispl and use car names's model.
Output: SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T1.Model  =  'volvo'
SQL: SELECT Count ( DISTINCT Code ) FROM country WHERE Continent = "Afghanistan"
Feedback: Search number of corresponding rows of countrylanguage for which country's name equals Afghanistan .
Output: SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Name  =  "Afghanistan" AND IsOfficial  =  "T"
SQL: SELECT T3.Document_ID , T3.Document_Name , T1.Template_Type_Description FROM Ref_Template_Types AS T1 JOIN Templates AS T2 ON T1.Template_Type_Code = T2.Template_Type_Code JOIN Documents AS T3 ON T2.Template_ID = T3.Template_ID
Feedback: I want the description of document.
Output: SELECT document_id ,  document_name ,  document_description FROM Documents
SQL: SELECT Airline FROM airlines WHERE Abbreviation = "AHD"
Feedback: Swap abbreviation with flights's destination airport .
Output: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.DestAirport  =  "AHD"
SQL: SELECT Count ( DISTINCT Region ) FROM country WHERE Continent = "Chinese"
Feedback: Exchange region with continent and continent with language , Verify it is spoken in country .
Output: SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "Chinese"
SQL: SELECT T1.first_name , T2.ranking FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id
Feedback: Switch ranking to total ranking points.
Output: SELECT sum(ranking_points) ,  T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.first_name
SQL: SELECT area_code FROM AREA_CODE_STATE GROUP BY state ORDER BY Count ( * ) Desc LIMIT 1
Feedback: In step 1, I want the area code mentioned in votes table.
Output: SELECT T1.area_code FROM area_code_state AS T1 JOIN votes AS T2 ON T1.state  =  T2.state GROUP BY T1.area_code ORDER BY count(*) DESC LIMIT 1
SQL: SELECT Count ( * ) FROM Courses WHERE course_name = "math"
Feedback: You need to search for explanation of course whose name of course should be math.
Output: SELECT course_description FROM Courses WHERE course_name  =  'math'
SQL: SELECT City , Country FROM airports WHERE AirportName = "Alton" AND CountryAbbrev = "US "
Feedback: Remove "and country abbrev equals US".
Output: SELECT City ,  Country FROM AIRPORTS WHERE AirportName  =  "Alton"
SQL: SELECT T2.FlightNo FROM airlines AS T1 JOIN flights AS T2 WHERE T1.Airline = "United Airlines" AND T1.Country = "USA"
Feedback: you should delete the phrase "and country equals usa".
Output: SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid  =  T1.Airline WHERE T2.Airline  =  "United Airlines"
SQL: SELECT Count ( * ) FROM Ref_Template_Types
Feedback: CV should be the template type code.
Output: SELECT count(*) FROM Templates WHERE template_type_code  =  "CV"
SQL: SELECT Count ( * ) FROM cars_data WHERE Accelerate > 1
Feedback: along with that, i also want the highest value in horsepower.
Output: SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate  >  ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 )
SQL: SELECT Name FROM city ORDER BY Population Desc LIMIT 3
Feedback: In step 1, use country instead of city.
Output: SELECT Name FROM country ORDER BY Population DESC LIMIT 3
SQL: SELECT PetType , pet_age FROM Pets ORDER BY pet_age Asc LIMIT 1
Feedback: use weight in place of pet age.
Output: SELECT pettype ,  weight FROM pets ORDER BY pet_age LIMIT 1
SQL: SELECT first_name , last_name FROM players ORDER BY birth_date Asc
Feedback: Make sure that player are left handed.
Output: SELECT first_name ,  last_name FROM players WHERE hand  =  'L' ORDER BY birth_date
SQL: SELECT T1.CountryName FROM countries AS T1 JOIN car_makers AS T2 ON T1.CountryId = T2.Country GROUP BY T2.Country HAVING Count ( * ) > = 3
Feedback: In step 1 also correspond continents table , In step 2 make sure country belongs in continent europe .
Output: SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent  =  T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId  =  T3.Country WHERE T2.Continent  =  'europe' GROUP BY T1.CountryName HAVING count(*)  >=  3
SQL: SELECT * FROM orchestra WHERE Year_of_Founded > 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003
Feedback: In step 1, you need to search record of a company.
Output: SELECT Record_Company FROM orchestra WHERE Year_of_Founded  <  2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded  >  2003
SQL: SELECT name FROM Dogs WHERE weight > 1000
Feedback: cost of treatment should not be used instead use weight.
Output: SELECT name FROM Dogs WHERE dog_id NOT IN( SELECT dog_id FROM Treatments GROUP BY dog_id HAVING sum(cost_of_treatment)  >  1000 )
SQL: SELECT Count ( * ) FROM players
Feedback: Verify winners are left-handed and use matches table instead of players table.
Output: SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name  =  'WTA Championships' AND winner_hand  =  'L'
SQL: SELECT Final_Table_Made , Best_Finish FROM poker_player ORDER BY Best_Finish Asc LIMIT 1
Feedback: Remove "with smallest value of Best Finish".
Output: SELECT Final_Table_Made ,  Best_Finish FROM poker_player
SQL: SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.loser_id WHERE T2.loser_ioc = "WTA Championships" INTERSECT SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.loser_id WHERE T2.loser_ioc = "Australian Open"
Feedback: In step 2 and step 3 you need to have tourney name and make sure player id and winner id are equivalent.
Output: SELECT T1.country_code ,  T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id  =  T2.winner_id WHERE T2.tourney_name  =  'WTA Championships' INTERSECT SELECT T1.country_code ,  T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id  =  T2.winner_id WHERE T2.tourney_name  =  'Australian Open'
SQL: SELECT section_name FROM Sections ORDER BY section_name Asc
Feedback: Ensure to find in descending order not in ascending order .
Output: SELECT section_name FROM Sections ORDER BY section_name DESC
SQL: SELECT Name FROM employee GROUP BY Employee_ID ORDER BY Count ( * ) Desc LIMIT 1
Feedback: In step 1 replace employee table with evaluation table .
Output: SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID  =  t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1
SQL: SELECT Count ( * ) FROM Highschooler
Feedback: Find the number of rows in Friends table for each student .
Output: SELECT student_id ,  count(*) FROM Friend GROUP BY student_id
SQL: SELECT Name , Continent FROM country GROUP BY Continent ORDER BY Max ( Population ) Desc LIMIT 1
Feedback: you need to search the language of countrylanguage which are frequently used by population in that country.
Output: SELECT LANGUAGE ,  CountryCode ,  max(Percentage) FROM countrylanguage GROUP BY CountryCode
SQL: SELECT Continent FROM country WHERE SurfaceArea > ( SELECT SurfaceArea FROM country WHERE Region = "Europe" )
Feedback: In step 1 Exchange region with continent , In step 2 Exchange continent with name name .
Output: SELECT Name FROM country WHERE SurfaceArea  >  (SELECT min(SurfaceArea) FROM country WHERE Continent  =  "Europe")
SQL: SELECT first_name , last_name , email_address FROM Owners WHERE first_name LIKE "North"
Feedback: Take "state contains North" instead of first name contains North".
Output: SELECT first_name ,  last_name ,  email_address FROM Owners WHERE state LIKE '%North%'
SQL: SELECT Count ( * ) FROM matches WHERE year > = 2013
Feedback: It should be 2013 or 2016.
Output: SELECT count(*) FROM matches WHERE YEAR  =  2013 OR YEAR  =  2016
SQL: SELECT Document_ID , Document_Name FROM Documents GROUP BY Document_ID ORDER BY Count ( * ) Desc LIMIT 1
Feedback: Need to change documents table with paragraphs table in step 1.
Output: SELECT T1.document_id ,  T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1
SQL: SELECT Avg ( grade ) FROM Highschooler
Feedback: Every pupils must have friends.
Output: 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)
SQL: SELECT name , age , weight FROM Dogs WHERE weight IN ( SELECT weight FROM Dogs )
Feedback: Display name , age , weight of dogs whose abandoned yes or no equals 1.
Output: SELECT name ,  age ,  weight FROM Dogs WHERE abandoned_yn  =  1
SQL: SELECT T1.name , T1.result , T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name ! = "English Channel"
Feedback: In step 2 , Make sure location should not equivalent with English channel.
Output: SELECT name ,  RESULT ,  bulgarian_commander FROM battle EXCEPT SELECT T1.name ,  T1.result ,  T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle WHERE T2.location  =  'English Channel'
SQL: SELECT Edispl FROM cars_data ORDER BY Weight Desc LIMIT 1
Feedback: I want model, car names table and mpg.
Output: SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id ORDER BY T2.mpg DESC LIMIT 1
SQL: SELECT Avg ( LifeExpectancy ) FROM country WHERE Continent = "Africa"
Feedback: Be certain that those contries have Republic in their government form .
Output: SELECT avg(LifeExpectancy) FROM country WHERE Continent  =  "Africa" AND GovernmentForm  =  "Republic"
SQL: SELECT Count ( * ) , grade FROM Highschooler GROUP BY grade
Feedback: You need to replace name in place of grade and also search correlated row in likes table to id of Highschooler's.
Output: SELECT T2.name ,  count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id
SQL: SELECT ID FROM Highschooler WHERE grade = "Kyle"
Feedback: Need to put name on behalf of grade.
Output: SELECT ID FROM Highschooler WHERE name  =  "Kyle"
SQL: SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" INTERSECT SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "French"
Feedback: In step 2 and 3 , replace continent with name name .
Output: SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "English" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "French"
SQL: SELECT Year FROM cars_data WHERE Weight > 4000 EXCEPT SELECT Year FROM cars_data WHERE Weight < 3000
Feedback: Exchange 4000 with 3000 in step 1 and 3000 with 4000 in step 2 , remove "not" from step3.
Output: SELECT DISTINCT T1.Year FROM CARS_DATA AS T1 WHERE T1.Weight  >  3000 AND T1.weight  <  4000
SQL: SELECT contestant_number , contestant_name FROM CONTESTANTS GROUP BY contestant_name HAVING Count ( * ) > = 2
Feedback: In step 1, you should use the contestant's number from the votes table in place of contestant's name.
Output: SELECT T1.contestant_number , T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number  =  T2.contestant_number GROUP BY T1.contestant_number HAVING count(*)  >=  2
SQL: SELECT winner_name , loser_rank FROM matches ORDER BY winner_rank_points Desc LIMIT 1
Feedback: Find winner name whose tourney name equals Australian Open with largest value of winner rank points .
Output: SELECT winner_name FROM matches WHERE tourney_name  =  'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1
SQL: SELECT T1.first_name , T1.middle_name , T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T2.student_id HAVING Count ( * ) = 2
Feedback: Ensure that semester are identical and also look for the output of student id.
Output: SELECT T1.first_name ,  T1.middle_name ,  T1.last_name ,  T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING count(*)  =  2
SQL: SELECT created FROM VOTES WHERE state = "CA"
Feedback: Ensure to find largest value of created .
Output: SELECT max(created) FROM votes WHERE state  =  'CA'
SQL: SELECT Name FROM country WHERE Continent = "Asia" AND Population > 103000
Feedback: population should be greater than population of countries of continent equals Africa instead of 103000.
Output: SELECT Name FROM country WHERE Continent  =  "Asia"  AND population  >  (SELECT max(population) FROM country WHERE Continent  =  "Africa")
SQL: SELECT Count ( * ) FROM Addresses
Feedback: Put transcripts table in place of addresses table .
Output: SELECT count(*) FROM Transcripts
SQL: SELECT T1.name , T1.grade , Count ( * ) FROM Highschooler AS T1 JOIN Friend AS T2 ON T1.ID = T2.student_id GROUP BY T2.student_id
Feedback: No need to find grade in step 2.
Output: SELECT T2.name ,  count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id
SQL: SELECT Avg ( T2.winner_rank ) , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.loser_id GROUP BY T1.first_name
Feedback: In step 1 Substitute matches with rankings , In step 2 substitute winner rank with ranking .
Output: SELECT avg(ranking) ,  T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.first_name
SQL: SELECT Name FROM country WHERE Continent = "Europe" INTERSECT SELECT Name FROM country WHERE Population > 103000
Feedback: i want the population for zip code 80000.
Output: SELECT Name FROM country WHERE continent  =  "Europe" AND Population  =  "80000"
SQL: SELECT T2.ModelId , T1.FullName , Count ( * ) FROM car_makers AS T1 JOIN model_list AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id
Feedback: i want the number of rows of model list along with full name for each model corresponding to each id of car makers.
Output: SELECT Count(*) ,  T2.FullName ,  T2.id FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker  =  T2.Id GROUP BY T2.id
SQL: SELECT Count ( * ) FROM Ref_Template_Types
Feedback: Find different template type code of reference template types table which used for documents .
Output: SELECT count(DISTINCT template_id) FROM Documents
SQL: SELECT Title , Directed_by FROM Cartoon ORDER BY Title Asc
Feedback: I want original air date.
Output: SELECT title ,  Directed_by FROM Cartoon ORDER BY Original_air_date
SQL: SELECT Count ( * ) FROM country WHERE Continent = "Republic"
Feedback: Use government form in place of continent .
Output: SELECT count(*) FROM country WHERE GovernmentForm  =  "Republic"
SQL: SELECT Sum ( Population ) , Avg ( Continent ) FROM country WHERE SurfaceArea > 3000
Feedback: Change continent with surface area and Also Add continent equals North America .
Output: SELECT sum(Population) ,  avg(SurfaceArea) FROM country WHERE Continent  =  "North America" AND SurfaceArea  >  3000
SQL: SELECT Count ( * ) FROM airports WHERE Country = "Aberdeen" AND City = "United Airlines"
Feedback: You need to find rows count of flights for United airlines having Aberdeen as a destination airline.
Output: SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid  =  T1.Airline WHERE T2.City  =  "Aberdeen" AND T3.Airline  =  "United Airlines"
SQL: SELECT transcript_id , transcript_id FROM Transcript_Contents GROUP BY transcript_id ORDER BY Count ( * ) Asc LIMIT 1
Feedback: Replace first "transcript id" with Transcripts's transcript date in step 2.
Output: SELECT T2.transcript_date ,  T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id  =  T2.transcript_id GROUP BY T1.transcript_id ORDER BY count(*) ASC LIMIT 1
SQL: SELECT Count ( * ) , T1.Record_Company FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID
Feedback: I want the orchestra's record company in step 2.
Output: SELECT Record_Company ,  COUNT(*) FROM orchestra GROUP BY Record_Company
SQL: SELECT feature_type_name FROM Ref_Feature_Types
Feedback: have to find for whose corresponding feature name equals to AirCon .
Output: SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code  =  T2.feature_type_code WHERE T1.feature_name  =  "AirCon"
SQL: SELECT Model FROM model_list GROUP BY Model ORDER BY Count ( * ) Desc LIMIT 1
Feedback: Need to find model with highest value of horsepower whose cylinders equals 4.
Output: SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T2.Cylinders  =  4 ORDER BY T2.horsepower DESC LIMIT 1
SQL: SELECT DISTINCT T1.Model FROM model_list AS T1 JOIN car_names AS T2 ON T1.Model = T2.Model JOIN cars_data AS T3 ON T2.MakeId = T3.Id WHERE T3.Horsepower > 3500 OR T3.Horsepower = "General Motors"
Feedback: You need to find car makers table , Search for weight above 3500 and cylinders equivalent with General motors.
Output: SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model  =  T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker  =  T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId  =  T4.Id WHERE T3.FullName  =  'General Motors' OR T4.weight  >  3500
SQL: SELECT first_name , middle_name , last_name FROM Students
Feedback: You need look for student having lowest date for first registration.
Output: SELECT first_name ,  middle_name ,  last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1
SQL: SELECT GovernmentForm FROM country WHERE Population < ( SELECT Population FROM country WHERE Continent = "Africa" )
Feedback: In step 1 find minimum population and swap Africa with Asia , in step 2 government form with name name .
Output: SELECT Name FROM country WHERE Continent  =  "Africa"  AND population  <  (SELECT max(population) FROM country WHERE Continent  =  "Asia")
SQL: SELECT T1.Rating , T1.Rating FROM TV_series AS T1 GROUP BY T1.Rating ORDER BY Count ( * ) Desc LIMIT 1 INTERSECT SELECT T1.Rating FROM TV_Channel AS T2 JOIN TV_series AS T1 ON T2.id = T1.Channel GROUP BY T2.Hight_definition_TV ORDER BY Count ( * ) Desc LIMIT 3
Feedback: Just view the first 3 episode and rating from tv series table arrange rating in descending order.
Output: SELECT Episode ,  Rating FROM TV_series ORDER BY Rating DESC LIMIT 3
SQL: SELECT Name , Count ( * ) FROM singer GROUP BY Name
Feedback: Make sure to find number of similar rows for all  singer in concert's singer id.
Output: SELECT T2.name ,  count(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id  =  T2.singer_id GROUP BY T2.singer_id
SQL: SELECT T1.FullName , T2.ModelId FROM car_makers AS T1 JOIN model_list AS T2 ON T1.Id = T2.Maker GROUP BY T2.ModelId HAVING Count ( * ) > 3
Feedback: model id is wrong in step 3 , find car makers's id in place of that .
Output: SELECT T1.FullName ,  T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker GROUP BY T1.Id HAVING count(*)  >  3
SQL: SELECT Count ( * ) FROM airlines AS T1 JOIN airports AS T2 WHERE T2.Country = "United Airlines" AND T1.Airline = "AHD"
Feedback: Add flights table in step 1 , change airports's country with airlines's airline and airline with source airport .
Output: SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline  =  T1.uid WHERE T1.Airline  =  "United Airlines" AND T2.SourceAirport  =  "AHD"
SQL: SELECT T1.Major , T1.Age FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.StuID = T2.StuID JOIN Pets AS T3 ON T2.PetID = T3.PetID WHERE T3.weight < = "cat"
Feedback: Remove condition and mention that student does not have pet whose pet type equals cat .
Output: SELECT major ,  age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat')
SQL: SELECT Count ( * ) FROM Pets WHERE pet_age > 10
Feedback: weight should be substituted in place of pet age.
Output: SELECT count(*) FROM pets WHERE weight  >  10
SQL: SELECT Count ( * ) FROM airlines WHERE Airline = "APG"
Feedback: Change airlines table and airline to flights table and source airport respectively .
Output: SELECT count(*) FROM FLIGHTS WHERE SourceAirport  =  "APG"
SQL: SELECT GovernmentForm FROM country WHERE Continent = "Asia" AND Population > 103000
Feedback: Change government form with name name , Ensure population greater than country whose Continent's name name equals Africa .
Output: SELECT Name FROM country WHERE Continent  =  "Asia"  AND population  >  (SELECT min(population) FROM country WHERE Continent  =  "Africa")
SQL: SELECT grade FROM Highschooler WHERE grade = 9 OR grade = 4
Feedback: Look for grade in which number of name of all grade is higher or equivalent to 4.
Output: SELECT grade FROM Highschooler GROUP BY grade HAVING count(*)  >=  4
SQL: SELECT date_departed , date_of_birth FROM Dogs
Feedback: Rather than date of birth , Use date arrived in place of it .
Output: SELECT date_arrived ,  date_departed FROM Dogs
SQL: SELECT GovernmentForm FROM country WHERE Population < ( SELECT Population FROM country WHERE Continent = "Africa" )
Feedback: Use Asia and name in place of Africa and government form in step 1 and 2 respectively.
Output: SELECT Name FROM country WHERE Continent  =  "Africa"  AND population  <  (SELECT min(population) FROM country WHERE Continent  =  "Asia")
SQL: SELECT T2.Weekly_Rank FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T2.Channel = T1.id JOIN Cartoon AS T3 ON T1.id = T3.Channel WHERE T3.Title = "A Love of a Lifetime"
Feedback: Use episode instead of title .
Output: SELECT Weekly_Rank FROM TV_series WHERE Episode = "A Love of a Lifetime"
SQL: SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE T2.Year_of_Founded > 2003 ORDER BY T2.Year_of_Founded Desc LIMIT 2008
Feedback: In step 3 , delete the condition for descending order for the year founded , alter 200 3 with 2008.
Output: SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID WHERE Year_of_Founded  >  2008
SQL: SELECT T3.visitor_ID , T2.Name , T1.Num_of_Staff FROM museum AS T1 JOIN visitor AS T2 JOIN visit AS T3 ON T1.Museum_ID = T3.Museum_ID AND T3.visitor_ID = T2.ID AND T1.Museum_ID = T3.Museum_ID GROUP BY T3.Museum_ID ORDER BY Sum ( T3.Total_spent ) Desc LIMIT 1
Feedback: In step 3 Supplant num of staff with level of membership .
Output: SELECT t2.visitor_id ,  t1.name ,  t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id GROUP BY t2.visitor_id ORDER BY sum(t2.Total_spent) DESC LIMIT 1
SQL: SELECT tourney_name , winner_rank FROM matches ORDER BY loser_age Asc LIMIT 3
Feedback: Put winner name and winner age in place of tourney name and loser age .
Output: SELECT DISTINCT winner_name ,  winner_rank FROM matches ORDER BY winner_age LIMIT 3
SQL: SELECT Count ( * ) FROM Student
Feedback: from has pet table look for student id whose rows number are corresponding to all the value.
Output: SELECT count(*) ,  T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid GROUP BY T1.stuid
SQL: SELECT professional_id , role_code , email_address FROM Professionals EXCEPT SELECT professional_id , role_code , email_address FROM Professionals
Feedback: In step 2 Find only for whose corresponding professional id is in treatments table .
Output: 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
SQL: SELECT T2.Name FROM museum AS T1 JOIN visitor AS T2 JOIN visit AS T3 ON T1.Museum_ID = T3.Museum_ID AND T3.visitor_ID = T2.ID WHERE T1.Open_Year > 2009 INTERSECT SELECT T2.Name FROM museum AS T1 JOIN visitor AS T2 JOIN visit AS T3 ON T1.Museum_ID = T3.Museum_ID AND T3.visitor_ID = T2.ID WHERE T1.Open_Year < 2011
Feedback: Ensure that open year less than 2009 in step 2 , Make sure open year greater than 2011 in step 3.
Output: SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID  =  t2.Museum_ID WHERE t3.open_year  <  2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID  =  t2.Museum_ID WHERE t3.open_year  >  2011