text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "emmy_awards" ( "year" real, "category" text, "recipients_and_nominees" text, "role_episode" text, "result" text ); Question: Which Category were Libby Goldstein and Junie Lowry-Johnson recipien...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_record" ( "race" text, "dist_f" real, "course" text, "runners" real, "placing" real, "margin" real, "jockey" text, "trainer" text ); Question: what is the highest runners when the jo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_record" ( "race" text, "dist_f" real, "course" text, "runners" real, "placing" real, "margin" real, "jockey" text, "trainer" text ); Question: what is the race when the jockey is fra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_9_4_titles_5_runner_ups" ( "outcome" text, "year" text, "tournament" text, "surface" text, "partnering" text, "opponents_in_the_final" text, "score" text ); Question: Who is the Par...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: what is the competition when the result is won and the date is september 13, 1996?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: what is the date when the competition is 1996 tiger cup and the result is drew? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: what is the score when the competition is 1995 southeast asian games? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: what is the result when the venue is singapore on september 8, 1996? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: what is the competition when the result is won and the score is 8-0? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: Waht laps have points smaller than 1, and a team of dale coyne racing, and the gr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: What is the total number of laps for a team of team player's, and has a grid of 9...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: What is the lowest points for a time/retired of +30.7 secs, and laps smaller than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_qualifying_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What was the first leg score of the matchup with a 2nd leg of 80-70? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_qualifying_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: Who was the team 2 in the game with a team 1 of Liege Basket? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_qualifying_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What was the 1st leg score in the matchup with a 2nd leg of 72-89? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_qualifying_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What was the aggregate score of the matchup with a leg 2 of 72-64? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_qualifying_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What was the 2nd leg score in the matchup with a team 2 of KK Borac? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "4_8_4" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "serial_numbers" text, "year_made" text, "quantity_made" text, "quantity_preserved" text, "ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "4_8_4" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "serial_numbers" text, "year_made" text, "quantity_made" text, "quantity_preserved" text, "ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "4_8_4" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "serial_numbers" text, "year_made" text, "quantity_made" text, "quantity_preserved" text, "ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "4_8_4" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "serial_numbers" text, "year_made" text, "quantity_made" text, "quantity_preserved" text, "ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" text, "date" text, "matches" real, "clubs" text, "new_entries_this_round" text, "prize_money" text ); Question: What is the lowest number of matches that has a Clubs of 46...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" text, "date" text, "matches" real, "clubs" text, "new_entries_this_round" text, "prize_money" text ); Question: What is the highest number of matches that has a round of T...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" text, "date" text, "matches" real, "clubs" text, "new_entries_this_round" text, "prize_money" text ); Question: What is the prize money for the final round? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" text, "date" text, "matches" real, "clubs" text, "new_entries_this_round" text, "prize_money" text ); Question: What is the date for the row with a new entries this round ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_ladder" ( "hampden_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: Which Against has Wins of 11, and Losses smaller than 7? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_ladder" ( "hampden_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: Which Draws have Losses larger than 8, and a Hampden FL of terang-mortlake...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_ladder" ( "hampden_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: Which Byes have Losses smaller than 4? <|assistant|> SELECT AVG("byes") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_ladder" ( "wimmera_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What's the total draws when the losses are less than 10, less than 2 byes,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_ladder" ( "wimmera_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What's the total draws for Ararat when the byes are less than 2? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_ladder" ( "wimmera_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What's the total losses when there are 8 wins and less than 2 byes? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_ladder" ( "wimmera_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What's the least losses for Horsham Saints with more than 13 wins and less...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_ladder" ( "wimmera_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What are the draws when the losses are less than 1? <|assistant|> SELECT S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_ladder" ( "wimmera_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What are the amount of wins when the draws are less than 0 and the against...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "punjab" ( "serial_no" real, "district" text, "headquartered_city" text, "city_population_2009" real, "city_area_km_2" real ); Question: What was the total city area for vehari city with a seria...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "punjab" ( "serial_no" real, "district" text, "headquartered_city" text, "city_population_2009" real, "city_area_km_2" real ); Question: What was the lowest city population for the district of r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "punjab" ( "serial_no" real, "district" text, "headquartered_city" text, "city_population_2009" real, "city_area_km_2" real ); Question: What is the sum of the serial numbers for narowal city? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "punjab" ( "serial_no" real, "district" text, "headquartered_city" text, "city_population_2009" real, "city_area_km_2" real ); Question: What is the sum of the area for the bahawalnagar district...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "punjab" ( "serial_no" real, "district" text, "headquartered_city" text, "city_population_2009" real, "city_area_km_2" real ); Question: What district was the city with an area smaller than 12 s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text ); Question: After pick number 158, what is the next round a USC player was picked? <|assistant|> SELECT MI...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text ); Question: Jim Obradovich, picked after round 2, but before pick 183, plays what position? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_5" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: What time has q as the notes, and Australia as the country? <|assistant|> SELECT "time" FROM "heat_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_5" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: What notes have a rank greater than 2, with mexico as the country? <|assistant|> SELECT "notes" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the sum of bronzes for teams with more than 0 silver and a total under ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average number of golds for teams with 1 bronze, less than 3 silver...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "handicap_results_top_10" ( "position" real, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" real, "skipper" text, "corrected_time_d_hh_mm_ss" text )...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finland" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); Question: What Soap Opera with the character Teemu Luotola? <|assistant|> SELECT "soap_opera" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pure_alcohol_consumption_among_adults_ag" ( "country" text, "recorded" real, "unrecorded" real, "total" real, "beer" real, "wine" real, "spirits" real, "other" real ); Question: What beer...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fa_cup" ( "opposing_team" text, "against" real, "date" text, "venue" text, "round" text ); Question: Which round has an Opposing Team of manchester united? <|assistant|> SELECT "round" FROM "fa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fa_cup" ( "opposing_team" text, "against" real, "date" text, "venue" text, "round" text ); Question: Which Date has an Against larger than 0? <|assistant|> SELECT "date" FROM "fa_cup" WHERE "ag...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fa_cup" ( "opposing_team" text, "against" real, "date" text, "venue" text, "round" text ); Question: Which Against has a Round of fourth round? <|assistant|> SELECT MIN("against") FROM "fa_cup"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fa_cup" ( "opposing_team" text, "against" real, "date" text, "venue" text, "round" text ); Question: What was the venue on 17/02/2008? <|assistant|> SELECT "venue" FROM "fa_cup" WHERE "date"='1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "iron_coaches" ( "class_to_1928" text, "class_from_1928" text, "seats" text, "quantity" real, "year_s_of_manufacture" text, "remarks" text ); Question: What is the average quantity for coaches...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "iron_coaches" ( "class_to_1928" text, "class_from_1928" text, "seats" text, "quantity" real, "year_s_of_manufacture" text, "remarks" text ); Question: Which class to 1928 value had years of m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "iron_coaches" ( "class_to_1928" text, "class_from_1928" text, "seats" text, "quantity" real, "year_s_of_manufacture" text, "remarks" text ); Question: What is the smallest quantity having a C...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "iron_coaches" ( "class_to_1928" text, "class_from_1928" text, "seats" text, "quantity" real, "year_s_of_manufacture" text, "remarks" text ); Question: Which class from 1928 had a class to 192...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "iron_coaches" ( "class_to_1928" text, "class_from_1928" text, "seats" text, "quantity" real, "year_s_of_manufacture" text, "remarks" text ); Question: What were the remarks for the coach havi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualified_competitors" ( "position" real, "gymnast" text, "a_score" real, "b_score" real, "total" real ); Question: Which B Score has a Total larger than 15.325, and an A Score smaller than 6.4...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualified_competitors" ( "position" real, "gymnast" text, "a_score" real, "b_score" real, "total" real ); Question: Which Total has an A Score of 6.5, and a Position larger than 5? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What is the date of week 11? <|assistant|> SELECT "date" FROM "schedule" WHERE "week"=11;<|e...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What is the latest week when the chicago bears are the opponent? <|assistant|> SELECT MAX("w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_of_heat_3" ( "draw" real, "artist" text, "song" text, "percentage" text, "place" real ); Question: What song placed higher than#4? <|assistant|> SELECT "song" FROM "results_of_heat_3" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_of_heat_3" ( "draw" real, "artist" text, "song" text, "percentage" text, "place" real ); Question: Who is the artist that drew higher than 4? <|assistant|> SELECT "artist" FROM "results...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers" ( "driver" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "points" real ); Question: What's the total starts with more points than 1 and the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers" ( "driver" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "points" real ); Question: What's the smallest number of podiums having more than 6...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers" ( "driver" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "points" real ); Question: What's the number of stage wins for Federico Villagra ha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers" ( "driver" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "points" real ); Question: What's the finishes for Lambros Athanassoulas having 0 p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2003" real ); Question: What is the average number of elect...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goal_scorers" ( "name" text, "pre_season" real, "a_league" real, "finals" real, "total" real ); Question: Which Finals have a Pre-Season larger than 0? <|assistant|> SELECT MIN("finals") FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goal_scorers" ( "name" text, "pre_season" real, "a_league" real, "finals" real, "total" real ); Question: How much A-League has a Pre-Season larger than 0? <|assistant|> SELECT COUNT("a_league"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serialized_titles" ( "title" text, "author" text, "first_issue" text, "last_issue" text, "completed" text ); Question: What is the last issue entry for Aron's Absurd Armada? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serialized_titles" ( "title" text, "author" text, "first_issue" text, "last_issue" text, "completed" text ); Question: What is the title that was first published in August 2010? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serialized_titles" ( "title" text, "author" text, "first_issue" text, "last_issue" text, "completed" text ); Question: What is the completed entry for Aron's Absurd Armada? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serialized_titles" ( "title" text, "author" text, "first_issue" text, "last_issue" text, "completed" text ); Question: What is the title that was first published in February 2009 and is still o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serialized_titles" ( "title" text, "author" text, "first_issue" text, "last_issue" text, "completed" text ); Question: What is the last issue entry of Time and Again? <|assistant|> SELECT "last...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: What the rank of the Virgin Islands athlete with react under 0.168? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: What is the lowest rank for Chris Brown with react greater than 0.244? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: What is the highest rank of an athlete from Belgium with react greater than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "rank" real, "largest_u_s_city" text, "total" real, "partners" real, "other" real ); Question: What is the average number of partners for the firm with a rank under 71, other over 7...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "rank" real, "largest_u_s_city" text, "total" real, "partners" real, "other" real ); Question: What is the smallest rank for the city having partners of 342, other under 147, and la...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "rank" real, "largest_u_s_city" text, "total" real, "partners" real, "other" real ); Question: What is the number of partners for the city ranked under 294, total over 264, largest ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "popularity_of_terrestrial_tv_stations" ( "tv_station_operator" text, "2005" real, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011_1_h" real ); Question: What's the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "popularity_of_terrestrial_tv_stations" ( "tv_station_operator" text, "2005" real, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011_1_h" real ); Question: What's the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "popularity_of_terrestrial_tv_stations" ( "tv_station_operator" text, "2005" real, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011_1_h" real ); Question: What's the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "popularity_of_terrestrial_tv_stations" ( "tv_station_operator" text, "2005" real, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011_1_h" real ); Question: What is the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "popularity_of_terrestrial_tv_stations" ( "tv_station_operator" text, "2005" real, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011_1_h" real ); Question: What's the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_13" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponent_in_final" text, "score" text ); Question: What date had Alexander Krasnorutskiy as a partner with a score ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schools" ( "school" text, "city" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text ); Question: Which IHSAA Class has a Mascot of eagles, and a City of evansville? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schools" ( "school" text, "city" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text ); Question: Which City has a School of indianapolis brebeuf? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schools" ( "school" text, "city" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text ); Question: How much Enrollment has a School of indianapolis tindley? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schools" ( "school" text, "city" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text ); Question: Which County has an IHSAA Class of aaaa, and a Mascot of cardinals? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" real, "league_cup_goals" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" real, "league_cup_goals" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" real, "league_cup_goals" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championships_total_medals" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" text ); Question: what is the highest silver when the total is 4 and bronze is less than 1? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championships_total_medals" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" text ); Question: what is the gold when the bronze is 1, total is 6 and silver is less than 3...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "delegates" ( "province_community" text, "contestant" text, "height" real, "hometown" text, "geographical_regions" text ); Question: What is province of community with height larger than 1.8 and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "delegates" ( "province_community" text, "contestant" text, "height" real, "hometown" text, "geographical_regions" text ); Question: What contestant is from santo domingo este and has height sma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "delegates" ( "province_community" text, "contestant" text, "height" real, "hometown" text, "geographical_regions" text ); Question: What is total number of height of province, with community of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "county" text, "year_joined" text, "previous_conference" text, "year_left" text ); Question: what is the previous conference...