text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What city is Jaffna Airport in?
<|assistant|>
SELECT "city" FROM "destinations" WHERE "airport... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Which city has an ICAO of TBA?
<|assistant|>
SELECT "city" FROM "destinations" WHERE "icao"='t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft" (
"round" text,
"pick" text,
"player" text,
"position" text,
"nationality" text,
"team" text,
"college" text
);
Question: Which player went to the College of Wyoming?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the smallest crowd at a game wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the home team at the game that h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "squad_information" (
"nat" text,
"name" text,
"since" real,
"goals" real,
"transfer_fee" text
);
Question: Name the total number of since for belletti
<|assistant|>
SELECT COUNT("since") FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "squad_information" (
"nat" text,
"name" text,
"since" real,
"goals" real,
"transfer_fee" text
);
Question: Name the highest goals for youth system and ita
<|assistant|>
SELECT MAX("goals") FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the time/retired for eddie irvine with a grid of greater than 3?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: How many laps had a grid of greater than 17 and retired due to collision?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many silvers for south korea with under 1 gold medal?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many golds for uganda with under 3 total medals?
<|assistant|>
SELECT MAX("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many bronzes for nations ranked above 7, under 3 golds, and under 10 total ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"attendance" text,
"record" text
);
Question: Which week has a result showing L 2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"attendance" text,
"record" text
);
Question: Which week has a Kickoff time of 1:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"attendance" text,
"record" text
);
Question: Which week has a record of 5-7-1?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"attendance" text,
"record" text
);
Question: Who is the opponent on the game tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the home team at Victoria Park?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What did the away team score at Kardinia... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the away team's score in Juncti... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When did the away team score 11.7 (73)?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which home team scored 12.11 (83)?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What did the away team score at Moorabbi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Who constructed the car that has a Time/Retired of engine, and over 50 laps?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the time/retired for ronnie peterson with under 75 laps and a grid under ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_schedule" (
"dates" text,
"tournament" text,
"location" text,
"prize_fund_krw" text,
"winner" text,
"owgr_points" real
);
Question: What is the location of the tournament with more than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the away team at Arden Street Ov... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Where did Collingwood play their home ga... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How many people attended the game with a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assists" (
"rank" real,
"name" text,
"team" text,
"games" real,
"assists" real
);
Question: I want the team with assists greater than 118 and rank less than 2
<|assistant|>
SELECT "team" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_easternmost_high_summits_of_the_rock" (
"rank" real,
"mountain_peak" text,
"region" text,
"mountain_range" text,
"location" text
);
Question: What region has a 5 rank?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_easternmost_high_summits_of_the_rock" (
"rank" real,
"mountain_peak" text,
"region" text,
"mountain_range" text,
"location" text
);
Question: Which mountain peak has spanish peaks?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the home team at Junction Oval w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What date did Essendon play as the home ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the attendance at Windy Hill?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the smallest crowd of vfl park?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the away team score at kardinia... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the away team at the home game o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the average crowd size at a hom... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "course_detail" (
"hole" text,
"yards_red_tees" real,
"par_red_tees" real,
"yards_white_tees" real,
"par_white_tees" real
);
Question: What is the average number of yards on a red tee that has a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count" (
"nation" text,
"gold" text,
"silver" text,
"bronze" text,
"total" real
);
Question: How many bronzes did netherlands win?
<|assistant|>
SELECT "bronze" FROM "medal_count" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count" (
"nation" text,
"gold" text,
"silver" text,
"bronze" text,
"total" real
);
Question: What is the nation for 6 total?
<|assistant|>
SELECT "nation" FROM "medal_count" WHERE "total"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count" (
"nation" text,
"gold" text,
"silver" text,
"bronze" text,
"total" real
);
Question: What is the bronze when silver is 4 and gold is 1 and the total is more than 2
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count" (
"nation" text,
"gold" text,
"silver" text,
"bronze" text,
"total" real
);
Question: Tell me the gold for netherlands
<|assistant|>
SELECT "gold" FROM "medal_count" WHERE "nation"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Away team score has a Home team of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Venue has a Home team score of 17.... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Venue has an Away team score of 13... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Home team score has an Away team o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_7_1998_1999" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
Question: What is the tot... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "viewing_figures" (
"episode" text,
"1st_edition" text,
"2nd_edition" text,
"3rd_edition" text,
"4th_edition" text
);
Question: What is the 1st Edition for the Episode 4?
<|assistant|>
SELECT "1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "viewing_figures" (
"episode" text,
"1st_edition" text,
"2nd_edition" text,
"3rd_edition" text,
"4th_edition" text
);
Question: What is the 1st Edition for Episode 11?
<|assistant|>
SELECT "1st_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "viewing_figures" (
"episode" text,
"1st_edition" text,
"2nd_edition" text,
"3rd_edition" text,
"4th_edition" text
);
Question: What is the 3rd Edition for Episode 4?
<|assistant|>
SELECT "3rd_e... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which home teams had crowds larger than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: I want to know the date for western oval ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "3901_4000" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
);
Question: What is the declinatio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_knockout_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the 1st leg when team 1 is Chelsea?
<|assistant|>
SELECT "1st_leg" FROM "fi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
);
Question: What was the name of the home team, when the score for h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
);
Question: What was the away team score, when the away team was Fit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
);
Question: What is the name of the home team when the away team was... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
);
Question: What is the name of the home team that has a venue calle... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
);
Question: What is the name of the venue where the game played had ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura_opening_tournament" (
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"diff" real
);
Question: What is the average number lost with a d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura_opening_tournament" (
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"diff" real
);
Question: What is the highest number of losses wit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura_opening_tournament" (
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"diff" real
);
Question: What is the sum of the difference for 9 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura_opening_tournament" (
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"diff" real
);
Question: What is the lowest number drawn with les... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura_opening_tournament" (
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"diff" real
);
Question: What is the sum of all points when numbe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_21_13_8" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: Which date has a Score of 6–4, 6–... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
"rd_num" real,
"pick_num" real,
"player" text,
"team_league" text,
"reg_gp" real,
"pl_gp" real
);
Question: What is the total PI GP that a Reg GP has ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
"rd_num" real,
"pick_num" real,
"player" text,
"team_league" text,
"reg_gp" real,
"pl_gp" real
);
Question: What average Reg GP has a pick # larger th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_fixtures_and_results" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text,
"goals" text
);
Question: Which result has a Goal of deacon 2/5?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_fixtures_and_results" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text,
"goals" text
);
Question: Which date has a Goal of deacon 4/4, withers 1 dg?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_fixtures_and_results" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text,
"goals" text
);
Question: What are the goals for 8/4/04?
<|assistant|>
SELECT "goals" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_fixtures_and_results" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text,
"goals" text
);
Question: Which venue has a Result of w, and a Goal of deacon 5/5?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_fixtures_and_results" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text,
"goals" text
);
Question: Which result has a Goal of deacon 3/5, bridge 2/2?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_fixtures_and_results" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text,
"goals" text
);
Question: Which competition has a Goal of deacon 10/10, and a Score of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
"rd_num" real,
"pick_num" real,
"player" text,
"team_league" text,
"reg_gp" real,
"pl_gp" real
);
Question: What is the total number of playoff games ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
"rd_num" real,
"pick_num" real,
"player" text,
"team_league" text,
"reg_gp" real,
"pl_gp" real
);
Question: What player has a number of playoff games ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
"rd_num" real,
"pick_num" real,
"player" text,
"team_league" text,
"reg_gp" real,
"pl_gp" real
);
Question: What is the sum of the number of regular g... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
"rd_num" real,
"pick_num" real,
"player" text,
"team_league" text,
"reg_gp" real,
"pl_gp" real
);
Question: What player has a number of playoff games ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
"rd_num" real,
"pick_num" real,
"player" text,
"team_league" text,
"reg_gp" real,
"pl_gp" real
);
Question: What is the pick number for the player fro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
"rd_num" real,
"pick_num" real,
"player" text,
"team_league" text,
"reg_gp" real,
"pl_gp" real
);
Question: What is the lowest regular GP Larry Courvi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was Essendon's opponents away score... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the attendance at Corio Oval?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: If the home team scored 6.7 (43), what w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When collingwood played as the away team... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the away team playing when the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which venue was it at when 10.14 (74) wa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hardtack_ii_tests" (
"name" text,
"location" text,
"elevation_height" text,
"delivery" text,
"purpose" text,
"yield" text
);
Question: What was the locaction of the Evans test blast?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hardtack_ii_tests" (
"name" text,
"location" text,
"elevation_height" text,
"delivery" text,
"purpose" text,
"yield" text
);
Question: What was the yield for a blast that was in nts area 3s?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hardtack_ii_tests" (
"name" text,
"location" text,
"elevation_height" text,
"delivery" text,
"purpose" text,
"yield" text
);
Question: What was the purpose of the Quay test blast?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "3601_3700" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
);
Question: For an apparent magnit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "3601_3700" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
);
Question: What is the least appa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "running_backs" (
"player" text,
"car" real,
"yards" real,
"avg" real,
"td_s" real,
"long" real
);
Question: What is the highest Car with more than 155 yards?
<|assistant|>
SELECT MAX("car") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_longest_novels" (
"book_title" text,
"author" text,
"edition_publisher" text,
"page_count" text,
"page_size" text,
"language" text
);
Question: How many pages were in the book by Stef... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_longest_novels" (
"book_title" text,
"author" text,
"edition_publisher" text,
"page_count" text,
"page_size" text,
"language" text
);
Question: Which author wrote Sironia, Texas in En... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_longest_novels" (
"book_title" text,
"author" text,
"edition_publisher" text,
"page_count" text,
"page_size" text,
"language" text
);
Question: Who is the edition/publisher for Xavier... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_longest_novels" (
"book_title" text,
"author" text,
"edition_publisher" text,
"page_count" text,
"page_size" text,
"language" text
);
Question: What language is the book Miss Macintos... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_longest_novels" (
"book_title" text,
"author" text,
"edition_publisher" text,
"page_count" text,
"page_size" text,
"language" text
);
Question: Who published in Italian with a page si... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wide_receivers" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"td_s" real,
"long" real
);
Question: What is the total average for long 10?
<|assistant|>
SELECT COUNT("avg") FROM "wid... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_picks" (
"round" text,
"pick" text,
"player" text,
"position" text,
"nationality" text,
"team" text,
"college" text
);
Question: Name the college that has 7 rounds and boston celtics ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_picks" (
"round" text,
"pick" text,
"player" text,
"position" text,
"nationality" text,
"team" text,
"college" text
);
Question: Name the position that has baltimore bullets and colle... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.