text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"district" real,
"incumbent" text,
"2008_status" text,
"democratic" text,
"republican" text
);
Question: Which Incumbent has a Republican of dan mansell?
<|assistant|>
SELECT "incumb... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"district" real,
"incumbent" text,
"2008_status" text,
"democratic" text,
"republican" text
);
Question: Which Democratic has a District smaller than 7, and a Republican of dan manse... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"streak" text
);
Question: Which record has a score of 135–134?
<|assistant|>
SELECT "record" FROM "playo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_six_nations_championship_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
);
Question: Name the position for the player born 2 november... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_six_nations_championship_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
);
Question: Name the club/province for steve borthwick
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "apothecaries_system" (
"unit" text,
"russian" text,
"translation" text,
"ratio" real,
"metric_value" text,
"avoirdupois_value" text,
"ordinary_value" text
);
Question: What is the largest r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "apothecaries_system" (
"unit" text,
"russian" text,
"translation" text,
"ratio" real,
"metric_value" text,
"avoirdupois_value" text,
"ordinary_value" text
);
Question: What unit has an Avoi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "apothecaries_system" (
"unit" text,
"russian" text,
"translation" text,
"ratio" real,
"metric_value" text,
"avoirdupois_value" text,
"ordinary_value" text
);
Question: Which translation had... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "apothecaries_system" (
"unit" text,
"russian" text,
"translation" text,
"ratio" real,
"metric_value" text,
"avoirdupois_value" text,
"ordinary_value" text
);
Question: What ordinary value h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "apothecaries_system" (
"unit" text,
"russian" text,
"translation" text,
"ratio" real,
"metric_value" text,
"avoirdupois_value" text,
"ordinary_value" text
);
Question: Which ordinary value ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "apothecaries_system" (
"unit" text,
"russian" text,
"translation" text,
"ratio" real,
"metric_value" text,
"avoirdupois_value" text,
"ordinary_value" text
);
Question: Which Avoirdupois val... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_auto_racing_tracks_in_the_united" (
"track" text,
"city" text,
"state" text,
"opened" text,
"major_series" text,
"turns" text
);
Question: What is the number of turns for the City of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_auto_racing_tracks_in_the_united" (
"track" text,
"city" text,
"state" text,
"opened" text,
"major_series" text,
"turns" text
);
Question: What is the State with the imsa gt as the Ma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_auto_racing_tracks_in_the_united" (
"track" text,
"city" text,
"state" text,
"opened" text,
"major_series" text,
"turns" text
);
Question: Where is the track located with 18 turns?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_auto_racing_tracks_in_the_united" (
"track" text,
"city" text,
"state" text,
"opened" text,
"major_series" text,
"turns" text
);
Question: What is the State with the trans-am Major Se... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_auto_racing_tracks_in_the_united" (
"track" text,
"city" text,
"state" text,
"opened" text,
"major_series" text,
"turns" text
);
Question: Where is the track located that opened in 19... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_auto_racing_tracks_in_the_united" (
"track" text,
"city" text,
"state" text,
"opened" text,
"major_series" text,
"turns" text
);
Question: What shows for opened for the Nascar Major S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scorers" (
"player" text,
"league" real,
"malaysia_cup" real,
"fa_cup" real,
"total" real
);
Question: What is the lowest number of FA cups associated with 0 malaysia cups?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scorers" (
"player" text,
"league" real,
"malaysia_cup" real,
"fa_cup" real,
"total" real
);
Question: How many league cups for m patrick maria with 0 total?
<|assistant|>
SELECT SUM("league") ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scorers" (
"player" text,
"league" real,
"malaysia_cup" real,
"fa_cup" real,
"total" real
);
Question: What is the highest number of Malaysia Cups for a player with over 0 leagues and under 0 F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"date" text,
"host" text,
"agg" text,
"visitor" text,
"ground" text,
"attendance" real,
"tournament" text
);
Question: What is the tournament on July 29 hosted by SK Brann?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"date" text,
"host" text,
"agg" text,
"visitor" text,
"ground" text,
"attendance" real,
"tournament" text
);
Question: Who is the visitor of the match on July 29?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"streak" text
);
Question: What is the game that has the phoenix suns as the opponent played again... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: What is the attendance of the game on 2007-04-07 with t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What day is their record 13-15?
<|assistant|>
SELECT "date" FROM "game_log" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Who did they play when dickey (0-1) recorded the loss?
<|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,
"time_et" text,
"game_site" text,
"result" text,
"record" text
);
Question: What is the result of the game of heinz field with a recor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"time_et" text,
"game_site" text,
"result" text,
"record" text
);
Question: What opponent has a record of 6-9?
<|assistant|>
SELECT "o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"time_et" text,
"game_site" text,
"result" text,
"record" text
);
Question: What is the week with a record of 2-1?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What City of license has a Frequency MHz smaller than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What is the Call sign for the ERP W 19?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What FCC info is listed for the ERP W of 2?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What Call sign shows an ERP W of 80?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What is the Class for the ERP W of more than 2 and the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"time" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: what team lost on july 30
<|assistant|>
SELECT "loss" FROM "game_log" WHERE "date"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_2011" (
"date" text,
"site" text,
"sport" text,
"winning_team" text,
"series" text
);
Question: What sport was played on February 25, 2011?
<|assistant|>
SELECT "sport" FROM "2010_2011" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_2011" (
"date" text,
"site" text,
"sport" text,
"winning_team" text,
"series" text
);
Question: Where was the sport played on September 10, 2010?
<|assistant|>
SELECT "site" FROM "2010_201... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_wins_38" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
);
Question: What type of surface was played on when julie halard... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_results_by_season" (
"year" text,
"played" real,
"wins" real,
"losses" real,
"no_result" real,
"pct_win" text
);
Question: How many Played has a % Win of 50.00%, and Losses of 1, a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_results_by_season" (
"year" text,
"played" real,
"wins" real,
"losses" real,
"no_result" real,
"pct_win" text
);
Question: WHAT kind of No Result has Wins smaller than 2, and Losse... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_results_by_season" (
"year" text,
"played" real,
"wins" real,
"losses" real,
"no_result" real,
"pct_win" text
);
Question: How many Played that has Losses of 6, and Wins larger tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_results_by_season" (
"year" text,
"played" real,
"wins" real,
"losses" real,
"no_result" real,
"pct_win" text
);
Question: What kind of No Result has a % Win of 100.00% and a Pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What is the Loss has an Attendance more than 43,095 and a Record of 31–29?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Which Loss has a Score of 6–5?
<|assistant|>
SELECT "loss" FROM "game_log" W... |
<|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" text,
"record" text
);
Question: Date of wed. nov. 13 had how many number of games?
<|assistant|>
SELECT COUNT(... |
<|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" text,
"record" text
);
Question: Record of 6–1 had what score?
<|assistant|>
SELECT "score" FROM "game_log" WHE... |
<|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" text,
"record" text
);
Question: Score of 118–114, and a Record of 8–1 is what lowest game?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_calendar" (
"date" text,
"country" text,
"circuit" text,
"sprint_winner" text,
"feature_winner" text,
"report" text
);
Question: Which circuit was in Great Britain with Ireland as the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "match_details" (
"date" text,
"league_position" text,
"opponents" text,
"venue" text,
"result" text,
"score_f_a" text,
"attendance" real
);
Question: How many were in attendance when the le... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "match_details" (
"date" text,
"league_position" text,
"opponents" text,
"venue" text,
"result" text,
"score_f_a" text,
"attendance" real
);
Question: How many were in attendance for a resul... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "match_details" (
"date" text,
"league_position" text,
"opponents" text,
"venue" text,
"result" text,
"score_f_a" text,
"attendance" real
);
Question: What is the largest number in attendanc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "norfolk_state" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" real,
"class" text,
"hometown" text,
"games" real
);
Question: What is the number of Justin Jeffries?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "norfolk_state" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" real,
"class" text,
"hometown" text,
"games" real
);
Question: How many games has number 61 played in... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "norfolk_state" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" real,
"class" text,
"hometown" text,
"games" real
);
Question: What is the name of the player who is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "norfolk_state" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" real,
"class" text,
"hometown" text,
"games" real
);
Question: What is the hometown of number 40?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "october" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What date is the visitor Ottawa?
<|assistant|>
SELECT "date" FROM "october" WHERE "visitor"='ottawa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "expulsion_proceedings_not_resulting_in_e" (
"year" real,
"senator" text,
"party" text,
"state" text,
"result" text
);
Question: what is the sum of the year in rhode island
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "expulsion_proceedings_not_resulting_in_e" (
"year" real,
"senator" text,
"party" text,
"state" text,
"result" text
);
Question: what is the senator in kentucky
<|assistant|>
SELECT "senator" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rail" (
"train_number" text,
"train_name" text,
"origin" text,
"destination" text,
"frequency_inbound_outbound" text
);
Question: What is the destination of the rail with Dhanbad as the origin?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rail" (
"train_number" text,
"train_name" text,
"origin" text,
"destination" text,
"frequency_inbound_outbound" text
);
Question: What is the destination of the Garib nwaz exp train?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rail" (
"train_number" text,
"train_name" text,
"origin" text,
"destination" text,
"frequency_inbound_outbound" text
);
Question: What is the train name of the rail with a daily frequency and a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rail" (
"train_number" text,
"train_name" text,
"origin" text,
"destination" text,
"frequency_inbound_outbound" text
);
Question: What is the train name of the rail with a daily frequency and J... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rail" (
"train_number" text,
"train_name" text,
"origin" text,
"destination" text,
"frequency_inbound_outbound" text
);
Question: What is the frequency of the rail with an origin of Ranchi?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rail" (
"train_number" text,
"train_name" text,
"origin" text,
"destination" text,
"frequency_inbound_outbound" text
);
Question: What is the frequency of the train named Garib nwaz exp?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_14_2009_2010" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: Name the segment c with episode ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_14_2009_2010" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: Name the segment c for ski goggl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"bats" text,
"throws" text,
"position" text
);
Question: In which position did Steve play first?
<|assistant|>
SELECT "position" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"bats" text,
"throws" text,
"position" text
);
Question: Which bats did mitchell play first?
<|assistant|>
SELECT "bats" FROM "pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"bats" text,
"throws" text,
"position" text
);
Question: When is mr. ryan's DOB?
<|assistant|>
SELECT "d_o_b" FROM "player_roster"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"bats" text,
"throws" text,
"position" text
);
Question: Which Throws have a Position of 3b/rhp?
<|assistant|>
SELECT "throws" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"bats" text,
"throws" text,
"position" text
);
Question: When is Collins' DOB?
<|assistant|>
SELECT "d_o_b" FROM "player_roster" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"bats" text,
"throws" text,
"position" text
);
Question: Which Position has a D.O.B. of 3 june 1989?
<|assistant|>
SELECT "positio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_competitions" (
"years" text,
"competition" text,
"vehicle_name" text,
"original_vehicle" text,
"architecture" text
);
Question: What type of architecture does the Saturn Vue have?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_competitions" (
"years" text,
"competition" text,
"vehicle_name" text,
"original_vehicle" text,
"architecture" text
);
Question: What architecture type does the Ford Escort Wagon have?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_competitions" (
"years" text,
"competition" text,
"vehicle_name" text,
"original_vehicle" text,
"architecture" text
);
Question: What original vehicle has uwhvt homepage architecture?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prize_money" (
"year" text,
"winner" text,
"runner_up" text,
"semi_finalists" text,
"quarter_finalists" text,
"last_16" text,
"last_32" text,
"last_64" text,
"total" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prize_money" (
"year" text,
"winner" text,
"runner_up" text,
"semi_finalists" text,
"quarter_finalists" text,
"last_16" text,
"last_32" text,
"last_64" text,
"total" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prize_money" (
"year" text,
"winner" text,
"runner_up" text,
"semi_finalists" text,
"quarter_finalists" text,
"last_16" text,
"last_32" text,
"last_64" text,
"total" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prize_money" (
"year" text,
"winner" text,
"runner_up" text,
"semi_finalists" text,
"quarter_finalists" text,
"last_16" text,
"last_32" text,
"last_64" text,
"total" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prize_money" (
"year" text,
"winner" text,
"runner_up" text,
"semi_finalists" text,
"quarter_finalists" text,
"last_16" text,
"last_32" text,
"last_64" text,
"total" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prize_money" (
"year" text,
"winner" text,
"runner_up" text,
"semi_finalists" text,
"quarter_finalists" text,
"last_16" text,
"last_32" text,
"last_64" text,
"total" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "athletes" (
"nationality" text,
"height" text,
"name" text,
"sport" text,
"lifespan" text
);
Question: How tall is Dylan Postl?
<|assistant|>
SELECT "height" FROM "athletes" WHERE "name"='dylan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_squad" (
"squad_no" real,
"player" text,
"position" text,
"tries" real,
"goals" real,
"points" real
);
Question: What is the largest amount of goals when the points are less than 0?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_squad" (
"squad_no" real,
"player" text,
"position" text,
"tries" real,
"goals" real,
"points" real
);
Question: Which player has more than 0 goals and less than 12 tries?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_squad" (
"squad_no" real,
"player" text,
"position" text,
"tries" real,
"goals" real,
"points" real
);
Question: What is the smallest number of tries when Matt Diskin is the player and t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_squad" (
"squad_no" real,
"player" text,
"position" text,
"tries" real,
"goals" real,
"points" real
);
Question: Which position has more than 4 points, less than 12 tries, a squad number... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_squad" (
"squad_no" real,
"player" text,
"position" text,
"tries" real,
"goals" real,
"points" real
);
Question: What is the total number of squad no when there are more than 8 points, D... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_b_yugoslavia" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: What is the lowest lost from drawn of 1 or greater?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_b_yugoslavia" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: What is the highest games from a game with points less tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the score of the game on January 18?
<|assistant|>
SELECT "score" FROM "regular_seas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the score of the game on January 10?
<|assistant|>
SELECT "score" FROM "regular_seas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the score of the game on November 12 with the Chicago Black Hawks as the visitor tea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
Question: What is the series score... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_boats" (
"ship" text,
"builder" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
Question: The Zeehond was built by whom?
<|assistant|>
SELECT "builder" FROM "the_boats" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nhl_entry_draft" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team" text
);
Question: What college, junior, or club team did Victor Ignatjev play for... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nhl_entry_draft" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team" text
);
Question: Which player is from Sweden?
<|assistant|>
SELECT "player" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"attendance" real,
"record" text
);
Question: What was the score on April 22?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "date"='... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"attendance" real,
"record" text
);
Question: What opponent has a score of 1-3?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"attendance" real,
"record" text
);
Question: What is the record for April 21?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "date"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: Which Player has a Round larger than 5, and a School/Club Team of bethune-cookman?
<... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.