input stringlengths 191 7.13k | output stringlengths 19 578 |
|---|---|
Tables: country, team, match_season, player
Columns: country.Country_id, country.Country_name, country.Capital, country.Official_native_language, team.Team_id, team.Name, match_season.Season, match_season.Player, match_season.Position, match_season.Country, match_season.Team, match_season.Draft_Pick_Number, match_season.Draft_Class, match_season.College, player.Player_ID, player.Player, player.Years_Played, player.Total_WL, player.Singles_WL, player.Doubles_WL, player.Team
Question: Show the name of colleges that have at least two players. [/INST] | SELECT College FROM match_season GROUP BY College HAVING count(*) >= 2; |
Tables: country, team, match_season, player
Columns: country.Country_id, country.Country_name, country.Capital, country.Official_native_language, team.Team_id, team.Name, match_season.Season, match_season.Player, match_season.Position, match_season.Country, match_season.Team, match_season.Draft_Pick_Number, match_season.Draft_Class, match_season.College, player.Player_ID, player.Player, player.Years_Played, player.Total_WL, player.Singles_WL, player.Doubles_WL, player.Team
Question: What are the names of all colleges that have two or more players? [/INST] | SELECT College FROM match_season GROUP BY College HAVING count(*) >= 2; |
Tables: country, team, match_season, player
Columns: country.Country_id, country.Country_name, country.Capital, country.Official_native_language, team.Team_id, team.Name, match_season.Season, match_season.Player, match_season.Position, match_season.Country, match_season.Team, match_season.Draft_Pick_Number, match_season.Draft_Class, match_season.College, player.Player_ID, player.Player, player.Years_Played, player.Total_WL, player.Singles_WL, player.Doubles_WL, player.Team
Question: Show the name of colleges that have at least two players in descending alphabetical order. [/INST] | SELECT College FROM match_season GROUP BY College HAVING count(*) >= 2 ORDER BY College DESC; |
Tables: country, team, match_season, player
Columns: country.Country_id, country.Country_name, country.Capital, country.Official_native_language, team.Team_id, team.Name, match_season.Season, match_season.Player, match_season.Position, match_season.Country, match_season.Team, match_season.Draft_Pick_Number, match_season.Draft_Class, match_season.College, player.Player_ID, player.Player, player.Years_Played, player.Total_WL, player.Singles_WL, player.Doubles_WL, player.Team
Question: What are the names of colleges that have two or more players, listed in descending alphabetical order? [/INST] | SELECT College FROM match_season GROUP BY College HAVING count(*) >= 2 ORDER BY College DESC; |
Tables: country, team, match_season, player
Columns: country.Country_id, country.Country_name, country.Capital, country.Official_native_language, team.Team_id, team.Name, match_season.Season, match_season.Player, match_season.Position, match_season.Country, match_season.Team, match_season.Draft_Pick_Number, match_season.Draft_Class, match_season.College, player.Player_ID, player.Player, player.Years_Played, player.Total_WL, player.Singles_WL, player.Doubles_WL, player.Team
Question: What are the names of teams that do no have match season record? [/INST] | SELECT Name FROM team WHERE Team_id NOT IN (SELECT Team FROM match_season); |
Tables: country, team, match_season, player
Columns: country.Country_id, country.Country_name, country.Capital, country.Official_native_language, team.Team_id, team.Name, match_season.Season, match_season.Player, match_season.Position, match_season.Country, match_season.Team, match_season.Draft_Pick_Number, match_season.Draft_Class, match_season.College, player.Player_ID, player.Player, player.Years_Played, player.Total_WL, player.Singles_WL, player.Doubles_WL, player.Team
Question: Return the names of teams that have no match season record. [/INST] | SELECT Name FROM team WHERE Team_id NOT IN (SELECT Team FROM match_season); |
Tables: country, team, match_season, player
Columns: country.Country_id, country.Country_name, country.Capital, country.Official_native_language, team.Team_id, team.Name, match_season.Season, match_season.Player, match_season.Position, match_season.Country, match_season.Team, match_season.Draft_Pick_Number, match_season.Draft_Class, match_season.College, player.Player_ID, player.Player, player.Years_Played, player.Total_WL, player.Singles_WL, player.Doubles_WL, player.Team
Question: What are the names of countries that have both players with position forward and players with position defender? [/INST] | SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = "Forward" INTERSECT SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = "Defender"; |
Tables: country, team, match_season, player
Columns: country.Country_id, country.Country_name, country.Capital, country.Official_native_language, team.Team_id, team.Name, match_season.Season, match_season.Player, match_season.Position, match_season.Country, match_season.Team, match_season.Draft_Pick_Number, match_season.Draft_Class, match_season.College, player.Player_ID, player.Player, player.Years_Played, player.Total_WL, player.Singles_WL, player.Doubles_WL, player.Team
Question: Return the names of countries that have players that play the Forward position, as well as players who play the Defender position. [/INST] | SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = "Forward" INTERSECT SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = "Defender"; |
Tables: country, team, match_season, player
Columns: country.Country_id, country.Country_name, country.Capital, country.Official_native_language, team.Team_id, team.Name, match_season.Season, match_season.Player, match_season.Position, match_season.Country, match_season.Team, match_season.Draft_Pick_Number, match_season.Draft_Class, match_season.College, player.Player_ID, player.Player, player.Years_Played, player.Total_WL, player.Singles_WL, player.Doubles_WL, player.Team
Question: Which college have both players with position midfielder and players with position defender? [/INST] | SELECT College FROM match_season WHERE POSITION = "Midfielder" INTERSECT SELECT College FROM match_season WHERE POSITION = "Defender"; |
Tables: country, team, match_season, player
Columns: country.Country_id, country.Country_name, country.Capital, country.Official_native_language, team.Team_id, team.Name, match_season.Season, match_season.Player, match_season.Position, match_season.Country, match_season.Team, match_season.Draft_Pick_Number, match_season.Draft_Class, match_season.College, player.Player_ID, player.Player, player.Years_Played, player.Total_WL, player.Singles_WL, player.Doubles_WL, player.Team
Question: Return the colleges that have players who play the Midfielder position, as well as players who play the Defender position. [/INST] | SELECT College FROM match_season WHERE POSITION = "Midfielder" INTERSECT SELECT College FROM match_season WHERE POSITION = "Defender"; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: How many climbers are there? [/INST] | SELECT count(*) FROM climber; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: Count the number of climbers. [/INST] | SELECT count(*) FROM climber; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: List the names of climbers in descending order of points. [/INST] | SELECT Name FROM climber ORDER BY Points DESC; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: What are the names of the climbers, ordered by points descending? [/INST] | SELECT Name FROM climber ORDER BY Points DESC; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: List the names of climbers whose country is not Switzerland. [/INST] | SELECT Name FROM climber WHERE Country != "Switzerland"; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: What are the names of climbers who are not from the country of Switzerland? [/INST] | SELECT Name FROM climber WHERE Country != "Switzerland"; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: What is the maximum point for climbers whose country is United Kingdom? [/INST] | SELECT max(Points) FROM climber WHERE Country = "United Kingdom"; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: Return the maximum number of points for climbers from the United Kingdom. [/INST] | SELECT max(Points) FROM climber WHERE Country = "United Kingdom"; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: How many distinct countries are the climbers from? [/INST] | SELECT COUNT(DISTINCT Country) FROM climber; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: Count the number of different countries that climbers are from. [/INST] | SELECT COUNT(DISTINCT Country) FROM climber; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: What are the names of mountains in ascending alphabetical order? [/INST] | SELECT Name FROM mountain ORDER BY Name ASC; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: Give the names of mountains in alphabetical order. [/INST] | SELECT Name FROM mountain ORDER BY Name ASC; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: What are the countries of mountains with height bigger than 5000? [/INST] | SELECT Country FROM mountain WHERE Height > 5000; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: Return the countries of the mountains that have a height larger than 5000. [/INST] | SELECT Country FROM mountain WHERE Height > 5000; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: What is the name of the highest mountain? [/INST] | SELECT Name FROM mountain ORDER BY Height DESC LIMIT 1; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: Return the name of the mountain with the greatest height. [/INST] | SELECT Name FROM mountain ORDER BY Height DESC LIMIT 1; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: List the distinct ranges of the mountains with the top 3 prominence. [/INST] | SELECT DISTINCT Range FROM mountain ORDER BY Prominence DESC LIMIT 3; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: What are the different ranges of the 3 mountains with the highest prominence? [/INST] | SELECT DISTINCT Range FROM mountain ORDER BY Prominence DESC LIMIT 3; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: Show names of climbers and the names of mountains they climb. [/INST] | SELECT T1.Name , T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: What are the names of climbers and the corresponding names of mountains that they climb? [/INST] | SELECT T1.Name , T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: Show the names of climbers and the heights of mountains they climb. [/INST] | SELECT T1.Name , T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: What are the names of climbers and the corresponding heights of the mountains that they climb? [/INST] | SELECT T1.Name , T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: Show the height of the mountain climbed by the climber with the maximum points. [/INST] | SELECT T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID ORDER BY T1.Points DESC LIMIT 1; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: What is the height of the mountain climbined by the climbing who had the most points? [/INST] | SELECT T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID ORDER BY T1.Points DESC LIMIT 1; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: Show the distinct names of mountains climbed by climbers from country "West Germany". [/INST] | SELECT DISTINCT T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T1.Country = "West Germany"; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: What are the different names of mountains ascended by climbers from the country of West Germany? [/INST] | SELECT DISTINCT T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T1.Country = "West Germany"; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: Show the times used by climbers to climb mountains in Country Uganda. [/INST] | SELECT T1.Time FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T2.Country = "Uganda"; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: What are the times used by climbers who climbed mountains in the country of Uganda? [/INST] | SELECT T1.Time FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T2.Country = "Uganda"; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: Please show the countries and the number of climbers from each country. [/INST] | SELECT Country , COUNT(*) FROM climber GROUP BY Country; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: How many climbers are from each country? [/INST] | SELECT Country , COUNT(*) FROM climber GROUP BY Country; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: List the countries that have more than one mountain. [/INST] | SELECT Country FROM mountain GROUP BY Country HAVING COUNT(*) > 1; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: Which countries have more than one mountain? [/INST] | SELECT Country FROM mountain GROUP BY Country HAVING COUNT(*) > 1; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: List the names of mountains that do not have any climber. [/INST] | SELECT Name FROM mountain WHERE Mountain_ID NOT IN (SELECT Mountain_ID FROM climber); |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: What are the names of countains that no climber has climbed? [/INST] | SELECT Name FROM mountain WHERE Mountain_ID NOT IN (SELECT Mountain_ID FROM climber); |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: Show the countries that have mountains with height more than 5600 stories and mountains with height less than 5200. [/INST] | SELECT Country FROM mountain WHERE Height > 5600 INTERSECT SELECT Country FROM mountain WHERE Height < 5200; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: What are the countries that have both mountains that are higher than 5600 and lower than 5200? [/INST] | SELECT Country FROM mountain WHERE Height > 5600 INTERSECT SELECT Country FROM mountain WHERE Height < 5200; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: Show the range that has the most number of mountains. [/INST] | SELECT Range FROM mountain GROUP BY Range ORDER BY COUNT(*) DESC LIMIT 1; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: Which range contains the most mountains? [/INST] | SELECT Range FROM mountain GROUP BY Range ORDER BY COUNT(*) DESC LIMIT 1; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: Show the names of mountains with height more than 5000 or prominence more than 1000. [/INST] | SELECT Name FROM mountain WHERE Height > 5000 OR Prominence > 1000; |
Tables: mountain, climber
Columns: mountain.Mountain_ID, mountain.Name, mountain.Height, mountain.Prominence, mountain.Range, mountain.Country, climber.Climber_ID, climber.Name, climber.Country, climber.Time, climber.Points, climber.Mountain_ID
Question: What are the names of mountains that have a height of over 5000 or a prominence of over 1000? [/INST] | SELECT Name FROM mountain WHERE Height > 5000 OR Prominence > 1000; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: How many body builders are there? [/INST] | SELECT count(*) FROM body_builder; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: List the total scores of body builders in ascending order. [/INST] | SELECT Total FROM body_builder ORDER BY Total ASC; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: List the snatch score and clean jerk score of body builders in ascending order of snatch score. [/INST] | SELECT Snatch , Clean_Jerk FROM body_builder ORDER BY Snatch ASC; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: What is the average snatch score of body builders? [/INST] | SELECT avg(Snatch) FROM body_builder; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: What are the clean and jerk score of the body builder with the highest total score? [/INST] | SELECT Clean_Jerk FROM body_builder ORDER BY Total DESC LIMIT 1; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: What are the birthdays of people in ascending order of height? [/INST] | SELECT Birth_Date FROM People ORDER BY Height ASC; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: What are the names of body builders? [/INST] | SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: What are the names of body builders whose total score is higher than 300? [/INST] | SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total > 300; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: What is the name of the body builder with the greatest body weight? [/INST] | SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: What are the birth date and birth place of the body builder with the highest total points? [/INST] | SELECT T2.Birth_Date , T2.Birth_Place FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC LIMIT 1; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: What are the heights of body builders with total score smaller than 315? [/INST] | SELECT T2.Height FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total < 315; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: What is the average total score of body builders with height bigger than 200? [/INST] | SELECT avg(T1.Total) FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 200; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: What are the names of body builders in descending order of total scores? [/INST] | SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: List each birth place along with the number of people from there. [/INST] | SELECT Birth_Place , COUNT(*) FROM people GROUP BY Birth_Place; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: What is the most common birth place of people? [/INST] | SELECT Birth_Place FROM people GROUP BY Birth_Place ORDER BY COUNT(*) DESC LIMIT 1; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: What are the birth places that are shared by at least two people? [/INST] | SELECT Birth_Place FROM people GROUP BY Birth_Place HAVING COUNT(*) >= 2; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: List the height and weight of people in descending order of height. [/INST] | SELECT Height , Weight FROM people ORDER BY Height DESC; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: Show all information about each body builder. [/INST] | SELECT * FROM body_builder; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: List the names and origins of people who are not body builders. [/INST] | SELECT Name , birth_place FROM people EXCEPT SELECT T1.Name , T1.birth_place FROM people AS T1 JOIN body_builder AS T2 ON T1.people_id = T2.people_id; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: How many distinct birth places are there? [/INST] | SELECT count(DISTINCT Birth_Place) FROM people; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: How many persons are not body builders? [/INST] | SELECT count(*) FROM people WHERE people_id NOT IN (SELECT People_ID FROM body_builder); |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: List the weight of the body builders who have snatch score higher than 140 or have the height greater than 200. [/INST] | SELECT T2.weight FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T1.snatch > 140 OR T2.height > 200; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: What are the total scores of the body builders whose birthday contains the string "January" ? [/INST] | SELECT T1.total FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T2.Birth_Date LIKE "%January%"; |
Tables: body_builder, people
Columns: body_builder.Body_Builder_ID, body_builder.People_ID, body_builder.Snatch, body_builder.Clean_Jerk, body_builder.Total, people.People_ID, people.Name, people.Height, people.Weight, people.Birth_Date, people.Birth_Place
Question: What is the minimum snatch score? [/INST] | SELECT min(snatch) FROM body_builder; |
Tables: election, representative
Columns: election.Election_ID, election.Representative_ID, election.Date, election.Votes, election.Vote_Percent, election.Seats, election.Place, representative.Representative_ID, representative.Name, representative.State, representative.Party, representative.Lifespan
Question: How many elections are there? [/INST] | SELECT count(*) FROM election; |
Tables: election, representative
Columns: election.Election_ID, election.Representative_ID, election.Date, election.Votes, election.Vote_Percent, election.Seats, election.Place, representative.Representative_ID, representative.Name, representative.State, representative.Party, representative.Lifespan
Question: List the votes of elections in descending order. [/INST] | SELECT Votes FROM election ORDER BY Votes DESC; |
Tables: election, representative
Columns: election.Election_ID, election.Representative_ID, election.Date, election.Votes, election.Vote_Percent, election.Seats, election.Place, representative.Representative_ID, representative.Name, representative.State, representative.Party, representative.Lifespan
Question: List the dates and vote percents of elections. [/INST] | SELECT Date , Vote_Percent FROM election; |
Tables: election, representative
Columns: election.Election_ID, election.Representative_ID, election.Date, election.Votes, election.Vote_Percent, election.Seats, election.Place, representative.Representative_ID, representative.Name, representative.State, representative.Party, representative.Lifespan
Question: What are the minimum and maximum vote percents of elections? [/INST] | SELECT min(Vote_Percent) , max(Vote_Percent) FROM election; |
Tables: election, representative
Columns: election.Election_ID, election.Representative_ID, election.Date, election.Votes, election.Vote_Percent, election.Seats, election.Place, representative.Representative_ID, representative.Name, representative.State, representative.Party, representative.Lifespan
Question: What are the names and parties of representatives? [/INST] | SELECT Name , Party FROM representative; |
Tables: election, representative
Columns: election.Election_ID, election.Representative_ID, election.Date, election.Votes, election.Vote_Percent, election.Seats, election.Place, representative.Representative_ID, representative.Name, representative.State, representative.Party, representative.Lifespan
Question: What are the names of representatives whose party is not "Republican"? [/INST] | SELECT Name FROM Representative WHERE Party != "Republican"; |
Tables: election, representative
Columns: election.Election_ID, election.Representative_ID, election.Date, election.Votes, election.Vote_Percent, election.Seats, election.Place, representative.Representative_ID, representative.Name, representative.State, representative.Party, representative.Lifespan
Question: What are the life spans of representatives from New York state or Indiana state? [/INST] | SELECT Lifespan FROM representative WHERE State = "New York" OR State = "Indiana"; |
Tables: election, representative
Columns: election.Election_ID, election.Representative_ID, election.Date, election.Votes, election.Vote_Percent, election.Seats, election.Place, representative.Representative_ID, representative.Name, representative.State, representative.Party, representative.Lifespan
Question: What are the names of representatives and the dates of elections they participated in. [/INST] | SELECT T2.Name , T1.Date FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID; |
Tables: election, representative
Columns: election.Election_ID, election.Representative_ID, election.Date, election.Votes, election.Vote_Percent, election.Seats, election.Place, representative.Representative_ID, representative.Name, representative.State, representative.Party, representative.Lifespan
Question: What are the names of representatives with more than 10000 votes in election? [/INST] | SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID WHERE Votes > 10000; |
Tables: election, representative
Columns: election.Election_ID, election.Representative_ID, election.Date, election.Votes, election.Vote_Percent, election.Seats, election.Place, representative.Representative_ID, representative.Name, representative.State, representative.Party, representative.Lifespan
Question: What are the names of representatives in descending order of votes? [/INST] | SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes DESC; |
Tables: election, representative
Columns: election.Election_ID, election.Representative_ID, election.Date, election.Votes, election.Vote_Percent, election.Seats, election.Place, representative.Representative_ID, representative.Name, representative.State, representative.Party, representative.Lifespan
Question: What is the party of the representative that has the smallest number of votes. [/INST] | SELECT T2.Party FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes ASC LIMIT 1; |
Tables: election, representative
Columns: election.Election_ID, election.Representative_ID, election.Date, election.Votes, election.Vote_Percent, election.Seats, election.Place, representative.Representative_ID, representative.Name, representative.State, representative.Party, representative.Lifespan
Question: What are the lifespans of representatives in descending order of vote percent? [/INST] | SELECT T2.Lifespan FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY Vote_Percent DESC; |
Tables: election, representative
Columns: election.Election_ID, election.Representative_ID, election.Date, election.Votes, election.Vote_Percent, election.Seats, election.Place, representative.Representative_ID, representative.Name, representative.State, representative.Party, representative.Lifespan
Question: What is the average number of votes of representatives from party "Republican"? [/INST] | SELECT avg(T1.Votes) FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID WHERE T2.Party = "Republican"; |
Tables: election, representative
Columns: election.Election_ID, election.Representative_ID, election.Date, election.Votes, election.Vote_Percent, election.Seats, election.Place, representative.Representative_ID, representative.Name, representative.State, representative.Party, representative.Lifespan
Question: What are the different parties of representative? Show the party name and the number of representatives in each party. [/INST] | SELECT Party , COUNT(*) FROM representative GROUP BY Party; |
Tables: election, representative
Columns: election.Election_ID, election.Representative_ID, election.Date, election.Votes, election.Vote_Percent, election.Seats, election.Place, representative.Representative_ID, representative.Name, representative.State, representative.Party, representative.Lifespan
Question: What is the party that has the largest number of representatives? [/INST] | SELECT Party , COUNT(*) FROM representative GROUP BY Party ORDER BY COUNT(*) DESC LIMIT 1; |
Tables: election, representative
Columns: election.Election_ID, election.Representative_ID, election.Date, election.Votes, election.Vote_Percent, election.Seats, election.Place, representative.Representative_ID, representative.Name, representative.State, representative.Party, representative.Lifespan
Question: What parties have at least three representatives? [/INST] | SELECT Party FROM representative GROUP BY Party HAVING COUNT(*) >= 3; |
Tables: election, representative
Columns: election.Election_ID, election.Representative_ID, election.Date, election.Votes, election.Vote_Percent, election.Seats, election.Place, representative.Representative_ID, representative.Name, representative.State, representative.Party, representative.Lifespan
Question: What states have at least two representatives? [/INST] | SELECT State FROM representative GROUP BY State HAVING COUNT(*) >= 2; |
Tables: election, representative
Columns: election.Election_ID, election.Representative_ID, election.Date, election.Votes, election.Vote_Percent, election.Seats, election.Place, representative.Representative_ID, representative.Name, representative.State, representative.Party, representative.Lifespan
Question: List the names of representatives that have not participated in elections listed here. [/INST] | SELECT Name FROM representative WHERE Representative_ID NOT IN (SELECT Representative_ID FROM election); |
Tables: election, representative
Columns: election.Election_ID, election.Representative_ID, election.Date, election.Votes, election.Vote_Percent, election.Seats, election.Place, representative.Representative_ID, representative.Name, representative.State, representative.Party, representative.Lifespan
Question: Show the parties that have both representatives in New York state and representatives in Pennsylvania state. [/INST] | SELECT Party FROM representative WHERE State = "New York" INTERSECT SELECT Party FROM representative WHERE State = "Pennsylvania"; |
Tables: election, representative
Columns: election.Election_ID, election.Representative_ID, election.Date, election.Votes, election.Vote_Percent, election.Seats, election.Place, representative.Representative_ID, representative.Name, representative.State, representative.Party, representative.Lifespan
Question: How many distinct parties are there for representatives? [/INST] | SELECT count(DISTINCT Party) FROM representative; |
Tables: Apartment_Buildings, Apartments, Apartment_Facilities, Guests, Apartment_Bookings, View_Unit_Status
Columns: Apartment_Buildings.building_id, Apartment_Buildings.building_short_name, Apartment_Buildings.building_full_name, Apartment_Buildings.building_description, Apartment_Buildings.building_address, Apartment_Buildings.building_manager, Apartment_Buildings.building_phone, Apartments.apt_id, Apartments.building_id, Apartments.apt_type_code, Apartments.apt_number, Apartments.bathroom_count, Apartments.bedroom_count, Apartments.room_count, Apartment_Facilities.apt_id, Apartment_Facilities.facility_code, Guests.guest_id, Guests.gender_code, Guests.guest_first_name, Guests.guest_last_name, Guests.date_of_birth, Apartment_Bookings.apt_booking_id, Apartment_Bookings.apt_id, Apartment_Bookings.guest_id, Apartment_Bookings.booking_status_code, Apartment_Bookings.booking_start_date, Apartment_Bookings.booking_end_date, View_Unit_Status.apt_id, View_Unit_Status.apt_booking_id, View_Unit_Status.status_date, View_Unit_Status.available_yn
Question: How many apartment bookings are there in total? [/INST] | SELECT count(*) FROM Apartment_Bookings; |
Tables: Apartment_Buildings, Apartments, Apartment_Facilities, Guests, Apartment_Bookings, View_Unit_Status
Columns: Apartment_Buildings.building_id, Apartment_Buildings.building_short_name, Apartment_Buildings.building_full_name, Apartment_Buildings.building_description, Apartment_Buildings.building_address, Apartment_Buildings.building_manager, Apartment_Buildings.building_phone, Apartments.apt_id, Apartments.building_id, Apartments.apt_type_code, Apartments.apt_number, Apartments.bathroom_count, Apartments.bedroom_count, Apartments.room_count, Apartment_Facilities.apt_id, Apartment_Facilities.facility_code, Guests.guest_id, Guests.gender_code, Guests.guest_first_name, Guests.guest_last_name, Guests.date_of_birth, Apartment_Bookings.apt_booking_id, Apartment_Bookings.apt_id, Apartment_Bookings.guest_id, Apartment_Bookings.booking_status_code, Apartment_Bookings.booking_start_date, Apartment_Bookings.booking_end_date, View_Unit_Status.apt_id, View_Unit_Status.apt_booking_id, View_Unit_Status.status_date, View_Unit_Status.available_yn
Question: Count the total number of apartment bookings. [/INST] | SELECT count(*) FROM Apartment_Bookings; |
Tables: Apartment_Buildings, Apartments, Apartment_Facilities, Guests, Apartment_Bookings, View_Unit_Status
Columns: Apartment_Buildings.building_id, Apartment_Buildings.building_short_name, Apartment_Buildings.building_full_name, Apartment_Buildings.building_description, Apartment_Buildings.building_address, Apartment_Buildings.building_manager, Apartment_Buildings.building_phone, Apartments.apt_id, Apartments.building_id, Apartments.apt_type_code, Apartments.apt_number, Apartments.bathroom_count, Apartments.bedroom_count, Apartments.room_count, Apartment_Facilities.apt_id, Apartment_Facilities.facility_code, Guests.guest_id, Guests.gender_code, Guests.guest_first_name, Guests.guest_last_name, Guests.date_of_birth, Apartment_Bookings.apt_booking_id, Apartment_Bookings.apt_id, Apartment_Bookings.guest_id, Apartment_Bookings.booking_status_code, Apartment_Bookings.booking_start_date, Apartment_Bookings.booking_end_date, View_Unit_Status.apt_id, View_Unit_Status.apt_booking_id, View_Unit_Status.status_date, View_Unit_Status.available_yn
Question: Show the start dates and end dates of all the apartment bookings. [/INST] | SELECT booking_start_date , booking_end_date FROM Apartment_Bookings; |
Tables: Apartment_Buildings, Apartments, Apartment_Facilities, Guests, Apartment_Bookings, View_Unit_Status
Columns: Apartment_Buildings.building_id, Apartment_Buildings.building_short_name, Apartment_Buildings.building_full_name, Apartment_Buildings.building_description, Apartment_Buildings.building_address, Apartment_Buildings.building_manager, Apartment_Buildings.building_phone, Apartments.apt_id, Apartments.building_id, Apartments.apt_type_code, Apartments.apt_number, Apartments.bathroom_count, Apartments.bedroom_count, Apartments.room_count, Apartment_Facilities.apt_id, Apartment_Facilities.facility_code, Guests.guest_id, Guests.gender_code, Guests.guest_first_name, Guests.guest_last_name, Guests.date_of_birth, Apartment_Bookings.apt_booking_id, Apartment_Bookings.apt_id, Apartment_Bookings.guest_id, Apartment_Bookings.booking_status_code, Apartment_Bookings.booking_start_date, Apartment_Bookings.booking_end_date, View_Unit_Status.apt_id, View_Unit_Status.apt_booking_id, View_Unit_Status.status_date, View_Unit_Status.available_yn
Question: What are the start date and end date of each apartment booking? [/INST] | SELECT booking_start_date , booking_end_date FROM Apartment_Bookings; |
Tables: Apartment_Buildings, Apartments, Apartment_Facilities, Guests, Apartment_Bookings, View_Unit_Status
Columns: Apartment_Buildings.building_id, Apartment_Buildings.building_short_name, Apartment_Buildings.building_full_name, Apartment_Buildings.building_description, Apartment_Buildings.building_address, Apartment_Buildings.building_manager, Apartment_Buildings.building_phone, Apartments.apt_id, Apartments.building_id, Apartments.apt_type_code, Apartments.apt_number, Apartments.bathroom_count, Apartments.bedroom_count, Apartments.room_count, Apartment_Facilities.apt_id, Apartment_Facilities.facility_code, Guests.guest_id, Guests.gender_code, Guests.guest_first_name, Guests.guest_last_name, Guests.date_of_birth, Apartment_Bookings.apt_booking_id, Apartment_Bookings.apt_id, Apartment_Bookings.guest_id, Apartment_Bookings.booking_status_code, Apartment_Bookings.booking_start_date, Apartment_Bookings.booking_end_date, View_Unit_Status.apt_id, View_Unit_Status.apt_booking_id, View_Unit_Status.status_date, View_Unit_Status.available_yn
Question: Show all distinct building descriptions. [/INST] | SELECT DISTINCT building_description FROM Apartment_Buildings; |
Tables: Apartment_Buildings, Apartments, Apartment_Facilities, Guests, Apartment_Bookings, View_Unit_Status
Columns: Apartment_Buildings.building_id, Apartment_Buildings.building_short_name, Apartment_Buildings.building_full_name, Apartment_Buildings.building_description, Apartment_Buildings.building_address, Apartment_Buildings.building_manager, Apartment_Buildings.building_phone, Apartments.apt_id, Apartments.building_id, Apartments.apt_type_code, Apartments.apt_number, Apartments.bathroom_count, Apartments.bedroom_count, Apartments.room_count, Apartment_Facilities.apt_id, Apartment_Facilities.facility_code, Guests.guest_id, Guests.gender_code, Guests.guest_first_name, Guests.guest_last_name, Guests.date_of_birth, Apartment_Bookings.apt_booking_id, Apartment_Bookings.apt_id, Apartment_Bookings.guest_id, Apartment_Bookings.booking_status_code, Apartment_Bookings.booking_start_date, Apartment_Bookings.booking_end_date, View_Unit_Status.apt_id, View_Unit_Status.apt_booking_id, View_Unit_Status.status_date, View_Unit_Status.available_yn
Question: Give me a list of all the distinct building descriptions. [/INST] | SELECT DISTINCT building_description FROM Apartment_Buildings; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.