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?
<|assistant|>
SELECT "qual_2" FROM "qualifying_results" WHERE "team"='american spirit team johansson' AND "best"='59.073';<|endoftext|>
|
<|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_results" WHERE "qual_2"='58.700';<|endoftext|>
|
<|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_results" WHERE "qual_2"='58.861';<|endoftext|>
|
<|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_results" WHERE "qual_2"='59.822';<|endoftext|>
|
<|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_1" FROM "qualifying_results" WHERE "team"='team player''s' AND "best"='58.405';<|endoftext|>
|
<|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 (swe) and the weight (kg) is 102?
<|assistant|>
SELECT "height_m" FROM "sortable_list_of_competitors_with_s_kipp" WHERE "nation"='sweden (swe)' AND "weight_kg"='102';<|endoftext|>
|
<|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 the birth date is 1976-12-20?
<|assistant|>
SELECT "nation" FROM "sortable_list_of_competitors_with_s_kipp" WHERE "world_rank"='2' AND "birth_date"='1976-12-20';<|endoftext|>
|
<|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 the birth date is 1971-07-31?
<|assistant|>
SELECT "nation" FROM "sortable_list_of_competitors_with_s_kipp" WHERE "world_rank"='6' AND "birth_date"='1971-07-31';<|endoftext|>
|
<|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 100 and the world rank is 2?
<|assistant|>
SELECT "birth_date" FROM "sortable_list_of_competitors_with_s_kipp" WHERE "weight_kg"='100' AND "world_rank"='2';<|endoftext|>
|
<|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 and the weight (kg) is 99?
<|assistant|>
SELECT "nation" FROM "sortable_list_of_competitors_with_s_kipp" WHERE "height_m"='1.91' AND "weight_kg"='99';<|endoftext|>
|
<|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 1968-07-01?
<|assistant|>
SELECT "height_m" FROM "sortable_list_of_competitors_with_s_kipp" WHERE "birth_date"='1968-07-01';<|endoftext|>
|
<|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 a Team of shandong luneng?
<|assistant|>
SELECT COUNT("total_position") FROM "relegation" WHERE "2002_position"<3 AND "team"='shandong luneng';<|endoftext|>
|
<|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 league, and a 2002 Position smaller than 6, and a 2003 Position smaller than 9, and a Total Position larger than 3.5?
<|assistant|>
SELECT "team" FROM "relegation" WHERE "qualification"='entry to the 2004 chinese super league' AND "2002_position"<6 AND "2003_position"<9 AND "total_position">3.5;<|endoftext|>
|
<|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" FROM "heats" WHERE "time"='2:12.56';<|endoftext|>
|
<|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 nordenstam';<|endoftext|>
|
<|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"='jessica pengelly';<|endoftext|>
|
<|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,
"flt_apps" text,
"flt_goals" real,
"total_apps" text,
"total_goals" real
);
Question: What league apps with 1 flt apps, 0 goals, and more than 1 league goals?
<|assistant|>
SELECT "league_apps" FROM "appearances_and_goals" WHERE "flt_apps"='1' AND "total_goals">0 AND "league_goals">1;<|endoftext|>
|
<|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,
"flt_apps" text,
"flt_goals" real,
"total_apps" text,
"total_goals" real
);
Question: What is the total number of league goals for Simon Charlton?
<|assistant|>
SELECT COUNT("league_goals") FROM "appearances_and_goals" WHERE "name"='simon charlton';<|endoftext|>
|
<|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_round" WHERE "score"='65-70-72=207';<|endoftext|>
|
<|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"='4';<|endoftext|>
|
<|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-73-70=210';<|endoftext|>
|
<|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
);
Question: What is the lowest poles that have 0 as a win, 0 as the top 5, with 66th as the postion?
<|assistant|>
SELECT MIN("poles") FROM "nascar_nationwide_series" WHERE "wins"=0 AND "top_5"=0 AND "position"='66th';<|endoftext|>
|
<|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 "music_director" FROM "see_also" WHERE "year"=1971 AND "movie_in_kannada"='kalyani';<|endoftext|>
|
<|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?
<|assistant|>
SELECT "movie_in_kannada" FROM "see_also" WHERE "music_director"='g.k. venkatesh' AND "director"='b. dorairaj';<|endoftext|>
|
<|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?
<|assistant|>
SELECT "movie_in_kannada" FROM "see_also" WHERE "music_director"='g.k. venkatesh' AND "director"='siddalingaiah';<|endoftext|>
|
<|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
);
Question: Which county has a median family income of $50,227?
<|assistant|>
SELECT "county" FROM "ohio_counties_ranked_by_per_capita_incom" WHERE "median_family_income"='$50,227';<|endoftext|>
|
<|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?
<|assistant|>
SELECT "tournament" FROM "single_performance_statistics" WHERE "2010"='not held';<|endoftext|>
|
<|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, 2010 is q2, and 2011 is 2r?
<|assistant|>
SELECT "2009" FROM "single_performance_statistics" WHERE "2008"='a' AND "2012"='1r' AND "2010"='q2' AND "2011"='2r';<|endoftext|>
|
<|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 2009 is 1r?
<|assistant|>
SELECT "tournament" FROM "single_performance_statistics" WHERE "2010"='q2' AND "2009"='1r';<|endoftext|>
|
<|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 5 tournaments?
<|assistant|>
SELECT "tournament" FROM "single_performance_statistics" WHERE "2007"='wta premier 5 tournaments';<|endoftext|>
|
<|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?
<|assistant|>
SELECT "tournament" FROM "single_performance_statistics" WHERE "2012"='q2';<|endoftext|>
|
<|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?
<|assistant|>
SELECT "2008" FROM "single_performance_statistics" WHERE "2010"='138';<|endoftext|>
|
<|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 "time"='7:03.91';<|endoftext|>
|
<|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"='denmark';<|endoftext|>
|
<|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.98%?
<|assistant|>
SELECT "internet_explorer" FROM "global_desktop_and_mobile_stats_combined" WHERE "firefox"='24.98%';<|endoftext|>
|
<|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.90%
<|assistant|>
SELECT "firefox" FROM "global_desktop_and_mobile_stats_combined" WHERE "chrome"='23.90%';<|endoftext|>
|
<|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 explorer was 20.27%?
<|assistant|>
SELECT "safari" FROM "global_desktop_and_mobile_stats_combined" WHERE "internet_explorer"='20.27%';<|endoftext|>
|
<|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%?
<|assistant|>
SELECT "firefox" FROM "global_desktop_and_mobile_stats_combined" WHERE "chrome"='25.08%';<|endoftext|>
|
<|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 24.66%
<|assistant|>
SELECT "safari" FROM "global_desktop_and_mobile_stats_combined" WHERE "firefox"='24.66%';<|endoftext|>
|
<|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_history" WHERE "date"='february 18, 2009';<|endoftext|>
|
<|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_history" WHERE "format"='cd' AND "label"='avex entertainment';<|endoftext|>
|
<|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 "release_history" WHERE "label"='hollywood records' AND "format"='digital download';<|endoftext|>
|
<|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|>
SELECT "edition" FROM "release_history" WHERE "date"='september 23, 2008' AND "region"='united states';<|endoftext|>
|
<|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_history" WHERE "date"='april 16, 2009';<|endoftext|>
|
<|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 Koronadal?
<|assistant|>
SELECT "call_sign" FROM "febc_stations_in_the_philippines" WHERE "branding"='1062 dxki koronadal';<|endoftext|>
|
<|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|>
SELECT "branding" FROM "febc_stations_in_the_philippines" WHERE "frequency"='1233khz';<|endoftext|>
|
<|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|>
SELECT "call_sign" FROM "febc_stations_in_the_philippines" WHERE "power_kw"='20kw';<|endoftext|>
|
<|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 Zamboanga?
<|assistant|>
SELECT "location" FROM "febc_stations_in_the_philippines" WHERE "branding"='1116 dxas zamboanga';<|endoftext|>
|
<|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|>
SELECT "location" FROM "febc_stations_in_the_philippines" WHERE "frequency"='1197khz';<|endoftext|>
|
<|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 power?
<|assistant|>
SELECT "frequency" FROM "febc_stations_in_the_philippines" WHERE "power_kw"='10kw' AND "call_sign"='dyfr';<|endoftext|>
|
<|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"='hungary';<|endoftext|>
|
<|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 "rank"=4;<|endoftext|>
|
<|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.84';<|endoftext|>
|
<|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 "heats" WHERE "lane"=5 AND "time"='7:08.04';<|endoftext|>
|
<|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|>
SELECT "2nd_round" FROM "playoffs" WHERE "3rd_round"='involuntary suspension of season.';<|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: NAME THE Finals which has a 1st round of w, 3–1, mis?
<|assistant|>
SELECT "finals" FROM "playoffs" WHERE "1st_round"='w, 3–1, mis';<|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 Season has Finals of out of playoffs.?
<|assistant|>
SELECT "season" FROM "playoffs" WHERE "finals"='out of playoffs.';<|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 3rd round has a 1st round of —?
<|assistant|>
SELECT "3rd_round" FROM "playoffs" WHERE "1st_round"='—';<|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 Finals has a 1st round of —?
<|assistant|>
SELECT "finals" FROM "playoffs" WHERE "1st_round"='—';<|endoftext|>
|
<|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?
<|assistant|>
SELECT "assist_pass" FROM "international_goals" WHERE "location"='albufeira';<|endoftext|>
|
<|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 was Unassisted?
<|assistant|>
SELECT "lineup" FROM "international_goals" WHERE "assist_pass"='unassisted';<|endoftext|>
|
<|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?
<|assistant|>
SELECT "date" FROM "international_goals" WHERE "result"='3-1' AND "location"='hague';<|endoftext|>
|
<|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?
<|assistant|>
SELECT SUM("total") FROM "medal_table" WHERE "rank"='total' AND "silver"<10;<|endoftext|>
|
<|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") FROM "medal_table" WHERE "gold"<0;<|endoftext|>
|
<|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?
<|assistant|>
SELECT COUNT("silver") FROM "medal_table" WHERE "total"=30 AND "bronze">10;<|endoftext|>
|
<|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 gold is less than 3?
<|assistant|>
SELECT SUM("total") FROM "medal_table" WHERE "bronze">1 AND "nation"='hong kong (hkg)' AND "gold"<3;<|endoftext|>
|
<|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 "results" WHERE "class"='a' AND "laps"=125;<|endoftext|>
|
<|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" WHERE "entrant"='peter hopwood';<|endoftext|>
|
<|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;<|endoftext|>
|
<|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, with a rank of 1?
<|assistant|>
SELECT SUM("matches") FROM "season" WHERE "average">6.33 AND "rank"=1;<|endoftext|>
|
<|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 smaller than 2?
<|assistant|>
SELECT MIN("total") FROM "season" WHERE "matches"<3 AND "rank"<2;<|endoftext|>
|
<|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 matches??
<|assistant|>
SELECT COUNT("average") FROM "season" WHERE "tally"='3–11' AND "matches">4;<|endoftext|>
|
<|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") FROM "season" WHERE "average"=6.33;<|endoftext|>
|
<|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 dnf pos.?
<|assistant|>
SELECT AVG("laps") FROM "24_hours_of_le_mans_results" WHERE "pos"='dnf';<|endoftext|>
|
<|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 "country"='guam';<|endoftext|>
|
<|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"='guam';<|endoftext|>
|
<|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|>
SELECT MAX("week") FROM "schedule" WHERE "result"='l 20–13' AND "attendance">'49,598';<|endoftext|>
|
<|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,354?
<|assistant|>
SELECT COUNT("week") FROM "schedule" WHERE "opponent"='at san francisco 49ers' AND "attendance"<'34,354';<|endoftext|>
|
<|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 "schedule" WHERE "opponent"='washington redskins';<|endoftext|>
|
<|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" WHERE "opponent"='dallas cowboys';<|endoftext|>
|
<|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?
<|assistant|>
SELECT AVG("react") FROM "final" WHERE "time"<20.05 AND "nationality"='jamaica' AND "lane">5;<|endoftext|>
|
<|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: Which Fencing Victories (pts) has a Shooting Score (pts) of 187 (1180) and a Total smaller than 5640? Question 1
<|assistant|>
SELECT "fencing_victories_pts" FROM "results" WHERE "shooting_score_pts"='187 (1180)' AND "total"<5640;<|endoftext|>
|
<|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: Which Equestrian Time (pts) has an Athlete of omnia fakhry ( egy )?
<|assistant|>
SELECT "equestrian_time_pts" FROM "results" WHERE "athlete"='omnia fakhry ( egy )';<|endoftext|>
|
<|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: Which Shooting Score (pts) has a Total larger than 5464 and a Athlete of heather fell ( gbr )?
<|assistant|>
SELECT "shooting_score_pts" FROM "results" WHERE "total">5464 AND "athlete"='heather fell ( gbr )';<|endoftext|>
|
<|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: Which Fencing Victories (pts) that has a Equestrian Time (pts) of 67.88 (1144)?
<|assistant|>
SELECT "fencing_victories_pts" FROM "results" WHERE "equestrian_time_pts"='67.88 (1144)';<|endoftext|>
|
<|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: Which Fencing Victories (pts) has a Total of 5640?
<|assistant|>
SELECT "fencing_victories_pts" FROM "results" WHERE "total"=5640;<|endoftext|>
|
<|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|>
SELECT "position" FROM "second_round" WHERE "pick"<15 AND "college"='rice';<|endoftext|>
|
<|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 "pick"=14;<|endoftext|>
|
<|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" FROM "second_round" WHERE "position"='linebacker' AND "team"='denver broncos';<|endoftext|>
|
<|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" WHERE "position"='quarterback';<|endoftext|>
|
<|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") FROM "second_round" WHERE "team"='san diego chargers';<|endoftext|>
|
<|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|>
SELECT "type_code" FROM "engines" WHERE "torque_rpm"='n·m (lb·ft) @1900–3500';<|endoftext|>
|
<|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" FROM "engines" WHERE "power_rpm"='ps (kw; hp)@6100';<|endoftext|>
|
<|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?
<|assistant|>
SELECT "model" FROM "engines" WHERE "years"='2006–2008' AND "torque_rpm"='n·m (lb·ft) @1900–3500';<|endoftext|>
|
<|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_rpm" FROM "engines" WHERE "power_rpm"='ps (kw; hp)@4800–5100';<|endoftext|>
|
<|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|>
SELECT "years" FROM "engines" WHERE "type_code"='cubic centimetres (cuin) v8 ( m273 )';<|endoftext|>
|
<|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("heat") FROM "heats" WHERE "name"='sun yang' AND "lane"<2;<|endoftext|>
|
<|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';<|endoftext|>
|
<|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 "lane"=3;<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.