text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nominations_table" (
"week_1" text,
"week_3" text,
"week_4" text,
"week_6" text,
"week_7" text,
"week_8" text,
"week_9" text,
"week_10" text,
"final_week_12" text
);
Question: Who did t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nominations_table" (
"week_1" text,
"week_3" text,
"week_4" text,
"week_6" text,
"week_7" text,
"week_8" text,
"week_9" text,
"week_10" text,
"final_week_12" text
);
Question: Who did t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
Question: What is t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
Question: Wincheste... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
Question: What is t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
Question: What coun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"series" text
);
Question: What is the lowest game when the score is 102-104?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"series" text
);
Question: what is the score for game 4?
<|assistant|>
SELECT "score" FROM "pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"series" text
);
Question: what is the series for game 4?
<|assistant|>
SELECT "series" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_results_2009" (
"party" text,
"burnley" real,
"chorley" real,
"fylde" real,
"hyndburn" real,
"lancaster" real,
"pendle" real,
"preston" real,
"ribble_valley" real,
"rossenda... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_results_2009" (
"party" text,
"burnley" real,
"chorley" real,
"fylde" real,
"hyndburn" real,
"lancaster" real,
"pendle" real,
"preston" real,
"ribble_valley" real,
"rossenda... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_results_2009" (
"party" text,
"burnley" real,
"chorley" real,
"fylde" real,
"hyndburn" real,
"lancaster" real,
"pendle" real,
"preston" real,
"ribble_valley" real,
"rossenda... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_results_2009" (
"party" text,
"burnley" real,
"chorley" real,
"fylde" real,
"hyndburn" real,
"lancaster" real,
"pendle" real,
"preston" real,
"ribble_valley" real,
"rossenda... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "italy" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
Question: What are the years that have un posto al sole as the soap opera, with riccardo polizzy car... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "italy" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
Question: What years have a duration of 18 years, and patrizio rispo as the actor?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "italy" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
Question: What are the years that have a duration of 15 years and giulia poggi as the character?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "italy" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
Question: What years have claudia ruffo as the actor?
<|assistant|>
SELECT "years" FROM "italy" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "italy" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
Question: What is the duration that has pietro genuardi as the actor?
<|assistant|>
SELECT "duration... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "italy" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
Question: What is the soap opera that has a duration of 13 years, with marina giulia cavalli as the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What is the lowest attendance for December 14, 1958 after week 12?
<|assistant|>
SELECT MIN(... |
<|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 total for the week in the game against the Chicago Bears
<|assistant|>
SELECT CO... |
<|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 highest attendance for December 14, 1958 for after week 12
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_16_10_6" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is the Outcome of the Match played afte... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_16_10_6" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is the Outcome of the match with a Scor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: Who has rank 5?
<|assistant|>
SELECT "name" FROM "semifinal_2" WHERE "rank"=5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: Which nationality has rank 4?
<|assistant|>
SELECT "nationality" FROM "semifinal_2" WHERE "ran... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nominees" (
"year_ceremony" text,
"category" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language" text,
"result" text
);
Question: What title was used in the nominati... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nominees" (
"year_ceremony" text,
"category" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language" text,
"result" text
);
Question: What language was the film Pelle Er... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nominees" (
"year_ceremony" text,
"category" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language" text,
"result" text
);
Question: What title was used in the nominati... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nominees" (
"year_ceremony" text,
"category" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language" text,
"result" text
);
Question: What title was used in the nominati... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australia" (
"player" text,
"test_debut" text,
"year" real,
"cross_code_debut" text,
"date" text,
"position" text
);
Question: What date has a Position of back, later than 1964, and a Test de... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australia" (
"player" text,
"test_debut" text,
"year" real,
"cross_code_debut" text,
"date" text,
"position" text
);
Question: What is the position earlier than 1907, with a cross-code debut ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australia" (
"player" text,
"test_debut" text,
"year" real,
"cross_code_debut" text,
"date" text,
"position" text
);
Question: What is the cross-code debut later than 1958 for Dick Thornett?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australia" (
"player" text,
"test_debut" text,
"year" real,
"cross_code_debut" text,
"date" text,
"position" text
);
Question: What position has a Cross-code debut of 1st ru test v ireland?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a_b_first_round" (
"time" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text
);
Question: What was the time for the match with away team Shatin?
<|assistant|>
SELECT "time" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a_b_first_round" (
"time" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text
);
Question: What was the time for the match with away team Convoy Sun Hei Team A?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a_b_first_round" (
"time" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text
);
Question: What was the away team for the match that had a time of 18:30?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a_b_first_round" (
"time" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text
);
Question: What was the time for the match with away team Mutual Team B?
<|assistant|>
SELECT "t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a_b_first_round" (
"time" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text
);
Question: What was the time for the match that had a a home team of HKSSF?
<|assistant|>
SELECT... |
<|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 people attended on december 26, 1982?
<|assistant|>
SELECT "attendance" FROM "sched... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_ladder" (
"wimmera_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: How many Byes have Wins smaller than 11, and a Wimmera FL of minyip murtoa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_ladder" (
"wimmera_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: Which Losses have an Against smaller than 1018, and Wins smaller than 14?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_ladder" (
"wimmera_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: Which Byes have an Against larger than 1018, and a Wimmera FL of horsham d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_ladder" (
"wimmera_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: Which Losses have a Wimmera FL of minyip murtoa?
<|assistant|>
SELECT AVG(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_ladder" (
"wimmera_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: Which Against has Losses smaller than 5, and a Wimmera FL of warrack eagle... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_fee" text
);
Question: Which country has Spence in the name section?
<|assistant|>
SELECT "country" FROM "out" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_fee" text
);
Question: Which country has the status of transferred, moving to of released, and Solano as the liste... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_fee" text
);
Question: What is the transfer fee for the country that has the name McCartney listed?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_fee" text
);
Question: What is the name listed for the country that has a status of loaned and a moving to listed ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_fee" text
);
Question: What is the transfer fee for the country of Nir?
<|assistant|>
SELECT "transfer_fee" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
Question: Who had the fastest lap when adam christodoulou was ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
Question: What date was the circuit, snetterton, when riki chr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
Question: who had the pole position at rockingham circuit with... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_table" (
"club" text,
"total_points" text,
"bonus_points" text,
"match_points" text,
"games" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"diff" te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_table" (
"club" text,
"total_points" text,
"bonus_points" text,
"match_points" text,
"games" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"diff" te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_table" (
"club" text,
"total_points" text,
"bonus_points" text,
"match_points" text,
"games" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"diff" te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_table" (
"club" text,
"total_points" text,
"bonus_points" text,
"match_points" text,
"games" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"diff" te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_table" (
"club" text,
"total_points" text,
"bonus_points" text,
"match_points" text,
"games" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"diff" te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_table" (
"club" text,
"total_points" text,
"bonus_points" text,
"match_points" text,
"games" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"diff" te... |
<|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: How many constituents does udaipura... |
<|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 lane was Henrique Barbosa in?
<|assistant|>
SELECT COUNT("lane") FROM "heats" WHERE "name"='hen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What game was before 2010 and was a role-playing game?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What was the platform of Red Dead Redemption?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: Who was the developer of Wii?
<|assistant|>
SELECT "developer_s" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What year was The Walking Dead?
<|assistant|>
SELECT COUNT("year") ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What was the platform when the developer was Telltale Games?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What is the game of developer Rockstar Games?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "and_surrounding_islands" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
Question: Which Elevation (m) has a Prominence (m) of 2,876, and a Col (m) large... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "and_surrounding_islands" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
Question: How much Elevation (m) has a Prominence (m) larger than 2,876?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: When was millwall the home team?
<|assistant|>
SELECT "date" FROM "sixth_round_pr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What was the score when Arsenal was the away team?
<|assistant|>
SELECT "score" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: Which away team had a Score of 2β0?
<|assistant|>
SELECT "away_team" FROM "sixth_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: When was Arsenal was the away team?
<|assistant|>
SELECT "date" FROM "sixth_round... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "116_seats_needed_for_a_majority" (
"date_released" text,
"polling_institute" text,
"social_democratic" text,
"socialist" text,
"green_communist" text,
"democratic_and_social_centre" text,
"l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "116_seats_needed_for_a_majority" (
"date_released" text,
"polling_institute" text,
"social_democratic" text,
"socialist" text,
"green_communist" text,
"democratic_and_social_centre" text,
"l... |
<|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 most silver medals when the total is more than 2 medals, and with a... |
<|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 fewest gold medals when there is 0 bronze medals, and the rank is 1... |
<|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 largest amount of bronze medals when the silver medals are less tha... |
<|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: With silver medals less than 1, and total medals less than 2, what is the most ... |
<|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 weight for the 2008 club Dynamo Moscow?
<|assistan... |
<|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 spike for the 2008 club Zenit Kazan?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"millewa" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: Can you tell me the total number of Byes that has the Wins of 14, and the Los... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"millewa" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: Can you tell me the average Wins that has the Against of 1132, and the Losses... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What was the date for the game that had a Location/Attendance of th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: Who was the opponent when they played at the Skydome?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What was the record on January 17?
<|assistant|>
SELECT "record" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What was the location and attendance when the record was 19-17?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"school" text,
"city" text,
"mascot" text,
"county" text,
"year_joined" real,
"previous_conference" text,
"year_left" real,
"conference_joined" text
);
Question: What ci... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"school" text,
"city" text,
"mascot" text,
"county" text,
"year_joined" real,
"previous_conference" text,
"year_left" real,
"conference_joined" text
);
Question: What is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"school" text,
"city" text,
"mascot" text,
"county" text,
"year_joined" real,
"previous_conference" text,
"year_left" real,
"conference_joined" text
);
Question: What wa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"school" text,
"city" text,
"mascot" text,
"county" text,
"year_joined" real,
"previous_conference" text,
"year_left" real,
"conference_joined" text
);
Question: What is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"school" text,
"city" text,
"mascot" text,
"county" text,
"year_joined" real,
"previous_conference" text,
"year_left" real,
"conference_joined" text
);
Question: What co... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"school" text,
"city" text,
"mascot" text,
"county" text,
"year_joined" real,
"previous_conference" text,
"year_left" real,
"conference_joined" text
);
Question: What is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hungary" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
Question: What is the duration of the character Bartha Zsolt?
<|assistant|>
SELECT "duration" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"name" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
Question: How many losses have jake sharp as the name, with a long less than 30?
<|assistant|>
SELECT COUNT("loss"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"name" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
Question: What is the average long that has 1581 as a gain, with a loss less than 308?
<|assistant|>
SELECT AVG("l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"name" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
Question: How many gains have a long greater than 8, with avg/g of 124.9?
<|assistant|>
SELECT SUM("gain") FROM "r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"name" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
Question: How many longs have a gain less than 379, and 0.8 as an avg/g?
<|assistant|>
SELECT SUM("long") FROM "ru... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"name" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
Question: What is the lowest gain that has toben opurum as the name, with an avg/g less than 54.1?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
Question: Which Driver has a Grid smaller than 17, and Points larger than 0, and a Lapse of... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.