aherntech/sparc huggingface dataset:
Database: tvshow
Question sequence:
Show me all the information about the Italian TV Channels.
How about the Polish TV Channels?
Which country has the most of TV Channels? List the country and number of TV Channels it has.
SQL query sequence:
SELECT * FROM TV_Channel WHERE Country = "Italy"
SELECT * FROM TV_Channel WHERE Country = "Poland"
SELECT Country ,  count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1
Final question: Which country has the most of TV Channels? List the country and number of TV Channels it has.
Final SQL: SELECT Country ,  count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;
Database: tvshow
Question sequence:
Tell me the TV Channel of the cartoon titled "The Eyes of Despero!".
How about this channel's series name?
Tell me the number of different series names and contents in the TV Channel table.
SQL query sequence:
SELECT Channel FROM Cartoon WHERE Title = "The Eyes of Despero!"
SELECT series_name FROM TV_Channel WHERE id IN (SELECT Channel FROM Cartoon WHERE Title = "The Eyes of Despero!")
SELECT count(DISTINCT series_name) ,  count(DISTINCT content) FROM TV_Channel
Final question: List the number of different series names and contents in the TV Channel table.
Final SQL: SELECT count(DISTINCT series_name) ,  count(DISTINCT content) FROM TV_Channel;
Database: tvshow
Question sequence:
Tell me the package option for the series named "Rock TV".
tell me the language of this series.
List the language used least number of TV Channel. List language and number of TV Channel.
SQL query sequence:
SELECT Package_Option FROM TV_Channel WHERE series_name = "Rock TV"
SELECT Language FROM TV_Channel WHERE series_name = "Rock TV"
SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1
Final question: List the language used least number of TV Channel. List language and number of TV Channel.
Final SQL: SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;
Database: tvshow
Question sequence:
Tell me the author of the cartoon "The Rise of the Blue Beetle!"
How about its director?
What is its TV Channel?
SQL query sequence:
SELECT Written_by FROM Cartoon WHERE Title = "The Rise of the Blue Beetle!"
SELECT Directed_by FROM Cartoon WHERE Title = "The Rise of the Blue Beetle!"
SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = "The Rise of the Blue Beetle!"
Final question: What is the TV Channel that shows the cartoon "The Rise of the Blue Beetle!"? List the TV Channel's series name.
Final SQL: SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = "The Rise of the Blue Beetle!";
Database: tvshow
Question sequence:
tell me the country of the TV Channel for the series named "Sky Radio".
How about its content?
I want to know the title of all Cartoons showed on TV Channel with series name "Sky Radio".
SQL query sequence:
SELECT Country FROM TV_Channel WHERE series_name = "Sky Radio"
SELECT Content FROM TV_Channel WHERE series_name = "Sky Radio"
SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio"
Final question: List the title of all Cartoons showed on TV Channel with series name "Sky Radio".
Final SQL: SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio";
Database: tvshow
Question sequence:
Tell me the rating of the episode named "Double Down".
How about the rating of the episode named "Keepers".
Okay, I want to know the top 3 highest Rating TV series. List the TV series's Episode and Rating.
SQL query sequence:
SELECT Rating FROM TV_series WHERE Episode = "Double Down"
SELECT Rating FROM TV_series WHERE Episode = "Keepers"
SELECT Episode ,  Rating FROM TV_series ORDER BY Rating DESC LIMIT 3
Final question: List top 3 highest Rating TV series. List the TV series's Episode and Rating.
Final SQL: SELECT Episode ,  Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;
Database: tvshow
Question sequence:
tell me the weekly rank of the episode named "Emily".
How about its share?
tell me the minimum and maximum share of TV series.
SQL query sequence:
SELECT Weekly_Rank FROM TV_series WHERE Episode = "Emily"
SELECT Share FROM TV_series WHERE Episode = "Emily"
SELECT max(SHARE) , min(SHARE) FROM TV_series
Final question: What is minimum and maximum share of TV series?
Final SQL: SELECT max(SHARE) , min(SHARE) FROM TV_series;
Database: tvshow
Question sequence:
Tell me the rating of the episode titled "A Love of a Lifetime".
How about its weekly rank?
And What is its TV Channel?
SQL query sequence:
SELECT Rating FROM TV_series WHERE Episode = "A Love of a Lifetime"
SELECT Weekly_Rank FROM TV_series WHERE Episode = "A Love of a Lifetime"
SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = "A Love of a Lifetime"
Final question: What is the TV Channel of TV series with Episode "A Love of a Lifetime"? List the TV Channel's series name.
Final SQL: SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = "A Love of a Lifetime";
Database: tvshow
Question sequence:
tell me the content of TV Channel with the series named "Sky Radio".
How about its language?
Okay, now I want to know the Episode of all TV series showed on TV Channel with series name "Sky Radio".
SQL query sequence:
SELECT Content FROM TV_Channel WHERE series_name = "Sky Radio"
SELECT Language FROM TV_Channel WHERE series_name = "Sky Radio"
SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio"
Final question: List the Episode of all TV series showed on TV Channel with series name "Sky Radio".
Final SQL: SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio";
Database: tvshow
Question sequence:
Tell me the air date of the cartoon titled "Fall of the Blue Beetle!".
What is its production code?
tell me the production code and channel of the most recently aired cartoon.
SQL query sequence:
SELECT Original_air_date FROM Cartoon WHERE Title = "Fall of the Blue Beetle!"
SELECT Production_code FROM Cartoon WHERE Title = "Fall of the Blue Beetle!"
SELECT production_code ,  channel FROM cartoon ORDER BY original_air_date LIMIT 1
Final question: Find the production code and channel of the most recently aired cartoon.
Final SQL: SELECT production_code ,  channel FROM cartoon ORDER BY original_air_date LIMIT 1
Database: tvshow
Question sequence:
Tell me the cartoons directed by Ben Jone.
Tell me the cartoons written by Todd Casey.
Which countries' tv channels are playing some cartoon written by Todd Casey?
SQL query sequence:
SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones"
SELECT Title FROM Cartoon WHERE Written_by = "Todd Casey"
SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Written_by  =  'Todd Casey'
Final question: which countries' tv channels are playing some cartoon written by Todd Casey?
Final SQL: SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Written_by  =  'Todd Casey'
Database: tvshow
Question sequence:
which countries' tv channels are playing some cartoon written by Steven Melching?
which countries' tv channels are not playing any cartoon written by Todd Casey?
SQL query sequence:
SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Written_by  =  'Steven Melching'
SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by  =  'Todd Casey'
Final question: which countries' tv channels are not playing any cartoon written by Todd Casey?
Final SQL: SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by  =  'Todd Casey'
Database: tvshow
Question sequence:
Tell me the director of the cartoon titled "Deep Cover for Batman!".
I want to know this cartoon's production code.
Tell me the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang.
SQL query sequence:
SELECT Directed_by FROM Cartoon WHERE Title = "Deep Cover for Batman!"
SELECT Production_code FROM Cartoon WHERE Title = "Deep Cover for Batman!"
SELECT T1.series_name ,  T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by  =  'Michael Chang' INTERSECT SELECT T1.series_name ,  T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by  =  'Ben Jones'
Final question: Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?
Final SQL: SELECT T1.series_name ,  T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by  =  'Michael Chang' INTERSECT SELECT T1.series_name ,  T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by  =  'Ben Jones'
Database: tvshow
Question sequence:
tell me the country of the TV channel with series named "MTV Music"
Tell me the number of Italian channels.
find id of the tv channels that from the countries where have more than two tv channels.
SQL query sequence:
SELECT Country FROM TV_Channel WHERE series_name = "MTV Music"
SELECT COUNT(*) FROM TV_Channel WHERE Country = "Italy"
SELECT id FROM tv_channel GROUP BY country HAVING count(*)  >  2
Final question: find id of the tv channels that from the countries where have more than two tv channels.
Final SQL: SELECT id FROM tv_channel GROUP BY country HAVING count(*)  >  2
Database: tvshow
Question sequence:
Who is the director of the cartoon titled "Return of the Fearsome Fangs!"?
Tell me the cartoons directed by Ben Jones.
Find the id of tv channels that do not play any cartoon directed by Ben Jones.
SQL query sequence:
SELECT Directed_by FROM Cartoon WHERE Title = "Return of the Fearsome Fangs!"
SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones"
SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by  =  'Ben Jones'
Final question: find the id of tv channels that do not play any cartoon directed by Ben Jones.
Final SQL: SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by  =  'Ben Jones'
Database: poker_player
Question sequence:
Show all the poker players.
How many are there?
SQL query sequence:
SELECT * FROM poker_player
SELECT count(*) FROM poker_player
Final question: How many poker players are there?
Final SQL: SELECT count(*) FROM poker_player
Database: poker_player
Question sequence:
What is the earnings of each poker player?
Sort them in descending order.
SQL query sequence:
SELECT Earnings FROM poker_player
SELECT Earnings FROM poker_player ORDER BY Earnings DESC
Final question: List the earnings of poker players in descending order.
Final SQL: SELECT Earnings FROM poker_player ORDER BY Earnings DESC
Database: poker_player
Question sequence:
Show all the information about each poker player.
What are their final table mades?
What are their final table mades and best finishes?
SQL query sequence:
SELECT * FROM poker_player
SELECT Final_Table_Made FROM poker_player
SELECT Final_Table_Made ,  Best_Finish FROM poker_player
Final question: List the final tables made and the best finishes of poker players.
Final SQL: SELECT Final_Table_Made ,  Best_Finish FROM poker_player
Database: poker_player
Question sequence:
What is the earnings of each poker player?
Give me the average.
SQL query sequence:
SELECT Earnings FROM poker_player
SELECT avg(Earnings) FROM poker_player
Final question: What is the average earnings of poker players?
Final SQL: SELECT avg(Earnings) FROM poker_player
Database: poker_player
Question sequence:
What is the money rank of each poker player?
Sort them in the decreasing order.
Return the top one.
SQL query sequence:
SELECT Money_Rank FROM poker_player
SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC
SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1
Final question: What is the money rank of the poker player with the highest earnings?
Final SQL: SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1
Database: poker_player
Question sequence:
Which poker player has earnings less than 200000?
Among them, what is the maximum number of final tables made?
SQL query sequence:
SELECT * FROM poker_player WHERE Earnings  <  200000
SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings  <  200000
Final question: What is the maximum number of final tables made among poker players with earnings less than 200000?
Final SQL: SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings  <  200000
Database: poker_player
Question sequence:
Show all the poker players.
What are their names?
SQL query sequence:
SELECT * FROM poker_player
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID
Final question: What are the names of poker players?
Final SQL: SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID
Database: poker_player
Question sequence:
Which poker players have earnings higher than 300000?
What are their names?
SQL query sequence:
SELECT * FROM poker_player WHERE Earnings  >  300000
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Earnings  >  300000
Final question: What are the names of poker players whose earnings is higher than 300000?
Final SQL: SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Earnings  >  300000
Database: poker_player
Question sequence:
What are the names of all poker players?
Sort them in the ascending order of the final tables made.
SQL query sequence:
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Final_Table_Made
Final question: List the names of poker players ordered by the final tables made in ascending order.
Final SQL: SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Final_Table_Made
Database: poker_player
Question sequence:
What is the birth date of each poker player?
Sort the list by the poker player's earnings.
Give me the result for the player with the lowest earnings.
SQL query sequence:
SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID
SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Earnings
SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1
Final question: What is the birth date of the poker player with the lowest earnings?
Final SQL: SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1
Database: poker_player
Question sequence:
What is the height of each poker player?
Who has the largest height?
What is his or her money rank?
SQL query sequence:
SELECT Height FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID
SELECT * FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Height DESC LIMIT 1
SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Height DESC LIMIT 1
Final question: What is the money rank of the tallest poker player?
Final SQL: SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Height DESC LIMIT 1
Database: poker_player
Question sequence:
What is the height of each poker player?
Who all have heights greater than 200?
What is the average earnings among them?
SQL query sequence:
SELECT Height FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID
SELECT * FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Height  >  200
SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Height  >  200
Final question: What is the average earnings of poker players with height higher than 200?
Final SQL: SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Height  >  200
Database: poker_player
Question sequence:
Sort all the poker players in descending order of earnings.
What are the names of poker players in descending order of earnings?
SQL query sequence:
SELECT * FROM poker_player ORDER BY Earnings DESC
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Earnings DESC
Final question: What are the names of poker players in descending order of earnings?
Final SQL: SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Earnings DESC
Database: poker_player
Question sequence:
Show the nationality of each person.
Group people by their nationality.
For each of the result, show the corresponding number of people of that nationality?
SQL query sequence:
SELECT Nationality FROM people
SELECT * FROM people GROUP BY Nationality
SELECT Nationality ,  COUNT(*) FROM people GROUP BY Nationality
Final question: What are different nationalities of people and the corresponding number of people from each nation?
Final SQL: SELECT Nationality ,  COUNT(*) FROM people GROUP BY Nationality
Database: poker_player
Question sequence:
Show the nationality of each person.
Count the number of people for each nationality.
What is the most common nationality of people?
SQL query sequence:
SELECT Nationality FROM people
SELECT COUNT(*) FROM people GROUP BY Nationality
SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
Final question: What is the most common nationality of people?
Final SQL: SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
Database: poker_player
Question sequence:
Count the number of people for each nationality.
Which nationalities are held by at least two people?
SQL query sequence:
SELECT COUNT(*) FROM people GROUP BY Nationality
SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*)  >=  2
Final question: What are the nationalities that are shared by at least two people?
Final SQL: SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*)  >=  2
Database: poker_player
Question sequence:
What are the names and birth dates of people?
Sort the results in ascending alphabetical order of name.
SQL query sequence:
SELECT Name ,  Birth_Date FROM people
SELECT Name ,  Birth_Date FROM people ORDER BY Name ASC
Final question: List the names and birth dates of people in ascending alphabetical order of name.
Final SQL: SELECT Name ,  Birth_Date FROM people ORDER BY Name ASC
Database: poker_player
Question sequence:
What are the names of all people?
What about people whose nationality is not "Russia"?
SQL query sequence:
SELECT Name FROM people
SELECT Name FROM people WHERE Nationality != "Russia"
Final question: Show names of people whose nationality is not "Russia".
Final SQL: SELECT Name FROM people WHERE Nationality != "Russia"
Database: poker_player
Question sequence:
Show all the poker players.
Show all people who are not poker players.
Give me their names.
SQL query sequence:
SELECT * FROM poker_player
SELECT * FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)
SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)
Final question: List the names of people that are not poker players.
Final SQL: SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)
Database: battle_death
Question sequence:
What are the death tolls each time?
What is the maximum number of deaths in any one time?
What about the minimum?
Give me the maximum and also the minimum.
SQL query sequence:
SELECT killed FROM death
SELECT max(killed) FROM death
SELECT min(killed) FROM death
SELECT max(killed) ,  min(killed) FROM death
Final question: What is maximum and minimum death toll caused each time?
Final SQL: SELECT max(killed) ,  min(killed) FROM death
Database: battle_death
Question sequence:
Show me information about deaths caused by ships.
Only ships with tonnage 't'.
Only return the death and injury information for those ships.
SQL query sequence:
SELECT * FROM death as T1 JOIN ship as T2 ON T1.caused_by_ship_id  =  T2.id
SELECT * FROM death AS T1 JOIN ship AS T2 ON T1.caused_by_ship_id  =  T2.id WHERE T2.tonnage  =  't'
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'
Final question: What are the death and injury situations caused by the ship with tonnage 't'?
Final SQL: 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'
Database: battle_death
Question sequence:
What are the ids and names of the battles?
Only show those that ships were lost in.
Please, just the ones with 'Brig' ship type.
SQL query sequence:
SELECT id, name FROM battle
SELECT DISTINCT T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle
SELECT DISTINCT T1.id ,  T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle WHERE T2.ship_type  =  'Brig'
Final question: What are the different ids and names of the battles that lost any 'Brig' type ships?
Final SQL: SELECT DISTINCT T1.id ,  T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle WHERE T2.ship_type  =  'Brig'
Database: battle_death
Question sequence:
How many people were killed or injured in each battle?
Only show the deaths for those battles that produced at least ten deaths.
SQL query sequence:
SELECT T1.id ,  T1.name, sum(T3.killed), sum(T3.injured) FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle JOIN death AS T3 ON T2.id  =  T3.caused_by_ship_id GROUP BY T1.id
SELECT T1.id ,  T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle JOIN death AS T3 ON T2.id  =  T3.caused_by_ship_id GROUP BY T1.id HAVING sum(T3.killed)  >  10
Final question: What are the ids and names of the battles that led to more than 10 people killed in total.
Final SQL: SELECT T1.id ,  T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle JOIN death AS T3 ON T2.id  =  T3.caused_by_ship_id GROUP BY T1.id HAVING sum(T3.killed)  >  10
Database: battle_death
Question sequence:
List the injuries caused by each ship (give ship id and name please).
Sort it by decreasing number of injuries.
Only show the ship id and name that caused the most total injuries.
SQL query sequence:
SELECT T2.id ,  T2.name, sum(T1.injured) FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id  =  T2.id GROUP BY T2.id
SELECT T2.id ,  T2.name, sum(T1.injured) FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id  =  T2.id GROUP BY T2.id ORDER BY sum(T1.injured)
SELECT T2.id ,  T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id  =  T2.id GROUP BY T2.id ORDER BY sum(T1.injured) DESC LIMIT 1
Final question: What is the ship id and name that caused most total injuries?
Final SQL: SELECT T2.id ,  T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id  =  T2.id GROUP BY T2.id ORDER BY sum(T1.injured) DESC LIMIT 1
Database: battle_death
Question sequence:
Which battles did the bulgarian commander 'Kaloyan' fight in?
How about the latin commander 'Baldwin I'?
Just the ones where they were fighting one another, please.
SQL query sequence:
SELECT name FROM battle WHERE bulgarian_commander  =  'Kaloyan'
SELECT name FROM battle WHERE latin_commander  =  'Baldwin I'
SELECT name FROM battle WHERE bulgarian_commander  =  'Kaloyan' AND latin_commander  =  'Baldwin I'
Final question: What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?
Final SQL: SELECT name FROM battle WHERE bulgarian_commander  =  'Kaloyan' AND latin_commander  =  'Baldwin I'