text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: Name the Qual 2 of a Team of american spirit team johansson and a Best of 59.073? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: Name the Best which has a Qual 2 of 58.700? <|assistant|> SELECT "best" FROM "qualifying_r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: Which Qual 1 has a Qual 2 of 58.861? <|assistant|> SELECT "qual_1" FROM "qualifying_result...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: Which Qual 1 has a Qual 2 of 59.822? <|assistant|> SELECT "qual_1" FROM "qualifying_result...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: Which Qual 1 has a Team of team player's, and a Best of 58.405? <|assistant|> SELECT "qual...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sortable_list_of_competitors_with_s_kipp" ( "nation" text, "birth_date" text, "height_m" text, "weight_kg" text, "world_rank" text ); Question: what is the height (m) when the nation is sweden ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sortable_list_of_competitors_with_s_kipp" ( "nation" text, "birth_date" text, "height_m" text, "weight_kg" text, "world_rank" text ); Question: what is the nation when the world rank is 2 and t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sortable_list_of_competitors_with_s_kipp" ( "nation" text, "birth_date" text, "height_m" text, "weight_kg" text, "world_rank" text ); Question: what is the nation when the world rank is 6 and t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sortable_list_of_competitors_with_s_kipp" ( "nation" text, "birth_date" text, "height_m" text, "weight_kg" text, "world_rank" text ); Question: what is the birth date when the weight (kg) is 10...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sortable_list_of_competitors_with_s_kipp" ( "nation" text, "birth_date" text, "height_m" text, "weight_kg" text, "world_rank" text ); Question: what is the nation when the height (m) is 1.91 an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sortable_list_of_competitors_with_s_kipp" ( "nation" text, "birth_date" text, "height_m" text, "weight_kg" text, "world_rank" text ); Question: what is the height (m) when the birth date is 196...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "2002_position" real, "2003_position" real, "total_position" real, "qualification" text ); Question: How many Total Positions have a 2002 Position smaller than 3, and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "2002_position" real, "2003_position" real, "total_position" real, "qualification" text ); Question: Which Team has a Qualification of entry to the 2004 chinese super...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the nationality of the athlete with a time of 2:12.56? <|assistant|> SELECT "nationality" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What time did Sara Nordenstam get? <|assistant|> SELECT "time" FROM "heats" WHERE "name"='sara norde...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What nationality is Jessica Pengelly? <|assistant|> SELECT "nationality" FROM "heats" WHERE "name"='...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What was the place when the score was 65-70-72=207? <|assistant|> SELECT "place" FROM "third...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What was the score for place 4? <|assistant|> SELECT "score" FROM "third_round" WHERE "place...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: Who scored 67-73-70=210? <|assistant|> SELECT "player" FROM "third_round" WHERE "score"='67-...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "year" real, "movie_in_kannada" text, "director" text, "cast" text, "music_director" text ); Question: Who was the music director in 1971 for the movie Kalyani? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "year" real, "movie_in_kannada" text, "director" text, "cast" text, "music_director" text ); Question: What movie had the music director G.K. Venkatesh and director B. Dorairaj? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "year" real, "movie_in_kannada" text, "director" text, "cast" text, "music_director" text ); Question: What movie had the music director G.K. Venkatesh and director Siddalingaiah? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ohio_counties_ranked_by_per_capita_incom" ( "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 "single_performance_statistics" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the tournament when 2010 is not held? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_performance_statistics" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What shows for 2009 when 2008 is A, 2012 is 1r,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_performance_statistics" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the tournament when 2010 is q2, and 200...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_performance_statistics" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the tournament when 2007 is WTA Premier...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_performance_statistics" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the tournament when 2012 is q2? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_performance_statistics" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What shows for 2008 when 2010 is 138? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_a_b_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: Which country timed at 7:03.91? <|assistant|> SELECT "country" FROM "semifinal_a_b_1" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_a_b_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What did Denmark time at? <|assistant|> SELECT "time" FROM "semifinal_a_b_1" WHERE "country...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "global_desktop_and_mobile_stats_combined" ( "date" text, "internet_explorer" text, "chrome" text, "firefox" text, "safari" text ); Question: What was the internet explorer % when firefox was 24...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "global_desktop_and_mobile_stats_combined" ( "date" text, "internet_explorer" text, "chrome" text, "firefox" text, "safari" text ); Question: What was the percentage of firefox was chrome was 23...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "global_desktop_and_mobile_stats_combined" ( "date" text, "internet_explorer" text, "chrome" text, "firefox" text, "safari" text ); Question: What was the percentage of safari when internet expl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "global_desktop_and_mobile_stats_combined" ( "date" text, "internet_explorer" text, "chrome" text, "firefox" text, "safari" text ); Question: What was the firefox % was chrome was 25.08%? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "global_desktop_and_mobile_stats_combined" ( "date" text, "internet_explorer" text, "chrome" text, "firefox" text, "safari" text ); Question: What was the percentage of safari when firefox was 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "format" text, "label" text, "edition" text ); Question: Which label released on February 18, 2009? <|assistant|> SELECT "label" FROM "release_his...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "format" text, "label" text, "edition" text ); Question: When did Avex Entertainment release a CD? <|assistant|> SELECT "date" FROM "release_histo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "format" text, "label" text, "edition" text ); Question: When did Hollywood Records release a digital download? <|assistant|> SELECT "date" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "format" text, "label" text, "edition" text ); Question: What kind of edition was released September 23, 2008 from the United States? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "format" text, "label" text, "edition" text ); Question: What format was released April 16, 2009? <|assistant|> SELECT "format" FROM "release_hist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "febc_stations_in_the_philippines" ( "branding" text, "call_sign" text, "frequency" text, "power_kw" text, "location" text ); Question: What's the call sign if the branding is 1062 DXKI Koronada...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "febc_stations_in_the_philippines" ( "branding" text, "call_sign" text, "frequency" text, "power_kw" text, "location" text ); Question: What's the branding for frequency 1233khz? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "febc_stations_in_the_philippines" ( "branding" text, "call_sign" text, "frequency" text, "power_kw" text, "location" text ); Question: What's the call sign that has 20kw of power? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "febc_stations_in_the_philippines" ( "branding" text, "call_sign" text, "frequency" text, "power_kw" text, "location" text ); Question: What's the location when the branding is 1116 DXAS Zamboan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "febc_stations_in_the_philippines" ( "branding" text, "call_sign" text, "frequency" text, "power_kw" text, "location" text ); Question: What's the location of the 1197khz frequency? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "febc_stations_in_the_philippines" ( "branding" text, "call_sign" text, "frequency" text, "power_kw" text, "location" text ); Question: What's the frequency of the call sign DYFR with 10KW of po...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_3" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What is Hungary's highest Rank? <|assistant|> SELECT MAX("rank") FROM "heat_3" WHERE "country"='hung...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_3" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What is the Notes of the Country with a Rank of 4? <|assistant|> SELECT "notes" FROM "heat_3" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_3" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What country had a Time of 6:14.84? <|assistant|> SELECT "country" FROM "heat_3" WHERE "time"='6:14....
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "nationality" text, "time" text ); Question: Which Nationality has a Lane of 5, and a Time of 7:08.04? <|assistant|> SELECT "nationality" FROM "h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "nationality" text, "time" text ); Question: Which Heat has a Rank of 8? <|assistant|> SELECT MAX("heat") FROM "heats" WHERE "rank"=8;<|endoftext...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "season" text, "1st_round" text, "2nd_round" text, "3rd_round" text, "finals" text ); Question: WHICH 2nd round has a 3rd round of involuntary suspension of season.? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "season" text, "1st_round" text, "2nd_round" text, "3rd_round" text, "finals" text ); Question: NAME THE Finals which has a 1st round of w, 3–1, mis? <|assistant|> SELECT "finals" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "season" text, "1st_round" text, "2nd_round" text, "3rd_round" text, "finals" text ); Question: Which Season has Finals of out of playoffs.? <|assistant|> SELECT "season" FROM "play...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "season" text, "1st_round" text, "2nd_round" text, "3rd_round" text, "finals" text ); Question: Which 3rd round has a 1st round of —? <|assistant|> SELECT "3rd_round" FROM "playoffs...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "season" text, "1st_round" text, "2nd_round" text, "3rd_round" text, "finals" text ); Question: Which Finals has a 1st round of —? <|assistant|> SELECT "finals" FROM "playoffs" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "location" text, "lineup" text, "assist_pass" text, "score" text, "result" text, "competition" text ); Question: What's Albufeira's assist/pass? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "location" text, "lineup" text, "assist_pass" text, "score" text, "result" text, "competition" text ); Question: What's the lineup when the assist/pass w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "location" text, "lineup" text, "assist_pass" text, "score" text, "result" text, "competition" text ); Question: What date was the result 3-1 in Hague? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: what is the total when the rank is total and the silver is less than 10? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: what is the least silver when gold is 0? <|assistant|> SELECT MIN("silver") FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: what is the total silver when total is 30 and bronze is more than 10? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: what is the total when bronze is more than 1, nation is hong kong (hkg) and gol...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "position" text, "drivers" text, "entrant" text, "class" text, "laps" real ); Question: The driver in class A with 125 laps is in what position? <|assistant|> SELECT "position" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "position" text, "drivers" text, "entrant" text, "class" text, "laps" real ); Question: Peter Hopwood has how many laps in all? <|assistant|> SELECT COUNT("laps") FROM "results" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "position" text, "drivers" text, "entrant" text, "class" text, "laps" real ); Question: For what class is the laps 66? <|assistant|> SELECT "class" FROM "results" WHERE "laps"=66;<|e...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real ); Question: What is the number of matches with an average larger than 6.33, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real ); Question: What is the total when matches is less than 3, and rank is small...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real ); Question: What is the average when the tally is 3–11, with more than 4 mat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real ); Question: What rank has an average of 6.33? <|assistant|> SELECT AVG("rank...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text ); Question: What is the average number of laps with a dn...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_3" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); Question: What is the lowest Rank for a Guam Player? <|assistant|> SELECT MIN("rank") FROM "heat_3" WHERE "c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_3" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); Question: What is the Rank of the Guam Player? <|assistant|> SELECT AVG("rank") FROM "heat_3" WHERE "country...
<|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: Which Week has a Result of l 20–13, and an Attendance larger than 49,598? <|assistant|> SELE...
<|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: How many weeks have an Opponent of at san francisco 49ers, and an Attendance smaller than 34...
<|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: Which Result has an Opponent of washington redskins? <|assistant|> SELECT "result" 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: What week did the dallas cowboys play? <|assistant|> SELECT SUM("week") FROM "schedule" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "lane" real, "name" text, "nationality" text, "react" real, "time" real ); Question: Name the average React of the Time smaller than 20.05 in jamaica with a Lane larger than 5? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "athlete" text, "shooting_score_pts" text, "fencing_victories_pts" text, "swimming_time_pts" text, "equestrian_time_pts" text, "running_time_pts" text, "total" real ); Question: ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "athlete" text, "shooting_score_pts" text, "fencing_victories_pts" text, "swimming_time_pts" text, "equestrian_time_pts" text, "running_time_pts" text, "total" real ); Question: ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "athlete" text, "shooting_score_pts" text, "fencing_victories_pts" text, "swimming_time_pts" text, "equestrian_time_pts" text, "running_time_pts" text, "total" real ); Question: ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "athlete" text, "shooting_score_pts" text, "fencing_victories_pts" text, "swimming_time_pts" text, "equestrian_time_pts" text, "running_time_pts" text, "total" real ); Question: ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "athlete" text, "shooting_score_pts" text, "fencing_victories_pts" text, "swimming_time_pts" text, "equestrian_time_pts" text, "running_time_pts" text, "total" real ); Question: ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What position did the player from Rice College play who was picked under 15? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What position did pick 14 play? <|assistant|> SELECT "position" FROM "second_round" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What pick number did the linebacker from the denver broncos get? <|assistant|> SELECT "pick...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What college was the quarterback from? <|assistant|> SELECT "college" FROM "second_round" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What is the lowest number pick from san diego chargers? <|assistant|> SELECT MIN("pick") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "model" text, "years" text, "type_code" text, "power_rpm" text, "torque_rpm" text ); Question: Which Type/code has a Torque@rpm of n·m (lb·ft) @1900–3500? Question 1 <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "model" text, "years" text, "type_code" text, "power_rpm" text, "torque_rpm" text ); Question: Which Torque@rpm has a Power@rpm of ps (kw; hp)@6100? <|assistant|> SELECT "torque_rpm"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "model" text, "years" text, "type_code" text, "power_rpm" text, "torque_rpm" text ); Question: Name Model which has a Years of 2006–2008 and a Torque@rpm of n·m (lb·ft) @1900–3500? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "model" text, "years" text, "type_code" text, "power_rpm" text, "torque_rpm" text ); Question: Which Torque@rpm has a Power@rpm of ps (kw; hp)@4800–5100? <|assistant|> SELECT "torque...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "model" text, "years" text, "type_code" text, "power_rpm" text, "torque_rpm" text ); Question: Which Years has a Type/code of cubic centimetres (cuin) v8 ( m273 )? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the total heat number of sun yang, who has a lane less than 2? <|assistant|> SELECT COUNT("h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: Who has a time of 3:50.90? <|assistant|> SELECT "name" FROM "heats" WHERE "time"='3:50.90';<|endofte...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the time of lane 3 in heat 5? <|assistant|> SELECT "time" FROM "heats" WHERE "heat"=5 AND "l...