text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "program_details" (
"name" text,
"launched" text,
"vehicle" text,
"ceased_operation" text,
"notes" text
);
Question: Which vehicle failed at launch?
<|assistant|>
SELECT "vehicle" FROM "program_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "program_details" (
"name" text,
"launched" text,
"vehicle" text,
"ceased_operation" text,
"notes" text
);
Question: What are the notes regarding the scout x-4 vehicle which ceased operation in ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "program_details" (
"name" text,
"launched" text,
"vehicle" text,
"ceased_operation" text,
"notes" text
);
Question: What was the ceased operation with a launch date of August 8, 1968?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "program_details" (
"name" text,
"launched" text,
"vehicle" text,
"ceased_operation" text,
"notes" text
);
Question: What was the ceased operation that launched June 29, 1961?
<|assistant|>
SELE... |
<|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 place in the United States having a score of 67-75-68=210?
<|assistant|>
SELECT "place"... |
<|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 is in T4 place having a score of 66-71-72=209?
<|assistant|>
SELECT "country" F... |
<|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 place is the United States in that has a score of 68-73-68=209?
<|assistant|>
SELECT "p... |
<|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 is the player from the United States in T4 place with a score of 68-73-68=209?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);
Question: How m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);
Question: what ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);
Question: How m... |
<|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: Wh... |
<|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: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: Who was the home team when Boston is the road team in game 4?
<|assistant|>
SELECT "home_t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: What game had the result of 112-100?
<|assistant|>
SELECT "game" FROM "nba_finals" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: What game was played on May 29?
<|assistant|>
SELECT "game" FROM "nba_finals" WHERE "date"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: What was the result of game 1?
<|assistant|>
SELECT "result" FROM "nba_finals" WHERE "game... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: What was the game when Houston was the home team and the result is 106-104?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: What is the class of car that is earlier tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: How many years was the number of laps 71?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: For a year that is later than 2002 what is t... |
<|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: How many total rounds has lehigh as the college?
<|as... |
<|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 name has 5 as the pick, a round less than 25, ot... |
<|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: How many overalls have E as the position, buddy payne... |
<|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: How many picks have charley sanders as the name, with... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "north_america" (
"rank" real,
"location" text,
"2008" real,
"2009" real,
"2010" real,
"2011" real,
"2012" real
);
Question: Which 2011 has a 2012 larger than 9,998,000?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "north_america" (
"rank" real,
"location" text,
"2008" real,
"2009" real,
"2010" real,
"2011" real,
"2012" real
);
Question: Which 2010 has a Rank of 1, and a 2009 larger than 17,233,000?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "north_america" (
"rank" real,
"location" text,
"2008" real,
"2009" real,
"2010" real,
"2011" real,
"2012" real
);
Question: Which 2012 has a 2011 of 17,142,000, and a 2010 smaller than 16,9... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "north_america" (
"rank" real,
"location" text,
"2008" real,
"2009" real,
"2010" real,
"2011" real,
"2012" real
);
Question: Which 2009 has a 2012 of 17,536,000, and a 2010 smaller than 16,9... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" text,
"date" text,
"score" text,
"opponent" text,
"attendance" real,
"record" text,
"points" real
);
Question: What is the Attendance of the game against the Florida Pant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" text,
"date" text,
"score" text,
"opponent" text,
"attendance" real,
"record" text,
"points" real
);
Question: What is the Opponent of the game with more than 13,567 in A... |
<|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: When his record was 15–1–1 (1... |
<|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: What is Record, when Location is "Boston Garden", and when Date is "Fri. Nov. ... |
<|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: What is Opponent, when Location is "Boston Garden", when Game is greater than ... |
<|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: What is the sum of Game, when Date is "Wed. Nov. 14"?
<|assistant|>
SELECT SUM... |
<|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" real
);
Question: What is Score, when Player is "Bill Rogers"?
<|assistant|>
SELECT "score" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"term_of_office" text
);
Question: Which State has an Electorate of West Sydney?
<|assistant|>
SELECT "state" FROM "see... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"term_of_office" text
);
Question: Which State has an Electorate of Barton?
<|assistant|>
SELECT "state" FROM "see_also... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"mult" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"mult" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"mult" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "amateur_boxing_record_roy_scheider" (
"result" text,
"opponent" text,
"method" text,
"date" text,
"round" real
);
Question: When did alfonse d'amore compete?
<|assistant|>
SELECT "date" FROM "a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "amateur_boxing_record_roy_scheider" (
"result" text,
"opponent" text,
"method" text,
"date" text,
"round" real
);
Question: Which Round has a Method of ko, and a Date of 1958?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "amateur_boxing_record_roy_scheider" (
"result" text,
"opponent" text,
"method" text,
"date" text,
"round" real
);
Question: Which Date has a Result of win, and a Round smaller than 2, and an Op... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "amateur_boxing_record_roy_scheider" (
"result" text,
"opponent" text,
"method" text,
"date" text,
"round" real
);
Question: Which Round has a Method of ko, and an Opponent of alfonse d'amore?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reserves_academy" (
"date" text,
"pos" text,
"player" text,
"from_club" text,
"transfer_fee" text
);
Question: Which Player has a Date of sep. 2008?
<|assistant|>
SELECT "player" FROM "reserves... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reserves_academy" (
"date" text,
"pos" text,
"player" text,
"from_club" text,
"transfer_fee" text
);
Question: Which Transfer fee has a From club of blackburn rovers?
<|assistant|>
SELECT "tran... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reserves_academy" (
"date" text,
"pos" text,
"player" text,
"from_club" text,
"transfer_fee" text
);
Question: Which From club has a Date of 20 oct. 2008?
<|assistant|>
SELECT "from_club" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reserves_academy" (
"date" text,
"pos" text,
"player" text,
"from_club" text,
"transfer_fee" text
);
Question: Which Player has a Transfer fee of £750,000 [x]?
<|assistant|>
SELECT "player" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_24_11_13" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is Tournament, when Date is "6 April 199... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_24_11_13" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is Surface, when Opponents is "Daniel Ne... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_24_11_13" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is Date, when Outcome is "Winner", and w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_24_11_13" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is Outcome, when Partner is "Byron Black... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_24_11_13" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is Tournament, when Date is "9 August 19... |
<|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 is Place, when Player is "Arnold Palmer"?
<|assistant|>
SELECT "place" FROM "third_roun... |
<|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 is Player, when To Par is +1, and when Score is 72-70-72=214?
<|assistant|>
SELECT "pla... |
<|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 is Score, when Country is United States, and when Player is "Arnold Palmer"?
<|assistan... |
<|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 is To Par, when Country is United States, and when Score is 71-68-73=212?
<|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 is Player, when Country is United States, and when Score is 70-72-70=212?
<|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 is Country, when Player is "Billy Maxwell"?
<|assistant|>
SELECT "country" FROM "third_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"lane" real,
"name" text,
"country" text,
"mark" text,
"react" real
);
Question: Who has a react smaller than 0.149 and a lane smaller than 6?
<|assistant|>
SELECT "name" FROM "final" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"lane" real,
"name" text,
"country" text,
"mark" text,
"react" real
);
Question: What was the lowest lane with a mark of 7.26?
<|assistant|>
SELECT MIN("lane") FROM "final" WHERE "mark... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_averages" (
"season" real,
"total_attendance" real,
"games" real,
"average" real,
"high_avg" real,
"team" text,
"no_of_clubs" real
);
Question: What is the maximum number of games wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_averages" (
"season" real,
"total_attendance" real,
"games" real,
"average" real,
"high_avg" real,
"team" text,
"no_of_clubs" real
);
Question: What is the number of clubs when the a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_averages" (
"season" real,
"total_attendance" real,
"games" real,
"average" real,
"high_avg" real,
"team" text,
"no_of_clubs" real
);
Question: What is the number of clubs for Shenya... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_averages" (
"season" real,
"total_attendance" real,
"games" real,
"average" real,
"high_avg" real,
"team" text,
"no_of_clubs" real
);
Question: What is the smallest average for Beiji... |
<|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" text
);
Question: What is the average pick number for Washington State?
<|assistant|>
SELECT AVG("pick") FROM "n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_and_notable_past_models" (
"model" text,
"length_over_all" text,
"beam" text,
"sail_area" text,
"crew" text,
"comments" text
);
Question: Which Comments has a Length Over All of 4.5m?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_and_notable_past_models" (
"model" text,
"length_over_all" text,
"beam" text,
"sail_area" text,
"crew" text,
"comments" text
);
Question: Which Crew has Comments of daggerboards. desi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_and_notable_past_models" (
"model" text,
"length_over_all" text,
"beam" text,
"sail_area" text,
"crew" text,
"comments" text
);
Question: Which Comments has a Model of 18sq?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_and_notable_past_models" (
"model" text,
"length_over_all" text,
"beam" text,
"sail_area" text,
"crew" text,
"comments" text
);
Question: Which Model has Comments of curved daggerboar... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_and_notable_past_models" (
"model" text,
"length_over_all" text,
"beam" text,
"sail_area" text,
"crew" text,
"comments" text
);
Question: Which Beam has a Model of 570?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_and_notable_past_models" (
"model" text,
"length_over_all" text,
"beam" text,
"sail_area" text,
"crew" text,
"comments" text
);
Question: Which Model has a Sail Area of 24.5 m²?
<|ass... |
<|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,
"attendance" real,
"record" text,
"points" real
);
Question: What is the sum of the game numbers for ... |
<|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,
"attendance" real,
"record" text,
"points" real
);
Question: Where was the game against the buffalo s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "largest_metropolitan_areas" (
"rank" real,
"metropolitan_area" text,
"country" text,
"population" real,
"area_km" real,
"population_density_people_km" real
);
Question: What is the smallest a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l_class_locomotive_fleet_summary" (
"secr_no" real,
"sr_no" real,
"br_no" real,
"builder" text,
"date_delivered" text,
"date_withdrawn" text
);
Question: What is the highest BR number with a ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l_class_locomotive_fleet_summary" (
"secr_no" real,
"sr_no" real,
"br_no" real,
"builder" text,
"date_delivered" text,
"date_withdrawn" text
);
Question: What is Beyer Peacock's SR number wit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "gt500" (
"team" text,
"make" text,
"drivers" text,
"tyre" text,
"rounds" text
);
Question: What is the tyre of nismo team member satoshi motoyama when he has rounds of all?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "gt500" (
"team" text,
"make" text,
"drivers" text,
"tyre" text,
"rounds" text
);
Question: What is the tyre of real racing with leon team member koudai tsukakoshi?
<|assistant|>
SELECT "tyre" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "gt500" (
"team" text,
"make" text,
"drivers" text,
"tyre" text,
"rounds" text
);
Question: Which drives drove a lexus, made all rounds, had a tyre of B and was on the team of petronas toyota te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "gt500" (
"team" text,
"make" text,
"drivers" text,
"tyre" text,
"rounds" text
);
Question: When driver yuji tachikawa had a make of lexus, what team did he represent?
<|assistant|>
SELECT "team... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overview" (
"team" text,
"head_coach" text,
"team_captain" text,
"venue" text,
"capacity" real,
"kitmaker" text,
"shirt_sponsor" text,
"club_chairman" text
);
Question: What is the sum of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overview" (
"team" text,
"head_coach" text,
"team_captain" text,
"venue" text,
"capacity" real,
"kitmaker" text,
"shirt_sponsor" text,
"club_chairman" text
);
Question: What is the Team, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overview" (
"team" text,
"head_coach" text,
"team_captain" text,
"venue" text,
"capacity" real,
"kitmaker" text,
"shirt_sponsor" text,
"club_chairman" text
);
Question: What is Team, when... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overview" (
"team" text,
"head_coach" text,
"team_captain" text,
"venue" text,
"capacity" real,
"kitmaker" text,
"shirt_sponsor" text,
"club_chairman" text
);
Question: What is Team, when... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seasons_overview" (
"season" text,
"duration" text,
"gagarin_cup_winner" text,
"gagarin_cup_finalist" text,
"continental_cup_winner" text,
"top_scorer" text
);
Question: Who is the gagarin cu... |
<|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
);
Question: What was the resolution of the fight where andre... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_stage" (
"team_num1" text,
"points" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the 2nd leg of goiás team 2?
<|assistant|>
SELECT "2nd_leg" FROM "first_sta... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_stage" (
"team_num1" text,
"points" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the 2nd leg of emelec team 2?
<|assistant|>
SELECT "2nd_leg" FROM "first_st... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_stage" (
"team_num1" text,
"points" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the 2nd leg with ldu quito as team 1?
<|assistant|>
SELECT "2nd_leg" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
Question: On what date was the bridge located in McClain listed?
<|assistant|>
SELECT "listed" FROM "re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"date" text,
"place" text,
"race_winners" text,
"gp_winner" text,
"source" text
);
Question: What is the source on 6 September?
<|assistant|>
SELECT "source" FROM "calendar" WHERE "... |
<|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: Which Week has a Result of l 21-19?
<|assistant|>
SELECT COUNT("week") FROM "schedule" WHERE... |
<|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: Which Week has a Result of l 41-14?
<|assistant|>
SELECT MIN("week") FROM "schedule" WHERE "... |
<|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: Which Result has a Date of september 3, 2000?
<|assistant|>
SELECT "result" FROM "schedule" ... |
<|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: Which Date has an Attendance of 54,626?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "a... |
<|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: Which Result has an Attendance of bye?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition_scores" (
"state" text,
"preliminary" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: What is the smallest preliminary when swimsui... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition_scores" (
"state" text,
"preliminary" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: What is the best preliminary for a contestant... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.