text
stringlengths
310
1.28k
<|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 school when the loc...
<|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 location when the s...
<|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 mascot when the sch...
<|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 mascot when the cou...
<|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 county when the yea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "satellite_awards" ( "year" real, "category" text, "film" text, "result" text, "lost_to" text ); Question: which Film has a Category of best actress – musical or comedy, and a Lost to of nicole ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "satellite_awards" ( "year" real, "category" text, "film" text, "result" text, "lost_to" text ); Question: which Category has a Result of nominated, and a Lost to of jennifer westfeldt ( kissing...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "satellite_awards" ( "year" real, "category" text, "film" text, "result" text, "lost_to" text ); Question: Which the Lost to is in 2000 <|assistant|> SELECT "lost_to" FROM "satellite_awards" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "bills_points" real, "opponents" real, "record" text, "attendance" real ); Question: What is the average attendance f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "twentieth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: Who is the team that has a pick less than 154 and an offensive guard position? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_roster" ( "name" text, "pos" text, "height" text, "weight" text, "2012_club" text ); Question: What is the Weight of the GK Player with 2012 Club of CN Atlètic-Barceloneta? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_roster" ( "name" text, "pos" text, "height" text, "weight" text, "2012_club" text ); Question: What is the Height of the CF Player with 2012 club of Posillipo? <|assistant|> SELECT "hei...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "conference_premier" ( "game" real, "date" text, "opponents" text, "venue" text, "result" text, "score_f_a" text, "attendance" real ); Question: What is the Attendance of Game 24? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "conference_premier" ( "game" real, "date" text, "opponents" text, "venue" text, "result" text, "score_f_a" text, "attendance" real ); Question: What is the Venue of Game 41 with a Score F–A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_36_20_16" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Who are the opponen...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_36_20_16" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: What was the final ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_36_20_16" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: What is the outcome...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Whe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "title_history" ( "wrestlers" text, "reign" text, "days_held" text, "location" text, "event" text ); Question: Which location has 111 as the days held? <|assistant|> SELECT "location" FROM "titl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "title_history" ( "wrestlers" text, "reign" text, "days_held" text, "location" text, "event" text ); Question: What days held has 1 as the reign with eden black as the wrestlers? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "title_history" ( "wrestlers" text, "reign" text, "days_held" text, "location" text, "event" text ); Question: What wrestlers have summer brawl 2006 as the event? <|assistant|> SELECT "wrestlers...
<|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 average amount of points larger than 154 laps? <|assistant|> SELECT A...
<|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 played against Crystal Palace? <|assistant|> SELECT "home_team" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_team" ( "rank" real, "team" text, "apps" real, "record" text, "win_pct" real ); Question: What is the lowest win % with a 0-2 record and more than 2 apps? <|assistant|> SELECT MIN("win_pct")...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_team" ( "rank" real, "team" text, "apps" real, "record" text, "win_pct" real ); Question: What is the lowest apps for rank 3 and 0% wins? <|assistant|> SELECT MIN("apps") FROM "by_team" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_albums" ( "rank" real, "artist" text, "album" text, "peak_position" real, "sales" real, "certification" text ); Question: What artist had a peak position under 2, and more than 200,000...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "place" real, "points" real ); Question: Which points has place smaller than 2? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "size" real, "ihsaa_class" text, "num_county" text, "year_joined" real, "previous_conference" text ); Question: What's the siz...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "size" real, "ihsaa_class" text, "num_county" text, "year_joined" real, "previous_conference" text ); Question: What's the yea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "size" real, "ihsaa_class" text, "num_county" text, "year_joined" real, "previous_conference" text ); Question: What county is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "size" real, "ihsaa_class" text, "num_county" text, "year_joined" real, "previous_conference" text ); Question: What's the pre...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "116_seats_needed_for_a_majority" ( "date_released" text, "polling_institute" text, "socialist" text, "social_democratic" text, "green_communist" text, "people_s_party" text, "left_bloc" text...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "116_seats_needed_for_a_majority" ( "date_released" text, "polling_institute" text, "socialist" text, "social_democratic" text, "green_communist" text, "people_s_party" text, "left_bloc" text...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "116_seats_needed_for_a_majority" ( "date_released" text, "polling_institute" text, "socialist" text, "social_democratic" text, "green_communist" text, "people_s_party" text, "left_bloc" text...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "116_seats_needed_for_a_majority" ( "date_released" text, "polling_institute" text, "socialist" text, "social_democratic" text, "green_communist" text, "people_s_party" text, "left_bloc" text...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "116_seats_needed_for_a_majority" ( "date_released" text, "polling_institute" text, "socialist" text, "social_democratic" text, "green_communist" text, "people_s_party" text, "left_bloc" text...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "116_seats_needed_for_a_majority" ( "date_released" text, "polling_institute" text, "socialist" text, "social_democratic" text, "green_communist" text, "people_s_party" text, "left_bloc" text...
<|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: What is the week with w 31-21 result? <|assistant|> SELECT "week" FROM "schedule" WHERE "res...
<|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: In week 7, what was the average attendance? <|assistant|> SELECT AVG("attendance") FROM "sch...
<|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 september 10, 1979? <|assistant|> SELECT "opponent" FROM "schedule" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "discography" ( "date_of_release" text, "title" text, "billboard_peak" text, "riaa_cert" text, "label" text ); Question: When was twenty released? <|assistant|> SELECT "date_of_release" FROM "di...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "discography" ( "date_of_release" text, "title" text, "billboard_peak" text, "riaa_cert" text, "label" text ); Question: On what date was god & guns released? <|assistant|> SELECT "date_of_relea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "discography" ( "date_of_release" text, "title" text, "billboard_peak" text, "riaa_cert" text, "label" text ); Question: What was the Billboard peak for the album released on September 12, 2000 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "discography" ( "date_of_release" text, "title" text, "billboard_peak" text, "riaa_cert" text, "label" text ); Question: Where did god & guns peak on the Billboard? <|assistant|> SELECT "billboa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "discography" ( "date_of_release" text, "title" text, "billboard_peak" text, "riaa_cert" text, "label" text ); Question: What was the Billboard peak for the album released on February 2, 1976 by...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text ); Question: What venue was the tour match against eastern province played at with more than 0 against?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the status of the game where there was more than 22 against? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" text, "date" text, "opponent" text, "result" text, "lions_points" text, "opponents" text, "record" text, "streak" text, "attendance" text ); Question: In which game d...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" text, "date" text, "opponent" text, "result" text, "lions_points" text, "opponents" text, "record" text, "streak" text, "attendance" text ); Question: What was the st...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_of_amt_versions" ( "feature" text, "amt_1_0_desktop" text, "amt_2_0_2_1_desktop" text, "amt_2_5_2_6_mobile" text, "amt_3_0_desktop" text, "amt_4_0_mobile" text, "amt_5_0_desktop" ...
<|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 number of silver when bronze is 0, and rank is less than 2? <|assistant|> SELECT SUM...
<|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 silver when the Total is 1, and Gold is 1? <|assistant|> SELECT AVG("silver") FROM "...
<|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 number of silver when the total is less than 1? <|assistant|> SELECT COUNT("silver")...
<|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 largest silver number when the rank is smaller than 1? <|assistant|> SELECT MAX("sil...
<|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 number of bronze when the total is smaller than 1? <|assistant|> SELECT AVG("bronze"...
<|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 highest number of bronze when silver is larger than 0, rank is larger than 3? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lowest number of silvers for countries in rank 12 with more than 0...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the most number of silvers for teams in rank 5 with more than 6 total ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the fewest number of golds for teams with a total of 3 and fewer than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "win_loss_record" ( "club" text, "active" text, "wins" real, "losses" real, "draws" real, "percentage_wins" text, "flags" real ); Question: What's the number of wins when the flags were less...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "win_loss_record" ( "club" text, "active" text, "wins" real, "losses" real, "draws" real, "percentage_wins" text, "flags" real ); Question: What's the most flags that had 473 wins and less t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "win_loss_record" ( "club" text, "active" text, "wins" real, "losses" real, "draws" real, "percentage_wins" text, "flags" real ); Question: How many wins did South Warrnambool have that had ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "win_loss_record" ( "club" text, "active" text, "wins" real, "losses" real, "draws" real, "percentage_wins" text, "flags" real ); Question: What are the losses of Warrnambool with a draw les...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_career" ( "year" real, "competition_description" text, "location" text, "apparatus" text, "rank_final" text ); Question: What is the Location of the Competition with a Rank-Final of 10? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many gold medals for Bulgaria (BUL) with 2 silvers and a less than 18 rank? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What's the most bronze medals for Great Britain (GBR) with more than 1 silver and ranke...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What's the total silver medals having less than 2 gold and 2 bronze? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "yellow_cards" ( "name" text, "championship" real, "league_cup" real, "fa_cup" real, "total" real ); Question: Which Name has a Championship larger than 2, and a Total larger than 4, and an FA C...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "digital_channels" ( "channel" real, "video" text, "aspect" text, "psip_short_name" text, "programming" text ); Question: Which Video has a Channel smaller than 35.66, and a Programming of nhk w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "digital_channels" ( "channel" real, "video" text, "aspect" text, "psip_short_name" text, "programming" text ); Question: Which Video has a PSIP Short Name of rt? <|assistant|> SELECT "video" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "digital_channels" ( "channel" real, "video" text, "aspect" text, "psip_short_name" text, "programming" text ); Question: Which Programming has a Channel of 35.4? <|assistant|> SELECT "programmi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "per_country" ( "rank" text, "country" text, "jerseys" real, "vuelta_wins" real, "points" real, "combo" real, "different_holders" real ); Question: what is the lowest vuelta wins when the ra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "per_country" ( "rank" text, "country" text, "jerseys" real, "vuelta_wins" real, "points" real, "combo" real, "different_holders" real ); Question: How many times is the country ireland and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "date" text, "label" text, "format" text, "country" text, "catalog" text ); Question: What is the format for the MHCP-66 Catalog? <|assistant|> SELECT "format" FROM "release_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "date" text, "label" text, "format" text, "country" text, "catalog" text ); Question: What Catalog came out on August 20, 1965? <|assistant|> SELECT "catalog" FROM "release_h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "date" text, "label" text, "format" text, "country" text, "catalog" text ); Question: What is the catalog with an LP Format and under the Simply Vinyl label? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "date" text, "label" text, "format" text, "country" text, "catalog" text ); Question: What date had a CD format, under Columbia/Legacy from the UK? <|assistant|> SELECT "date...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "date" text, "label" text, "format" text, "country" text, "catalog" text ); Question: What country has an LP format, catalog s 31503? <|assistant|> SELECT "country" FROM "rel...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "date" text, "label" text, "format" text, "country" text, "catalog" text ); Question: What is the format for Catalog CL 2372? <|assistant|> SELECT "format" FROM "release_hist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text, "points" text ); Question: What event has european championships as the tournament, with 2006 as the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text, "points" text ); Question: What average year has international meeting & national championships as t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text, "points" text ); Question: What is the lowest year that has hypo-meeting as the tournament, with 800...
<|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: Who was the opponent in the m...
<|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: Where was the match that last...
<|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 event had Carlos Alexan...
<|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: Where was the match that resu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "texas_counties_ranked_by_per_capita_inco" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_6" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: What is the highest rank for the team of egypt? <|assistant|> SELECT MAX("rank") FROM "heat_6" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_6" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: Who was the athlete from egypt with q in the notes? <|assistant|> SELECT "athlete" FROM "heat_6" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_sites" ( "transmitter" text, "service_area" text, "radio_1_m_hz" real, "2_fm_m_hz" text, "rna_g_m_hz" text, "lyric_fm_m_hz" text, "erp_k_w" real ); Question: What is the 2FM for SW Ire...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); Question: Name Event of Medal of gold and a Name of duncan white? <|assistant|> SELECT "event" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); Question: Name the Event of the Games of 1950 auckland and a Medal of bronze? <|assistant|> SELECT "e...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); Question: Which Medal has a Name of alex obeyesekera? <|assistant|> SELECT "medal" FROM "list_of_meda...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); Question: Which Event has a Medal of gold and a Name of barney henricus? <|assistant|> SELECT "event"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); Question: Name the Event of sudesh peiris? <|assistant|> SELECT "event" FROM "list_of_medalists" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_trailers" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); Question: What year was the developer(s) Bioware? <|assistant|> SELECT AVG("year") FROM "game_t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_trailers" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); Question: What is the genre for 2009 on Playstation 3? <|assistant|> SELECT "genre" FROM "game_...