text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "promotion_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: What is the total number for the position that has less than 2 draws, les...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "promotion_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: What is the highest played with more than 0 draws, less than 3 losses, an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "promotion_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: What is the total number played with 8 points and a position more than 6?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "promotion_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: What is the total number played with 1 drawn, and less than 7 points? <|a...
<|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 silver when bronze is more than 1 and total is more than 48? ...
<|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 bronze when the total is 9? <|assistant|> SELECT MAX("bronze"...
<|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 least bronze when the nation is soviet union and the total is less...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_awards_and_nominations_received_" ( "year" real, "category" text, "nominee_s" text, "episode" text, "result" text ); Question: What is the category when Hy Conrad nominated in 2003? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing" ( "name" text, "gp_gs" text, "gain" real, "loss" real, "long" real, "avg_g" real ); Question: What is the long figure when gain is less than 0? <|assistant|> SELECT AVG("long") FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing" ( "name" text, "gp_gs" text, "gain" real, "loss" real, "long" real, "avg_g" real ); Question: What is the loss when the average/gain is less than 16.7, gain is 104 and long is larger...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterfinal_3" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: What is the time for Estonia with sc/d notes? <|assistant|> SELECT "time" FROM "quarterfina...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterfinal_3" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: What is the time for the rank after 5 with sc/d notes? <|assistant|> SELECT "time" FROM "qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterfinal_3" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: What was Law Hiu Fung's time? <|assistant|> SELECT "time" FROM "quarterfinal_3" WHERE "athl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterfinal_3" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: What is the time for the rank after 5 with sc/d notes? <|assistant|> SELECT "time" FROM "qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterfinal_3" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: What is the highest rank for a 6:52.70 time and notes of sa/b? <|assistant|> SELECT MAX("ra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the lowest rank that has paul biedermann as the name? <|assistant|> SELECT MIN("rank")...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What nationality has 2 as the rank? <|assistant|> SELECT "nationality" FROM "semifinal_2" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the highest lane that has nimrod shapira bar-or as the name? <|assistant|> SELECT MAX(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards" ( "year" real, "award" text, "work" text, "category" text, "result" text ); Question: What is the latest year they were nominated? <|assistant|> SELECT MAX("year") FROM "awards" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards" ( "year" real, "award" text, "work" text, "category" text, "result" text ); Question: What is the result of the choice tv actor: drama category? <|assistant|> SELECT "result" FROM "awar...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: Which Drawn has a Position smaller than 8, and a Played smaller than 14?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: Which Points have a Drawn smaller than 2, and a Lost of 12, and a Name o...
<|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 place did Lee Westwood finish in? <|assistant|> SELECT "place" FROM "second_round" WHE...
<|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 the to par score of the player that had a score of 67-68=135? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_of_the_individual_jury_and_telev" ( "draw" real, "televote_points" text, "jury_points" text, "total" text, "final_points" text ); Question: What Televote Points had a Final Points score...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_of_the_individual_jury_and_telev" ( "draw" real, "televote_points" text, "jury_points" text, "total" text, "final_points" text ); Question: Which Draw had 8 Televote Points? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_of_the_individual_jury_and_telev" ( "draw" real, "televote_points" text, "jury_points" text, "total" text, "final_points" text ); Question: What was the Jury Points value when there wer...
<|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: Which player was +4 to par and won the Open in 1995? <|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: Which player has a to par of +8? <|assistant|> SELECT "player" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "repechage_2" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What country is ranked smaller than 2? <|assistant|> SELECT "country" FROM "repechage_2" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "repechage_2" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What is the rank when the time is 6:50.48? <|assistant|> SELECT "rank" FROM "repechage_2" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "repechage_2" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What is the highest rank with the notes of sa/b, and a time of 6:39.07? <|assistant|> SELECT MA...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "repechage_2" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What shows for notes when rank is more than 4, and country is South Korea? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serialized_titles" ( "title" text, "author" text, "first_issue" text, "last_issue" text, "completed" text ); Question: What is the First Issue date of Bamboo Blade? <|assistant|> SELECT "first_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serialized_titles" ( "title" text, "author" text, "first_issue" text, "last_issue" text, "completed" text ); Question: What is the First issue date of the title with a Last Issue of July 2010? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serialized_titles" ( "title" text, "author" text, "first_issue" text, "last_issue" text, "completed" text ); Question: What is the First Issue date of Soul Eater? <|assistant|> SELECT "first_is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serialized_titles" ( "title" text, "author" text, "first_issue" text, "last_issue" text, "completed" text ); Question: Was the Title with a Last Issue of July 2010 completed? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serialized_titles" ( "title" text, "author" text, "first_issue" text, "last_issue" text, "completed" text ); Question: What is the Author of the Title with a First Issue of September 2010? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serialized_titles" ( "title" text, "author" text, "first_issue" text, "last_issue" text, "completed" text ); Question: What is the Author of the Title with an Ongoing Last Issue? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: What is the highest ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: What is the number o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: What is the number o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: What is the number 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" real, "wins" real, "podiums" real, "points" real, "position" text ); Question: What was the series in season 2009? <|a...
<|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" real, "wins" real, "podiums" real, "points" real, "position" text ); Question: What was the lowest amount of wins befo...
<|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" real, "wins" real, "podiums" real, "points" real, "position" text ); Question: How many wins had a podium larger than ...
<|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 date for the week larger than 1 and the opponent detroit lions? <|assistant|> SE...
<|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 lowest week when the attendance is 54,714? <|assistant|> SELECT MIN("week") FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_6" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: Which Athlete has a Reaction of 0.248? <|assistant|> SELECT "athlete" FROM "heat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_6" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: Which Rank has a Reaction of 0.198, and a Time smaller than 46.3? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_6" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: Which Lane has a Time larger than 47.83? <|assistant|> SELECT AVG("lane") FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_6" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: Which Reaction has a Rank smaller than 4, and a Nationality of trinidad and toba...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "competitive_history" ( "year" real, "competition_description" text, "location" text, "apparatus" text, "rank_final" real, "score_final" real, "rank_qualifying" real, "score_qualifying" rea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "competitive_history" ( "year" real, "competition_description" text, "location" text, "apparatus" text, "rank_final" real, "score_final" real, "rank_qualifying" real, "score_qualifying" rea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "competitive_history" ( "year" real, "competition_description" text, "location" text, "apparatus" text, "rank_final" real, "score_final" real, "rank_qualifying" real, "score_qualifying" rea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What's the pick for the New York jets with a defensive end? <|assistant|> SELECT "pick" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What's the pick for Georgia tech? <|assistant|> SELECT "pick" FROM "fifth_round" WHERE "coll...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: Who plays halfback? <|assistant|> SELECT "player" FROM "fifth_round" WHERE "position"='halfb...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: Who is the team for Washington College? <|assistant|> SELECT "team" FROM "fifth_round" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_largest_crowds" ( "rank" real, "attendance" real, "visiting_team" text, "date" text, "result" text ); Question: What is the Rank of the game with an Attendance of 93,039? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "model" text, "engine" text, "displacement" text, "valvetrain" text, "fuel_system" text, "max_power_at_rpm" text, "max_torque_at_rpm" text, "years" text ); Question: What fuel ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "model" text, "engine" text, "displacement" text, "valvetrain" text, "fuel_system" text, "max_power_at_rpm" text, "max_torque_at_rpm" text, "years" text ); Question: What is th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real ); Question: What is the size of the 2009 electo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "elimination_chamber_entrances_and_elimin" ( "eliminated" text, "wrestler" text, "entered" real, "eliminated_by" text, "time" text ); Question: Who was eliminated that entered after number 3 and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: What is the average year in which the finish position was 13th? <|assistant|> SELECT AV...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: What is the average year for the Olympic Games? <|assistant|> SELECT AVG("year") FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What is the Label of the September 20, 2008 release with Catalog number RTRADCD491? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What is the Format of the September 22, 2008 release with Catalog number RTRADCD491? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What is the Format of the release with Catalog number RTRADLP491? <|assistant|> SELECT "f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What is the Label of the Release with Catalog number 2508668? <|assistant|> SELECT "label...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What is the Format of the release with Catalog number 2508668? <|assistant|> SELECT "form...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What is the Region of the Warner Music Canada Label release? <|assistant|> SELECT "region...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_game_of_the_year_awards" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); Question: Who were the developers for Portal? <|assistant|> SELECT "developer...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_game_of_the_year_awards" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); Question: Who were the developers for the Action RPG made after 2010? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "airlines_based_in_changi" ( "airline" text, "iata" text, "icao" text, "callsign" text, "commenced_operations" real ); Question: Which Callsign has an IATA of tr? <|assistant|> SELECT "callsign"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "airlines_based_in_changi" ( "airline" text, "iata" text, "icao" text, "callsign" text, "commenced_operations" real ); Question: Which Commenced operations have an Airline of valuair? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "airlines_based_in_changi" ( "airline" text, "iata" text, "icao" text, "callsign" text, "commenced_operations" real ); Question: Which Commenced operations have an Airline of valuair? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "airlines_based_in_changi" ( "airline" text, "iata" text, "icao" text, "callsign" text, "commenced_operations" real ); Question: Which IATA has a ICAO of slk? <|assistant|> SELECT "iata" FROM "a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_watched_programmes" ( "rank" real, "series" text, "episode_title" text, "viewers" real, "date" text ); Question: How many Viewers have a Rank smaller than 2? <|assistant|> SELECT SUM("view...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "o" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: What is the lo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "o" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: What is the po...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "o" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: What is the to...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "o" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: What is the hi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real ); Question: Which Athlete has a Rank larger than 1, and a Lane larger than 7, and a Nationality of chin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real ); Question: How many Lanes have a Time larger than 13.59, and a Rank larger than 8? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real ); Question: How many lanes have a Nationality of france, and a Rank larger than 8? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_spot" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); Question: What game was developed by Nintendo for the Gamecube platform? <|assistant|> SELECT "game...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_spot" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); Question: What is the genre of Super Mario Galaxy? <|assistant|> SELECT "genre" FROM "game_spot" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demography" ( "year" real, "population" real, "five_year_pct_change" text, "ten_year_pct_change" text, "rank_among_provinces" real ); Question: What is the average year having a rank among prov...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demography" ( "year" real, "population" real, "five_year_pct_change" text, "ten_year_pct_change" text, "rank_among_provinces" real ); Question: What is the highest population for the province h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demography" ( "year" real, "population" real, "five_year_pct_change" text, "ten_year_pct_change" text, "rank_among_provinces" real ); Question: What is the number of population values having a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demography" ( "year" real, "population" real, "five_year_pct_change" text, "ten_year_pct_change" text, "rank_among_provinces" real ); Question: What is the highest year having a ten-year percen...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1998_in_paraguayan_football" ( "date" text, "venue" text, "score" text, "comp" text, "report" text ); Question: What's the comp for 1998-04-22? <|assistant|> SELECT "comp" FROM "1998_in_paragua...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1998_in_paraguayan_football" ( "date" text, "venue" text, "score" text, "comp" text, "report" text ); Question: What's the score at Olympic Stadium Tokyo, Japan? <|assistant|> SELECT "score" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1998_in_paraguayan_football" ( "date" text, "venue" text, "score" text, "comp" text, "report" text ); Question: What's the comp in Olympic Stadium Tokyo, Japan? <|assistant|> SELECT "comp" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1998_in_paraguayan_football" ( "date" text, "venue" text, "score" text, "comp" text, "report" text ); Question: What's the report in King Baudouin Stadium Brussels, Belgium? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eliminated_contestants_weigh_in_results" ( "contestant" text, "starting_weight_kg" real, "final_weight_kg" real, "weight_lost_kg" real, "percentage_lost" text, "position_out_of_eliminated_cont...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What lane has a time of 1:57.71? <|assistant|> SELECT SUM("lane") FROM "semifinal_2" WHERE "ti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: Who had a larger rank than 3, less than 6 lanes, and a time of 1:58.15? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "registered_births_and_deaths" ( "average_population_x_1000" real, "live_births" text, "deaths" text, "natural_change" text, "crude_birth_rate_per_1000" real, "crude_death_rate_per_1000" real, ...