text stringlengths 310 1.28k |
|---|
<|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: Tell me the number of bronze for silver of 0 and total less than 1
<|assistant|>
SELECT COUNT("bronze") FROM "medal_table" WHERE "silver"=0 AND "total"<1;<|endoftext|> |
<|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: Tell me the sum of total for rank of 1
<|assistant|>
SELECT SUM("total") FROM "medal_table" WHERE "rank"=1;<|endoftext|> |
<|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: Tell me the total number for costa rica and rank more than 8
<|assistant|>
SELECT COUNT("total") FROM "medal_table" WHERE "nation"='costa rica' AND "rank">8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_ukraine_goalscorers" (
"player" text,
"career" text,
"goals" real,
"caps" real,
"average" real
);
Question: What years did Tymerlan Huseynov, whose average is larger than 0.361, play?
<|assistant|>
SELECT "career" FROM "top_ukraine_goalscorers" WHERE "average">0.361 AND "player"='tymerlan huseynov';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_ukraine_goalscorers" (
"player" text,
"career" text,
"goals" real,
"caps" real,
"average" real
);
Question: Who scored more than 8 goals, had more than 75 caps, and averaged 0.432?
<|assistant|>
SELECT "player" FROM "top_ukraine_goalscorers" WHERE "goals">8 AND "caps">75 AND "average"=0.432;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_ukraine_goalscorers" (
"player" text,
"career" text,
"goals" real,
"caps" real,
"average" real
);
Question: What is the sum of the averages when there are 68 caps and less than 9 goals?
<|assistant|>
SELECT SUM("average") FROM "top_ukraine_goalscorers" WHERE "caps"=68 AND "goals"<9;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_singles_tournament_timeline" (
"tournament" text,
"1966" text,
"1967" text,
"1968" text,
"1969" text,
"1970" text,
"1971" text,
"1972" text,
"1973" text,
"1974" text,
"1975" text,
"1976" text,
"career_sr" text
);
Question: Tell me the 1968 for 1r
<|assistant|>
SELECT "1968" FROM "grand_slam_singles_tournament_timeline" WHERE "1967"='1r';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "record_by_conference" (
"conference" text,
"num_of_bids" real,
"record" text,
"win_pct" text,
"round_of_32" text,
"sweet_sixteen" text,
"elite_eight" text,
"final_four" text,
"championship_game" text
);
Question: Tell me the round of 32 for conference of southland
<|assistant|>
SELECT "round_of_32" FROM "record_by_conference" WHERE "conference"='southland';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "record_by_conference" (
"conference" text,
"num_of_bids" real,
"record" text,
"win_pct" text,
"round_of_32" text,
"sweet_sixteen" text,
"elite_eight" text,
"final_four" text,
"championship_game" text
);
Question: Tell me the lowest # of bids for win percent of .667
<|assistant|>
SELECT MIN("num_of_bids") FROM "record_by_conference" WHERE "win_pct"='.667';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lifts" (
"lift_name" text,
"type" text,
"length" real,
"vertical" real,
"cap_hour" real
);
Question: Tell me the sum of cap/hor for double chair and vertical less than 479
<|assistant|>
SELECT SUM("cap_hour") FROM "lifts" WHERE "type"='double chair' AND "vertical"<479;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1975_engines" (
"engine" text,
"horsepower" text,
"torque" text,
"carburetor" text,
"compression_ratio" text,
"bore_stroke" text,
"vin_code" text
);
Question: What's the compression ratio when the vin code is c?
<|assistant|>
SELECT "compression_ratio" FROM "1975_engines" WHERE "vin_code"='c';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
Question: Tell me the sum of year for extra of junior team competition
<|assistant|>
SELECT SUM("year") FROM "achievements" WHERE "extra"='junior team competition';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "style_series" (
"model" text,
"sensor_res_size" text,
"lens_35mmequiv_zoom_aperture" text,
"screen_size_pixels" text,
"dimensions_w_h_d_mm" text,
"weight" text
);
Question: Tell me the lens zoom for aperture of model s2600
<|assistant|>
SELECT "lens_35mmequiv_zoom_aperture" FROM "style_series" WHERE "model"='s2600';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "style_series" (
"model" text,
"sensor_res_size" text,
"lens_35mmequiv_zoom_aperture" text,
"screen_size_pixels" text,
"dimensions_w_h_d_mm" text,
"weight" text
);
Question: Tell me the screen size for pixels of model s6400
<|assistant|>
SELECT "screen_size_pixels" FROM "style_series" WHERE "model"='s6400';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "style_series" (
"model" text,
"sensor_res_size" text,
"lens_35mmequiv_zoom_aperture" text,
"screen_size_pixels" text,
"dimensions_w_h_d_mm" text,
"weight" text
);
Question: Name the sensor res for model of s9200
<|assistant|>
SELECT "sensor_res_size" FROM "style_series" WHERE "model"='s9200';<|endoftext|> |
<|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: Tell me the nation for bronze more than 0 and total more than 8 with gold of 4
<|assistant|>
SELECT "nation" FROM "medal_table" WHERE "bronze">0 AND "total">8 AND "gold"=4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1970_isle_of_man_production_250_cc_tt_fi" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
Question: Who is Team Suzuki's rider and ranks higher than 6?
<|assistant|>
SELECT "rider" FROM "1970_isle_of_man_production_250_cc_tt_fi" WHERE "rank">6 AND "team"='suzuki';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" text,
"division" real,
"league" text,
"reg_season" text,
"playoffs" text
);
Question: Who was the lowest division in the 7th season?
<|assistant|>
SELECT MIN("division") FROM "year_by_year" WHERE "reg_season"='7th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" text,
"division" real,
"league" text,
"reg_season" text,
"playoffs" text
);
Question: In 1924/25, who was in the playoffs?
<|assistant|>
SELECT "playoffs" FROM "year_by_year" WHERE "year"='1924/25';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" text,
"division" real,
"league" text,
"reg_season" text,
"playoffs" text
);
Question: Which division has no playoff but has a 12th game in their season?
<|assistant|>
SELECT MAX("division") FROM "year_by_year" WHERE "playoffs"='no playoff' AND "reg_season"='12th';<|endoftext|> |
<|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,
"notes" text
);
Question: What was the venue of the competition that held the 1st position in 2011?
<|assistant|>
SELECT "venue" FROM "achievements" WHERE "position"='1st' AND "year"=2011;<|endoftext|> |
<|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,
"notes" text
);
Question: What was the position of the Olympic Games in the year 2008?
<|assistant|>
SELECT "position" FROM "achievements" WHERE "competition"='olympic games' AND "year"=2008;<|endoftext|> |
<|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,
"notes" text
);
Question: Which competition held the 1st position in 2009?
<|assistant|>
SELECT "competition" FROM "achievements" WHERE "position"='1st' AND "year"=2009;<|endoftext|> |
<|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,
"notes" text
);
Question: Which venue did the African Championships have after 2006 with a position of 2nd and 3000 m s'chase in notes?
<|assistant|>
SELECT "venue" FROM "achievements" WHERE "year">2006 AND "notes"='3000 m s''chase' AND "position"='2nd' AND "competition"='african championships';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" real,
"label" text,
"format" text,
"catalog" text
);
Question: Tell me the label for US region and catalog of 10008-2
<|assistant|>
SELECT "label" FROM "release_history" WHERE "region"='us' AND "catalog"='10008-2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" real,
"label" text,
"format" text,
"catalog" text
);
Question: Tell me the date for format of cd/dvd
<|assistant|>
SELECT "date" FROM "release_history" WHERE "format"='cd/dvd';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" real,
"label" text,
"format" text,
"catalog" text
);
Question: Tell me the format for european union
<|assistant|>
SELECT "format" FROM "release_history" WHERE "region"='european union';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" real,
"label" text,
"format" text,
"catalog" text
);
Question: Tell me the catalog for date larger than 2004
<|assistant|>
SELECT "catalog" FROM "release_history" WHERE "date">2004;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" real,
"label" text,
"format" text,
"catalog" text
);
Question: I want the lowest date for catalog of 6561910008-1
<|assistant|>
SELECT MIN("date") FROM "release_history" WHERE "catalog"='6561910008-1';<|endoftext|> |
<|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,
"crowd" real,
"date" text
);
Question: What date was there a crowd larger than 30,343?
<|assistant|>
SELECT "date" FROM "round_13" WHERE "crowd">'30,343';<|endoftext|> |
<|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,
"crowd" real,
"date" text
);
Question: Which venue was played in when the Away team scored 11.5 (71)?
<|assistant|>
SELECT "venue" FROM "round_13" WHERE "away_team_score"='11.5 (71)';<|endoftext|> |
<|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,
"crowd" real,
"date" text
);
Question: What was the lowest Crowd total from a game in which Essendon was the Away team?
<|assistant|>
SELECT MIN("crowd") FROM "round_13" WHERE "away_team"='essendon';<|endoftext|> |
<|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,
"crowd" real,
"date" text
);
Question: Which Venue was played in when the Away team scored 13.13 (91)?
<|assistant|>
SELECT "venue" FROM "round_13" WHERE "away_team_score"='13.13 (91)';<|endoftext|> |
<|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,
"crowd" real,
"date" text
);
Question: Which Venue was used when the Home team was geelong?
<|assistant|>
SELECT "venue" FROM "round_13" WHERE "home_team"='geelong';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_career" (
"date" text,
"venue" text,
"result" text,
"scored" real,
"competition" text
);
Question: What is the highest scored in the 2010 east asian football championship?
<|assistant|>
SELECT MAX("scored") FROM "international_career" WHERE "competition"='2010 east asian football championship';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"rank" text,
"stadium" text,
"capacity" real,
"city" text,
"country" text
);
Question: Which country is Wellington located in?
<|assistant|>
SELECT "country" FROM "see_also" WHERE "city"='wellington';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalogue" text
);
Question: What label is in download format in the United States?
<|assistant|>
SELECT "label" FROM "release" WHERE "region"='united states' AND "format"='download';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalogue" text
);
Question: What label is in download format in the United States?
<|assistant|>
SELECT "label" FROM "release" WHERE "region"='united states' AND "format"='download';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalogue" text
);
Question: What label has RTRADLP 346 as catalogue?
<|assistant|>
SELECT "label" FROM "release" WHERE "catalogue"='rtradlp 346';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalogue" text
);
Question: What label has 22 January 2008 date?
<|assistant|>
SELECT "label" FROM "release" WHERE "date"='22 january 2008';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalogue" text
);
Question: What is the label for catalogue of RT-346-5?
<|assistant|>
SELECT "label" FROM "release" WHERE "catalogue"='rt-346-5';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: What position is mentioned for Rice school?
<|assistant|>
SELECT "position" FROM "nfl_draft" WHERE "school_club_team"='rice';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: What is the average round for Wisconsin when the overall is larger than 238 and there is a defensive end?
<|assistant|>
SELECT AVG("round") FROM "nfl_draft" WHERE "overall">238 AND "position"='defensive end' AND "school_club_team"='wisconsin';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: What is the average round when there is a defensive back and an overall smaller than 199?
<|assistant|>
SELECT AVG("round") FROM "nfl_draft" WHERE "position"='defensive back' AND "overall"<199;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"date" text,
"result" text,
"score" text,
"stadium" text,
"city" text,
"crowd" real
);
Question: What was the date of game with a score of 42-6?
<|assistant|>
SELECT "date" FROM "round_3" WHERE "score"='42-6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"date" text,
"result" text,
"score" text,
"stadium" text,
"city" text,
"crowd" real
);
Question: What stadium was the game played at when the result was hunter mariners def. sheffield eagles?
<|assistant|>
SELECT "stadium" FROM "round_3" WHERE "result"='hunter mariners def. sheffield eagles';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"date" text,
"result" text,
"score" text,
"stadium" text,
"city" text,
"crowd" real
);
Question: What city has a Result of brisbane broncos def. halifax blue sox?
<|assistant|>
SELECT "city" FROM "round_3" WHERE "result"='brisbane broncos def. halifax blue sox';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: Which player was drafted after round 9 and number 464 overall?
<|assistant|>
SELECT "player" FROM "nfl_draft" WHERE "round">9 AND "overall"=464;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: What was James Reed's draft round number?
<|assistant|>
SELECT COUNT("round") FROM "nfl_draft" WHERE "player"='james reed';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: What was the overall draft number of Tom Fleming, a wide receiver?
<|assistant|>
SELECT COUNT("overall") FROM "nfl_draft" WHERE "position"='wide receiver' AND "player"='tom fleming';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: Which player is from Dartmouth?
<|assistant|>
SELECT "player" FROM "nfl_draft" WHERE "school_club_team"='dartmouth';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "k" (
"player" text,
"nationality" text,
"position" text,
"from" text,
"school_country" text
);
Question: What position does the player from tulsa play?
<|assistant|>
SELECT "position" FROM "k" WHERE "school_country"='tulsa';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "20th_century" (
"date" text,
"epicenter" text,
"magnitude" real,
"fatalities" text,
"name" text
);
Question: What is the sum of Magnitude on february 12, 1953?
<|assistant|>
SELECT SUM("magnitude") FROM "20th_century" WHERE "date"='february 12, 1953';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_winners" (
"year" real,
"date_contested" text,
"sport" text,
"winning_team" text,
"losing_team" text,
"final_score" text
);
Question: What was the final score of a baseball game that happened before 2005?
<|assistant|>
SELECT "final_score" FROM "list_of_winners" WHERE "sport"='baseball' AND "year"<2005;<|endoftext|> |
<|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 venue did Richmond play as the away team?
<|assistant|>
SELECT "venue" FROM "round_18" WHERE "away_team"='richmond';<|endoftext|> |
<|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 team of Essendon's score in the game where they were the home team?
<|assistant|>
SELECT "home_team_score" FROM "round_18" WHERE "home_team"='essendon';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who is the away side when st kilda is the home side?
<|assistant|>
SELECT "away_team" FROM "round_19" WHERE "home_team"='st kilda';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"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 side score when footscray is the home side?
<|assistant|>
SELECT "away_team_score" FROM "round_19" WHERE "home_team"='footscray';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the home team's score at kardinia park?
<|assistant|>
SELECT "home_team_score" FROM "round_19" WHERE "venue"='kardinia park';<|endoftext|> |
<|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 lowest crowd seen at a game that Richmond was the Away team in?
<|assistant|>
SELECT MIN("crowd") FROM "round_5" WHERE "away_team"='richmond';<|endoftext|> |
<|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 highest crowd count seen in the Windy Hill venue?
<|assistant|>
SELECT MAX("crowd") FROM "round_5" WHERE "venue"='windy hill';<|endoftext|> |
<|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: On what date did Brunswick Street Oval see more than 19,500 people?
<|assistant|>
SELECT "date" FROM "round_5" WHERE "crowd">'19,500' AND "venue"='brunswick street oval';<|endoftext|> |
<|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 score of the Away team that played against the Home team of Fitzroy?
<|assistant|>
SELECT "away_team_score" FROM "round_5" WHERE "home_team"='fitzroy';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: Which was the lowest overall that Wisconsin's team managed?
<|assistant|>
SELECT MIN("overall") FROM "nfl_draft" WHERE "school_club_team"='wisconsin';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: Which team was Roy de Walt a player on?
<|assistant|>
SELECT "school_club_team" FROM "nfl_draft" WHERE "player"='roy de walt';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: In which round did Paul McDonald have an overall greater than 109?
<|assistant|>
SELECT MAX("round") FROM "nfl_draft" WHERE "player"='paul mcdonald' AND "overall">109;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: What is the total overall in round 1, in which Charles White was a player?
<|assistant|>
SELECT SUM("overall") FROM "nfl_draft" WHERE "player"='charles white' AND "round"<1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: What is the name of a running back in a round before round 3?
<|assistant|>
SELECT "player" FROM "nfl_draft" WHERE "round"<3 AND "position"='running back';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_by_season_records" (
"year" real,
"team_name" text,
"wins" real,
"losses" real,
"w_l_pct" text,
"manager" text
);
Question: What is the win/loss percentage with wins of 63 and losses smaller than 76?
<|assistant|>
SELECT "w_l_pct" FROM "season_by_season_records" WHERE "wins"=63 AND "losses"<76;<|endoftext|> |
<|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 away team score when the home team is Geelong?
<|assistant|>
SELECT "away_team_score" FROM "round_14" WHERE "home_team"='geelong';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "weeks_at_number_one" (
"rank" real,
"player" text,
"country" text,
"weeks" real,
"order" real,
"majors" real
);
Question: What was the highest order amount in weeks prier to 15 and a major less than 1?
<|assistant|>
SELECT MAX("order") FROM "weeks_at_number_one" WHERE "weeks"<15 AND "majors"<1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"from" real,
"school_country" text
);
Question: What is the position of the player from Temple?
<|assistant|>
SELECT "position" FROM "m" WHERE "school_country"='temple';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"from" real,
"school_country" text
);
Question: What is the most recent year from Creighton?
<|assistant|>
SELECT MAX("from") FROM "m" WHERE "school_country"='creighton';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"from" real,
"school_country" text
);
Question: What is the most recent year with a United States nationality and the school Hamline?
<|assistant|>
SELECT MAX("from") FROM "m" WHERE "nationality"='united states' AND "school_country"='hamline';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "j" (
"player" text,
"nationality" text,
"position" text,
"from" text,
"school_country" text
);
Question: Which player is from 2012 and North Carolina?
<|assistant|>
SELECT "player" FROM "j" WHERE "from"='2012' AND "school_country"='north carolina';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "j" (
"player" text,
"nationality" text,
"position" text,
"from" text,
"school_country" text
);
Question: Which player is associated with Temple?
<|assistant|>
SELECT "player" FROM "j" WHERE "school_country"='temple';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "j" (
"player" text,
"nationality" text,
"position" text,
"from" text,
"school_country" text
);
Question: Which nationality is associated with Temple?
<|assistant|>
SELECT "nationality" FROM "j" WHERE "school_country"='temple';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "j" (
"player" text,
"nationality" text,
"position" text,
"from" text,
"school_country" text
);
Question: Which player was a forward/center from 1960?
<|assistant|>
SELECT "player" FROM "j" WHERE "from"='1960' AND "position"='forward/center';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goalscoring" (
"rank" real,
"all_time_rank" text,
"name" text,
"debut_year" real,
"current_club" text,
"goals" real,
"apps" real
);
Question: How many goals were achieved when Chievo was the club and the debut year was before 2002?
<|assistant|>
SELECT COUNT("goals") FROM "goalscoring" WHERE "current_club"='chievo' AND "debut_year"<2002;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goalscoring" (
"rank" real,
"all_time_rank" text,
"name" text,
"debut_year" real,
"current_club" text,
"goals" real,
"apps" real
);
Question: How many goals occurred with Diego Milito in a debut year later than 2008?
<|assistant|>
SELECT COUNT("goals") FROM "goalscoring" WHERE "name"='diego milito' AND "debut_year">2008;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goalscoring" (
"rank" real,
"all_time_rank" text,
"name" text,
"debut_year" real,
"current_club" text,
"goals" real,
"apps" real
);
Question: Which value for Apps is associated with the all-time rank of 53?
<|assistant|>
SELECT "apps" FROM "goalscoring" WHERE "all_time_rank"='53';<|endoftext|> |
<|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: Who is the home team at the Punt Road Oval?
<|assistant|>
SELECT "home_team_score" FROM "round_8" WHERE "venue"='punt road oval';<|endoftext|> |
<|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: Who is the away team at Windy Hill?
<|assistant|>
SELECT "away_team" FROM "round_8" WHERE "venue"='windy hill';<|endoftext|> |
<|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 date of the game that had a crowd larger than 25,000?
<|assistant|>
SELECT "date" FROM "round_18" WHERE "crowd">'25,000';<|endoftext|> |
<|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 South Melbourne's score as the home team?
<|assistant|>
SELECT "home_team_score" FROM "round_18" WHERE "home_team"='south melbourne';<|endoftext|> |
<|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 away team when the home team scored 13.12 (90)?
<|assistant|>
SELECT "away_team" FROM "round_18" WHERE "home_team_score"='13.12 (90)';<|endoftext|> |
<|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 date of the game where the home team scored 7.7 (49)?
<|assistant|>
SELECT "date" FROM "round_18" WHERE "home_team_score"='7.7 (49)';<|endoftext|> |
<|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 largest crowd of a game where Collingwood was the away team?
<|assistant|>
SELECT MAX("crowd") FROM "round_18" WHERE "away_team"='collingwood';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: What's the lowest round with the opponent John Howard that had a method of Decision (unanimous)?
<|assistant|>
SELECT MIN("round") FROM "mixed_martial_arts_record" WHERE "method"='decision (unanimous)' AND "opponent"='john howard';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: What's the time for the match with a record of 2-0?
<|assistant|>
SELECT "time" FROM "mixed_martial_arts_record" WHERE "record"='2-0';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: Where was the match with a method of submission (standing guillotine choke)?
<|assistant|>
SELECT "location" FROM "mixed_martial_arts_record" WHERE "method"='submission (standing guillotine choke)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_kingdom" (
"network" text,
"origin_of_programming" text,
"language" text,
"genre" text,
"service" text
);
Question: What language is the moviein that is on UMP movies network through Sky service?
<|assistant|>
SELECT "language" FROM "united_kingdom" WHERE "genre"='movies' AND "service"='sky' AND "network"='ump movies';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_kingdom" (
"network" text,
"origin_of_programming" text,
"language" text,
"genre" text,
"service" text
);
Question: What language is the movie in that is on SAB network through Sky service?
<|assistant|>
SELECT "language" FROM "united_kingdom" WHERE "network"='sab' AND "service"='sky';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: What was the overall pick for the player who was a guard and had a round less than 9?
<|assistant|>
SELECT AVG("overall") FROM "nfl_draft" WHERE "position"='guard' AND "round"<9;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: What was the lowest round number that had an overall pick up 92?
<|assistant|>
SELECT MIN("round") FROM "nfl_draft" WHERE "overall"=92;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "published_films" (
"type" text,
"released" text,
"cc_license" text,
"sources_available" text,
"open_source_movie" text,
"commercial_reuse" text
);
Question: What open source movie has a CC License of by-nc-sa 1.0?
<|assistant|>
SELECT "open_source_movie" FROM "published_films" WHERE "cc_license"='by-nc-sa 1.0';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: Which venue had the result 7-1?
<|assistant|>
SELECT "venue" FROM "international_goals" WHERE "result"='7-1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What date was the Competition of rothmans cup?
<|assistant|>
SELECT "date" FROM "international_goals" WHERE "competition"='rothmans cup';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the result of the Competition of friendly?
<|assistant|>
SELECT "result" FROM "international_goals" WHERE "competition"='friendly';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: Which competition was played on 8 June 2005?
<|assistant|>
SELECT "competition" FROM "international_goals" WHERE "date"='8 june 2005';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.