text stringlengths 310 1.28k |
|---|
<|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: Which Home Team has a Game of game 1?
<|assistant|>
SELECT "home_team" FROM "nba_finals" W... |
<|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: Which Game has a Home Team of san francisco, and a Date of april 22?
<|assistant|>
SELECT ... |
<|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: Which Road Team has a Home Team of boston, and a Result of 124-101?
<|assistant|>
SELECT "... |
<|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: Which Game has a Home Team of san francisco, and a Date of april 22?
<|assistant|>
SELECT ... |
<|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: Which Result has a Road Team of san francisco, and a Game of game 2?
<|assistant|>
SELECT ... |
<|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: Which Home Team has a Result of 124-101?
<|assistant|>
SELECT "home_team" FROM "nba_finals... |
<|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 attendance in a week less than 5 when the result was l 24-20?
<|assistant|... |
<|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 largest week with the Atlanta Falcons as the opponent?
<|assistant|>
SELECT MAX(... |
<|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 attendance in a week greater than 1 with an opponent of Philadelphia Eagle... |
<|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: Which Score has an Opponent of washingto... |
<|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: Which Game has an Attendance smaller tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"enrollment" real,
"joined" real
);
Question: Which Joined has a Nickname of knights, and an Enrollment larger... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"enrollment" real,
"joined" real
);
Question: Which Nickname has an Enrollment smaller than 501, and a Locatio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"enrollment" real,
"joined" real
);
Question: Which Joined has an Institution of abraham baldwin agricultural ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"date" text,
"crowd" real
);
Question: What is Home Team, when Away Team Score ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"date" text,
"crowd" real
);
Question: What is Away Team Score, when Ground is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"date" text,
"crowd" real
);
Question: What is Away Team, when Ground is Coloni... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"date" text,
"crowd" real
);
Question: What is the sum of Crowd, when Date is S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: A score of 71-71=142 earned what place?
<|assistant|>
SELECT "place" FROM "second_round" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What was José María Olazábal's score?
<|assistant|>
SELECT "to_par" FROM "second_round" WHE... |
<|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 team was the opponent on October 15, 1967?
<|assistant|>
SELECT "opponent" FROM "schedu... |
<|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 was the lowest attendance when the Green Bay Packers played?
<|assistant|>
SELECT MIN("... |
<|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 was the week number when a game was played on November 19, 1967?
<|assistant|>
SELECT M... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
Question: If a team has a grid of over 8 with less than 4 points, what's the team name?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
Question: When Patrick Carpentier is driving and has less than 19 points with 90 laps, what... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_scoring_grand_finals" (
"total_points" real,
"score" text,
"premiers" text,
"runners_up" text,
"details" text
);
Question: What was the score where the total points was 50?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_scoring_grand_finals" (
"total_points" real,
"score" text,
"premiers" text,
"runners_up" text,
"details" text
);
Question: For the match that had detail of 2001 nrl grand final, what wa... |
<|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 "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 "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 "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 "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 "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"language_s" text,
"director" text,
"result" text
);
Question: Who was the director that had a film titled "Floating L... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: Can you tell me the total number of Played that has the Position larger than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: Can you tell me the highest Played that has the Points larger than 11, and th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What was Dave Hill's score?
<|assistant|>
SELECT "score" FROM "second_round" WHERE "player"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the to par of Al Mengert of the United States?
<|assistant|>
SELECT "to_par" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the score of T5 place in the United States?
<|assistant|>
SELECT "score" FROM "seco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Who was the player from the United States in T10 place with a score of 67-77=144?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What was Billy Casper's to par?
<|assistant|>
SELECT "to_par" FROM "second_round" WHERE "pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_summary" (
"rank" real,
"team" text,
"played" real,
"wins" real,
"ties" real,
"losses" real,
"points" real
);
Question: What is the sum of Wins, when Played is less than 5?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_summary" (
"rank" real,
"team" text,
"played" real,
"wins" real,
"ties" real,
"losses" real,
"points" real
);
Question: What is the highest Wins, when Rank is greater than 2, and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_summary" (
"rank" real,
"team" text,
"played" real,
"wins" real,
"ties" real,
"losses" real,
"points" real
);
Question: What is the sum of Wins, when Team is Sweden, and when Pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_summary" (
"rank" real,
"team" text,
"played" real,
"wins" real,
"ties" real,
"losses" real,
"points" real
);
Question: What is the highest Points, when Played is greater than 5?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_summary" (
"rank" real,
"team" text,
"played" real,
"wins" real,
"ties" real,
"losses" real,
"points" real
);
Question: What is the average Ties, when Played is greater than 5?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_12" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What is Date, when Runner(s)-Up is Oliver Wilson?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_12" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What is Date, when Margin Of Victory is 4 Strokes?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_12" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What is Runner(s)-up, when Date is 21 Jan 2007?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_12" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What is Tournament, when Margin Of Victory is 1 Stroke, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statewide_tickets_on_which_spitzer_has_r" (
"year" real,
"party" text,
"governor" text,
"lieutenant_governor" text,
"comptroller" text,
"attorney_general" text,
"u_s_senate" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statewide_tickets_on_which_spitzer_has_r" (
"year" real,
"party" text,
"governor" text,
"lieutenant_governor" text,
"comptroller" text,
"attorney_general" text,
"u_s_senate" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
Question: Can you tell me the Record that has the Points larger than 2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
Question: Can you tell me the Record that has the Visitor of pittsburg... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
Question: Can you tell me the average Points that has the Attendance o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: Which opponent had 38,642 attendance?
<|assistant|>
SELECT "opponent" 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: What date had 51,265 attendance?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "attendan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_cup_top_twenty_finishes" (
"season" real,
"date" text,
"location" text,
"race" text,
"place" text
);
Question: When 7th place, what is the date?
<|assistant|>
SELECT "date" FROM "world_cu... |
<|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_assists" text,
"location_attendance" text,
"record" text
);
Question: What is the score of game ... |
<|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_assists" text,
"location_attendance" text,
"record" text
);
Question: What is the record of game... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: What is the Country, when Place is "T4", and when Player is "Scott Simpson"?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: What is To Par, when Score is 70, and when Player is "Craig Stadler"?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: What is Player, when Score is less than 69, and when Country is "United States"?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "production" (
"block" real,
"episode_title" text,
"director" text,
"writer" text,
"producer" text,
"code" text
);
Question: Who was the writer that the director was Alice Troughton and the pr... |
<|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 "episodes" (
"title" text,
"season" real,
"director" text,
"teleplay" text,
"first_broadcast" text
);
Question: What is Teleplay, when Season is greater than 1.1, and when First Broadcast is "Fe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episodes" (
"title" text,
"season" real,
"director" text,
"teleplay" text,
"first_broadcast" text
);
Question: What is Title, when Season is less than 1.8, and when First Broadcast is March 6, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episodes" (
"title" text,
"season" real,
"director" text,
"teleplay" text,
"first_broadcast" text
);
Question: What is Director, when Season is 1.4?
<|assistant|>
SELECT "director" FROM "episod... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episodes" (
"title" text,
"season" real,
"director" text,
"teleplay" text,
"first_broadcast" text
);
Question: What is Teleplay, when Director is "George McCowan", when Season is less than 1.14... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episodes" (
"title" text,
"season" real,
"director" text,
"teleplay" text,
"first_broadcast" text
);
Question: What is the average Season, when First Broadcast is January 23, 1981?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episodes" (
"title" text,
"season" real,
"director" text,
"teleplay" text,
"first_broadcast" text
);
Question: What is Teleplay, when First Broadcast is April 10, 1981?
<|assistant|>
SELECT "te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pre_season_and_friendlies" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
Question: What the H/A when the opponent is the Bohemians?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pre_season_and_friendlies" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
Question: What is the attendance when Cork City is the opponent?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pre_season_and_friendlies" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
Question: What is the H/A when Cork City is the opponent?
<|assistant|>
SELECT "h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pre_season_and_friendlies" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
Question: What is the H/A on 5 August 1990?
<|assistant|>
SELECT "h_a" FROM "pre_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pre_season_and_friendlies" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
Question: What is the result F-A on 5 August 1990?
<|assistant|>
SELECT "result_f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cromemco_s_100_microcomputer_systems_z_8" (
"system" text,
"year_introduced" real,
"s_100_slots" real,
"internal_floppy_disk" text,
"internal_hard_disk" text
);
Question: What is the value for ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cromemco_s_100_microcomputer_systems_z_8" (
"system" text,
"year_introduced" real,
"s_100_slots" real,
"internal_floppy_disk" text,
"internal_hard_disk" text
);
Question: Which system introduce... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick_num" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What college did Marcus Wilson attend?
<|assistant|>
SELECT "college" FROM "nfl_draft"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick_num" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Who is the player that attended Notre Dame with a pick smaller than 304?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick_num" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What college did Leon Perry attend?
<|assistant|>
SELECT "college" FROM "nfl_draft" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick_num" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What NFL team did the Tight End position belong to?
<|assistant|>
SELECT "nfl_team" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What is the total number of weeks that the buffalo bills played against the San Diego... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What is the attendance of the game that had a date listed as Bye?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: How many weeks were there games with 41,384 fans in attendance?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What is the lowest week number that had a game on December 3, 1967?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What was the result of the game that had 20,627 fans in attendance?
<|assistant|>
SEL... |
<|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" text,
"time_retired" text,
"grid" text
);
Question: Who is the rider with 22 laps and a +19.435 time/retired?
<|assistant|>
S... |
<|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" text,
"time_retired" text,
"grid" text
);
Question: What is the grid with a yamaha manufacturer and a +19.435 time/retired?
<... |
<|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" text,
"time_retired" text,
"grid" text
);
Question: What is the grid of rider shinya nakano?
<|assistant|>
SELECT "grid" FROM... |
<|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" text,
"time_retired" text,
"grid" text
);
Question: Who is the rider with 22 laps and a +1:44.775 time/retired?
<|assistant|>... |
<|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" text,
"time_retired" text,
"grid" text
);
Question: What is the manufacturer with a 14 grid?
<|assistant|>
SELECT "manufactur... |
<|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" text,
"time_retired" text,
"grid" text
);
Question: Who is the rider with a yamaha manufacturer and a 17 grid?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "uefa_champions_league" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: What is the total of attendance at Venue h when Auxerre were p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.