text stringlengths 310 1.28k |
|---|
<|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" text,
"money" text
);
Question: What was the To par for United States golfer fred couples?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table" (
"date" text,
"ship" text,
"type" text,
"nationality" text,
"tonnage_grt" real,
"fate" text
);
Question: what is the fate when the nationality is french and the ship is pierre lott?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table" (
"date" text,
"ship" text,
"type" text,
"nationality" text,
"tonnage_grt" real,
"fate" text
);
Question: what is the ship with the date of 28.1.1915?
<|assistant|>
SELECT "ship" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table" (
"date" text,
"ship" text,
"type" text,
"nationality" text,
"tonnage_grt" real,
"fate" text
);
Question: what is the nationality when the ship is willerby?
<|assistant|>
SELECT "natio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table" (
"date" text,
"ship" text,
"type" text,
"nationality" text,
"tonnage_grt" real,
"fate" text
);
Question: what is the least tonnage grt when the nationality is british and the ship is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"season" real,
"team_1" text,
"score" text,
"team_2" text,
"venue" text
);
Question: Can you tell me the Season that has the Team 2 of hanoi acb?
<|assistant|>
SELECT "season" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"season" real,
"team_1" text,
"score" text,
"team_2" text,
"venue" text
);
Question: Can you tell me the Team 2 that has the Venue of binh duong stadium, vietnam?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"season" real,
"team_1" text,
"score" text,
"team_2" text,
"venue" text
);
Question: Can you tell me the total number of Season that has the Team 2 of chonburi, and the Score of 0:1?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" text
);
Question: Which Score has a Place of t6, and a Player of raymond floyd?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" text
);
Question: How much To par has a Place of t1, and a Score of 70-70-71-71=28... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" text
);
Question: What is tony lema's to par?
<|assistant|>
SELECT SUM("to_par") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" text
);
Question: What was gary player's score?
<|assistant|>
SELECT "score" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_and_current_programs" (
"year" real,
"program_title" text,
"placement" text,
"score" real,
"class" text
);
Question: What was the total number for the PIW Class' The Adventures Of... and h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_and_current_programs" (
"year" real,
"program_title" text,
"placement" text,
"score" real,
"class" text
);
Question: What class had a score of 95.1?
<|assistant|>
SELECT "class" FROM "past... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_and_current_programs" (
"year" real,
"program_title" text,
"placement" text,
"score" real,
"class" text
);
Question: What is the lowest score for a year before 2008 and had 3rd place?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_and_current_programs" (
"year" real,
"program_title" text,
"placement" text,
"score" real,
"class" text
);
Question: What was the latest year placement for Taboo with a score smaller than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_8" (
"year" real,
"championship" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: What is the winning score before 1959, with runner-up Jackie Pung?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_4_1999_2000" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: Which Directed by has an Original air da... |
<|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 was the result of the game from September 10, 2000?
<|assistant|>
SELECT "result" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_ceremonies" (
"ceremony" text,
"date" text,
"host_s" text,
"venue" text,
"film_of_the_year" text
);
Question: Which award ceremony took place on May 15, 1965?
<|assistant|>
SELECT "cerem... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_ceremonies" (
"ceremony" text,
"date" text,
"host_s" text,
"venue" text,
"film_of_the_year" text
);
Question: Which movie was awarded Film of the Year on May 8, 1964?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "central_watford_west_watford_and_oxhey" (
"name" text,
"faith" text,
"type" text,
"intake" real,
"dcsf_number" real,
"ofsted_number" real
);
Question: Can you tell me the highest DCSF number ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "central_watford_west_watford_and_oxhey" (
"name" text,
"faith" text,
"type" text,
"intake" real,
"dcsf_number" real,
"ofsted_number" real
);
Question: Can you tell me the sum of Intake that h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "central_watford_west_watford_and_oxhey" (
"name" text,
"faith" text,
"type" text,
"intake" real,
"dcsf_number" real,
"ofsted_number" real
);
Question: Can you tell me the Name that has the DC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "central_watford_west_watford_and_oxhey" (
"name" text,
"faith" text,
"type" text,
"intake" real,
"dcsf_number" real,
"ofsted_number" real
);
Question: Can you tell me the highest Ofsted numbe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What is the total number of Week, when Opponent is At Chicago Bears, and when Attendance is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What is Date, when Week is 11?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "week"=11;<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What is the lowest Week, when Attendance is 38,624?
<|assistant|>
SELECT MIN("week") FROM "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" (
"year" real,
"domestic_freight" real,
"domestic_mail" real,
"international_freight" real,
"international_mail" real,
"total_freight_and_mail" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" (
"year" real,
"domestic_freight" real,
"domestic_mail" real,
"international_freight" real,
"international_mail" real,
"total_freight_and_mail" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" (
"year" real,
"domestic_freight" real,
"domestic_mail" real,
"international_freight" real,
"international_mail" real,
"total_freight_and_mail" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" (
"year" real,
"domestic_freight" real,
"domestic_mail" real,
"international_freight" real,
"international_mail" real,
"total_freight_and_mail" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" (
"year" real,
"domestic_freight" real,
"domestic_mail" real,
"international_freight" real,
"international_mail" real,
"total_freight_and_mail" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" (
"year" real,
"domestic_freight" real,
"domestic_mail" real,
"international_freight" real,
"international_mail" real,
"total_freight_and_mail" real,
... |
<|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 is the venue when the date is 16 january 1996?
<|assistant|>
SELECT "venue" F... |
<|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 is the competition when the date is 16 january 1996?
<|assistant|>
SELECT "co... |
<|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,
"location_attendance" text,
"record" text
);
Question: WHAT IS THE RECORD FOR FEBRUARY 11?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"nominated_work" text,
"award" text,
"category" text,
"result" text
);
Question: What was the award before 2001?
<|assistant|>
SELECT "award" FROM "awards... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" text,
"record" text
);
Question: What is the highest week for a game that was ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" text,
"record" text
);
Question: What is the average week number for games tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" text,
"record" text
);
Question: Who did the argonauts play against during the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_wins_31" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was Juli's winning margin on Aug 24, 1986?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_wins_31" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was the margin of victory at the LPGA Championship?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "coaching_record" (
"season" text,
"wins" real,
"losses" real,
"ties" real,
"ivy_lg_record" text
);
Question: What is the highest value for Ties, when Losses is less than 8?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "coaching_record" (
"season" text,
"wins" real,
"losses" real,
"ties" real,
"ivy_lg_record" text
);
Question: What is the total number of Losses, when Ties is 2, and when Wins is greater than 8?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"country" text,
"mark" text,
"react" real
);
Question: What is the highest React that has a 7.61 Mark and a heat bigger than 1?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "officers" (
"rank" text,
"badge_serial_number" text,
"tenure" text,
"date_of_death" text,
"cause_of_death" text
);
Question: What is the Cause of death of the Officer with a Date of death of 19... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "officers" (
"rank" text,
"badge_serial_number" text,
"tenure" text,
"date_of_death" text,
"cause_of_death" text
);
Question: What is the Tenure of the Officer who died in a helicopter accident ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "officers" (
"rank" text,
"badge_serial_number" text,
"tenure" text,
"date_of_death" text,
"cause_of_death" text
);
Question: What is the Badge/Serial Number of the Policeman who died in Gunfire... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "officers" (
"rank" text,
"badge_serial_number" text,
"tenure" text,
"date_of_death" text,
"cause_of_death" text
);
Question: What is the Rank of the Officer with Badge/Serial Number 11755 who d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_1" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_diff" text,
"points_for" text,
"points_against" text,
"points_diff" text
);
Question: What is Team, when Tries Against is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_1" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_diff" text,
"points_for" text,
"points_against" text,
"points_diff" text
);
Question: What is Tries Against, when Tries F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_1" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_diff" text,
"points_for" text,
"points_against" text,
"points_diff" text
);
Question: What is Tries Against, when Points ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_1" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_diff" text,
"points_for" text,
"points_against" text,
"points_diff" text
);
Question: What is Points Against, when Try Di... |
<|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,
"location" text
);
Question: What is Record, when Event is "Independent E... |
<|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,
"location" text
);
Question: What is Event, when Method is "Submission (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,
"location" text
);
Question: What is Res., when Event is "KOTC 11 - Domin... |
<|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: How many were in attendance with a Result of l 17–10?
<|assistant|>
SELECT "attendance" FROM... |
<|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: How many were in attendance in a week lower than 5 with a Bye result?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: On what date was the result w 26–20?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "resu... |
<|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: Who was the opponent in a week below 14 on October 10, 1993?
<|assistant|>
SELECT "opponent"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" real,
"avg_finish" real,
"winnings" text,
"position" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" real,
"avg_finish" real,
"winnings" text,
"position" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jersey_progress" (
"stage" text,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"sprints_classification" text,
"team_classificat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jersey_progress" (
"stage" text,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"sprints_classification" text,
"team_classificat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jersey_progress" (
"stage" text,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"sprints_classification" text,
"team_classificat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jersey_progress" (
"stage" text,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"sprints_classification" text,
"team_classificat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jersey_progress" (
"stage" text,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"sprints_classification" text,
"team_classificat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"channel" text,
"play_by_play" text,
"color_commentator_s" text,
"studio_host" text,
"studio_analysts" text
);
Question: Which channel has Joel Meyers as the Play by play commentator?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"channel" text,
"play_by_play" text,
"color_commentator_s" text,
"studio_host" text,
"studio_analysts" text
);
Question: Who is the studio host for the game that has Paul Sunderland as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"channel" text,
"play_by_play" text,
"color_commentator_s" text,
"studio_host" text,
"studio_analysts" text
);
Question: Who is the studio host for the game broadcasted by Fox Sports N... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"channel" text,
"play_by_play" text,
"color_commentator_s" text,
"studio_host" text,
"studio_analysts" text
);
Question: Who is the play by play commentator for the game that has Alan ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"channel" text,
"play_by_play" text,
"color_commentator_s" text,
"studio_host" text,
"studio_analysts" text
);
Question: which channel will have play by play commentator Paul Sunderlan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"player" text,
"club" text,
"games" real,
"goals" real,
"assists" real,
"points" real
);
Question: How many Assists have a Club of adler mannheim, and Points larger than 57?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"player" text,
"club" text,
"games" real,
"goals" real,
"assists" real,
"points" real
);
Question: How many points have 41 assists?
<|assistant|>
SELECT SUM("points") FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"player" text,
"club" text,
"games" real,
"goals" real,
"assists" real,
"points" real
);
Question: Which Goals have a Player of david mcllwain, and Games larger than 52?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "platforms" (
"stop_no" text,
"platform" text,
"line" text,
"stopping_pattern" text,
"destination" text
);
Question: Which Platform is the one that has a Stop number of 99014?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "platforms" (
"stop_no" text,
"platform" text,
"line" text,
"stopping_pattern" text,
"destination" text
);
Question: Which Line has a Platform of 3?
<|assistant|>
SELECT "line" FROM "platforms" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "platforms" (
"stop_no" text,
"platform" text,
"line" text,
"stopping_pattern" text,
"destination" text
);
Question: Which Destination has a Stopping pattern of [2777] mciver station platforms?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "platforms" (
"stop_no" text,
"platform" text,
"line" text,
"stopping_pattern" text,
"destination" text
);
Question: Which Stop # has a Platform of [2777] mciver station platforms?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "platforms" (
"stop_no" text,
"platform" text,
"line" text,
"stopping_pattern" text,
"destination" text
);
Question: Which Line has a Stopping pattern of all stations, A, b, p?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "platforms" (
"stop_no" text,
"platform" text,
"line" text,
"stopping_pattern" text,
"destination" text
);
Question: Which Stopping pattern has a Platform of [2777] mciver station platforms?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "german_championship_finals_under_the_gau" (
"year" real,
"champion" text,
"runner_up" text,
"result" text,
"date" text,
"venue" text,
"attendance" text
);
Question: Who was runner-up at Ber... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "german_championship_finals_under_the_gau" (
"year" real,
"champion" text,
"runner_up" text,
"result" text,
"date" text,
"venue" text,
"attendance" text
);
Question: Who was the champion at ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "german_championship_finals_under_the_gau" (
"year" real,
"champion" text,
"runner_up" text,
"result" text,
"date" text,
"venue" text,
"attendance" text
);
Question: What year had an attenda... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "german_championship_finals_under_the_gau" (
"year" real,
"champion" text,
"runner_up" text,
"result" text,
"date" text,
"venue" text,
"attendance" text
);
Question: What is the sum of the y... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "german_championship_finals_under_the_gau" (
"year" real,
"champion" text,
"runner_up" text,
"result" text,
"date" text,
"venue" text,
"attendance" text
);
Question: Who was the champion whe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tallest_completed_buildings_and_structur" (
"rank" text,
"name" text,
"height_m" real,
"height_ft" real,
"floors" text
);
Question: What is the Height (ft) of the Churchill House with a Height ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tallest_completed_buildings_and_structur" (
"rank" text,
"name" text,
"height_m" real,
"height_ft" real,
"floors" text
);
Question: What is the Height of the Canterbury House with 12 Floors and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tallest_completed_buildings_and_structur" (
"rank" text,
"name" text,
"height_m" real,
"height_ft" real,
"floors" text
);
Question: What is the Height (m) of the 32= Rank Building with 18 Floor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: Total for 1994, 1997 years won?
<|assistant|>
SELECT SUM("total") FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: Player than won in 2003?
<|assistant|>
SELECT "player" FROM "made_the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: Average total for jim furyk?
<|assistant|>
SELECT AVG("total") FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "new_jersey_devils_4_boston_bruins_1" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Which record had a visitor of New Jersey Devils on May 7?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "new_jersey_devils_4_boston_bruins_1" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What was the record on May 8?
<|assistant|>
SELECT "record" FROM "new_j... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "provinces" (
"province" text,
"provincial_capital" text,
"largest_city" text,
"area_km_2" real,
"population_2013" real
);
Question: What is Nelspruit's population?
<|assistant|>
SELECT COUNT("p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "play_off_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: When Hapoel tel aviv was team 2 and 1st leg was 1–2, what was the 2nd leg?
<|assistant|>
... |
<|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: Which Time has a Round of 3, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
);
Question: What were the average laps on a grid of 11?
<|assistant|>
SELECT AVG("laps") FROM... |
<|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: Where is the location with a record of 50-19?
<|assistant|>
SELECT "location" ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.