text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How many points did the home team Essendo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cast" (
"actor" text,
"character" text,
"duration" text,
"no_of_series" text,
"episodes" real
);
Question: What character is in over 22 episodes?
<|assistant|>
SELECT "character" FROM "cast" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cast" (
"actor" text,
"character" text,
"duration" text,
"no_of_series" text,
"episodes" real
);
Question: What is the lowest number of episodes for anabel barnston?
<|assistant|>
SELECT MIN("e... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cast" (
"actor" text,
"character" text,
"duration" text,
"no_of_series" text,
"episodes" real
);
Question: What character is played by dani harmer for under 23 episodes?
<|assistant|>
SELECT "c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cast" (
"actor" text,
"character" text,
"duration" text,
"no_of_series" text,
"episodes" real
);
Question: How many episodes have a duration of 3?
<|assistant|>
SELECT COUNT("episodes") FROM "c... |
<|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: On what date did the home team score 22.... |
<|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 is the name of the home team whose ... |
<|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 is the size of the crowd for the ga... |
<|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 is the name of the away team who pl... |
<|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 date did Collingwood play as the ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "owned_and_operated" (
"city_of_license_market" text,
"station" text,
"channel_tv_rf" text,
"year_of_affiliation" real,
"year_of_disaffiliation" real
);
Question: What is the most recent year of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "owned_and_operated" (
"city_of_license_market" text,
"station" text,
"channel_tv_rf" text,
"year_of_affiliation" real,
"year_of_disaffiliation" real
);
Question: What is the earliest year of di... |
<|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 bronze medals did west germany win when they had less than 2 silver me... |
<|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 bronze medals were won when the total was larger than 2 and the more t... |
<|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 gold medals were won when more than 2 bronze medals were won?
<|assist... |
<|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 was the PI GP fpr pick# 235 for Rd# l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the largest crowd when South Me... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is richmond's scores when they are ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is south melbourne's scores when th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What dates were the matches at windy hil... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the average number of laps for the driver Piero Taruffi?
<|assistant|>
SELECT AVG("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which driver has 12 laps and a grid of less than 10?
<|assistant|>
SELECT "driver" FROM "ra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008" (
"date_of_issue" text,
"theme" text,
"design" text,
"illustration" text,
"paper_type" text,
"first_day_cover_cancellation" text
);
Question: What is the Illustration with a Design of t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008" (
"date_of_issue" text,
"theme" text,
"design" text,
"illustration" text,
"paper_type" text,
"first_day_cover_cancellation" text
);
Question: What is the Date of Issue with a Theme with... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008" (
"date_of_issue" text,
"theme" text,
"design" text,
"illustration" text,
"paper_type" text,
"first_day_cover_cancellation" text
);
Question: What is the Theme with a Design with sputni... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008" (
"date_of_issue" text,
"theme" text,
"design" text,
"illustration" text,
"paper_type" text,
"first_day_cover_cancellation" text
);
Question: What is the Paper Type with a First Day Cov... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008" (
"date_of_issue" text,
"theme" text,
"design" text,
"illustration" text,
"paper_type" text,
"first_day_cover_cancellation" text
);
Question: What is the Paper Type with an Illustration... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008" (
"date_of_issue" text,
"theme" text,
"design" text,
"illustration" text,
"paper_type" text,
"first_day_cover_cancellation" text
);
Question: What is the Theme with a Paper Type of tull... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What is the tie number when the away team is Lewes?
<|assistant|>
SELECT "t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What is the away team when the home team is Cheltenham Town?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What is the home team of the game with tie number 34?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What is the away team of the game with tie number 31?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
);
Question: How many goals for were scored for the team(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
);
Question: What is the average losses for the team(s) t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fleet_details" (
"class" text,
"type" text,
"introduced" text,
"fleet_size" real,
"numbers" text
);
Question: What is the fleet size of the Vanguard 0-6-0dh class?
<|assistant|>
SELECT "fleet_s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fleet_details" (
"class" text,
"type" text,
"introduced" text,
"fleet_size" real,
"numbers" text
);
Question: What is the year of introduction for the Electro-Diesel locomotive?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fleet_details" (
"class" text,
"type" text,
"introduced" text,
"fleet_size" real,
"numbers" text
);
Question: What is the average fleet size for the Shunter type introduced in 1959?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fleet_details" (
"class" text,
"type" text,
"introduced" text,
"fleet_size" real,
"numbers" text
);
Question: What is the smallest fleet size with a type of shunter introduced in 1953?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "weekly_ratings" (
"episode" text,
"air_date" text,
"time_slot_est" text,
"rating" real,
"share" real,
"18_49_rating_share" text,
"viewers_m" real,
"rank_overall" text
);
Question: What sh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: Which round has a car with a chassis of sf01?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scores" (
"country" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: Which country has swimsuit more than 9.46 and interview more than 9.22 with average... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scores" (
"country" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: Which is the total number of evening gowns for swimsui less than 9.36 and average l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scores" (
"country" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: Name the lowest average for interview more than 9.57 and delaware and evening gown ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scores" (
"country" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: Name the sum of swimsuit for average more than 9.23 for delaware for interview more... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scores" (
"country" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: Name the sum of average for interview more than 9.57 and swimsuit more than 9.65
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scores" (
"country" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: Name the evening gown for swimsuit more than 9.51 for maryland
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ranking_points" (
"finishing_position" text,
"points_awarded_platinum" real,
"points_awarded_gold" real,
"points_awarded_silver" real,
"points_awarded_satellite" real
);
Question: What points a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" text
);
Question: I... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which driver had a grid number of 10?
<|assistant|>
SELECT "driver" FROM "race" WHERE "grid... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which constructor had a grid number of less than 3 and where the Time/Retired was 1:34:31.5... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which constructor had a Time/Retired of collision, where the grid number was less than 18 a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What was the score for the record 20-14 when the attendance was over 35,196 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What was the record on May 20?
<|assistant|>
SELECT "record" FROM "game_log"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: What is the height in feet of player number 24?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: Who is the school, club, team or country that the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1995_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: Which player has a Position of infielder, and a Hometown of atlanta, ga?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1995_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What MLB draft has a School of green valley high school?
<|assistant|>
SELECT "mlb_dra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1995_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: Which position has a School of green valley high school?
<|assistant|>
SELECT "positio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1995_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: Which position has a Player of chad hutchinson?
<|assistant|>
SELECT "position" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1995_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: Which position has a School of petal high school?
<|assistant|>
SELECT "position" 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" real
);
Question: What is the date of week 8?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "week"=8;<|end... |
<|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: Which week has the lowest attendance of 48,102?
<|assistant|>
SELECT MIN("week") FROM "sched... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_day_international_cricket_man_of_the" (
"runs" text,
"against" text,
"city_country" text,
"venue" text,
"result" text,
"year" text
);
Question: What was the year with runs of 144?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_day_international_cricket_man_of_the" (
"runs" text,
"against" text,
"city_country" text,
"venue" text,
"result" text,
"year" text
);
Question: Name the place where adelaide oval is
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"stations" text,
"place" text,
"managed_by" text,
"platforms" real,
"zone" real
);
Question: Name the average zone for waddon marsh tram stop
<|assistant|>
SELECT AVG("zone") FROM "w" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"stations" text,
"place" text,
"managed_by" text,
"platforms" real,
"zone" real
);
Question: Name the stations for zone 5 and 1 platform by tramlink
<|assistant|>
SELECT "stations" FROM "w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"stations" text,
"place" text,
"managed_by" text,
"platforms" real,
"zone" real
);
Question: Name the total number of platforms that waddon railway station has
<|assistant|>
SELECT COUNT("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"stations" text,
"place" text,
"managed_by" text,
"platforms" real,
"zone" real
);
Question: Name the average zone for waddon railway station and has more than 2 platforms
<|assistant|>
SE... |
<|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" text,
"time" text,
"location" text
);
Question: What is Bob Ostovich's oppone... |
<|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" text,
"time" text,
"location" text
);
Question: What location is Jimmy Smith ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate_composition_as_a_result_of_the_el" (
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45_o" text,
"d_46_o" text,
"d_47" text,
"d_48" text,
"d_49" text,
"d_50" text
);
Que... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate_composition_as_a_result_of_the_el" (
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45_o" text,
"d_46_o" text,
"d_47" text,
"d_48" text,
"d_49" text,
"d_50" text
);
Que... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate_composition_as_a_result_of_the_el" (
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45_o" text,
"d_46_o" text,
"d_47" text,
"d_48" text,
"d_49" text,
"d_50" text
);
Que... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year_performance" (
"coach" text,
"season" text,
"record" text,
"home" text,
"away" text,
"win_pct" real,
"average_total_home_attendance" text
);
Question: What is the sum of all wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year_performance" (
"coach" text,
"season" text,
"record" text,
"home" text,
"away" text,
"win_pct" real,
"average_total_home_attendance" text
);
Question: What is the away score wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year_performance" (
"coach" text,
"season" text,
"record" text,
"home" text,
"away" text,
"win_pct" real,
"average_total_home_attendance" text
);
Question: What was the lowest win% ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year_performance" (
"coach" text,
"season" text,
"record" text,
"home" text,
"away" text,
"win_pct" real,
"average_total_home_attendance" text
);
Question: What was the away score w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year_performance" (
"coach" text,
"season" text,
"record" text,
"home" text,
"away" text,
"win_pct" real,
"average_total_home_attendance" text
);
Question: What is the lowest win% i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_american_meetings" (
"year" real,
"event" text,
"record" text,
"athlete" text,
"nationality" text
);
Question: What's the record during 1925?
<|assistant|>
SELECT "record" FROM "the_america... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_american_meetings" (
"year" real,
"event" text,
"record" text,
"athlete" text,
"nationality" text
);
Question: What is the earliest year that the discus throw event occur?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_by_ward" (
"ward" text,
"bello" text,
"ben_tahir" text,
"doucet" text,
"furtenbacher" text,
"gauthier" text,
"haydon" text,
"larter" text,
"lawrance" text,
"libweshya" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_by_ward" (
"ward" text,
"bello" text,
"ben_tahir" text,
"doucet" text,
"furtenbacher" text,
"gauthier" text,
"haydon" text,
"larter" text,
"lawrance" text,
"libweshya" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_by_ward" (
"ward" text,
"bello" text,
"ben_tahir" text,
"doucet" text,
"furtenbacher" text,
"gauthier" text,
"haydon" text,
"larter" text,
"lawrance" text,
"libweshya" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_by_ward" (
"ward" text,
"bello" text,
"ben_tahir" text,
"doucet" text,
"furtenbacher" text,
"gauthier" text,
"haydon" text,
"larter" text,
"lawrance" text,
"libweshya" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_by_ward" (
"ward" text,
"bello" text,
"ben_tahir" text,
"doucet" text,
"furtenbacher" text,
"gauthier" text,
"haydon" text,
"larter" text,
"lawrance" text,
"libweshya" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_by_ward" (
"ward" text,
"bello" text,
"ben_tahir" text,
"doucet" text,
"furtenbacher" text,
"gauthier" text,
"haydon" text,
"larter" text,
"lawrance" text,
"libweshya" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: How many attended the game that was a Loss of k. gross (1-1)?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "replays" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What is the score of the game with tie number 65?
<|assistant|>
SELECT "score" FROM "r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "replays" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: Which Home team had attendance 160?
<|assistant|>
SELECT "home_team" FROM "replays" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"record" text
);
Question: What is the record of the game with a decision of Ellis and Vancouver as the vi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"record" text
);
Question: What is the record of the game with Mason as the decision and Nashville as the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"record" text
);
Question: What is the date with Ellis as the decision and St. Louis as the visitor?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Which visiting team had a record of 31–31–8?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1985_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: Where is Jeff Lebo's hometown?
<|assistant|>
SELECT "hometown" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1985_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: Who is the player from Houston, TX?
<|assistant|>
SELECT "player"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What is the earliest year with an entry from Rotary Watches St... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: How many points were there in a year earlier than 1977, a Cosw... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.