text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which college's round is more than 4, when the overall is less than 237 and Ted Cottrell was the name?
<|assistant|>
SELECT "college" FROM "atlanta_falcons_draft_history" WHERE "round">4 AND "overall"<237 AND "name"='ted cottrell';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the smallest overall for Oregon State?
<|assistant|>
SELECT MIN("overall") FROM "atlanta_falcons_draft_history" WHERE "college"='oregon state';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"height" text,
"weight" text,
"class" text,
"position" text,
"hometown" text
);
Question: What is the class of the qb, Josh Riddell?
<|assistant|>
SELECT "class" FROM "roster" WHERE "position"='qb' AND "name"='josh riddell';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"height" text,
"weight" text,
"class" text,
"position" text,
"hometown" text
);
Question: What position does Jamar Chaney play?
<|assistant|>
SELECT "position" FROM "roster" WHERE "name"='jamar chaney';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"height" text,
"weight" text,
"class" text,
"position" text,
"hometown" text
);
Question: What hometown is Kyle love from?
<|assistant|>
SELECT "hometown" FROM "roster" WHERE "name"='kyle love';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
Question: Which Attendance has a Home of philadelphia, and Points smaller than 23?
<|assistant|>
SELECT SUM("attendance") FROM "game_log" WHERE "home"='philadelphia' AND "points"<23;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
Question: Which Visitor has a Record of 9–12–5?
<|assistant|>
SELECT "visitor" FROM "game_log" WHERE "record"='9–12–5';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
Question: Which Date has a Visitor of boston?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "visitor"='boston';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "futures_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What is the date for the grass surface final against Nathan Healey?
<|assistant|>
SELECT "date" FROM "futures_titles" WHERE "surface"='grass' AND "opponent_in_the_final"='nathan healey';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "futures_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What was the score of the final against Dane Propoggia?
<|assistant|>
SELECT "score" FROM "futures_titles" WHERE "opponent_in_the_final"='dane propoggia';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "groups_10_clubs" (
"nation" text,
"t_score" real,
"a_score" real,
"e_score" real,
"total" real
);
Question: What was the total score when the E score was larger than 9.6 and the A score was 6?
<|assistant|>
SELECT "total" FROM "groups_10_clubs" WHERE "e_score">9.6 AND "a_score"=6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "groups_10_clubs" (
"nation" text,
"t_score" real,
"a_score" real,
"e_score" real,
"total" real
);
Question: What was the average E score when the T score was less than 4?
<|assistant|>
SELECT AVG("e_score") FROM "groups_10_clubs" WHERE "t_score"<4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "groups_10_clubs" (
"nation" text,
"t_score" real,
"a_score" real,
"e_score" real,
"total" real
);
Question: What was the average T score when the E score was larger than 9.6 and the team was from Spain?
<|assistant|>
SELECT AVG("t_score") FROM "groups_10_clubs" WHERE "nation"='spain' AND "e_score">9.6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "groups_10_clubs" (
"nation" text,
"t_score" real,
"a_score" real,
"e_score" real,
"total" real
);
Question: What was the total number of A scores for Japan when the T score was more than 4?
<|assistant|>
SELECT COUNT("a_score") FROM "groups_10_clubs" WHERE "nation"='japan' AND "t_score">4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "groups_10_clubs" (
"nation" text,
"t_score" real,
"a_score" real,
"e_score" real,
"total" real
);
Question: What was the sum of the E scores when the total score was 19.466?
<|assistant|>
SELECT SUM("e_score") FROM "groups_10_clubs" WHERE "total"=19.466;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "groups_10_clubs" (
"nation" text,
"t_score" real,
"a_score" real,
"e_score" real,
"total" real
);
Question: What is the total number of E scores when the total score was 19.7 and the A score was more than 6?
<|assistant|>
SELECT COUNT("e_score") FROM "groups_10_clubs" WHERE "total"=19.7 AND "a_score">6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_c_netherlands" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: What is the highest number of draws with 14 points and less than 7 games?
<|assistant|>
SELECT MAX("drawn") FROM "world_championship_group_c_netherlands" WHERE "points"=14 AND "games"<7;<|endoftext|> |
<|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,
"record" text,
"attendance" text
);
Question: What was the attendance at the game with a record of 4-5?
<|assistant|>
SELECT "attendance" FROM "schedule" WHERE "record"='4-5';<|endoftext|> |
<|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,
"record" text,
"attendance" text
);
Question: What was the date of the week 16 game?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "week"=16;<|endoftext|> |
<|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,
"record" text,
"attendance" text
);
Question: What was the record at the game with a result of W 13-12 after week 4?
<|assistant|>
SELECT "record" FROM "schedule" WHERE "week">4 AND "result"='w 13-12';<|endoftext|> |
<|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,
"record" text,
"attendance" text
);
Question: Who was the opponent at the game attended by 62,019 before week 17?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "week"<17 AND "attendance"='62,019';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atp_doubles_finals_13_6_7" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
Question: Name the surface for january 8, 2001
<|assistant|>
SELECT "surface" FROM "atp_doubles_finals_13_6_7" WHERE "date"='january 8, 2001';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atp_doubles_finals_13_6_7" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
Question: Name the outcome for jordan kerr july 19, 2004
<|assistant|>
SELECT "outcome" FROM "atp_doubles_finals_13_6_7" WHERE "partnering"='jordan kerr' AND "date"='july 19, 2004';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atp_doubles_finals_13_6_7" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
Question: Name the score for opponents of nathan healey igor kunitsyn
<|assistant|>
SELECT "score" FROM "atp_doubles_finals_13_6_7" WHERE "opponents_in_the_final"='nathan healey igor kunitsyn';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atp_doubles_finals_13_6_7" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
Question: Name the outcome for opponents of jonas björkman john mcenroe
<|assistant|>
SELECT "outcome" FROM "atp_doubles_finals_13_6_7" WHERE "opponents_in_the_final"='jonas björkman john mcenroe';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atp_doubles_finals_13_6_7" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
Question: Name the surface for paul goldstein and date of october 2, 2006
<|assistant|>
SELECT "surface" FROM "atp_doubles_finals_13_6_7" WHERE "partnering"='paul goldstein' AND "date"='october 2, 2006';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_c_spain" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: Which Games have a Drawn smaller than 1, and a Lost smaller than 1?
<|assistant|>
SELECT "games" FROM "world_championship_group_c_spain" WHERE "drawn"<1 AND "lost"<1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_c_spain" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: Which Drawn is the lowest one that has a Lost of 5, and Points larger than 4?
<|assistant|>
SELECT MIN("drawn") FROM "world_championship_group_c_spain" WHERE "lost"=5 AND "points">4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general_election_results" (
"election" text,
"d_il" text,
"share_of_votes" text,
"seats" real,
"government" text
);
Question: Which Government has 57 seats?
<|assistant|>
SELECT "government" FROM "general_election_results" WHERE "seats"=57;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general_election_results" (
"election" text,
"d_il" text,
"share_of_votes" text,
"seats" real,
"government" text
);
Question: How many seats does the 6th Dail have?
<|assistant|>
SELECT COUNT("seats") FROM "general_election_results" WHERE "d_il"='6th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general_election_results" (
"election" text,
"d_il" text,
"share_of_votes" text,
"seats" real,
"government" text
);
Question: What is the number of the dail with 61 seats?
<|assistant|>
SELECT "d_il" FROM "general_election_results" WHERE "seats"=61;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general_election_results" (
"election" text,
"d_il" text,
"share_of_votes" text,
"seats" real,
"government" text
);
Question: What is the lowest number of seats from the election with 27.0% of votes?
<|assistant|>
SELECT MIN("seats") FROM "general_election_results" WHERE "share_of_votes"='27.0%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general_election_results" (
"election" text,
"d_il" text,
"share_of_votes" text,
"seats" real,
"government" text
);
Question: What is the 6th dail share of votes?
<|assistant|>
SELECT "share_of_votes" FROM "general_election_results" WHERE "d_il"='6th';<|endoftext|> |
<|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,
"game_site" text,
"record" text,
"attendance" text
);
Question: What was the highest week when the record was 1-3?
<|assistant|>
SELECT MAX("week") FROM "schedule" WHERE "record"='1-3';<|endoftext|> |
<|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,
"game_site" text,
"record" text,
"attendance" text
);
Question: Who was the opponent at the game attended by 62,657?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "attendance"='62,657';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "inland_steam_and_river_boats_of_coos_bay" (
"name" text,
"type" text,
"year_built" real,
"where_built" text,
"length" text
);
Question: What is the year built for the Fay No. 4?
<|assistant|>
SELECT MAX("year_built") FROM "inland_steam_and_river_boats_of_coos_bay" WHERE "name"='fay no. 4';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "inland_steam_and_river_boats_of_coos_bay" (
"name" text,
"type" text,
"year_built" real,
"where_built" text,
"length" text
);
Question: Where the length is 91', what is the year built?
<|assistant|>
SELECT "year_built" FROM "inland_steam_and_river_boats_of_coos_bay" WHERE "length"='91''';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elementary_schools_grades_k_6" (
"elementary_schools" text,
"mascot" text,
"address" text,
"principal_2013_2014" text,
"assistant_principal_2013_2014" text
);
Question: What is the address for the Scorpions' mascot?
<|assistant|>
SELECT "address" FROM "elementary_schools_grades_k_6" WHERE "mascot"='scorpions';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elementary_schools_grades_k_6" (
"elementary_schools" text,
"mascot" text,
"address" text,
"principal_2013_2014" text,
"assistant_principal_2013_2014" text
);
Question: What is the address for the assistant principal named Kelly Papke?
<|assistant|>
SELECT "address" FROM "elementary_schools_grades_k_6" WHERE "assistant_principal_2013_2014"='kelly papke';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elementary_schools_grades_k_6" (
"elementary_schools" text,
"mascot" text,
"address" text,
"principal_2013_2014" text,
"assistant_principal_2013_2014" text
);
Question: What was the mascot for the 2013-2014 principal named Frank Hendricsen?
<|assistant|>
SELECT "mascot" FROM "elementary_schools_grades_k_6" WHERE "principal_2013_2014"='frank hendricsen';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elementary_schools_grades_k_6" (
"elementary_schools" text,
"mascot" text,
"address" text,
"principal_2013_2014" text,
"assistant_principal_2013_2014" text
);
Question: Who were the assistant and main principals of Kat Hughes?
<|assistant|>
SELECT "assistant_principal_2013_2014" FROM "elementary_schools_grades_k_6" WHERE "principal_2013_2014"='kat hughes';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elementary_schools_grades_k_6" (
"elementary_schools" text,
"mascot" text,
"address" text,
"principal_2013_2014" text,
"assistant_principal_2013_2014" text
);
Question: What is the address for the school that has the coyotes mascot?
<|assistant|>
SELECT "address" FROM "elementary_schools_grades_k_6" WHERE "mascot"='coyotes';<|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 is the result of the game played at Jinan?
<|assistant|>
SELECT "result" FROM "international_goals" WHERE "venue"='jinan';<|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 is the score of the game on November 10, 2006?
<|assistant|>
SELECT "score" FROM "international_goals" WHERE "date"='november 10, 2006';<|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 is the date of the game held at Lahore?
<|assistant|>
SELECT "date" FROM "international_goals" WHERE "venue"='lahore';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_starts_from_front_row_in_a_season" (
"driver" text,
"season" text,
"entries" real,
"front_row_starts" real,
"percentage" text
);
Question: What were the total number of entries in 2001 that had a front row smaller than 13?
<|assistant|>
SELECT COUNT("entries") FROM "most_starts_from_front_row_in_a_season" WHERE "season"='2001' AND "front_row_starts"<13;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_starts_from_front_row_in_a_season" (
"driver" text,
"season" text,
"entries" real,
"front_row_starts" real,
"percentage" text
);
Question: What are the lowest entries for a front row smaller than 15 where Michael Schumacher was driving?
<|assistant|>
SELECT MIN("entries") FROM "most_starts_from_front_row_in_a_season" WHERE "front_row_starts"<15 AND "driver"='michael schumacher';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_starts_from_front_row_in_a_season" (
"driver" text,
"season" text,
"entries" real,
"front_row_starts" real,
"percentage" text
);
Question: What was the highest front row starts for Alain Prost?
<|assistant|>
SELECT MAX("front_row_starts") FROM "most_starts_from_front_row_in_a_season" WHERE "driver"='alain prost';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_ladder" (
"ntfa_div_2" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: Which Against has Losses larger than 2, and Wins of 8, and Byes smaller than 0?
<|assistant|>
SELECT SUM("against") FROM "2009_ladder" WHERE "losses">2 AND "wins"=8 AND "byes"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_ladder" (
"ntfa_div_2" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: Which Draws have Wins larger than 14?
<|assistant|>
SELECT SUM("draws") FROM "2009_ladder" WHERE "wins">14;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_ladder" (
"ntfa_div_2" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: How many Losses have an NTFA Div 2 of perth, and Wins smaller than 10?
<|assistant|>
SELECT COUNT("losses") FROM "2009_ladder" WHERE "ntfa_div_2"='perth' AND "wins"<10;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_ladder" (
"ntfa_div_2" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: Which Byes have an Against smaller than 1647, and an NTFA Div 2 of fingal valley, and Wins smaller than 14?
<|assistant|>
SELECT MAX("byes") FROM "2009_ladder" WHERE "against"<1647 AND "ntfa_div_2"='fingal valley' AND "wins"<14;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sprint_race" (
"team" text,
"driver" text,
"laps" real,
"time" text,
"grid" real
);
Question: How many grids were there races with more than 10 laps and a time of +34.121?
<|assistant|>
SELECT COUNT("grid") FROM "sprint_race" WHERE "time"='+34.121' AND "laps">10;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sprint_race" (
"team" text,
"driver" text,
"laps" real,
"time" text,
"grid" real
);
Question: What is the smallest grid number that had 10 laps listed with Jonathan Summerton as the driver?
<|assistant|>
SELECT MIN("grid") FROM "sprint_race" WHERE "laps"=10 AND "driver"='jonathan summerton';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sprint_race" (
"team" text,
"driver" text,
"laps" real,
"time" text,
"grid" real
);
Question: What is the average grid number that had Team China with less than 10 laps?
<|assistant|>
SELECT AVG("grid") FROM "sprint_race" WHERE "laps"<10 AND "team"='china';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general" (
"name" text,
"creator" text,
"platform_os" text,
"first_public_release" text,
"latest_stable_release" text,
"open_source" text,
"programming_language_used" text
);
Question: Which Creator has the Latest stable release of unknown, and a Name of myeclipse?
<|assistant|>
SELECT "creator" FROM "general" WHERE "latest_stable_release"='unknown' AND "name"='myeclipse';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general" (
"name" text,
"creator" text,
"platform_os" text,
"first_public_release" text,
"latest_stable_release" text,
"open_source" text,
"programming_language_used" text
);
Question: Which Platform / OS has a Name of altova umodel?
<|assistant|>
SELECT "platform_os" FROM "general" WHERE "name"='altova umodel';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general" (
"name" text,
"creator" text,
"platform_os" text,
"first_public_release" text,
"latest_stable_release" text,
"open_source" text,
"programming_language_used" text
);
Question: Which Programming language used has a First public release of 1997?
<|assistant|>
SELECT "programming_language_used" FROM "general" WHERE "first_public_release"='1997';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general" (
"name" text,
"creator" text,
"platform_os" text,
"first_public_release" text,
"latest_stable_release" text,
"open_source" text,
"programming_language_used" text
);
Question: Which First public release has a Name of rational software modeler?
<|assistant|>
SELECT "first_public_release" FROM "general" WHERE "name"='rational software modeler';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the College of Rice's highest overall for the guard position?
<|assistant|>
SELECT MAX("overall") FROM "atlanta_falcons_draft_history" WHERE "position"='guard' AND "college"='rice';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is Tommy Nobis' position that has fewer than 16 picks?
<|assistant|>
SELECT "position" FROM "atlanta_falcons_draft_history" WHERE "pick_num"<16 AND "name"='tommy nobis';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"record" text
);
Question: What was the score when the Rangers were playing against the Vancouver Canucks?
<|assistant|>
SELECT "score" FROM "schedule_and_results" WHERE "opponent"='vancouver canucks';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"record" text
);
Question: Who were the opponents on January 27?
<|assistant|>
SELECT "opponent" FROM "schedule_and_results" WHERE "january"=27;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"record" text
);
Question: Who was the opponent for game number less than 47 and a record of 24-13-4?
<|assistant|>
SELECT "opponent" FROM "schedule_and_results" WHERE "game"<47 AND "record"='24-13-4';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is the average january number when the game number was higher than 39 and the opponent was the Vancouver Canucks?
<|assistant|>
SELECT AVG("january") FROM "schedule_and_results" WHERE "opponent"='vancouver canucks' AND "game">39;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
);
Question: What is the Drawn number with a Points against of correct as of 08:50 10 may 2009?
<|assistant|>
SELECT "drawn" FROM "2008_2009_table" WHERE "points_against"='correct as of 08:50 10 may 2009';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
);
Question: What is the Tries against when lost shows 12 for pontycymmer rfc?
<|assistant|>
SELECT "tries_against" FROM "2008_2009_table" WHERE "lost"='12' AND "club"='pontycymmer rfc';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
);
Question: What is the Points against for the ystradgynlais rfc club?
<|assistant|>
SELECT "points_against" FROM "2008_2009_table" WHERE "club"='ystradgynlais rfc';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
);
Question: What is the Club name what shows 405 for the Points against?
<|assistant|>
SELECT "club" FROM "2008_2009_table" WHERE "points_against"='405';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
);
Question: What shows for Try bonus when the points against are 451?
<|assistant|>
SELECT "try_bonus" FROM "2008_2009_table" WHERE "points_against"='451';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o_reilly_200_memphis" (
"pos" real,
"car_num" real,
"driver" text,
"make" text,
"team" text
);
Question: Which Pos has a Make of chevrolet, and a Driver of jack sprague, and a Car # smaller than 2?
<|assistant|>
SELECT SUM("pos") FROM "o_reilly_200_memphis" WHERE "make"='chevrolet' AND "driver"='jack sprague' AND "car_num"<2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o_reilly_200_memphis" (
"pos" real,
"car_num" real,
"driver" text,
"make" text,
"team" text
);
Question: How many Car numbers have a Driver of erik darnell, and a Pos smaller than 2?
<|assistant|>
SELECT COUNT("car_num") FROM "o_reilly_200_memphis" WHERE "driver"='erik darnell' AND "pos"<2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o_reilly_200_memphis" (
"pos" real,
"car_num" real,
"driver" text,
"make" text,
"team" text
);
Question: Which Pos has a Car # of 33?
<|assistant|>
SELECT SUM("pos") FROM "o_reilly_200_memphis" WHERE "car_num"=33;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o_reilly_200_memphis" (
"pos" real,
"car_num" real,
"driver" text,
"make" text,
"team" text
);
Question: Which Pos has a Team of circle bar racing, and a Car # smaller than 14?
<|assistant|>
SELECT MAX("pos") FROM "o_reilly_200_memphis" WHERE "team"='circle bar racing' AND "car_num"<14;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o_reilly_200_memphis" (
"pos" real,
"car_num" real,
"driver" text,
"make" text,
"team" text
);
Question: Which Pos has a Car # larger than 2, and a Team of billy ballew motorsports?
<|assistant|>
SELECT AVG("pos") FROM "o_reilly_200_memphis" WHERE "car_num">2 AND "team"='billy ballew motorsports';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engelberg" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_wc_points_rank" text
);
Question: What is the lowest points that has 135 as 2nd (m)?
<|assistant|>
SELECT MIN("points") FROM "engelberg" WHERE "2nd_m"=135;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engelberg" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_wc_points_rank" text
);
Question: What is the overall WC points (rank) that has 139 as the 2nd (m)?
<|assistant|>
SELECT "overall_wc_points_rank" FROM "engelberg" WHERE "2nd_m"=139;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engelberg" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_wc_points_rank" text
);
Question: How many 2nd (m) have aut as the nationality, with 4 as the rank, and a 1st less than 122.5?
<|assistant|>
SELECT SUM("2nd_m") FROM "engelberg" WHERE "nationality"='aut' AND "rank"=4 AND "1st_m"<122.5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engelberg" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_wc_points_rank" text
);
Question: What name has a 1st (m) greater than 124.5, and a 2nd (m) greater than 136?
<|assistant|>
SELECT "name" FROM "engelberg" WHERE "1st_m">124.5 AND "2nd_m">136;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_2005" (
"rank" text,
"film" text,
"director_s" text,
"country" text,
"prize" text
);
Question: What Rank is the Director(s) of satoko okita?
<|assistant|>
SELECT "rank" FROM "2004_2005" WHERE "director_s"='satoko okita';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_2005" (
"rank" text,
"film" text,
"director_s" text,
"country" text,
"prize" text
);
Question: What country is the film hi no tsugi ha rekishi from?
<|assistant|>
SELECT "country" FROM "2004_2005" WHERE "film"='hi no tsugi ha rekishi';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_2005" (
"rank" text,
"film" text,
"director_s" text,
"country" text,
"prize" text
);
Question: Which Director(s) made the film hanzubon no ojisan and received a prize of ¥300,000?
<|assistant|>
SELECT "director_s" FROM "2004_2005" WHERE "prize"='¥300,000' AND "film"='hanzubon no ojisan';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_2005" (
"rank" text,
"film" text,
"director_s" text,
"country" text,
"prize" text
);
Question: Which country did the Director(s) of kota nagaoka come from and win ¥300,000?
<|assistant|>
SELECT "country" FROM "2004_2005" WHERE "prize"='¥300,000' AND "director_s"='kota nagaoka';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_2005" (
"rank" text,
"film" text,
"director_s" text,
"country" text,
"prize" text
);
Question: What Director won a prize of ¥2,000,000?
<|assistant|>
SELECT "director_s" FROM "2004_2005" WHERE "prize"='¥2,000,000';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_2005" (
"rank" text,
"film" text,
"director_s" text,
"country" text,
"prize" text
);
Question: What Rank is the director of maximilian jezo-parovsky?
<|assistant|>
SELECT "rank" FROM "2004_2005" WHERE "director_s"='maximilian jezo-parovsky';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Who had the most high assists from Milwaukee?
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "team"='milwaukee';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Who scored the most point on December 13?
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "date"='december 13';<|endoftext|> |
<|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" text,
"record" text
);
Question: What's the Loss for the game that had a 22-24 record?
<|assistant|>
SELECT "loss" FROM "game_log" WHERE "record"='22-24';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men" (
"nation" text,
"height" text,
"athlete" text,
"venue" text,
"date" text
);
Question: What was the date that Elvir Krehmic made a high jump record?
<|assistant|>
SELECT "date" FROM "men" WHERE "athlete"='elvir krehmic';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_bibliographic_details" (
"start_month" text,
"end_month" text,
"cover" text,
"spine" text,
"indicia" text,
"masthead" text,
"number_of_issues" real
);
Question: Which spine has 12 issues?
<|assistant|>
SELECT "spine" FROM "other_bibliographic_details" WHERE "number_of_issues"=12;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_bibliographic_details" (
"start_month" text,
"end_month" text,
"cover" text,
"spine" text,
"indicia" text,
"masthead" text,
"number_of_issues" real
);
Question: How many issues end on jan–72?
<|assistant|>
SELECT SUM("number_of_issues") FROM "other_bibliographic_details" WHERE "end_month"='jan–72';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_bibliographic_details" (
"start_month" text,
"end_month" text,
"cover" text,
"spine" text,
"indicia" text,
"masthead" text,
"number_of_issues" real
);
Question: Which masthead ends on oct–69?
<|assistant|>
SELECT "masthead" FROM "other_bibliographic_details" WHERE "end_month"='oct–69';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"series" text
);
Question: What is the game number held on May 2?
<|assistant|>
SELECT AVG("game") FROM "playoffs" WHERE "date"='may 2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_by_season" (
"season" text,
"tier" real,
"division" text,
"pos" real,
"postseason" text,
"cup_competitions" text
);
Question: Which Season has a Postseason of promoted runner-up?
<|assistant|>
SELECT "season" FROM "season_by_season" WHERE "postseason"='promoted runner-up';<|endoftext|> |
<|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 is the attendance of the match with a record 20-11?
<|assistant|>
SELECT "attendance" FROM "game_log" WHERE "record"='20-11';<|endoftext|> |
<|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 is the date of the match with a 28-15 record?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "record"='28-15';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"series" text
);
Question: Which opponent did they play against on April 16?
<|assistant|>
SELECT "opponent" FROM "playoffs" WHERE "date"='april 16';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round" real,
"circuit" text,
"state_territory" text,
"date" text,
"winning_driver" text
);
Question: What circuit was after round 2 in Victoria?
<|assistant|>
SELECT "circuit" FROM "calendar" WHERE "round">2 AND "state_territory"='victoria';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round" real,
"circuit" text,
"state_territory" text,
"date" text,
"winning_driver" text
);
Question: What is the state the winning driver Jamie Whincup from in round 2?
<|assistant|>
SELECT "state_territory" FROM "calendar" WHERE "winning_driver"='jamie whincup' AND "round"=2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What date in October did the Flyers play against the Toronto Maple Leafs?
<|assistant|>
SELECT "october" FROM "regular_season" WHERE "opponent"='toronto maple leafs';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.