text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: What is the hometown for tre madden?
<|assistant|>
SELECT "hometown" FROM "2010_team" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: What is the hometown for the player that is defensive back and went to alabama?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: What is the college for the player that went to ridge community high school and is defen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_present" (
"year" real,
"date" text,
"type" text,
"president" text,
"location" text
);
Question: What is the sum of Year with a Type of informal, and a Location with justus lipsius buildin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_present" (
"year" real,
"date" text,
"type" text,
"president" text,
"location" text
);
Question: What is the Type with a Location with justus lipsius building, brussels, and a Year of 2012... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_present" (
"year" real,
"date" text,
"type" text,
"president" text,
"location" text
);
Question: What is the President with a Location of justus lipsius building, brussels, and a Type with... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_present" (
"year" real,
"date" text,
"type" text,
"president" text,
"location" text
);
Question: What is the Location with a Year larger than 2011, and a President with herman van rompuy (... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_present" (
"year" real,
"date" text,
"type" text,
"president" text,
"location" text
);
Question: What is the President with a Year larger than 2011, and a Date with 23 may?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_present" (
"year" real,
"date" text,
"type" text,
"president" text,
"location" text
);
Question: What is the Type with a Year larger than 2010, and a Location with justus lipsius building,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
Question: What competition has a goal number of 13?
<|assistant|>
SELECT "competition" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defense" (
"player" text,
"tackles" real,
"asst" real,
"total_tk" real,
"sack" real,
"yards" real,
"fum_r" real
);
Question: What is the total of yards when asst. is 19, totaltk is 60 and s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defense" (
"player" text,
"tackles" real,
"asst" real,
"total_tk" real,
"sack" real,
"yards" real,
"fum_r" real
);
Question: what is the total sack for mike green when fumr is less than 0?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defense" (
"player" text,
"tackles" real,
"asst" real,
"total_tk" real,
"sack" real,
"yards" real,
"fum_r" real
);
Question: what is the total sack when totaltk is 1 and asst. is more than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defense" (
"player" text,
"tackles" real,
"asst" real,
"total_tk" real,
"sack" real,
"yards" real,
"fum_r" real
);
Question: what is the total number of tackles when fumr is 0, totaltk is 5... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defense" (
"player" text,
"tackles" real,
"asst" real,
"total_tk" real,
"sack" real,
"yards" real,
"fum_r" real
);
Question: what is the sum of totaltk when yards is less than 0?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
Question: What class is after 1973 with 41 points?
<|assistant|>
SELECT "class" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
Question: How many wins for bikes with under 54 points, team yamaha, a 250cc bike, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stages" (
"stage" real,
"date" text,
"course" text,
"distance" text,
"winner" text,
"gc_leader" text
);
Question: What distance did giovanni lombardi win after stage 5?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stages" (
"stage" real,
"date" text,
"course" text,
"distance" text,
"winner" text,
"gc_leader" text
);
Question: Who is the GC leader at ávila - segovia?
<|assistant|>
SELECT "gc_leader" FRO... |
<|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: How many grids have less than 41 laps and a Driver of pedro de la rosa?
<|assistant|>
SELEC... |
<|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 Time/Retired has a Grid smaller than 3, and a Driver of mika häkkinen?
<|assistant|>
... |
<|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 are toranosuke takagi's average laps?
<|assistant|>
SELECT AVG("laps") FROM "race" WHE... |
<|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 grid has a Time/Retired of +5.004?
<|assistant|>
SELECT MIN("grid") FROM "race" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What was the score of the game on November 9 when Atlanta ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What was the score of the home game at Tampa Bay?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What was the date of the game where Ottawa was the home te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards" (
"pitcher" text,
"date" text,
"team" text,
"result" text,
"site" text
);
Question: I want the result for team of giants
<|assistant|>
SELECT "result" FROM "awards" WHERE "team"='giants... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards" (
"pitcher" text,
"date" text,
"team" text,
"result" text,
"site" text
);
Question: Tell me the pitcher on september 6, 2006
<|assistant|>
SELECT "pitcher" FROM "awards" WHERE "date"='s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards" (
"pitcher" text,
"date" text,
"team" text,
"result" text,
"site" text
);
Question: I want the date for rockies
<|assistant|>
SELECT "date" FROM "awards" WHERE "team"='rockies';<|endoft... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards" (
"pitcher" text,
"date" text,
"team" text,
"result" text,
"site" text
);
Question: I want the date for aníbal sánchez
<|assistant|>
SELECT "date" FROM "awards" WHERE "pitcher"='aníbal ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards" (
"pitcher" text,
"date" text,
"team" text,
"result" text,
"site" text
);
Question: I want the result for team of giants
<|assistant|>
SELECT "result" FROM "awards" WHERE "team"='giants... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards" (
"pitcher" text,
"date" text,
"team" text,
"result" text,
"site" text
);
Question: I want the site for september 29, 2013
<|assistant|>
SELECT "site" FROM "awards" WHERE "date"='septem... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "5001_5100" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
);
Question: When the apparent magn... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "north_british_railway_coaches" (
"number_name" text,
"description" text,
"current_status" text,
"livery" text,
"date" text
);
Question: Which livery is from 1919?
<|assistant|>
SELECT "livery" ... |
<|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: Of the games with a record of 80-81, what was the highest attendance?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_rating_drama_series_of_2005" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_rating_drama_series_of_2005" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_rating_drama_series_of_2005" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
Question:... |
<|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 is the score for the home team when... |
<|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 is the location when the home team ... |
<|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 is the lowest crowd number at the v... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "american_weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot_est" text,
"rating" real,
"share" text,
"18_49_rating" text,
"viewers_millions" real,
"rank" text
);
Question: How ma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_supercross_results" (
"round" real,
"date" text,
"place" text,
"finished" text,
"total_points" real,
"standing" text
);
Question: Name the average round for jacksonville
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_supercross_results" (
"round" real,
"date" text,
"place" text,
"finished" text,
"total_points" real,
"standing" text
);
Question: I want the standing for january 29 and finished of 3rd a... |
<|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,
"record" text
);
Question: What was the result and score of the game on February 22?
<|assistant|>
SELECT "result" F... |
<|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 largest Rd# for a PI GP greate... |
<|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: Which team has a Reg GP over 62?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
);
Question: What is the total year with a Position of 12th?
<|assistant|>
SELECT SU... |
<|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: When a race had less than 18 laps and time/retired of accident, what was the smallest 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: What is the time/retired for a grid over 17 with 74 laps?
<|assistant|>
SELECT "time_retire... |
<|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 grid total for david coulthard?
<|assistant|>
SELECT SUM("grid") FROM "race" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "walking" (
"event" text,
"data" text,
"athlete" text,
"date" text,
"place" text
);
Question: What day did Chris Maddocks compete in the 35000 m?
<|assistant|>
SELECT "date" FROM "walking" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "walking" (
"event" text,
"data" text,
"athlete" text,
"date" text,
"place" text
);
Question: Who has a walking data of 214.061km?
<|assistant|>
SELECT "athlete" FROM "walking" WHERE "data"='214... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "walking" (
"event" text,
"data" text,
"athlete" text,
"date" text,
"place" text
);
Question: Who has a walking data of 3:10:48+?
<|assistant|>
SELECT "athlete" FROM "walking" WHERE "data"='3:10... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1" (
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: what is the title of the episode with the original air date of oct... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1" (
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: what is the title of the episode with the production code of ad1a2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1" (
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: who was the director of the episode with production code ad1a26?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: Who is the constructor whose circuit was ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What is the name of the race for which th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "b" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: During what years did the Guard from Oklahoma wit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"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 at MCG whe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_summaries" (
"competition" text,
"played" real,
"drawn" real,
"lost" real,
"position" text
);
Question: how many times what the position 6th, the competition was super league xvii and pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_goalscorers" (
"name" text,
"scotland_career" text,
"caps" real,
"goals" real,
"average" real
);
Question: What is the average cap number in scotland in 1986–1998 leass than 69?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_goalscorers" (
"name" text,
"scotland_career" text,
"caps" real,
"goals" real,
"average" real
);
Question: Which caps was in scotland in 1920–1923?
<|assistant|>
SELECT "caps" FROM "hig... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_goalscorers" (
"name" text,
"scotland_career" text,
"caps" real,
"goals" real,
"average" real
);
Question: What is the goal low with caps less than 38 and an average less than 1.083?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_goalscorers" (
"name" text,
"scotland_career" text,
"caps" real,
"goals" real,
"average" real
);
Question: What is the goal top with caps of 38 and an average less than 0.579?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_goalscorers" (
"name" text,
"scotland_career" text,
"caps" real,
"goals" real,
"average" real
);
Question: What is the low goal for kenny miller with an average smaller than 0.261?
<|as... |
<|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 home team plays at victoria park?
<... |
<|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 home team scored 23.17 (155)?
<|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: Where did away team st kilda play with a... |
<|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 north melbourne played as the home ... |
<|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 is the away team when home scored 1... |
<|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 is the away team score at victoria ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_standings" (
"position" real,
"club" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"points" real,
"goal_difference" real... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_standings" (
"position" real,
"club" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"points" real,
"goal_difference" real... |
<|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: Who was the home team that played at Moor... |
<|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: How large was the crowd when the away tea... |
<|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: Who was the home team when the away team ... |
<|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: How large was the crowd when Carlton was ... |
<|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: Which home team scored 19.11 (125)?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_selections" (
"year" real,
"pick" text,
"player_name" text,
"position" text,
"college" text
);
Question: I want the sum of year for mark barron
<|assistant|>
SELECT SUM("year") FROM "pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_selections" (
"year" real,
"pick" text,
"player_name" text,
"position" text,
"college" text
);
Question: Tell me the year for defensive tackle and college of lsu
<|assistant|>
SELECT "ye... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
Question: On April 28, what was the average number of people attendi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: Which player is a centre?
<|assistant|>
SELECT "player" FROM... |
<|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: What was the venue when Collingwood was t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_tries_in_a_match" (
"player" text,
"tries" text,
"conv" text,
"venue" text,
"date" text
);
Question: Where did Brian Hightower play when he has the Conv of 0?
<|assistant|>
SELECT "venue" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_tries_in_a_match" (
"player" text,
"tries" text,
"conv" text,
"venue" text,
"date" text
);
Question: What was Dick Hyland's conv?
<|assistant|>
SELECT "conv" FROM "most_tries_in_a_match" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_tries_in_a_match" (
"player" text,
"tries" text,
"conv" text,
"venue" text,
"date" text
);
Question: How many tries took place on 06/07/1996?
<|assistant|>
SELECT "tries" FROM "most_tries_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_tries_in_a_match" (
"player" text,
"tries" text,
"conv" text,
"venue" text,
"date" text
);
Question: Which player played on 07/06/1997?
<|assistant|>
SELECT "player" FROM "most_tries_in_a_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: The home team scored 11.17 (83) on what d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When the crowd was over 16,000 people and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_4" (
"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 16.16 (112)?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When the Away team is melbourne, what ven... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition" (
"state" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: What is the lowest interview of Texas, with an average larger than 9.531?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition" (
"state" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: What is the total interviews of Iowa, and with an evening gown smaller tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition" (
"state" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: What is the sum of the average of Hawaii, with an interviewer larger than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition" (
"state" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: What is the highest evening gown with an average of 9.531 and swimsuit sma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition" (
"state" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: What is the sum of swimsuit with an evening gown of 9.773 and average larg... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition" (
"state" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: What is the average of the swimsuit smaller than 9.545 , of Iowa, with an ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: Name the leading scorer for 1 april 2008
<|assistant|>
SELECT "leading_score... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.