text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" real,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"pregame_host" text
);
Question: What was the Play-by-play when the color commentator was Eric Wynalda, ea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" real,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"pregame_host" text
);
Question: What is the name of the pregame host when the Play-by-play was by JP Dell... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_c" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
Question: What date was the score 3β0, and set 1 was 25β22?
<|assistant|>
SELECT "date" FROM "po... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_c" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
Question: What date was the total 56β75?
<|assistant|>
SELECT "date" FROM "pool_c" WHERE "total"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_c" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
Question: What is the Set 1 when Set 3 was 25β15?
<|assistant|>
SELECT "set_1" FROM "pool_c" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_c" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
Question: What date was the total 75β45?
<|assistant|>
SELECT "date" FROM "pool_c" WHERE "total"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is the sum of the dates in december that were against the atlanta flames bef... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: What was the score of the game against montreal canadiens after game 26?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"position" text,
"nationality" text,
"school_club_team" text
);
Question: In what Round was Grant Long Drafted?
<|assistant|>
SELECT M... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"position" text,
"nationality" text,
"school_club_team" text
);
Question: What is the Player from Memphis?
<|assistant|>
SELECT "playe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"position" text,
"nationality" text,
"school_club_team" text
);
Question: What Player was picked after Round 2 with a Pick number larg... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"position" text,
"nationality" text,
"school_club_team" text
);
Question: In what Round was the Memphis Player drafted?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
);
Question: Which School/Club Team holds the 2006-2009 Years of Grizzlies ?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
);
Question: Who was the Player in the 1998-2000 Year of Grizzlies?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
);
Question: What is the Nationality of the 1998-2000 Years for Grizzlies?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
);
Question: Who was the 1999-2002 Years for Grizzlies small forward Player who was ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
);
Question: Which Player is the shooting guard?
<|assistant|>
SELECT "player" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"decision" text,
"location_attendance" text,
"record" text
);
Question: What is the location and attendance of game 44?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"decision" text,
"location_attendance" text,
"record" text
);
Question: What is the record of game 42, which had a clemm... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: What country parred E and scored 71-73-70-74=288?
<|assistant|>
SELECT "coun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: How much money was scored for 73-71-70-73=287?
<|assistant|>
SELECT "money" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: What country has to par E with Mark O'Meara?
<|assistant|>
SELECT "country" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: What country placed t6 with player Vijay Singh?
<|assistant|>
SELECT "countr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: How much money did David Toms get?
<|assistant|>
SELECT "money" FROM "final_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" text,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"series" text
);
Question: What is the playoffs Game number on April 26?
<|assistant|>
SELECT "gam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" text,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"series" text
);
Question: What is the Score of Game 4?
<|assistant|>
SELECT "score" FROM "playoff... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" text,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"series" text
);
Question: What is the playoff Game on April 30?
<|assistant|>
SELECT "game" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" text,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"series" text
);
Question: What is the Date of the game with a Score of L 115β118 (OT)?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1996" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
);
Question: What was the result when there were 27,321 in attendance?
<|assistant|>
SELECT "result" FROM "19... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1996" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
);
Question: What is the number in attendance at Dowdy-Ficklen stadium β’ Greenville, NC, and the opponent was... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1996" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
);
Question: What date was the game at Dowdy-Ficklen stadium β’ Greenville, NC, with 27,321 in attendance?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1996" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
);
Question: What team was the opponent when there were 27,321 in attendance?
<|assistant|>
SELECT "opponent"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1996" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
);
Question: What date was the game at Williams-Brice stadium β’ Columbia, SC?
<|assistant|>
SELECT "date" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text,
"purse" real,
"winner_s_share"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text,
"purse" real,
"winner_s_share"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" real,
"region" text,
"label" text,
"format" text,
"catalog" text
);
Question: WHAT IS THE AVERAGE DATE FOR CBS LABEL, IN AUSTRALIA, AND SBP 241031 FOR CATALOG?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" real,
"region" text,
"label" text,
"format" text,
"catalog" text
);
Question: WHAT DATE HAS A CATALOG OF 486553.4?
<|assistant|>
SELECT MAX("date") FROM "release_histo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" real,
"region" text,
"label" text,
"format" text,
"catalog" text
);
Question: WHAT IS THE LOWEST DATE FOR KOREA, IN CD FORMAT?
<|assistant|>
SELECT MIN("date") FROM "r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_doubles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: What is 2008... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_doubles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: What is Tour... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_doubles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: What is 2005... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_doubles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: What is 2011... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_doubles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: What is 2004... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_doubles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: What is 2004... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: What was the name of the oppo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the highest pick of scott turner, who has a r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the name of the ot position player with a rou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the sum of the pick of darryl pounds, who has... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the total number of rounds of the player from... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the highest round of pick 3?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the total overall number of the ot position p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goalscorers" (
"rank" real,
"name" text,
"s_league" text,
"singapore_cup" text,
"singapore_league_cup" text,
"afc_cup" text,
"total" text
);
Question: What rank does the Singapore Cup of 0 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goalscorers" (
"rank" real,
"name" text,
"s_league" text,
"singapore_cup" text,
"singapore_league_cup" text,
"afc_cup" text,
"total" text
);
Question: What Singapore League Cup does Masahir... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goalscorers" (
"rank" real,
"name" text,
"s_league" text,
"singapore_cup" text,
"singapore_league_cup" text,
"afc_cup" text,
"total" text
);
Question: What is Norikazu Murakami's total?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goalscorers" (
"rank" real,
"name" text,
"s_league" text,
"singapore_cup" text,
"singapore_league_cup" text,
"afc_cup" text,
"total" text
);
Question: What is the rank for the total that ha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goalscorers" (
"rank" real,
"name" text,
"s_league" text,
"singapore_cup" text,
"singapore_league_cup" text,
"afc_cup" text,
"total" text
);
Question: Which AFC cup does Masahiro Fukasawa h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goalscorers" (
"rank" real,
"name" text,
"s_league" text,
"singapore_cup" text,
"singapore_league_cup" text,
"afc_cup" text,
"total" text
);
Question: Which AFC cup does Kenji Arai have?
<|... |
<|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_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: In... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" real
);
Question: What is the lowest to par of the player with a t3 place and less than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" real
);
Question: Who is the player from the United States with a t6 place and a 71-70-7... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" real
);
Question: How much total money does player tommy bolt, who has a to par of 9, ha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" real
);
Question: What is the lowest amount of money a player from South Africa with a t... |
<|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 venue that had a friendly match competition?
<|assistant|>
SELECT "ve... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_open_champions" (
"year" real,
"country" text,
"course" text,
"location" text,
"total_score" text,
"to_par_a" text
);
Question: With a year larger than 1905, and a location of philadelphi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_open_champions" (
"year" real,
"country" text,
"course" text,
"location" text,
"total_score" text,
"to_par_a" text
);
Question: What is the total score for a location of san francisco, ca... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_open_champions" (
"year" real,
"country" text,
"course" text,
"location" text,
"total_score" text,
"to_par_a" text
);
Question: What is the sum for the year with a location of newport, rh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_open_champions" (
"year" real,
"country" text,
"course" text,
"location" text,
"total_score" text,
"to_par_a" text
);
Question: What is the country with a course of merion golf club, and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_open_champions" (
"year" real,
"country" text,
"course" text,
"location" text,
"total_score" text,
"to_par_a" text
);
Question: What is the total score for the year 2012?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition" (
"state" text,
"preliminary_average" text,
"interview" text,
"swimsuit" text,
"evening_gown" text,
"semifinal_average" text
);
Question: What is the evening gown score for... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "denmark" (
"rank" real,
"surname" text,
"number_of_bearers_1971" real,
"number_of_bearers_2009" real,
"type" text,
"etymology" text
);
Question: What is the type for rank 2?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "denmark" (
"rank" real,
"surname" text,
"number_of_bearers_1971" real,
"number_of_bearers_2009" real,
"type" text,
"etymology" text
);
Question: What is the sum of number of bearers in 2009 f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: What is Ryan Hunter-Reay of the Herdez Competition's Qual 2 time?
<|assistant|>
SELECT "qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: What is Justin Wilson's Team?
<|assistant|>
SELECT "team" FROM "qualifying_results" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: What is the Best of the racer with a Qual 2 of 1:00.588?
<|assistant|>
SELECT "best" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "subdivisions" (
"hanyu" text,
"tongyong" text,
"pe_h_e_j" text,
"chinese" text,
"area_km" real,
"no_of_villages" real,
"population_2010" real
);
Question: Where is the lowest area with a po... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "subdivisions" (
"hanyu" text,
"tongyong" text,
"pe_h_e_j" text,
"chinese" text,
"area_km" real,
"no_of_villages" real,
"population_2010" real
);
Question: Where in Tongyong is Hanyu Sanmin?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "subdivisions" (
"hanyu" text,
"tongyong" text,
"pe_h_e_j" text,
"chinese" text,
"area_km" real,
"no_of_villages" real,
"population_2010" real
);
Question: Which Hanya has an area of 19.3888... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"position" text,
"nationality" text,
"college_team" text
);
Question: What is Nationality, when Round is less than 2, and when Pick is "24"?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"position" text,
"nationality" text,
"college_team" text
);
Question: What is Nationality, when Round is less than 2, and when College/Team is "CB L'Ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"position" text,
"nationality" text,
"college_team" text
);
Question: What is the lowest Round, when College/Team is "Kansas", and when Pick is less th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"position" text,
"nationality" text,
"college_team" text
);
Question: What is College/Team, when Round is less than 2, and when Nationality is "United ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying" (
"driver" text,
"constructor" text,
"q1_order" real,
"q1_time" text,
"q1_pos" real,
"q1_q2_time" text
);
Question: WHAT IS THE Q1 POS WITH A 1:31.826 Q1 TIME, AND Q1 ORDER OF 7?
... |
<|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_points" text,
"high_rebounds" text,
"location_attendance" text,
"record" text
);
Question: What is the score on Dece... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overall_medal_tally" (
"year" text,
"gold" text,
"silver" text,
"bronze" text,
"total" text
);
Question: How many silver medals were won in 1938?
<|assistant|>
SELECT "silver" FROM "overall_med... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overall_medal_tally" (
"year" text,
"gold" text,
"silver" text,
"bronze" text,
"total" text
);
Question: How many gold medals were won in 1970?
<|assistant|>
SELECT "gold" FROM "overall_medal_t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overall_medal_tally" (
"year" text,
"gold" text,
"silver" text,
"bronze" text,
"total" text
);
Question: How many silver medals were won the year 7 gold medals were won?
<|assistant|>
SELECT "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overall_medal_tally" (
"year" text,
"gold" text,
"silver" text,
"bronze" text,
"total" text
);
Question: How many bronze medals were won in 1998?
<|assistant|>
SELECT "bronze" FROM "overall_med... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"tv_time" text,
"opponent" text,
"result" text
);
Question: Can you tell me the TV Time that has the Date of november 22, 1998?
<|assistant|>
SELECT "tv_ti... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"tv_time" text,
"opponent" text,
"result" text
);
Question: Can you tell me the Result that has the Date of september 13, 1998?
<|assistant|>
SELECT "resul... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"tv_time" text,
"opponent" text,
"result" text
);
Question: Can you tell me the Opponent that has the Week smaller than 11, and the TV Time of fox 10:00 am... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"tv_time" text,
"opponent" text,
"result" text
);
Question: Can you tell me the Result that has the Week of 5?
<|assistant|>
SELECT "result" FROM "schedule... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_australia" (
"team" text,
"coach" text,
"home_ground" text,
"location" text,
"founded" real
);
Question: What is the average year that the club located in enfield was founded with an unkn... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_australia" (
"team" text,
"coach" text,
"home_ground" text,
"location" text,
"founded" real
);
Question: What was the location of the club where the home ground is wilfred taylor reserve?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_australia" (
"team" text,
"coach" text,
"home_ground" text,
"location" text,
"founded" real
);
Question: Where is the club that was founded in 1946 located that has an unknown coach?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_australia" (
"team" text,
"coach" text,
"home_ground" text,
"location" text,
"founded" real
);
Question: Where is the home ground for the club coached by nick pantsaras and founded before... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"team" text,
"score" text,
"location_attendance" text,
"series" text
);
Question: Which team was the opponent that had a location of Madison Square Garden with a score ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"team" text,
"score" text,
"location_attendance" text,
"series" text
);
Question: Which game was played at the Forum and led to a series result of 0-1?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"team" text,
"score" text,
"location_attendance" text,
"series" text
);
Question: What was the score for game 2?
<|assistant|>
SELECT "score" FROM "playoffs" WHERE "gam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2_1997_98" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: What is the title of the show with less th... |
<|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" text
);
Question: What is the attendance of the November 19, 1990 game?
<|assistant|>
SELECT "attendance" FROM... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.