text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_buildings" ( "name" text, "location" text, "height_m" real, "stories" real, "year_of_completion" real ); Question: What is the largest number of stories in Recife completed later than 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "key_terms" ( "english" text, "pali" text, "sanskrit" text, "chinese" text, "tibetan" text ); Question: Which Sanskrit has an English of mindfulness of breathing? <|assistant|> SELECT "sanskrit"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "key_terms" ( "english" text, "pali" text, "sanskrit" text, "chinese" text, "tibetan" text ); Question: Which Sanskrit has a Chinese of —, and an English of cultivation of settling? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "key_terms" ( "english" text, "pali" text, "sanskrit" text, "chinese" text, "tibetan" text ); Question: Which Pali has an English of mindfulness of breathing? <|assistant|> SELECT "pali" FROM "k...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "key_terms" ( "english" text, "pali" text, "sanskrit" text, "chinese" text, "tibetan" text ); Question: Which Pali has an English of meditative concentration? <|assistant|> SELECT "pali" FROM "k...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "key_terms" ( "english" text, "pali" text, "sanskrit" text, "chinese" text, "tibetan" text ); Question: Which Chinese has a Pali of atappa? <|assistant|> SELECT "chinese" FROM "key_terms" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "key_terms" ( "english" text, "pali" text, "sanskrit" text, "chinese" text, "tibetan" text ); Question: Which English has a Sanskrit of samādhi? <|assistant|> SELECT "english" FROM "key_terms" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "position" text, "nationality" text, "school_club_team" text ); Question: Who is the player in guard position from Stephen F. Austin i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "position" text, "nationality" text, "school_club_team" text ); Question: Which position has a pick less than 41 from Ohio State? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2002" text, "2004" text, "2005" text, "2006" text ); Question: What shows for 2006 when 2002 is Grand Slam Tournaments? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2002" text, "2004" text, "2005" text, "2006" text ); Question: What shows for 2002 when 2006 is Grand Slam Tournaments? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2002" text, "2004" text, "2005" text, "2006" text ); Question: What shows for 2005 when 2002 shows 0–1? <|assistant|> SELECT "2005" FROM "dou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2002" text, "2004" text, "2005" text, "2006" text ); Question: What shows for 2006 when 2002 is 0–1? <|assistant|> SELECT "2006" FROM "double...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2002" text, "2004" text, "2005" text, "2006" text ); Question: What shows for 2002 when the 2004 is A, and the 2005 is 1r? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2002" text, "2004" text, "2005" text, "2006" text ); Question: What shows for 2004 when 2005 is A, 2006 is A, tournament is US Open? <|assist...
<|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" real ); Question: Who was the opponent on December 2, 1962? <|assistant|> SELECT "opponent" FROM "schedule" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "communities" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text ); Question: What is the Population of the Town with a Census Ranking of 1,379 of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "communities" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text ); Question: What is the Official Name of the Community with an Area km 2 of 16.13...
<|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 To Par is "–2", and when Player is "Tsuneyuki Nakajima"? <|assistant|...
<|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 Score is "72-65=137"? <|assistant|> SELECT "country" FROM "second_rou...
<|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 Player is "Jim Thorpe"? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real ); Question: How m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text ); Question: Who held the title of Ruler? <|assistant|> SELECT "name" FROM "vassal_states" WHERE "title...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text ); Question: What type of state did the ruler have a title? <|assistant|> SELECT "type" FROM "vassal_st...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text ); Question: In what state did Jing have the title of Marquis? <|assistant|> SELECT "state" FROM "vassa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text ); Question: What was Gongbo's title? <|assistant|> SELECT "title" FROM "vassal_states" WHERE "name"='g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text ); Question: What is the name of Yi's state? <|assistant|> SELECT "state" FROM "vassal_states" WHERE "n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_with_other_buses" ( "name" text, "raw_bandwidth_mbit_s" text, "max_cable_length_m" text, "power_provided" text, "devices_per_channel" text ); Question: What is the Devices per channe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_with_other_buses" ( "name" text, "raw_bandwidth_mbit_s" text, "max_cable_length_m" text, "power_provided" text, "devices_per_channel" text ); Question: What is the Raw bandwidth (Mbi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "date" text, "crowd" real ); Question: Which Ground has a Home team score of 18...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "date" text, "crowd" real ); Question: Name the Away team score which has an Aw...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "date" text, "crowd" real ); Question: Name the Away team which have a Ground o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: Which ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: What P...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: If the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: What P...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: Which ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: Which ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "structures_past_or_present_between_500_a" ( "name" text, "pinnacle_height" text, "structure_type" text, "main_use" text, "country" text, "town" text ); Question: What country has the SBA Towe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "structures_past_or_present_between_500_a" ( "name" text, "pinnacle_height" text, "structure_type" text, "main_use" text, "country" text, "town" text ); Question: What type of structure is the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "structures_past_or_present_between_500_a" ( "name" text, "pinnacle_height" text, "structure_type" text, "main_use" text, "country" text, "town" text ); Question: What's the name of the struct...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grandmasters" ( "name" text, "country" text, "birth_date" text, "date" real, "earned" text, "peak_rating_nov_2012" real ); Question: What country was the woman from who was born 1976-07-23 an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_libertadores_playoff" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "bonus_points" text, "points" real );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_libertadores_playoff" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "bonus_points" text, "points" real );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_libertadores_playoff" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "bonus_points" text, "points" real );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_libertadores_playoff" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "bonus_points" text, "points" real );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_libertadores_playoff" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "bonus_points" text, "points" real );...
<|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 earliest week with an opponent of cincinnati bengals? <|assistant|> SELECT MIN("...
<|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 sum for the week with the date october 30, 1994? <|assistant|> SELECT SUM("week"...
<|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 for a week before 9, and a opponent of dallas cowboys? <|assistant|> SELECT...
<|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 biggest week with an opponent of washington redskins? <|assistant|> SELECT MAX("...
<|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 was the attendance for a week larger than 3, and an opponent of philadelphia eagles? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" text ); Question: What is the result of the match with Jeff Monson as opponent? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" text ); Question: How many rounds was the match against Jason Fairn? <|assistant|> SELECT "round"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" text ); Question: What is the method of the match where there was a loss to Carlos Newton in roun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Who had the most points in...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What was the score for the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Who had the most assists i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standard_gauge_designs_1870_to_1899" ( "railway" text, "built" real, "wheels" text, "location" text, "object_number" text ); Question: What is the UK Railway with an ObjectNumber of 1975-7023? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); Q...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_results" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "best_finish" text, "earnings" real, "money_list_rank" text ); Question: what is the least tournam...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_results" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "best_finish" text, "earnings" real, "money_list_rank" text ); Question: what is the year when tou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_results" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "best_finish" text, "earnings" real, "money_list_rank" text ); Question: what is the best finish w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_results" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "best_finish" text, "earnings" real, "money_list_rank" text ); Question: how many times is the mon...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_results" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "best_finish" text, "earnings" real, "money_list_rank" text ); Question: what is the earliest year...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_results" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "best_finish" text, "earnings" real, "money_list_rank" text ); Question: what is the average tourn...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate" ( "senator" text, "party" text, "district" real, "home_town" text, "took_office" real ); Question: What is the earliest date of taking office for district 22? <|assistant|> SELECT MIN("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate" ( "senator" text, "party" text, "district" real, "home_town" text, "took_office" real ); Question: What district has a democratic leader from Roby? <|assistant|> SELECT SUM("district") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate" ( "senator" text, "party" text, "district" real, "home_town" text, "took_office" real ); Question: What is the district where Steve Carriker is the Democratic Senator and he took office...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series" ( "series_number" real, "number_of_episodes" real, "original_air_date" real, "dvd_region_2_release_date" text, "dvd_region_1_release_date" text ); Question: How many series originally a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series" ( "series_number" real, "number_of_episodes" real, "original_air_date" real, "dvd_region_2_release_date" text, "dvd_region_1_release_date" text ); Question: What's the latest original a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series" ( "series_number" real, "number_of_episodes" real, "original_air_date" real, "dvd_region_2_release_date" text, "dvd_region_1_release_date" text ); Question: What was the original air da...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series" ( "series_number" real, "number_of_episodes" real, "original_air_date" real, "dvd_region_2_release_date" text, "dvd_region_1_release_date" text ); Question: What's the sum of the number...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series" ( "series_number" real, "number_of_episodes" real, "original_air_date" real, "dvd_region_2_release_date" text, "dvd_region_1_release_date" text ); Question: What's the lowest series num...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total of bronze that has more silvers than 2? <|assistant|> SELECT COUNT("bronze") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total of Golds with more bronzes than 1 and totaled larger than 4? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the least total that had more Bronzes than 1 and more silvers than 2? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the least total that has fewer golds than 2, a higher rank than 4 and fewer bronzes than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lest amount of bronzes that ranked 2 and has less silvers than 0? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many Total(s) are there, when the number of Bronze is greater than 13, when...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the Nation, when the number of Bronze is less than 17, and when the num...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the highest number of Silver, when the Nation is Japan (JPN), and when ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lowest number of Gold, when the number of Bronze is less than 36, w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "iscf_international_sport_combat_federati" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: What is Res., when Event is "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "iscf_international_sport_combat_federati" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: What is Opponent, when Event ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "iscf_international_sport_combat_federati" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: What is Event, when Record is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "match_details" ( "date" text, "league_position" text, "opponents" text, "venue" text, "result" text, "score_f_a" text, "attendance" real ); Question: What is the date of the game against Ch...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: Which method had a time of 0:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: In the fight against Brandon ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: What methos did Keith Wisniew...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passenger_car_models" ( "type" text, "construction_period" text, "cylinder" text, "capacity" text, "power" text, "vmax" text ); Question: What was the maximum speed of the car with 1.556 cc c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passenger_car_models" ( "type" text, "construction_period" text, "cylinder" text, "capacity" text, "power" text, "vmax" text ); Question: What was the maximum speed for straight-4, 1.466 cc T...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passenger_car_models" ( "type" text, "construction_period" text, "cylinder" text, "capacity" text, "power" text, "vmax" text ); Question: What was the maximum speed for the P4-1 (24/36 ps)? <...
<|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" text ); Question: What country is Jack Nicklaus from? <|assistant|> SELECT "country" FRO...
<|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" text ); Question: What was the To par for bill britton when he placed t7? <|assistant|> ...
<|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" text ); Question: What was the To par of Jack Nicklaus? <|assistant|> SELECT "to_par" FR...
<|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" text ); Question: What country was the golfer from who had a money amount of 45,000? <|a...