text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the competition when the score was 3-0?
<|assistant|>
SELECT "competition... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2002_nfl_draft" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Akin Ayodele drafted before round 7 plays what position?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2002_nfl_draft" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the total overall for the pick that went before round 4, who... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2002_nfl_draft" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the pick number average for the player who was drafted befor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chicago_black_hawks_4_new_york_rangers_3" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What visiting team played at the home of the Chicago Black Hawks w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chicago_black_hawks_4_new_york_rangers_3" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What home team has a record of 4-3?
<|assistant|>
SELECT "home" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chicago_black_hawks_4_new_york_rangers_3" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What visiting team has a record of 4-3?
<|assistant|>
SELECT "visi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "yellow_cards" (
"name" text,
"championship" real,
"league_cup" real,
"fa_cup" real,
"total" real
);
Question: What is the highest league up with less than 3 championships, a total less than 2, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "yellow_cards" (
"name" text,
"championship" real,
"league_cup" real,
"fa_cup" real,
"total" real
);
Question: What is the average total for less than 1 championship?
<|assistant|>
SELECT AVG("t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "yellow_cards" (
"name" text,
"championship" real,
"league_cup" real,
"fa_cup" real,
"total" real
);
Question: What i the total number of championships less than 2, and a league cup larger than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What home team has a score of 2–1, when the away team was Telford United?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What was the score when the way team was Wrexham?
<|assistant|>
SELECT "score" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is the home team when the Tie no is 1?
<|assistant|>
SELECT "home_team" FRO... |
<|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 Eduardo Romero's score?
<|assistant|>
SELECT "score" FROM "third_round" WHERE "play... |
<|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: Where was the score 67-71-70=208?
<|assistant|>
SELECT "place" FROM "third_round" WHERE "sco... |
<|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 when Fred Couples played in the United States and placed t9?
<|assistant|... |
<|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 country does Gary Koch play for?
<|assistant|>
SELECT "country" FROM "third_round" WHER... |
<|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 plays for Zimbabwe?
<|assistant|>
SELECT "player" FROM "third_round" WHERE "country"='zi... |
<|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 To par when the place was 4?
<|assistant|>
SELECT "to_par" FROM "third_round" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fiba_world_olympic_qualifying_tournament" (
"player" text,
"height" real,
"position" text,
"year_born_age" text,
"current_club" text
);
Question: What is the current club with a position of sg/... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fiba_world_olympic_qualifying_tournament" (
"player" text,
"height" real,
"position" text,
"year_born_age" text,
"current_club" text
);
Question: What year was Rowan Barrett born?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fiba_world_olympic_qualifying_tournament" (
"player" text,
"height" real,
"position" text,
"year_born_age" text,
"current_club" text
);
Question: What is the lowest height for Rans Brempong?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_premier_league" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: When was the result 0–3?
<|assistant|>
SELECT "date" FROM "fa_premier_league" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the result of the match on 9 September 2009?
<|assistant|>
SELECT "result" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "loan_out" (
"date_from" text,
"date_to" text,
"pos" text,
"name" text,
"moving_to" text
);
Question: What is the name of the player that was loaned out on 13 August 2008 ?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "loan_out" (
"date_from" text,
"date_to" text,
"pos" text,
"name" text,
"moving_to" text
);
Question: When was febian brandy loaned out until, when was loaned out on 2 february 2009.?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "loan_out" (
"date_from" text,
"date_to" text,
"pos" text,
"name" text,
"moving_to" text
);
Question: When was james chester loaned out until ?
<|assistant|>
SELECT "date_to" FROM "loan_out" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "loan_out" (
"date_from" text,
"date_to" text,
"pos" text,
"name" text,
"moving_to" text
);
Question: Where did the player loaned out on 27 november 2008 move to ?
<|assistant|>
SELECT "moving_t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "loan_out" (
"date_from" text,
"date_to" text,
"pos" text,
"name" text,
"moving_to" text
);
Question: When was ron-robert zieler loaned out until ?
<|assistant|>
SELECT "date_to" FROM "loan_out"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "loan_out" (
"date_from" text,
"date_to" text,
"pos" text,
"name" text,
"moving_to" text
);
Question: Where did the player in Pos mf, move to until 30 june 2009 ?
<|assistant|>
SELECT "moving_to... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"name" text,
"club" text,
"date_of_departure" text,
"replacement" text,
"date_of_appointment" text
);
Question: What is the name of the manager who was replaced by michael... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"name" text,
"club" text,
"date_of_departure" text,
"replacement" text,
"date_of_appointment" text
);
Question: What is the club the used aykut kocaman as the replacement?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"name" text,
"club" text,
"date_of_departure" text,
"replacement" text,
"date_of_appointment" text
);
Question: What is the date of appointment of nejat biyedić?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"streak" text
);
Question: When did they play at the wachovia center?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"streak" text
);
Question: What game number was played at amway arena?
<|assi... |
<|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: How many medals were won total for the country that won 1 silver and was ranked... |
<|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: How many silvers did the country with more than 0 gold and a rank above 1 win t... |
<|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: How many bronzes were won by the country with a total higher than 5?
<|assistan... |
<|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: How many bronzes were won for the country that had a larger than 3 rank and a s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_goals" (
"name" text,
"years" text,
"mls_cup" real,
"u_s_open_cup" real,
"concacaf" real,
"other" real,
"total" real
);
Question: What is the highest value for Other that has CONCACAF ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "municipalities" (
"name" text,
"area_km" real,
"pop" real,
"pop_area_1_km" real,
"no_p" real,
"no_c_no_t" text,
"subregion" text
);
Question: Which Subregion has a No P. of 4, and a Pop/Are... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "municipalities" (
"name" text,
"area_km" real,
"pop" real,
"pop_area_1_km" real,
"no_p" real,
"no_c_no_t" text,
"subregion" text
);
Question: Which Pop/Area (1/km²) has a No P. larger than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "municipalities" (
"name" text,
"area_km" real,
"pop" real,
"pop_area_1_km" real,
"no_p" real,
"no_c_no_t" text,
"subregion" text
);
Question: Which Area (km²) is the lowest one that has a P... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: Who was the home team on 4 February 1987 when Luton Town was away team and there... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What was the score on 31 January 1987 with tie number 1?
<|assistant|>
SELECT "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: Who was the away team on 31 January 1987 when the home team was Wimbledon?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notes" (
"rank" text,
"country" text,
"highest_point" text,
"height_m" real,
"height_ft" real
);
Question: How high is Macedonia's highest point?
<|assistant|>
SELECT "height_ft" FROM "notes" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bush_battles" (
"battle_no" real,
"broadcast_date" text,
"name_of_battle" text,
"theme" text,
"celebrities_taking_part" text,
"winner" text,
"runner_up" text,
"notes" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bush_battles" (
"battle_no" real,
"broadcast_date" text,
"name_of_battle" text,
"theme" text,
"celebrities_taking_part" text,
"winner" text,
"runner_up" text,
"notes" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: what is the round when the position is (c)?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: what is the round for jake gardiner?
<|assistant|>
SELECT AV... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: what is the college/junior/club team (league) when the round... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: what is the position when the round is higher than 3, the na... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: what is the college/junior/club team (league) when the posit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_ladder" (
"south_west_dfl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: When the team Heathmere of the South West DFL won more than 11 games, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_ladder" (
"south_west_dfl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the most games lost when the against is greater than 1401, and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_ladder" (
"south_west_dfl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the maximum draws when less than 2514 is the against, and less... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_ladder" (
"south_west_dfl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the wins average when 17 games were lost?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stadium_and_locations" (
"club" text,
"short_name" text,
"city" text,
"stadium" text,
"capacity" real
);
Question: What stadium is in the city of Debrecen?
<|assistant|>
SELECT "stadium" FROM "... |
<|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 number of silver when rank was 5, and a bronze was smaller than 14?... |
<|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 highest bronze number when silver is 0, and the total is smaller th... |
<|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 nation was Argentina, and a Goldwas smaller than 0?
... |
<|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 nation when bronze is less than 7, gold is larger than 0, total is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_premier_league" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real,
"league_position" text
);
Question: What date was the game against manchester city when t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_premier_league" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real,
"league_position" text
);
Question: What is the result F-A of the game on 6 march 1993?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_premier_league" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real,
"league_position" text
);
Question: What is the result F-A of the game on 3 may 1993?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is Tie no, when Date is "18 Nov 1989", and when Home Team is "Doncaster Rove... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is Score, when Away Team is "Yeovil Town"?
<|assistant|>
SELECT "score" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is Home Team, when Tie no is "27"?
<|assistant|>
SELECT "home_team" FROM "fi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is Date, when Tie no is "37"?
<|assistant|>
SELECT "date" FROM "first_round_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is Home Team, when Date is "22 Nov 1989", and when Away Team is "Bath City"?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1970s" (
"year" text,
"channel" text,
"play_by_play" text,
"color_commentator_s" text,
"studio_host" text
);
Question: What year was the play-by-play for Don Earle?
<|assistant|>
SELECT "year" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: What is Tom Kite with a Score of 68's To Par?
<|assistant|>
SELECT "to_par" FROM "first_roun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: What is Tom Kite's Place?
<|assistant|>
SELECT "place" FROM "first_round" WHERE "player"='to... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "televoting_results" (
"draw" real,
"televotes" text,
"televote_points" text,
"jury_points" text,
"total" text,
"final_points" text
);
Question: What is the televote points for 0 jury points a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missouri" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
);
Question: What district was a republican first elected in 2000?
<|assistant|>
SELECT "distri... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missouri" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
);
Question: In what district was incumbent Russ Carnahan elected after 2000?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_fa_cup_third_fourth_place_matche" (
"season" text,
"date" text,
"winner" text,
"loser" text,
"score" text,
"venue" text,
"attendance" text
);
Question: For which venue did Leicester... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_fa_cup_third_fourth_place_matche" (
"season" text,
"date" text,
"winner" text,
"loser" text,
"score" text,
"venue" text,
"attendance" text
);
Question: What season did Stoke City wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_fa_cup_third_fourth_place_matche" (
"season" text,
"date" text,
"winner" text,
"loser" text,
"score" text,
"venue" text,
"attendance" text
);
Question: What was the attendance for S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_fa_cup_third_fourth_place_matche" (
"season" text,
"date" text,
"winner" text,
"loser" text,
"score" text,
"venue" text,
"attendance" text
);
Question: What season did Wolverhampton... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "broadcast_translators_of_kjth" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"facility_id" real,
"erp_w" real,
"height_m_ft" text,
"class" text,
"fcc_info" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "broadcast_translators_of_kjth" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"facility_id" real,
"erp_w" real,
"height_m_ft" text,
"class" text,
"fcc_info" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "original_broadway_production" (
"year" real,
"award_ceremony" text,
"category" text,
"nominee" text,
"result" text
);
Question: What year was jack cole nominated?
<|assistant|>
SELECT "year" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "original_broadway_production" (
"year" real,
"award_ceremony" text,
"category" text,
"nominee" text,
"result" text
);
Question: What award ceremony was howard bay and patton campbell nominated?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is Visitor, when Date is "May 9"?
<|assistant|>
SELECT "visit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is Score, when Home is "Montreal Canadiens", and when Date is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is Score, when Date is "May 11"?
<|assistant|>
SELECT "score"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is Visitor, when Home is "Chicago Black Hawks", and when Date... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is Score, when Record is "2-0"?
<|assistant|>
SELECT "score" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "competitive" (
"date" text,
"tournament" text,
"round" text,
"ground" text,
"opponent" text,
"score_1" text
);
Question: Which tournament included the round played on 14 May?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "competitive" (
"date" text,
"tournament" text,
"round" text,
"ground" text,
"opponent" text,
"score_1" text
);
Question: Which round was played on 10 May?
<|assistant|>
SELECT "round" FROM "c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "participants" (
"draw" real,
"language" text,
"artist" text,
"song" text,
"english_translation" text,
"national_final" text,
"place" real,
"points" real
);
Question: what is the language ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "participants" (
"draw" real,
"language" text,
"artist" text,
"song" text,
"english_translation" text,
"national_final" text,
"place" real,
"points" real
);
Question: what is the highest p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "participants" (
"draw" real,
"language" text,
"artist" text,
"song" text,
"english_translation" text,
"national_final" text,
"place" real,
"points" real
);
Question: what is the lowest pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "participants" (
"draw" real,
"language" text,
"artist" text,
"song" text,
"english_translation" text,
"national_final" text,
"place" real,
"points" real
);
Question: what is the language ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "participants" (
"draw" real,
"language" text,
"artist" text,
"song" text,
"english_translation" text,
"national_final" text,
"place" real,
"points" real
);
Question: what is the song when... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "original_broadway_production" (
"year" real,
"award" text,
"category" text,
"nominee" text,
"result" text
);
Question: What is Category, when Result is "Nominated", when Award is "Drama Desk Aw... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "original_broadway_production" (
"year" real,
"award" text,
"category" text,
"nominee" text,
"result" text
);
Question: What is Category, when Result is "Won", and when Nominee is "Bebe Neuwirth... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "original_broadway_production" (
"year" real,
"award" text,
"category" text,
"nominee" text,
"result" text
);
Question: What is the total number of Year, when Result is "Nominated", when Categor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.