text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mining_disasters_in_the_rhondda_valley_1" ( "colliery" text, "location" text, "date" text, "year" real, "death_toll" real, "cause" text ); Question: Which Colliery has a Death toll of 7? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south" ( "tie_no" text, "home_team" text, "score_1" text, "away_team" text, "attendance" text ); Question: What is the Score 1 of Tie no 6? <|assistant|> SELECT "score_1" FROM "south" WHERE "ti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south" ( "tie_no" text, "home_team" text, "score_1" text, "away_team" text, "attendance" text ); Question: What is the Attendance of Tie no 3? <|assistant|> SELECT "attendance" FROM "south" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south" ( "tie_no" text, "home_team" text, "score_1" text, "away_team" text, "attendance" text ); Question: What is the Attendance at the Hereford United Away game? <|assistant|> SELECT "attenda...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south" ( "tie_no" text, "home_team" text, "score_1" text, "away_team" text, "attendance" text ); Question: What is the Home team of Tie no 11? <|assistant|> SELECT "home_team" FROM "south" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south" ( "tie_no" text, "home_team" text, "score_1" text, "away_team" text, "attendance" text ); Question: What is the Tie no of Hereford United's Away game? <|assistant|> SELECT "tie_no" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south" ( "tie_no" text, "home_team" text, "score_1" text, "away_team" text, "attendance" text ); Question: What is the Score 1 of the game with Attendance of 2,571? <|assistant|> SELECT "score_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" text, "new_entries_this_round" text ); Question: What is the sum of the clubs remaining with ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" text, "new_entries_this_round" text ); Question: What are the clubs involved with 16 clubs re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_s_taijiquan_taijijian_combined" ( "rank" real, "athlete" text, "taijijian" real, "taijiquan" real, "total" real ); Question: What is the total rank of the athlete with a total larger than 1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_s_taijiquan_taijijian_combined" ( "rank" real, "athlete" text, "taijijian" real, "taijiquan" real, "total" real ); Question: What is the lowest rank of the athlete with a taijiquan greater ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_s_taijiquan_taijijian_combined" ( "rank" real, "athlete" text, "taijijian" real, "taijiquan" real, "total" real ); Question: What is the highest taijijian with a 9.87 taijiquan and a total ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text ); Question: Who is the cyber girl in week 3 when Demi Jessica was the cyber girl in week 1? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text ); Question: What is the name of the cyber girl in week 4 when Lexi Lombardelli was the cyber girl in week 2? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text ); Question: When Alinna D Penta was the cyber girl in week 3, who was the cyber girl in week 1? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text ); Question: Felicia Taylor was cyber girl in week 3, so who was the cyber girl in week 5? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text ); Question: Who is the cyber girl in week 3 when Ashley Lowe was the cyber girl in week 2? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text ); Question: When Diane Deluna was the cyber girl in week 4 who was the cyber girl in week 2? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fed_cup_results_10_8" ( "year" real, "edition" text, "round" text, "date" text, "location" text, "surface" text, "against" text, "opponent_s" text, "score" text, "result" text ); Ques...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fed_cup_results_10_8" ( "year" real, "edition" text, "round" text, "date" text, "location" text, "surface" text, "against" text, "opponent_s" text, "score" text, "result" text ); Ques...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fed_cup_results_10_8" ( "year" real, "edition" text, "round" text, "date" text, "location" text, "surface" text, "against" text, "opponent_s" text, "score" text, "result" text ); Ques...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fed_cup_results_10_8" ( "year" real, "edition" text, "round" text, "date" text, "location" text, "surface" text, "against" text, "opponent_s" text, "score" text, "result" text ); Ques...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What home team has 27 as the tie no.? <|assistant|> SELECT "home_team" FROM "thir...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What date has 1 as the tie no.? <|assistant|> SELECT "date" FROM "third_round_pro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What score has west ham united as the away team? <|assistant|> SELECT "score" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What home team has Southampton as the away team? <|assistant|> SELECT "home_team"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_world_olympic_qualifying_tournament" ( "player" text, "height" real, "position" text, "year_born_age" text, "current_club" text ); Question: What current club has a Height of 1.96? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_world_olympic_qualifying_tournament" ( "player" text, "height" real, "position" text, "year_born_age" text, "current_club" text ); Question: What is the Age of f/c Posiiton? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: Who is the player with a score of 70-68-70=208? <|assistant|> SELECT "player" FROM "third_ro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What place is the player with score of 70-68-70=208 from? <|assistant|> SELECT "place" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ministry_of_higher_education" ( "name_in_english" text, "name_in_malay" text, "acronym" text, "foundation" text, "location" text ); Question: What is the name for Malay with a foundation in Ipt...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ministry_of_higher_education" ( "name_in_english" text, "name_in_malay" text, "acronym" text, "foundation" text, "location" text ); Question: What is the acronym for the name Malay of Kolej Kom...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ministry_of_higher_education" ( "name_in_english" text, "name_in_malay" text, "acronym" text, "foundation" text, "location" text ); Question: What is the acronym for the English name Northern m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ministry_of_higher_education" ( "name_in_english" text, "name_in_malay" text, "acronym" text, "foundation" text, "location" text ); Question: What is the location of the Kkspe Foundation? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What is Country, when Place is "T3", and when Score is "67-70=137"? <|assistant|> SELECT "c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What is Score, when Player is "David Toms"? <|assistant|> SELECT "score" FROM "second_round...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What is Score, when Player is "Tom Lehman"? <|assistant|> SELECT "score" FROM "second_round...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "title" text, "label" text, "format" text, "catalog_nr" text ); Question: What is the Title of the Pye Label mono LP release? <|assistant|> SELECT "title" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "title" text, "label" text, "format" text, "catalog_nr" text ); Question: What is the Catalog-Nr of the Epic Label Stereo LP named For Little Ones? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rank_by_time_in_office" ( "rank" real, "prime_minister" text, "party" text, "assumed_office" text, "left_office" text, "total_time_in_office" text ); Question: What is the assumed office date...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rank_by_time_in_office" ( "rank" real, "prime_minister" text, "party" text, "assumed_office" text, "left_office" text, "total_time_in_office" text ); Question: What is the total time in offic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rank_by_time_in_office" ( "rank" real, "prime_minister" text, "party" text, "assumed_office" text, "left_office" text, "total_time_in_office" text ); Question: What is the party of the prime ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "westmorland_county_new_brunswick" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text ); Question: What is the total area with the census ranking o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "westmorland_county_new_brunswick" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text ); Question: What is the total area with the Census Ranking o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "westmorland_county_new_brunswick" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text ); Question: What census ranking has an area greater than 578...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" text, "player" text, "position" text, "nationality" text, "college" text ); Question: What is the position for Jani Lajunen? <|assistant|> SELECT "position...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" text, "player" text, "position" text, "nationality" text, "college" text ); Question: What is the round number when nationality was United States, and play...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" text, "player" text, "position" text, "nationality" text, "college" text ); Question: What player has a round larger than 2, and position of (d)? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" text, "player" text, "position" text, "nationality" text, "college" text ); Question: What is the nationality for the position of (d), and college was SC B...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "athlete" text, "country" text, "run_1" real, "run_2" real, "run_3" real ); Question: Who is the athlete with a run 1 larger than 54.95 and a 56.19 run 2? <|assistant|> SELECT "athlete" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "athlete" text, "country" text, "run_1" real, "run_2" real, "run_3" real ); Question: What is the highest run 2 of athlete eric neilson, who has a run 3 larger than 55.97? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "athlete" text, "country" text, "run_1" real, "run_2" real, "run_3" real ); Question: What is the highest run 3 of the athlete with a 55.44 run 2? <|assistant|> SELECT MAX("run_3") FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "athlete" text, "country" text, "run_1" real, "run_2" real, "run_3" real ); Question: Who is the athlete with a run 1 less than 54.13 and a 55.21 run 3? <|assistant|> SELECT "athlete" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "athlete" text, "country" text, "run_1" real, "run_2" real, "run_3" real ); Question: What is the sum of the run 1 of athlete matthias guggenberger, who has a run 2 greater than 55.24? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "parliaments_of_king_edward_iv" ( "summoned" text, "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text ); Question: What is the dissolved date of the parli...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "parliaments_of_king_edward_iv" ( "summoned" text, "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text ); Question: What is the dissolved date of the parli...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "parliaments_of_king_edward_iv" ( "summoned" text, "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text ); Question: What is the assembled date of the parli...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "parliaments_of_king_edward_iv" ( "summoned" text, "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text ); Question: What is the dissolved date of the parli...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "parliaments_of_king_edward_iv" ( "summoned" text, "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text ); Question: Who is the 2nd member elected in 1461? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "parliaments_of_king_edward_iv" ( "summoned" text, "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text ); Question: What is the dissolved date of the parli...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "parliaments_of_king_edward_i" ( "summoned" text, "elected" text, "assembled" text, "1st_member" text, "2nd_member" text ); Question: What is 2nd Member, when Assembled is "30 March 1298"? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "parliaments_of_king_edward_i" ( "summoned" text, "elected" text, "assembled" text, "1st_member" text, "2nd_member" text ); Question: What is Assembled, when 2nd Member is "Unknown"? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "parliaments_of_king_edward_i" ( "summoned" text, "elected" text, "assembled" text, "1st_member" text, "2nd_member" text ); Question: What is 1st Member, when Summoned is "14 July 1302"? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "parliaments_of_king_edward_i" ( "summoned" text, "elected" text, "assembled" text, "1st_member" text, "2nd_member" text ); Question: What is Assembled, when Summoned is "6 October 1297"? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "parliaments_of_king_edward_i" ( "summoned" text, "elected" text, "assembled" text, "1st_member" text, "2nd_member" text ); Question: What is 1st Member, when 2nd Member is "William Benne", and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "parliaments_of_king_edward_i" ( "summoned" text, "elected" text, "assembled" text, "1st_member" text, "2nd_member" text ); Question: What is Summoned, when Elected is "March 1298"? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekdays" ( "english_name" text, "thai_name" text, "transcription" text, "color" text, "sanskrit_word" text, "planet" text ); Question: Which Planet has a Sanskrit word of budha? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekdays" ( "english_name" text, "thai_name" text, "transcription" text, "color" text, "sanskrit_word" text, "planet" text ); Question: WHich Thai name has a Transcription of wan phruehatsabo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekdays" ( "english_name" text, "thai_name" text, "transcription" text, "color" text, "sanskrit_word" text, "planet" text ); Question: Show the Thai name of wan phruehatsabodi? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekdays" ( "english_name" text, "thai_name" text, "transcription" text, "color" text, "sanskrit_word" text, "planet" text ); Question: Show the Color which has a Thai name of วันพฤหัสบดี? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekdays" ( "english_name" text, "thai_name" text, "transcription" text, "color" text, "sanskrit_word" text, "planet" text ); Question: Which Color has a Transcription of wan suk? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekdays" ( "english_name" text, "thai_name" text, "transcription" text, "color" text, "sanskrit_word" text, "planet" text ); Question: Which English name has a Color of green? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What is Gil Morgan's Place? <|assistant|> SELECT "place" FROM "third_round" WHERE "player"='...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What is the Place of the Player with a To par of –5? <|assistant|> SELECT "place" FROM "thir...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: Which Player has a Money ($) of 137, and a Score of 73-70-73-74=290? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: Which To Par has a Money ($) of 350, and a Player of henry picard? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "original_london_production" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); Question: What year had Best Actor in a Musical as a category? <|assistant|> SELECT SU...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_composition_of_the_executive_board" ( "president" text, "treasurer" text, "secretary" text, "social_ao" text, "academic_ao" text, "internal_co" text, "external_co" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_composition_of_the_executive_board" ( "president" text, "treasurer" text, "secretary" text, "social_ao" text, "academic_ao" text, "internal_co" text, "external_co" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_composition_of_the_executive_board" ( "president" text, "treasurer" text, "secretary" text, "social_ao" text, "academic_ao" text, "internal_co" text, "external_co" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_composition_of_the_executive_board" ( "president" text, "treasurer" text, "secretary" text, "social_ao" text, "academic_ao" text, "internal_co" text, "external_co" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_composition_of_the_executive_board" ( "president" text, "treasurer" text, "secretary" text, "social_ao" text, "academic_ao" text, "internal_co" text, "external_co" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_composition_of_the_executive_board" ( "president" text, "treasurer" text, "secretary" text, "social_ao" text, "academic_ao" text, "internal_co" text, "external_co" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: Which country has a to par of +2 for Bernhard Langer? <|assistant|> SELECT "country" FROM "f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: Which country has a score of 72 by Andrew Brooks? <|assistant|> SELECT "country" FROM "first...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What is Anders Forsbrand's score with a to par of +1? <|assistant|> SELECT "score" FROM "fir...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "rank" text, "height" text, "name" text, "road_number" text, "type" text ); Question: What is the rad number for the dead end in rank 22? <|assistant|> SELECT "road_number" FROM "se...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "rank" text, "height" text, "name" text, "road_number" text, "type" text ); Question: What is the name of the dead end type ranked 22? <|assistant|> SELECT "name" FROM "see_also" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "rank" text, "height" text, "name" text, "road_number" text, "type" text ); Question: What is the type ranked 13? <|assistant|> SELECT "type" FROM "see_also" WHERE "rank"='13';<|end...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "position" real, "number" real, "name" text, "team" text, "points" real ); Question: Who had 1344 points? <|assistant|> SELECT "name" FROM "standings" WHERE "points"=1344;<|endofte...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_ladder" ( "golden_rivers" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What was the total number of wins that had an against greater than 1136...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_ladder" ( "golden_rivers" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What's the average number of wins for those with less than 2 byes? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_ladder" ( "golden_rivers" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What's the greatest losses for those with more than 13 wins? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_ladder" ( "golden_rivers" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What was the greatest number of wins for a team that had 7 losses and m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_ladder" ( "golden_rivers" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What's the number of byes for someone who had 7 wins and an against num...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_ladder" ( "golden_rivers" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What's the total wins of a team with more than 2 byes? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: Who had a finish of t16? <|assistant|> SELECT "player" FROM "made_the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What country is jack nicklaus from? <|assistant|> SELECT "country" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: Who has a total of 272? <|assistant|> SELECT "player" FROM "made_the_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What country won in 1977? <|assistant|> SELECT "country" FROM "made_t...