text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men" (
"event" text,
"time" text,
"nationality" text,
"date" text,
"meet" text,
"location" text
);
Question: What was the record setting time in the 800m freestyle?
<|assistant|>
SELECT "time... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "historical_premiers" (
"rank" real,
"state" text,
"premier" text,
"party" text,
"assumed_office" text,
"left_office" text,
"total_time_in_office" text
);
Question: What is the least rank fo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "historical_premiers" (
"rank" real,
"state" text,
"premier" text,
"party" text,
"assumed_office" text,
"left_office" text,
"total_time_in_office" text
);
Question: Premier Sir Charles Cowpe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "historical_premiers" (
"rank" real,
"state" text,
"premier" text,
"party" text,
"assumed_office" text,
"left_office" text,
"total_time_in_office" text
);
Question: What average rank of the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbon_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What power has A as the class, and 93.7 as t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbon_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What city of license has cbon-fm-11 as the i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbon_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What power has thunder bay as the city of li... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbon_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What identifier has 100000 watts as the powe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbon_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What identifier has 90.3 as the frequency?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbon_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What class has cbon-fm-23 as the identifier?... |
<|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 total number of medals for West Germany with more than 1 bronze me... |
<|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 Denmark's rank?
<|assistant|>
SELECT "rank" FROM "medals_table" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_a_b_2" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
Question: What country did ekaterina karsten row for with fa listed under notes?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_a_b_2" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
Question: What time was the race for the country of france?
<|assistant|>
SELECT "time" FROM "semifi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_a_b_2" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
Question: What time was the race for the country of france with fb listed under notes?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_a_b_2" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
Question: What is the sum of the ranks for bulgaria?
<|assistant|>
SELECT SUM("rank") FROM "semifina... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_a_b_2" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
Question: What is the rank of the new zealand team that had fb listed under notes?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tenth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
Question: Which Position has a Pick of 74?
<|assistant|>
SELECT "position" FROM "tenth_round" WHERE "p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tenth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
Question: Which Team has a Position of linebacker?
<|assistant|>
SELECT "team" FROM "tenth_round" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tenth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
Question: What is the Team for Stanford College?
<|assistant|>
SELECT "team" FROM "tenth_round" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tenth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
Question: What Pick does the College Southeastern Louisiana have?
<|assistant|>
SELECT "pick" FROM "te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "paracanoe" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Can you tell me the Gold that has the Total larger than 2, and the Bronze smaller... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "paracanoe" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Can you tell me the Nation that has the Bronze of 1, and the Gold of 0?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "paracanoe" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Can you tell me the average Total that has the Silver larger than 1, and the Bron... |
<|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 was the highest number of bronze medals when there were a total of 4 medal... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_8_teams_qualified_for_team_finals" (
"position" text,
"country" text,
"floor" real,
"pommel_horse" real,
"rings" real,
"vault" real,
"parallel_bars" real,
"horizontal_bar" real,
"tea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_8_teams_qualified_for_team_finals" (
"position" text,
"country" text,
"floor" real,
"pommel_horse" real,
"rings" real,
"vault" real,
"parallel_bars" real,
"horizontal_bar" real,
"tea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_8_teams_qualified_for_team_finals" (
"position" text,
"country" text,
"floor" real,
"pommel_horse" real,
"rings" real,
"vault" real,
"parallel_bars" real,
"horizontal_bar" real,
"tea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_february_21_2009" (
"draw" real,
"artist" text,
"song" text,
"televote_sms" text,
"place" real
);
Question: who is the artist when the televote/sms is 3.20%?
<|assistant|>
SELECT "artist"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_february_21_2009" (
"draw" real,
"artist" text,
"song" text,
"televote_sms" text,
"place" real
);
Question: what is the place when the televote/sms is 2.39%?
<|assistant|>
SELECT SUM("pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_february_21_2009" (
"draw" real,
"artist" text,
"song" text,
"televote_sms" text,
"place" real
);
Question: how many times was the televote/sms 2.39% and the place more than 9?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1933" (
"title" text,
"series" text,
"director" text,
"production_num" real,
"release_date" text
);
Question: Which Release date has a Production Num larger than 5888, and a Director of hugh ha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1933" (
"title" text,
"series" text,
"director" text,
"production_num" real,
"release_date" text
);
Question: How many production numbers have a Title of bosko in dutch?
<|assistant|>
SELECT SU... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1933" (
"title" text,
"series" text,
"director" text,
"production_num" real,
"release_date" text
);
Question: Which Release date has a Director of tom palmer, and a Production Num larger than 5... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1960s" (
"debut_year" real,
"player" text,
"games" real,
"goals" real,
"years_at_club" text
);
Question: How many Goals have Years at club of 1961–1966, and a Debut year larger than 1961?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1960s" (
"debut_year" real,
"player" text,
"games" real,
"goals" real,
"years_at_club" text
);
Question: Which Debut year has Goals of 0, and Years at club of 1963, and Games larger than 5?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1960s" (
"debut_year" real,
"player" text,
"games" real,
"goals" real,
"years_at_club" text
);
Question: Which Debut year has a Player of bob hayton, and Games smaller than 2?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medallists" (
"medal" text,
"name" text,
"sport" text,
"event" text,
"date" text
);
Question: What is the name of the player who competed in the Women's Individual Class 3 in Table Tennis?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medallists" (
"medal" text,
"name" text,
"sport" text,
"event" text,
"date" text
);
Question: What was the date of the Women's Individual Class 3?
<|assistant|>
SELECT "date" FROM "medallists" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medallists" (
"medal" text,
"name" text,
"sport" text,
"event" text,
"date" text
);
Question: What event did Rastislav Turecek participate in?
<|assistant|>
SELECT "event" FROM "medallists" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medallists" (
"medal" text,
"name" text,
"sport" text,
"event" text,
"date" text
);
Question: What sport did Miroslav Jambor Richard Csejtey participate in?
<|assistant|>
SELECT "sport" FROM "m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"draw" real,
"language" text,
"artist" text,
"song" text,
"english_translation" text,
"place" real,
"points" real
);
Question: Which Artist has a Draw of 6?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"draw" real,
"language" text,
"artist" text,
"song" text,
"english_translation" text,
"place" real,
"points" real
);
Question: Which Song has a Draw smaller than 7, and Points la... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bmi_awards" (
"year" real,
"category" text,
"nominee_s" text,
"episode" text,
"result" text
);
Question: What was the result for the years after 2001?
<|assistant|>
SELECT "result" FROM "bmi_aw... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bmi_awards" (
"year" real,
"category" text,
"nominee_s" text,
"episode" text,
"result" text
);
Question: Who was the nominee for 2005?
<|assistant|>
SELECT "nominee_s" FROM "bmi_awards" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "receiving" (
"name" text,
"gp_gs" text,
"receptions" real,
"long" real,
"avg_g" real
);
Question: what is the gp-gs when the receptions is more than 4, long is 55 and avg/g is 151?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "receiving" (
"name" text,
"gp_gs" text,
"receptions" real,
"long" real,
"avg_g" real
);
Question: what is the name when avg/g is 13.7?
<|assistant|>
SELECT "name" FROM "receiving" WHERE "avg_g"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "receiving" (
"name" text,
"gp_gs" text,
"receptions" real,
"long" real,
"avg_g" real
);
Question: How many times is avg/g 2?
<|assistant|>
SELECT COUNT("receptions") FROM "receiving" WHERE "avg... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "receiving" (
"name" text,
"gp_gs" text,
"receptions" real,
"long" real,
"avg_g" real
);
Question: what is the avg/g for john conner when long is less than 25?
<|assistant|>
SELECT SUM("avg_g") ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_undrafted_players" (
"original_nfl_team" text,
"player" text,
"pos" text,
"college" text,
"conf" text
);
Question: What conference did the player originally from the denver broncos play... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_undrafted_players" (
"original_nfl_team" text,
"player" text,
"pos" text,
"college" text,
"conf" text
);
Question: Who was the player from texas southern?
<|assistant|>
SELECT "player" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_undrafted_players" (
"original_nfl_team" text,
"player" text,
"pos" text,
"college" text,
"conf" text
);
Question: What conference did the player with the position of rb play in?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_undrafted_players" (
"original_nfl_team" text,
"player" text,
"pos" text,
"college" text,
"conf" text
);
Question: What was the original nfl team that the player was in from the midwest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_undrafted_players" (
"original_nfl_team" text,
"player" text,
"pos" text,
"college" text,
"conf" text
);
Question: What position did athlete play from Tennessee state?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"new_area_code" real,
"where" text,
"affected_area_codes" text,
"format" text,
"effective_date" text
);
Question: Which Affected area codes have an Effective date of august 30, 2014... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"new_area_code" real,
"where" text,
"affected_area_codes" text,
"format" text,
"effective_date" text
);
Question: Which Effective date has a Where of illinois, and Affected area cod... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"new_area_code" real,
"where" text,
"affected_area_codes" text,
"format" text,
"effective_date" text
);
Question: Which New area code is in nevada?
<|assistant|>
SELECT "new_area_co... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_line_series" (
"airing_date" text,
"english_title_chinese_title" text,
"number_of_episodes" real,
"theme_song_t_sub_theme_song_st" text,
"genre" text
);
Question: Which Airing date has a ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_line_series" (
"airing_date" text,
"english_title_chinese_title" text,
"number_of_episodes" real,
"theme_song_t_sub_theme_song_st" text,
"genre" text
);
Question: Which Genre has an Engli... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_champions_and_grand_finalists" (
"year" real,
"champion" text,
"grand_finalist" text,
"champion_team_members" text,
"grand_finalists" text
);
Question: who is the grand finalist when the g... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_champions_and_grand_finalists" (
"year" real,
"champion" text,
"grand_finalist" text,
"champion_team_members" text,
"grand_finalists" text
);
Question: what is the earliest year when the c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_champions_and_grand_finalists" (
"year" real,
"champion" text,
"grand_finalist" text,
"champion_team_members" text,
"grand_finalists" text
);
Question: what is the year when the champion t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_champions_and_grand_finalists" (
"year" real,
"champion" text,
"grand_finalist" text,
"champion_team_members" text,
"grand_finalists" text
);
Question: who are the grand finalists when the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the highest total number of medals for a team ranked smaller than 1 and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the nation that had more than 1 gold medal and a total of 62 medals?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the highest total medals when there were 0 gold medals and 1 silver?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "records" (
"world_record" text,
"snatch" text,
"oksana_slivenko_rus" text,
"123kg" text,
"santo_domingo_dominican" text
);
Question: What's the 123kg of the Total world record?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "records" (
"world_record" text,
"snatch" text,
"oksana_slivenko_rus" text,
"123kg" text,
"santo_domingo_dominican" text
);
Question: What's the world record when the 123kg was 275kg?
<|assistan... |
<|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 name for the assembly s... |
<|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 district has an assembly segme... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"elimination" text,
"wrestler" text,
"team" text,
"eliminated_by" text,
"elimination_move" text,
"time" text
);
Question: Who is Doug Basham's team?
<|assistant|>
SELECT "team" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"elimination" text,
"wrestler" text,
"team" text,
"eliminated_by" text,
"elimination_move" text,
"time" text
);
Question: What's Jorge Santana's elimination?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"elimination" text,
"wrestler" text,
"team" text,
"eliminated_by" text,
"elimination_move" text,
"time" text
);
Question: Who's the wrestler with an elimination of 1?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"elimination" text,
"wrestler" text,
"team" text,
"eliminated_by" text,
"elimination_move" text,
"time" text
);
Question: Who's the eliminated by when the elimination was 1?
<|assi... |
<|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 where the result was L 27-10 in a week before week 9?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nationaal_songfestival_2009_1_february_2" (
"draw" real,
"song" text,
"jury" real,
"televote" real,
"total" real,
"place" text
);
Question: What sum of draw had more than 22 in Jury and a Tel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nationaal_songfestival_2009_1_february_2" (
"draw" real,
"song" text,
"jury" real,
"televote" real,
"total" real,
"place" text
);
Question: What is the total of the jury that is 2nd place and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"manufacturer" text,
"transmission" text,
"engine_capacity" real,
"fuel_type" text,
"l_100km_urban_cold" real,
"l_100km_extra_urban" real,
"l_100km_combined" real,
"mpg_uk_urba... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"manufacturer" text,
"transmission" text,
"engine_capacity" real,
"fuel_type" text,
"l_100km_urban_cold" real,
"l_100km_extra_urban" real,
"l_100km_combined" real,
"mpg_uk_urba... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"manufacturer" text,
"transmission" text,
"engine_capacity" real,
"fuel_type" text,
"l_100km_urban_cold" real,
"l_100km_extra_urban" real,
"l_100km_combined" real,
"mpg_uk_urba... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"manufacturer" text,
"transmission" text,
"engine_capacity" real,
"fuel_type" text,
"l_100km_urban_cold" real,
"l_100km_extra_urban" real,
"l_100km_combined" real,
"mpg_uk_urba... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"manufacturer" text,
"transmission" text,
"engine_capacity" real,
"fuel_type" text,
"l_100km_urban_cold" real,
"l_100km_extra_urban" real,
"l_100km_combined" real,
"mpg_uk_urba... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"manufacturer" text,
"transmission" text,
"engine_capacity" real,
"fuel_type" text,
"l_100km_urban_cold" real,
"l_100km_extra_urban" real,
"l_100km_combined" real,
"mpg_uk_urba... |
<|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 was the score on 2010-07-13 when Ab... |
<|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 is the location on 2008-06-17 when ... |
<|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 is the assist/pass on 2008-01-16 wh... |
<|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 is the result at match reports?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"season" text,
"games" text,
"lost" text,
"tied" text,
"points" text,
"goals_for" text,
"goals_against" text,
"standing" text
);
Question: What's the points if the goals... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"season" text,
"games" text,
"lost" text,
"tied" text,
"points" text,
"goals_for" text,
"goals_against" text,
"standing" text
);
Question: What are the points if the goa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"season" text,
"games" text,
"lost" text,
"tied" text,
"points" text,
"goals_for" text,
"goals_against" text,
"standing" text
);
Question: What are the games with an Inv... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"season" text,
"games" text,
"lost" text,
"tied" text,
"points" text,
"goals_for" text,
"goals_against" text,
"standing" text
);
Question: What are the goals for a lost ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"season" text,
"games" text,
"lost" text,
"tied" text,
"points" text,
"goals_for" text,
"goals_against" text,
"standing" text
);
Question: What's the season that had a l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_8_appearances" (
"season" text,
"event_type" text,
"location" text,
"format" text,
"date" text,
"rank" real
);
Question: What event did he compete in at Taipei?
<|assistant|>
SELECT "form... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_8_appearances" (
"season" text,
"event_type" text,
"location" text,
"format" text,
"date" text,
"rank" real
);
Question: In what season did he compete in the Grand Prix in Kuala Lumpur?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
Question: What is the position of the player with a pick less than 3 from team san diego?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elite_men" (
"year" text,
"location" text,
"gold" text,
"silver" text,
"bronze" text
);
Question: What location did david mccann receive a siver and morgan fox win the gold?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elite_men" (
"year" text,
"location" text,
"gold" text,
"silver" text,
"bronze" text
);
Question: Who received the bronze in 2011?
<|assistant|>
SELECT "bronze" FROM "elite_men" WHERE "year"='2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elite_men" (
"year" text,
"location" text,
"gold" text,
"silver" text,
"bronze" text
);
Question: Who received the silver in 2006?
<|assistant|>
SELECT "silver" FROM "elite_men" WHERE "year"='2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
);
Question: What is the name for the club Liaoning in 2008?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
);
Question: What was the spike for the Army Club in 2008?
<|assistant|>
SE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.