Dataset Viewer
Auto-converted to Parquet Duplicate
chat_prompt
stringlengths
438
1.53k
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1000181_1\" (\n \"state_territory\" text,\n \"text_background_colour\" text,\n \"format\" text,\n \"current_slogan\" text,\n \"current_series\" text,\n \"notes\" text\n);\n\nQuestion: Tell me what the notes are for South Australia " }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"table1_1000181_1\" WHERE \"current_slogan\"='SOUTH AUSTRALIA';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1000181_1\" (\n \"state_territory\" text,\n \"text_background_colour\" text,\n \"format\" text,\n \"current_slogan\" text,\n \"current_series\" text,\n \"notes\" text\n);\n\nQuestion: What is the current series where the new series began in June 2011?" }, { "role": "assistant", "content": "SELECT \"current_series\" FROM \"table1_1000181_1\" WHERE \"notes\"='New series began in June 2011';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1000181_1\" (\n \"state_territory\" text,\n \"text_background_colour\" text,\n \"format\" text,\n \"current_slogan\" text,\n \"current_series\" text,\n \"notes\" text\n);\n\nQuestion: What is the format for South Australia?" }, { "role": "assistant", "content": "SELECT \"format\" FROM \"table1_1000181_1\" WHERE \"state_territory\"='South Australia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1000181_1\" (\n \"state_territory\" text,\n \"text_background_colour\" text,\n \"format\" text,\n \"current_slogan\" text,\n \"current_series\" text,\n \"notes\" text\n);\n\nQuestion: Name the background colour for the Australian Capital Territory" }, { "role": "assistant", "content": "SELECT \"text_background_colour\" FROM \"table1_1000181_1\" WHERE \"state_territory\"='Australian Capital Territory';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fleet\" (\n \"order_year\" text,\n \"manufacturer\" text,\n \"model\" text,\n \"fleet_series_quantity\" text,\n \"powertrain_engine_transmission\" text,\n \"fuel_propulsion\" text\n);\n\nQuestion: how many times is the fuel propulsion is cng?" }, { "role": "assistant", "content": "SELECT COUNT(\"fleet_series_quantity\") FROM \"fleet\" WHERE \"fuel_propulsion\"='CNG';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fleet\" (\n \"order_year\" text,\n \"manufacturer\" text,\n \"model\" text,\n \"fleet_series_quantity\" text,\n \"powertrain_engine_transmission\" text,\n \"fuel_propulsion\" text\n);\n\nQuestion: what is the fuel propulsion where the fleet series (quantity) is 310-329 (20)?" }, { "role": "assistant", "content": "SELECT \"fuel_propulsion\" FROM \"fleet\" WHERE \"fleet_series_quantity\"='310-329 (20)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fleet\" (\n \"order_year\" text,\n \"manufacturer\" text,\n \"model\" text,\n \"fleet_series_quantity\" text,\n \"powertrain_engine_transmission\" text,\n \"fuel_propulsion\" text\n);\n\nQuestion: who is the manufacturer for the order year 1998?" }, { "role": "assistant", "content": "SELECT \"manufacturer\" FROM \"fleet\" WHERE \"order_year\"='1998';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fleet\" (\n \"order_year\" text,\n \"manufacturer\" text,\n \"model\" text,\n \"fleet_series_quantity\" text,\n \"powertrain_engine_transmission\" text,\n \"fuel_propulsion\" text\n);\n\nQuestion: how many times is the model ge40lfr?" }, { "role": "assistant", "content": "SELECT COUNT(\"manufacturer\") FROM \"fleet\" WHERE \"model\"='GE40LFR';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fleet\" (\n \"order_year\" text,\n \"manufacturer\" text,\n \"model\" text,\n \"fleet_series_quantity\" text,\n \"powertrain_engine_transmission\" text,\n \"fuel_propulsion\" text\n);\n\nQuestion: how many times is the fleet series (quantity) is 468-473 (6)?" }, { "role": "assistant", "content": "SELECT COUNT(\"order_year\") FROM \"fleet\" WHERE \"fleet_series_quantity\"='468-473 (6)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fleet\" (\n \"order_year\" text,\n \"manufacturer\" text,\n \"model\" text,\n \"fleet_series_quantity\" text,\n \"powertrain_engine_transmission\" text,\n \"fuel_propulsion\" text\n);\n\nQuestion: what is the powertrain (engine/transmission) when the order year is 2000?" }, { "role": "assistant", "content": "SELECT \"powertrain_engine_transmission\" FROM \"fleet\" WHERE \"order_year\"='2000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"disk_loading_comparison\" (\n \"aircraft\" text,\n \"description\" text,\n \"max_gross_weight\" text,\n \"total_disk_area\" text,\n \"max_disk_loading\" text\n);\n\nQuestion: What if the description of a ch-47d chinook?" }, { "role": "assistant", "content": "SELECT \"description\" FROM \"disk_loading_comparison\" WHERE \"aircraft\"='CH-47D Chinook';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"disk_loading_comparison\" (\n \"aircraft\" text,\n \"description\" text,\n \"max_gross_weight\" text,\n \"total_disk_area\" text,\n \"max_disk_loading\" text\n);\n\nQuestion: What is the max gross weight of the Robinson R-22?" }, { "role": "assistant", "content": "SELECT \"max_gross_weight\" FROM \"disk_loading_comparison\" WHERE \"aircraft\"='Robinson R-22';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"a\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: What school did player number 6 come from?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"a\" WHERE \"no\"='6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"a\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: What school did the player that has been in Toronto from 2012-present come from?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"a\" WHERE \"years_in_toronto\"='2012-present';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"a\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: What school did the player that has been in Toronto from 2010-2012 go to?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"a\" WHERE \"years_in_toronto\"='2010-2012';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"a\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: What position did the player from Baylor play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"a\" WHERE \"school_club_team\"='Baylor';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"o\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: Who played in the Toronto Raptors from 1995-96?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"o\" WHERE \"years_in_toronto\"='1995-96';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"o\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which number was Patrick O'Bryant?" }, { "role": "assistant", "content": "SELECT \"no\" FROM \"o\" WHERE \"player\"='Patrick O''Bryant';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"o\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: What school did Patrick O'Bryant play for?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"o\" WHERE \"player\"='Patrick O''Bryant';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"o\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: How many number does Fordham school have?" }, { "role": "assistant", "content": "SELECT COUNT(\"no\") FROM \"o\" WHERE \"school_club_team\"='Fordham';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"o\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which school was in Toronto in 2001-02?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"o\" WHERE \"years_in_toronto\"='2001-02';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"w\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which school did the player that played 2004-05 attend?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"w\" WHERE \"years_in_toronto\"='2004-05';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"w\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which position does Loren Woods play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"w\" WHERE \"player\"='Loren Woods';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"w\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: What number is the player that played 1998-2001" }, { "role": "assistant", "content": "SELECT MIN(\"no\") FROM \"w\" WHERE \"years_in_toronto\"='1998-2001';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"w\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which country is the player that went to Georgetown from?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"w\" WHERE \"school_club_team\"='Georgetown';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"w\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which school did Herb Williams go to?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"w\" WHERE \"player\"='Herb Williams';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"c\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: When did the player from Hawaii play for Toronto?" }, { "role": "assistant", "content": "SELECT \"years_in_toronto\" FROM \"c\" WHERE \"school_club_team\"='Hawaii';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"c\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: During what period did Dell Curry play for Toronto?" }, { "role": "assistant", "content": "SELECT \"years_in_toronto\" FROM \"c\" WHERE \"player\"='Dell Curry';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"c\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: What's the number of the player from Boise State?" }, { "role": "assistant", "content": "SELECT \"no\" FROM \"c\" WHERE \"school_club_team\"='Boise State';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"c\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: What's Dell Curry nationality?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"c\" WHERE \"player\"='Dell Curry';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"g\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: which player is from georgia" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"g\" WHERE \"school_club_team\"='Georgia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"g\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: what school is rudy gay from" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"g\" WHERE \"player\"='Rudy Gay';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"g\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: what nationality is the player who played from 1997-98" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"g\" WHERE \"years_in_toronto\"='1997-98';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"g\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: what position did the player from connecticut play" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"g\" WHERE \"school_club_team\"='Connecticut';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"b\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: During which years was Marcus Banks in Toronto?" }, { "role": "assistant", "content": "SELECT \"years_in_toronto\" FROM \"b\" WHERE \"player\"='Marcus Banks';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"b\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which positions were in Toronto in 2004?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"b\" WHERE \"years_in_toronto\"='2004';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"b\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: What nationality is the player Muggsy Bogues?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"b\" WHERE \"player\"='Muggsy Bogues';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"b\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: What years was the player Lonny Baxter in Toronto?" }, { "role": "assistant", "content": "SELECT \"years_in_toronto\" FROM \"b\" WHERE \"player\"='Lonny Baxter';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"b\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: How many players were with the school or club team La Salle?" }, { "role": "assistant", "content": "SELECT COUNT(\"player\") FROM \"b\" WHERE \"school_club_team\"='La Salle';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lpga_tour_career_summary\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"2nd\" real,\n \"top_10s\" real,\n \"best_finish\" text,\n \"earnings\" real,\n \"money_list_rank\" text,\n \"scoring_average\" text,\n \"scoring_rank\" text\n);\n\nQuestion: When the scoring rank was 117, what was the best finish?" }, { "role": "assistant", "content": "SELECT \"best_finish\" FROM \"lpga_tour_career_summary\" WHERE \"scoring_rank\"='117';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lpga_tour_career_summary\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"2nd\" real,\n \"top_10s\" real,\n \"best_finish\" text,\n \"earnings\" real,\n \"money_list_rank\" text,\n \"scoring_average\" text,\n \"scoring_rank\" text\n);\n\nQuestion: When the best finish was T69, how many people came in 2nd?" }, { "role": "assistant", "content": "SELECT \"2nd\" FROM \"lpga_tour_career_summary\" WHERE \"best_finish\"='T69';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lpga_tour_career_summary\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"2nd\" real,\n \"top_10s\" real,\n \"best_finish\" text,\n \"earnings\" real,\n \"money_list_rank\" text,\n \"scoring_average\" text,\n \"scoring_rank\" text\n);\n\nQuestion: How many wins were there when the money list rank was 183?" }, { "role": "assistant", "content": "SELECT COUNT(\"wins\") FROM \"lpga_tour_career_summary\" WHERE \"money_list_rank\"='183';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lpga_tour_career_summary\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"2nd\" real,\n \"top_10s\" real,\n \"best_finish\" text,\n \"earnings\" real,\n \"money_list_rank\" text,\n \"scoring_average\" text,\n \"scoring_rank\" text\n);\n\nQuestion: When the money list rank was n/a, what was the scoring average?" }, { "role": "assistant", "content": "SELECT \"scoring_average\" FROM \"lpga_tour_career_summary\" WHERE \"money_list_rank\"='n/a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lpga_tour_career_summary\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"2nd\" real,\n \"top_10s\" real,\n \"best_finish\" text,\n \"earnings\" real,\n \"money_list_rank\" text,\n \"scoring_average\" text,\n \"scoring_rank\" text\n);\n\nQuestion: What time was the highest for 2nd finishers?" }, { "role": "assistant", "content": "SELECT MAX(\"2nd\") FROM \"lpga_tour_career_summary\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"season\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"team\" text,\n \"draft_pick_num\" text,\n \"draft_class\" text,\n \"college\" text\n);\n\nQuestion: When did the Metrostars have their first Rookie of the Year winner?" }, { "role": "assistant", "content": "SELECT MIN(\"season\") FROM \"winners\" WHERE \"team\"='MetroStars';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"season\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"team\" text,\n \"draft_pick_num\" text,\n \"draft_class\" text,\n \"college\" text\n);\n\nQuestion: What college did the Rookie of the Year from the Columbus Crew attend?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"winners\" WHERE \"team\"='Columbus Crew';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"season\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"team\" text,\n \"draft_pick_num\" text,\n \"draft_class\" text,\n \"college\" text\n);\n\nQuestion: How many teams had a #1 draft pick that won the Rookie of the Year Award?" }, { "role": "assistant", "content": "SELECT COUNT(\"team\") FROM \"winners\" WHERE \"draft_pick_num\"='1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"season\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"team\" text,\n \"draft_pick_num\" text,\n \"draft_class\" text,\n \"college\" text\n);\n\nQuestion: What position did the #10 draft pick play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"winners\" WHERE \"draft_pick_num\"='10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"squad_members\" (\n \"player\" text,\n \"years_played\" text,\n \"total_w_l\" text,\n \"singles_w_l\" text,\n \"doubles_w_l\" text\n);\n\nQuestion: what's the\u00a0years played\u00a0with\u00a0singles w-l\u00a0of 3\u20132" }, { "role": "assistant", "content": "SELECT \"years_played\" FROM \"squad_members\" WHERE \"singles_w_l\"='3\u20132';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"squad_members\" (\n \"player\" text,\n \"years_played\" text,\n \"total_w_l\" text,\n \"singles_w_l\" text,\n \"doubles_w_l\" text\n);\n\nQuestion: what's the\u00a0doubles w-l\u00a0for player\u00a0seol jae-min (none)" }, { "role": "assistant", "content": "SELECT \"doubles_w_l\" FROM \"squad_members\" WHERE \"player\"='Seol Jae-Min (none)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"squad_members\" (\n \"player\" text,\n \"years_played\" text,\n \"total_w_l\" text,\n \"singles_w_l\" text,\n \"doubles_w_l\" text\n);\n\nQuestion: what's the\u00a0singles w-l\u00a0for kim doo-hwan" }, { "role": "assistant", "content": "SELECT \"singles_w_l\" FROM \"squad_members\" WHERE \"player\"='Kim Doo-Hwan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"squad_members\" (\n \"player\" text,\n \"years_played\" text,\n \"total_w_l\" text,\n \"singles_w_l\" text,\n \"doubles_w_l\" text\n);\n\nQuestion: what's the total number of\u00a0singles w-l\u00a0with\u00a0doubles w-l\u00a0of 0\u20130 and\u00a0total w-l\u00a0of 3\u20131" }, { "role": "assistant", "content": "SELECT COUNT(\"singles_w_l\") FROM \"squad_members\" WHERE \"doubles_w_l\"='0\u20130' AND \"total_w_l\"='3\u20131';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"squad_members\" (\n \"player\" text,\n \"years_played\" text,\n \"total_w_l\" text,\n \"singles_w_l\" text,\n \"doubles_w_l\" text\n);\n\nQuestion: what's the\u00a0doubles w-l\u00a0with\u00a0years played\u00a0value of 1 (1968)" }, { "role": "assistant", "content": "SELECT \"doubles_w_l\" FROM \"squad_members\" WHERE \"years_played\"='1 (1968)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"squad_members\" (\n \"player\" text,\n \"years_played\" text,\n \"total_w_l\" text,\n \"singles_w_l\" text,\n \"doubles_w_l\" text\n);\n\nQuestion: what\u00a0years are played\u00a0for player\u00a0 im chung-yang" }, { "role": "assistant", "content": "SELECT \"years_played\" FROM \"squad_members\" WHERE \"player\"='Im Chung-Yang';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"name\" text,\n \"canton\" text,\n \"height_meters\" real,\n \"crest_length_meters\" real,\n \"type\" text,\n \"year_of_construction\" real,\n \"name_of_the_lake\" text\n);\n\nQuestion: What is the name of the 375 crest length?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"see_also\" WHERE \"crest_length_meters\"=375;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"name\" text,\n \"canton\" text,\n \"height_meters\" real,\n \"crest_length_meters\" real,\n \"type\" text,\n \"year_of_construction\" real,\n \"name_of_the_lake\" text\n);\n\nQuestion: What is year of construction of spitallamm?" }, { "role": "assistant", "content": "SELECT MIN(\"year_of_construction\") FROM \"see_also\" WHERE \"name\"='Spitallamm';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"name\" text,\n \"canton\" text,\n \"height_meters\" real,\n \"crest_length_meters\" real,\n \"type\" text,\n \"year_of_construction\" real,\n \"name_of_the_lake\" text\n);\n\nQuestion: What is the canton of grande dixence?" }, { "role": "assistant", "content": "SELECT \"canton\" FROM \"see_also\" WHERE \"name\"='Grande Dixence';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"name\" text,\n \"canton\" text,\n \"height_meters\" real,\n \"crest_length_meters\" real,\n \"type\" text,\n \"year_of_construction\" real,\n \"name_of_the_lake\" text\n);\n\nQuestion: What is the name where lago di luzzone is?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"see_also\" WHERE \"name_of_the_lake\"='Lago di Luzzone';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"names_and_attributes\" (\n \"name\" text,\n \"direction\" text,\n \"mantra\" text,\n \"weapon\" text,\n \"consort\" text,\n \"graha_planet\" text,\n \"guardian_m_t_k\" text\n);\n\nQuestion: What is the guardian m\u0101t\u1e5bk\u0101 for the guardian whose consort is Sv\u0101h\u0101?" }, { "role": "assistant", "content": "SELECT \"guardian_m_t_k\" FROM \"names_and_attributes\" WHERE \"consort\"='Sv\u0101h\u0101';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"names_and_attributes\" (\n \"name\" text,\n \"direction\" text,\n \"mantra\" text,\n \"weapon\" text,\n \"consort\" text,\n \"graha_planet\" text,\n \"guardian_m_t_k\" text\n);\n\nQuestion: Where the mantra is \"o\u1e43 ya\u1e43 v\u0101yuve nama\u1e25\", what is the direction of the guardian?" }, { "role": "assistant", "content": "SELECT \"direction\" FROM \"names_and_attributes\" WHERE \"mantra\"='O\u1e43 Ya\u1e43 V\u0101yuve Nama\u1e25';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"names_and_attributes\" (\n \"name\" text,\n \"direction\" text,\n \"mantra\" text,\n \"weapon\" text,\n \"consort\" text,\n \"graha_planet\" text,\n \"guardian_m_t_k\" text\n);\n\nQuestion: What weapon is used by the guardian whose consort is \u015bac\u012b?" }, { "role": "assistant", "content": "SELECT \"weapon\" FROM \"names_and_attributes\" WHERE \"consort\"='\u015aac\u012b';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"names_and_attributes\" (\n \"name\" text,\n \"direction\" text,\n \"mantra\" text,\n \"weapon\" text,\n \"consort\" text,\n \"graha_planet\" text,\n \"guardian_m_t_k\" text\n);\n\nQuestion: What are the directions for the guardian whose weapon is kha\u1e0dga (sword)?" }, { "role": "assistant", "content": "SELECT \"direction\" FROM \"names_and_attributes\" WHERE \"weapon\"='Kha\u1e0dga (sword)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"names_and_attributes\" (\n \"name\" text,\n \"direction\" text,\n \"mantra\" text,\n \"weapon\" text,\n \"consort\" text,\n \"graha_planet\" text,\n \"guardian_m_t_k\" text\n);\n\nQuestion: What are the weapons used by guardians for the direction East?" }, { "role": "assistant", "content": "SELECT \"weapon\" FROM \"names_and_attributes\" WHERE \"direction\"='East';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"names_and_attributes\" (\n \"name\" text,\n \"direction\" text,\n \"mantra\" text,\n \"weapon\" text,\n \"consort\" text,\n \"graha_planet\" text,\n \"guardian_m_t_k\" text\n);\n\nQuestion: What are the directions for the guardian whose graha (planet) is b\u1e5bhaspati (Jupiter)?" }, { "role": "assistant", "content": "SELECT \"direction\" FROM \"names_and_attributes\" WHERE \"graha_planet\"='B\u1e5bhaspati (Jupiter)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members\" (\n \"member\" text,\n \"headquarters\" text,\n \"classification\" text,\n \"chapters\" real,\n \"founded\" text,\n \"uccfs\" real\n);\n\nQuestion: What is the number of chapters listed for the fraternity with a headquarters in Austin, Texas?" }, { "role": "assistant", "content": "SELECT MAX(\"chapters\") FROM \"members\" WHERE \"classification\"='Fraternity' AND \"headquarters\"='Austin, Texas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members\" (\n \"member\" text,\n \"headquarters\" text,\n \"classification\" text,\n \"chapters\" real,\n \"founded\" text,\n \"uccfs\" real\n);\n\nQuestion: What are the members listed with the sorority classification" }, { "role": "assistant", "content": "SELECT \"member\" FROM \"members\" WHERE \"classification\"='Sorority';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members\" (\n \"member\" text,\n \"headquarters\" text,\n \"classification\" text,\n \"chapters\" real,\n \"founded\" text,\n \"uccfs\" real\n);\n\nQuestion: Name the member that has 12 chapters" }, { "role": "assistant", "content": "SELECT \"member\" FROM \"members\" WHERE \"chapters\"=12;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members\" (\n \"member\" text,\n \"headquarters\" text,\n \"classification\" text,\n \"chapters\" real,\n \"founded\" text,\n \"uccfs\" real\n);\n\nQuestion: Where is the headquarters of Alpha Nu Omega" }, { "role": "assistant", "content": "SELECT \"headquarters\" FROM \"members\" WHERE \"member\"='Alpha Nu Omega';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"incidence_of_disease_in_russian_empire_a\" (\n \"year\" text,\n \"typhus\" real,\n \"typhoid_fever\" real,\n \"relapsing_fever\" real,\n \"smallpox\" real,\n \"malaria\" text\n);\n\nQuestion: what is the number of relapsing fever when malaria is 3000" }, { "role": "assistant", "content": "SELECT MIN(\"relapsing_fever\") FROM \"incidence_of_disease_in_russian_empire_a\" WHERE \"malaria\"='3000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"incidence_of_disease_in_russian_empire_a\" (\n \"year\" text,\n \"typhus\" real,\n \"typhoid_fever\" real,\n \"relapsing_fever\" real,\n \"smallpox\" real,\n \"malaria\" text\n);\n\nQuestion: what is the typhoid fever number for the year 1934" }, { "role": "assistant", "content": "SELECT \"typhoid_fever\" FROM \"incidence_of_disease_in_russian_empire_a\" WHERE \"year\"='1934';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"incidence_of_disease_in_russian_empire_a\" (\n \"year\" text,\n \"typhus\" real,\n \"typhoid_fever\" real,\n \"relapsing_fever\" real,\n \"smallpox\" real,\n \"malaria\" text\n);\n\nQuestion: What are all the typhus number when smallpox is 4" }, { "role": "assistant", "content": "SELECT \"typhus\" FROM \"incidence_of_disease_in_russian_empire_a\" WHERE \"smallpox\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"incidence_of_disease_in_russian_empire_a\" (\n \"year\" text,\n \"typhus\" real,\n \"typhoid_fever\" real,\n \"relapsing_fever\" real,\n \"smallpox\" real,\n \"malaria\" text\n);\n\nQuestion: what is the number of smallpox when typhoid fever is 293" }, { "role": "assistant", "content": "SELECT MAX(\"smallpox\") FROM \"incidence_of_disease_in_russian_empire_a\" WHERE \"typhoid_fever\"=293;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"incidence_of_disease_in_russian_empire_a\" (\n \"year\" text,\n \"typhus\" real,\n \"typhoid_fever\" real,\n \"relapsing_fever\" real,\n \"smallpox\" real,\n \"malaria\" text\n);\n\nQuestion: what is the typhoid fever number for the year 1929" }, { "role": "assistant", "content": "SELECT \"typhoid_fever\" FROM \"incidence_of_disease_in_russian_empire_a\" WHERE \"year\"='1929';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"school\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"team_nickname\" text,\n \"primary_conference\" text\n);\n\nQuestion: How many schools are in Bloomington, IN?" }, { "role": "assistant", "content": "SELECT COUNT(\"founded\") FROM \"current_members\" WHERE \"location\"='Bloomington, IN';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"school\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"team_nickname\" text,\n \"primary_conference\" text\n);\n\nQuestion: How many of the schools are designated private/Presbyterian?" }, { "role": "assistant", "content": "SELECT COUNT(\"location\") FROM \"current_members\" WHERE \"affiliation\"='Private/Presbyterian';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"school\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"team_nickname\" text,\n \"primary_conference\" text\n);\n\nQuestion: In what year was Lindenwood University founded?" }, { "role": "assistant", "content": "SELECT MIN(\"founded\") FROM \"current_members\" WHERE \"school\"='Lindenwood University';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"school\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"team_nickname\" text,\n \"primary_conference\" text\n);\n\nQuestion: How many of the schools listed are in Ames, IA?" }, { "role": "assistant", "content": "SELECT COUNT(\"primary_conference\") FROM \"current_members\" WHERE \"location\"='Ames, IA';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1008653_9\" (\n \"country_exonym\" text,\n \"capital_exonym\" text,\n \"country_endonym\" text,\n \"capital_endonym\" text,\n \"official_or_native_language_s_alphabet_script\" text\n);\n\nQuestion: What is the capital (endonym) where Douglas is the Capital (exonym)?" }, { "role": "assistant", "content": "SELECT \"capital_endonym\" FROM \"table1_1008653_9\" WHERE \"capital_exonym\"='Douglas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1008653_9\" (\n \"country_exonym\" text,\n \"capital_exonym\" text,\n \"country_endonym\" text,\n \"capital_endonym\" text,\n \"official_or_native_language_s_alphabet_script\" text\n);\n\nQuestion: How many countries (endonym) has the capital (endonym) of Jakarta?" }, { "role": "assistant", "content": "SELECT COUNT(\"country_endonym\") FROM \"table1_1008653_9\" WHERE \"capital_endonym\"='Jakarta';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1008653_9\" (\n \"country_exonym\" text,\n \"capital_exonym\" text,\n \"country_endonym\" text,\n \"capital_endonym\" text,\n \"official_or_native_language_s_alphabet_script\" text\n);\n\nQuestion: What is the country (exonym) where the official or native language(s) (alphabet/script) is Icelandic?" }, { "role": "assistant", "content": "SELECT \"country_exonym\" FROM \"table1_1008653_9\" WHERE \"official_or_native_language_s_alphabet_script\"='Icelandic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1008653_9\" (\n \"country_exonym\" text,\n \"capital_exonym\" text,\n \"country_endonym\" text,\n \"capital_endonym\" text,\n \"official_or_native_language_s_alphabet_script\" text\n);\n\nQuestion: In which country (endonym) is Irish English the official or native language(s) (alphabet/script)?" }, { "role": "assistant", "content": "SELECT \"country_endonym\" FROM \"table1_1008653_9\" WHERE \"official_or_native_language_s_alphabet_script\"='Irish English';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1008653_9\" (\n \"country_exonym\" text,\n \"capital_exonym\" text,\n \"country_endonym\" text,\n \"capital_endonym\" text,\n \"official_or_native_language_s_alphabet_script\" text\n);\n\nQuestion: Which country (exonym) is the country (endonym) isle of man ellan vannin?" }, { "role": "assistant", "content": "SELECT \"country_exonym\" FROM \"table1_1008653_9\" WHERE \"country_endonym\"='Isle of Man Ellan Vannin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_television_ratings\" (\n \"season\" text,\n \"network\" text,\n \"season_premiere\" text,\n \"season_finale\" text,\n \"tv_season\" text,\n \"ranking\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: The season premiere aired on September 11, 2000 aired on how many networks? " }, { "role": "assistant", "content": "SELECT COUNT(\"network\") FROM \"u_s_television_ratings\" WHERE \"season_premiere\"='September 11, 2000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_television_ratings\" (\n \"season\" text,\n \"network\" text,\n \"season_premiere\" text,\n \"season_finale\" text,\n \"tv_season\" text,\n \"ranking\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: What was the ranking of the season finale aired on May 8, 2006? " }, { "role": "assistant", "content": "SELECT \"ranking\" FROM \"u_s_television_ratings\" WHERE \"season_finale\"='May 8, 2006';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1011906_1\" (\n \"regional_county_municipality_rcm\" text,\n \"population_canada_2011_census\" real,\n \"land_area\" text,\n \"density_pop_per_km2\" text,\n \"seat_of_rcm\" text\n);\n\nQuestion: what is the minimum\u00a0population canada 2011 census\u00a0with\u00a0seat of rcm\u00a0being cowansville" }, { "role": "assistant", "content": "SELECT MIN(\"population_canada_2011_census\") FROM \"table1_1011906_1\" WHERE \"seat_of_rcm\"='Cowansville';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1011906_1\" (\n \"regional_county_municipality_rcm\" text,\n \"population_canada_2011_census\" real,\n \"land_area\" text,\n \"density_pop_per_km2\" text,\n \"seat_of_rcm\" text\n);\n\nQuestion: what's the\u00a0land area\u00a0with\u00a0seat of rcm\u00a0being granby" }, { "role": "assistant", "content": "SELECT \"land_area\" FROM \"table1_1011906_1\" WHERE \"seat_of_rcm\"='Granby';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"habitual_irish_speakers\" (\n \"county\" text,\n \"english_name\" text,\n \"irish_name\" text,\n \"population\" real,\n \"irish_speakers\" text\n);\n\nQuestion: What is the population for County Mayo with the English Name Carrowteige?" }, { "role": "assistant", "content": "SELECT \"population\" FROM \"habitual_irish_speakers\" WHERE \"county\"='County Mayo' AND \"english_name\"='Carrowteige';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"habitual_irish_speakers\" (\n \"county\" text,\n \"english_name\" text,\n \"irish_name\" text,\n \"population\" real,\n \"irish_speakers\" text\n);\n\nQuestion: What is the Irish name listed with 62% Irish speakers?" }, { "role": "assistant", "content": "SELECT \"irish_name\" FROM \"habitual_irish_speakers\" WHERE \"irish_speakers\"='62%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"habitual_irish_speakers\" (\n \"county\" text,\n \"english_name\" text,\n \"irish_name\" text,\n \"population\" real,\n \"irish_speakers\" text\n);\n\nQuestion: What is the population for the Irish Name Leitir meall\u00e1in?" }, { "role": "assistant", "content": "SELECT \"population\" FROM \"habitual_irish_speakers\" WHERE \"irish_name\"='Leitir Meall\u00e1in';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"habitual_irish_speakers\" (\n \"county\" text,\n \"english_name\" text,\n \"irish_name\" text,\n \"population\" real,\n \"irish_speakers\" text\n);\n\nQuestion: What is the county for the Irish name Carna?" }, { "role": "assistant", "content": "SELECT \"county\" FROM \"habitual_irish_speakers\" WHERE \"irish_name\"='Carna';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"habitual_irish_speakers\" (\n \"county\" text,\n \"english_name\" text,\n \"irish_name\" text,\n \"population\" real,\n \"irish_speakers\" text\n);\n\nQuestion: How many County Kerry have 53% Irish speakers?" }, { "role": "assistant", "content": "SELECT COUNT(\"english_name\") FROM \"habitual_irish_speakers\" WHERE \"irish_speakers\"='53%' AND \"county\"='County Kerry';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"habitual_irish_speakers\" (\n \"county\" text,\n \"english_name\" text,\n \"irish_name\" text,\n \"population\" real,\n \"irish_speakers\" text\n);\n\nQuestion: What is the population for the English name Spiddal?" }, { "role": "assistant", "content": "SELECT \"population\" FROM \"habitual_irish_speakers\" WHERE \"english_name\"='Spiddal';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"us_states_by_asian_americans_population\" (\n \"state_territory\" text,\n \"asian_american_population_2010_census\" real,\n \"chinese\" real,\n \"filipino\" real,\n \"indian\" real,\n \"japanese\" real,\n \"korean\" real,\n \"vietnamese\" real,\n \"other_asian\" real\n);\n\nQuestion: What is the the Chinese population for the state that has a Filipino population of 1474707?" }, { "role": "assistant", "content": "SELECT MIN(\"chinese\") FROM \"us_states_by_asian_americans_population\" WHERE \"filipino\"=1474707;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"us_states_by_asian_americans_population\" (\n \"state_territory\" text,\n \"asian_american_population_2010_census\" real,\n \"chinese\" real,\n \"filipino\" real,\n \"indian\" real,\n \"japanese\" real,\n \"korean\" real,\n \"vietnamese\" real,\n \"other_asian\" real\n);\n\nQuestion: How many States have an Indian population of 30947?" }, { "role": "assistant", "content": "SELECT COUNT(\"filipino\") FROM \"us_states_by_asian_americans_population\" WHERE \"indian\"=30947;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"us_states_by_asian_americans_population\" (\n \"state_territory\" text,\n \"asian_american_population_2010_census\" real,\n \"chinese\" real,\n \"filipino\" real,\n \"indian\" real,\n \"japanese\" real,\n \"korean\" real,\n \"vietnamese\" real,\n \"other_asian\" real\n);\n\nQuestion: What is the highest Indian population?" }, { "role": "assistant", "content": "SELECT MAX(\"indian\") FROM \"us_states_by_asian_americans_population\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10121127_1\" (\n \"un_operation_name\" text,\n \"un_operation_title\" text,\n \"location\" text,\n \"dates_of_australian_involvement\" text,\n \"number_of_australians_involved\" text,\n \"australian_role\" text\n);\n\nQuestion: What is Australia's role in the UN operation Unama?" }, { "role": "assistant", "content": "SELECT \"australian_role\" FROM \"table1_10121127_1\" WHERE \"un_operation_name\"='UNAMA';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10121127_1\" (\n \"un_operation_name\" text,\n \"un_operation_title\" text,\n \"location\" text,\n \"dates_of_australian_involvement\" text,\n \"number_of_australians_involved\" text,\n \"australian_role\" text\n);\n\nQuestion: What is the UN operation title with the UN operation name, Uncok?" }, { "role": "assistant", "content": "SELECT \"un_operation_title\" FROM \"table1_10121127_1\" WHERE \"un_operation_name\"='UNCOK';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10121127_1\" (\n \"un_operation_name\" text,\n \"un_operation_title\" text,\n \"location\" text,\n \"dates_of_australian_involvement\" text,\n \"number_of_australians_involved\" text,\n \"australian_role\" text\n);\n\nQuestion: How many Australians were in the UN commission on Korea?" }, { "role": "assistant", "content": "SELECT COUNT(\"number_of_australians_involved\") FROM \"table1_10121127_1\" WHERE \"un_operation_title\"='UN Commission on Korea';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10121127_1\" (\n \"un_operation_name\" text,\n \"un_operation_title\" text,\n \"location\" text,\n \"dates_of_australian_involvement\" text,\n \"number_of_australians_involved\" text,\n \"australian_role\" text\n);\n\nQuestion: When was it where 65 Australians were involved in the UN?" }, { "role": "assistant", "content": "SELECT \"dates_of_australian_involvement\" FROM \"table1_10121127_1\" WHERE \"number_of_australians_involved\"='65';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_broadcast_and_ratings\" (\n \"season\" real,\n \"timeslot_et\" text,\n \"season_premiere\" text,\n \"season_finale\" text,\n \"tv_season\" text,\n \"rank\" text,\n \"viewers_millions\" text\n);\n\nQuestion: What year is the season with the 10.73 million views?" }, { "role": "assistant", "content": "SELECT \"tv_season\" FROM \"u_s_broadcast_and_ratings\" WHERE \"viewers_millions\"='10.73';" } ]
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
4