text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1990s" (
"spacecraft" text,
"destination" text,
"launched" text,
"closest_approach" text,
"time_elapsed" text
);
Question: What Time elapsed has 14 February 2011 as the Closest approach?
<|assistant|>
SELECT "time_elapsed" FROM "1990s" WHERE "closest_approach"='14 february 2011';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1990s" (
"spacecraft" text,
"destination" text,
"launched" text,
"closest_approach" text,
"time_elapsed" text
);
Question: What Launched has Time elapsed of 1991 days (5 yr, 5 mo, 12 d)?
<|assistant|>
SELECT "launched" FROM "1990s" WHERE "time_elapsed"='1991 days (5 yr, 5 mo, 12 d)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1990s" (
"spacecraft" text,
"destination" text,
"launched" text,
"closest_approach" text,
"time_elapsed" text
);
Question: With a Launched of 3 July 1998 what is the Closest approach?
<|assistant|>
SELECT "closest_approach" FROM "1990s" WHERE "launched"='3 july 1998';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1990s" (
"spacecraft" text,
"destination" text,
"launched" text,
"closest_approach" text,
"time_elapsed" text
);
Question: What Launched has both a Spacecraft of Ulysses and 491 days (1 yr, 4 mo, 3 d) as Time elapsed?
<|assistant|>
SELECT "launched" FROM "1990s" WHERE "spacecraft"='ulysses' AND "time_elapsed"='491 days (1 yr, 4 mo, 3 d)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "republican_primary" (
"poll_source" text,
"dates_administered" text,
"john_oxendine" text,
"karen_handel" text,
"nathan_deal" text,
"eric_johnson" text,
"ray_mc_berry" text,
"undecided" text
);
Question: What percentage is Karen Handel at in the poll in which Eric Johnson is 13% and undecided is 22%?
<|assistant|>
SELECT "karen_handel" FROM "republican_primary" WHERE "eric_johnson"='13%' AND "undecided"='22%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "republican_primary" (
"poll_source" text,
"dates_administered" text,
"john_oxendine" text,
"karen_handel" text,
"nathan_deal" text,
"eric_johnson" text,
"ray_mc_berry" text,
"undecided" text
);
Question: In what poll is Nathan Deal at 13% and John Oxendine at 28%?
<|assistant|>
SELECT "poll_source" FROM "republican_primary" WHERE "nathan_deal"='13%' AND "john_oxendine"='28%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "republican_primary" (
"poll_source" text,
"dates_administered" text,
"john_oxendine" text,
"karen_handel" text,
"nathan_deal" text,
"eric_johnson" text,
"ray_mc_berry" text,
"undecided" text
);
Question: What is Eric Johnson at in the poll where Karen Handel is at 12%?
<|assistant|>
SELECT "eric_johnson" FROM "republican_primary" WHERE "karen_handel"='12%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "republican_primary" (
"poll_source" text,
"dates_administered" text,
"john_oxendine" text,
"karen_handel" text,
"nathan_deal" text,
"eric_johnson" text,
"ray_mc_berry" text,
"undecided" text
);
Question: In what poll is John Oxendine at 32%?
<|assistant|>
SELECT "poll_source" FROM "republican_primary" WHERE "john_oxendine"='32%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "republican_primary" (
"poll_source" text,
"dates_administered" text,
"john_oxendine" text,
"karen_handel" text,
"nathan_deal" text,
"eric_johnson" text,
"ray_mc_berry" text,
"undecided" text
);
Question: What is John Oxendine at in the poll where Karen Handel is at 38%?
<|assistant|>
SELECT "john_oxendine" FROM "republican_primary" WHERE "karen_handel"='38%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "republican_primary" (
"poll_source" text,
"dates_administered" text,
"john_oxendine" text,
"karen_handel" text,
"nathan_deal" text,
"eric_johnson" text,
"ray_mc_berry" text,
"undecided" text
);
Question: What is Karen Handel polling at in the Insideradvantage poll where John Oxendine is at 15%?
<|assistant|>
SELECT "karen_handel" FROM "republican_primary" WHERE "poll_source"='insideradvantage' AND "john_oxendine"='15%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"venue" text,
"winner" text,
"country" text,
"score" text,
"runner_up" text
);
Question: What was the 1991 score?
<|assistant|>
SELECT "score" FROM "winners" WHERE "year"='1991';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"venue" text,
"winner" text,
"country" text,
"score" text,
"runner_up" text
);
Question: Where was the 1966 competition with a winner of Gary Cowan held?
<|assistant|>
SELECT "venue" FROM "winners" WHERE "winner"='gary cowan' AND "year"='1966';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"venue" text,
"winner" text,
"country" text,
"score" text,
"runner_up" text
);
Question: Who was the runner-up of the competition played at Minikahda Club?
<|assistant|>
SELECT "runner_up" FROM "winners" WHERE "venue"='minikahda club';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "us_chamber_lobbying_2002_2012" (
"year" real,
"us_cham_rank" real,
"us_cham_spending" text,
"next_highest_spender" text,
"next_highest_amount" text
);
Question: Which Year is the highest one that has a Next Highest Spender of aarp, and a US Cham Spending of $39,805,000, and a US Cham Rank larger than 1?
<|assistant|>
SELECT MAX("year") FROM "us_chamber_lobbying_2002_2012" WHERE "next_highest_spender"='aarp' AND "us_cham_spending"='$39,805,000' AND "us_cham_rank">1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "us_chamber_lobbying_2002_2012" (
"year" real,
"us_cham_rank" real,
"us_cham_spending" text,
"next_highest_spender" text,
"next_highest_amount" text
);
Question: Which US Cham Rank is the lowest one that has a Next Highest Spender of national assn of realtors, and a Year smaller than 2012?
<|assistant|>
SELECT MIN("us_cham_rank") FROM "us_chamber_lobbying_2002_2012" WHERE "next_highest_spender"='national assn of realtors' AND "year"<2012;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "us_chamber_lobbying_2002_2012" (
"year" real,
"us_cham_rank" real,
"us_cham_spending" text,
"next_highest_spender" text,
"next_highest_amount" text
);
Question: Which Year is the lowest one that has a US Cham Rank smaller than 1?
<|assistant|>
SELECT MIN("year") FROM "us_chamber_lobbying_2002_2012" WHERE "us_cham_rank"<1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_111" (
"date" text,
"tournament_name" text,
"location" text,
"partner" text,
"score_in_final" text
);
Question: What was the Score in Final of the Eckerd Open Tournament?
<|assistant|>
SELECT "score_in_final" FROM "women_s_doubles_111" WHERE "tournament_name"='eckerd open';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_111" (
"date" text,
"tournament_name" text,
"location" text,
"partner" text,
"score_in_final" text
);
Question: Who was the Partner in the United Airlines Tournament (1)?
<|assistant|>
SELECT "partner" FROM "women_s_doubles_111" WHERE "tournament_name"='united airlines tournament (1)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_111" (
"date" text,
"tournament_name" text,
"location" text,
"partner" text,
"score_in_final" text
);
Question: What was the Score in Final on February 19, 1989?
<|assistant|>
SELECT "score_in_final" FROM "women_s_doubles_111" WHERE "date"='february 19, 1989';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "festivali_i_k_ng_s_46" (
"draw" real,
"singer" text,
"song" text,
"points" real,
"place" real
);
Question: What are the Points when the Place is 9?
<|assistant|>
SELECT "points" FROM "festivali_i_k_ng_s_46" WHERE "place"=9;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "festivali_i_k_ng_s_46" (
"draw" real,
"singer" text,
"song" text,
"points" real,
"place" real
);
Question: What is the total for the place when the singer is Mariza Ikonomi when points are larger than 20?
<|assistant|>
SELECT COUNT("place") FROM "festivali_i_k_ng_s_46" WHERE "singer"='mariza ikonomi' AND "points">20;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"season" text,
"total_td_s" real,
"total_tc_s" real,
"total_stc_s" real,
"strongest_storm" text,
"deaths" text
);
Question: What is the average total TCs of the season where the strongest storm was Zoe and the season was totals?
<|assistant|>
SELECT AVG("total_tc_s") FROM "2000s" WHERE "strongest_storm"='zoe' AND "season"='totals';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "match_the_dealer" (
"number_of_decks" real,
"non_suited_match" text,
"double_non_suited_match" text,
"suited_match" text,
"suited_non_suited_match" text,
"double_suited_match" text,
"house_edge" text
);
Question: With a Suited Match of 13:1, what is the Double Non-Suited Match?
<|assistant|>
SELECT "double_non_suited_match" FROM "match_the_dealer" WHERE "suited_match"='13:1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "match_the_dealer" (
"number_of_decks" real,
"non_suited_match" text,
"double_non_suited_match" text,
"suited_match" text,
"suited_non_suited_match" text,
"double_suited_match" text,
"house_edge" text
);
Question: What's the Suited Match with a 2.99% House Edge?
<|assistant|>
SELECT "suited_match" FROM "match_the_dealer" WHERE "house_edge"='2.99%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "match_the_dealer" (
"number_of_decks" real,
"non_suited_match" text,
"double_non_suited_match" text,
"suited_match" text,
"suited_non_suited_match" text,
"double_suited_match" text,
"house_edge" text
);
Question: With a house edge of 3.53% and a Non-Suited Matched of 3:1, name the Double Non-Suited Match.
<|assistant|>
SELECT "double_non_suited_match" FROM "match_the_dealer" WHERE "non_suited_match"='3:1' AND "house_edge"='3.53%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "match_the_dealer" (
"number_of_decks" real,
"non_suited_match" text,
"double_non_suited_match" text,
"suited_match" text,
"suited_non_suited_match" text,
"double_suited_match" text,
"house_edge" text
);
Question: Name the Non-Suited Match that has greater than 6 Number of Decks.
<|assistant|>
SELECT "non_suited_match" FROM "match_the_dealer" WHERE "number_of_decks">6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "match_the_dealer" (
"number_of_decks" real,
"non_suited_match" text,
"double_non_suited_match" text,
"suited_match" text,
"suited_non_suited_match" text,
"double_suited_match" text,
"house_edge" text
);
Question: Name the Suited & Non-Suited Match with a 2.99% for House Edge.
<|assistant|>
SELECT "suited_non_suited_match" FROM "match_the_dealer" WHERE "house_edge"='2.99%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "match_the_dealer" (
"number_of_decks" real,
"non_suited_match" text,
"double_non_suited_match" text,
"suited_match" text,
"suited_non_suited_match" text,
"double_suited_match" text,
"house_edge" text
);
Question: With a House Edge of 3.63% and a Non-Suited Match of 4:1, what is the Double Non-Suited Match?
<|assistant|>
SELECT "double_non_suited_match" FROM "match_the_dealer" WHERE "non_suited_match"='4:1' AND "house_edge"='3.63%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
Question: Wins smaller than 0 had what sum of year?
<|assistant|>
SELECT SUM("year") FROM "motorcycle_grand_prix_results" WHERE "wins"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
Question: Class of 125cc, and a Year smaller than 1966 had what lowest wins?
<|assistant|>
SELECT MIN("wins") FROM "motorcycle_grand_prix_results" WHERE "class"='125cc' AND "year"<1966;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
Question: Class of 500cc, and a Wins smaller than 0 had what average year?
<|assistant|>
SELECT AVG("year") FROM "motorcycle_grand_prix_results" WHERE "class"='500cc' AND "wins"<0;<|endoftext|> |
<|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 the highest laps Kazuki Nakajima did with a Grid larger than 19?
<|assistant|>
SELECT MAX("laps") FROM "race" WHERE "driver"='kazuki nakajima' AND "grid">19;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which Constructor has a Grid of 17?
<|assistant|>
SELECT "constructor" FROM "race" WHERE "grid"=17;<|endoftext|> |
<|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: Who drives a BMW Sauber with a Grid larger than 2 and a Time/Retired of +15.037?
<|assistant|>
SELECT "driver" FROM "race" WHERE "grid">2 AND "constructor"='bmw sauber' AND "time_retired"='+15.037';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_film_projects" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"length" text,
"participation_as" text
);
Question: Participation as of actor, film editor has what average year?
<|assistant|>
SELECT AVG("year") FROM "other_film_projects" WHERE "participation_as"='actor, film editor';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_history" (
"date" text,
"track" text,
"race" text,
"purse_hi" text,
"finish" text,
"time" text,
"last_1_4" real,
"odds" text,
"driver" text
);
Question: What were the odds for the finish of 1/4h?
<|assistant|>
SELECT "odds" FROM "race_history" WHERE "finish"='1/4h';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_history" (
"date" text,
"track" text,
"race" text,
"purse_hi" text,
"finish" text,
"time" text,
"last_1_4" real,
"odds" text,
"driver" text
);
Question: What is the lowest last quarter with a time of 1:53.2 and odds of *1.30?
<|assistant|>
SELECT MIN("last_1_4") FROM "race_history" WHERE "time"='1:53.2' AND "odds"='*1.30';<|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: What is the average number of Gold when the total is 11 with more than 2 silver?
<|assistant|>
SELECT AVG("gold") FROM "medal_table" WHERE "total"=11 AND "silver">2;<|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: What is the total rank with more than 0 silver and less than 2 medals total?
<|assistant|>
SELECT COUNT("rank") FROM "medal_table" WHERE "total"<2 AND "silver">0;<|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: What is the value of bronze with less than 2 in total?
<|assistant|>
SELECT "bronze" FROM "medal_table" WHERE "total"<2;<|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: What number of rank has more than 2 medals in total with less than 4 bronze?
<|assistant|>
SELECT COUNT("rank") FROM "medal_table" WHERE "total">2 AND "bronze"<4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "approved_and_proposed" (
"rank" real,
"building" text,
"city" text,
"height_m_ft" text,
"floors" real,
"status" text
);
Question: what is a building that is proposed and will have 32 floors?
<|assistant|>
SELECT "building" FROM "approved_and_proposed" WHERE "status"='proposed' AND "floors"=32;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" real
);
Question: What is the best time for marcus marshall?
<|assistant|>
SELECT AVG("best") FROM "qualifying_results" WHERE "name"='marcus marshall';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" real
);
Question: What is the best time for a rusport driver with a qual 2 time of 1:10.166?
<|assistant|>
SELECT MAX("best") FROM "qualifying_results" WHERE "team"='rusport' AND "qual_2"='1:10.166';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" real
);
Question: What team had a qual 2 time of 58.385?
<|assistant|>
SELECT "team" FROM "qualifying_results" WHERE "qual_2"='58.385';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition_of_the_20th_seanad" (
"administrative_panel" real,
"agricultural_panel" real,
"cultural_and_educational_panel" real,
"industrial_and_commercial_panel" real,
"labour_panel" real,
"national_university_of_ireland" real,
"university_of_dublin" real,
"nominated_by_the_taoiseach" real,
"total" real
);
Question: What is the total for University of Dublin, having a panel of 0 for agricultural, was nominated by Taoiseach more than 0, and an industrial and commercial panel less than 0?
<|assistant|>
SELECT COUNT("university_of_dublin") FROM "composition_of_the_20th_seanad" WHERE "agricultural_panel"=0 AND "nominated_by_the_taoiseach">0 AND "industrial_and_commercial_panel"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition_of_the_20th_seanad" (
"administrative_panel" real,
"agricultural_panel" real,
"cultural_and_educational_panel" real,
"industrial_and_commercial_panel" real,
"labour_panel" real,
"national_university_of_ireland" real,
"university_of_dublin" real,
"nominated_by_the_taoiseach" real,
"total" real
);
Question: What is the average for the agricultural panel that has a National University of Ireland less than 0?
<|assistant|>
SELECT AVG("agricultural_panel") FROM "composition_of_the_20th_seanad" WHERE "national_university_of_ireland"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition_of_the_20th_seanad" (
"administrative_panel" real,
"agricultural_panel" real,
"cultural_and_educational_panel" real,
"industrial_and_commercial_panel" real,
"labour_panel" real,
"national_university_of_ireland" real,
"university_of_dublin" real,
"nominated_by_the_taoiseach" real,
"total" real
);
Question: What is the lowest number for the University of Dublin, having and administrative panel of 3, and a Cultural and Educational panel less than 2?
<|assistant|>
SELECT MIN("university_of_dublin") FROM "composition_of_the_20th_seanad" WHERE "administrative_panel"=3 AND "cultural_and_educational_panel"<2;<|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,
"game_site" text,
"attendance" real
);
Question: What was the record at Memorial Stadium on September 19, 1965?
<|assistant|>
SELECT "record" FROM "schedule" WHERE "game_site"='memorial stadium' AND "date"='september 19, 1965';<|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,
"game_site" text,
"attendance" real
);
Question: What is the largest attendance at Memorial Stadium on December 12, 1965?
<|assistant|>
SELECT MAX("attendance") FROM "schedule" WHERE "game_site"='memorial stadium' AND "date"='december 12, 1965';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: Which Extra points is the highest one that has a Player of herman everhardus, and a Field goals larger than 0?
<|assistant|>
SELECT MAX("extra_points") FROM "scoring_leaders" WHERE "player"='herman everhardus' AND "field_goals">0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: Which Extra points has Points smaller than 12, and a Player of chuck bernard, and Touchdowns larger than 1?
<|assistant|>
SELECT SUM("extra_points") FROM "scoring_leaders" WHERE "points"<12 AND "player"='chuck bernard' AND "touchdowns">1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: How many Field goals have Touchdowns smaller than 3, and a Player of willis ward, and an Extra points smaller than 0?
<|assistant|>
SELECT SUM("field_goals") FROM "scoring_leaders" WHERE "touchdowns"<3 AND "player"='willis ward' AND "extra_points"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: Whicih Extra points are the average ones that have Points smaller than 6?
<|assistant|>
SELECT AVG("extra_points") FROM "scoring_leaders" WHERE "points"<6;<|endoftext|> |
<|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 position is round 7?
<|assistant|>
SELECT "position" FROM "draft_picks" WHERE "round"=7;<|endoftext|> |
<|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 college has a position of goaltender?
<|assistant|>
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "position"='goaltender';<|endoftext|> |
<|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: What is Darryl Fedorak's highest round?
<|assistant|>
SELECT MAX("round") FROM "draft_picks" WHERE "player"='darryl fedorak';<|endoftext|> |
<|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: What nationality has a higher round than 8?
<|assistant|>
SELECT "nationality" FROM "draft_picks" WHERE "round">8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "music" (
"name" text,
"born_died" text,
"notable_for" text,
"connection_with_australia" text,
"connection_with_america" text
);
Question: What is the connection with Australia when the connection with America shows born in the u.s.; mother is u.s. citizen?
<|assistant|>
SELECT "connection_with_australia" FROM "music" WHERE "connection_with_america"='born in the u.s.; mother is u.s. citizen';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "music" (
"name" text,
"born_died" text,
"notable_for" text,
"connection_with_australia" text,
"connection_with_america" text
);
Question: What is the person born in Australia, rick springfield notable for?
<|assistant|>
SELECT "notable_for" FROM "music" WHERE "connection_with_australia"='born in australia' AND "name"='rick springfield';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "music" (
"name" text,
"born_died" text,
"notable_for" text,
"connection_with_australia" text,
"connection_with_america" text
);
Question: What is the Born–Died for the person whose family moved to Australia at age 6?
<|assistant|>
SELECT "born_died" FROM "music" WHERE "connection_with_australia"='family moved to australia at age 6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"date" real,
"name" text,
"developer" text,
"clock" text,
"process" text,
"cores_per_die_dies_per_module" text
);
Question: What is the latest date with Cores per die / Dies per module of 2 / 1, and a Clock of 1.4-1.6ghz?
<|assistant|>
SELECT MAX("date") FROM "2000s" WHERE "cores_per_die_dies_per_module"='2 / 1' AND "clock"='1.4-1.6ghz';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"date" real,
"name" text,
"developer" text,
"clock" text,
"process" text,
"cores_per_die_dies_per_module" text
);
Question: Which process has a date later than 2000 and a Clock of 1.4-1.6ghz?
<|assistant|>
SELECT "process" FROM "2000s" WHERE "date">2000 AND "clock"='1.4-1.6ghz';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"date" real,
"name" text,
"developer" text,
"clock" text,
"process" text,
"cores_per_die_dies_per_module" text
);
Question: Which date has a Clock of 0.8-1.6ghz?
<|assistant|>
SELECT "date" FROM "2000s" WHERE "clock"='0.8-1.6ghz';<|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 was the record on May 21?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "date"='may 21';<|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: On what date was the attendance 24,976?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "attendance"='24,976';<|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: On what date was the record 21-26?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "record"='21-26';<|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: How many were in attendance with a loss of Prokopec (2-7)?
<|assistant|>
SELECT "attendance" FROM "game_log" WHERE "loss"='prokopec (2-7)';<|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: Who was the opponent on May 20?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "date"='may 20';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What is the tournament on Apr 6?
<|assistant|>
SELECT "tournament" FROM "tournament_results" WHERE "date"='apr 6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What is the 1st prize of the tournament in Scotland?
<|assistant|>
SELECT "1st_prize" FROM "tournament_results" WHERE "location"='scotland';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What is the location of the Sea Pines Heritage Classic tournament?
<|assistant|>
SELECT "location" FROM "tournament_results" WHERE "tournament"='sea pines heritage classic';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What is the score of the Tournament Players Championship?
<|assistant|>
SELECT "score" FROM "tournament_results" WHERE "tournament"='tournament players championship';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What is the 1st prize at the U.S. Open?
<|assistant|>
SELECT "1st_prize" FROM "tournament_results" WHERE "tournament"='u.s. open';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" real
);
Question: What is the average first prize of the tournament with a score of 279 (–9)?
<|assistant|>
SELECT AVG("1st_prize") FROM "tournament_results" WHERE "score"='279 (–9)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" real
);
Question: What is the lowest first prize of the Mercedes Championships tournament in California?
<|assistant|>
SELECT MIN("1st_prize") FROM "tournament_results" WHERE "location"='california' AND "tournament"='mercedes championships';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_venues" (
"team" text,
"location" text,
"venue" text,
"capacity" real,
"position_in_1999" text
);
Question: What is the average capacity for the venue where the team kommunalnik played?
<|assistant|>
SELECT AVG("capacity") FROM "teams_and_venues" WHERE "team"='kommunalnik';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_venues" (
"team" text,
"location" text,
"venue" text,
"capacity" real,
"position_in_1999" text
);
Question: What is the position of the team that played at the venue, Central, Gomel?
<|assistant|>
SELECT "position_in_1999" FROM "teams_and_venues" WHERE "venue"='central, gomel';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_venues" (
"team" text,
"location" text,
"venue" text,
"capacity" real,
"position_in_1999" text
);
Question: What is the position of the team that played at the venue with more than 6,500 capacity?
<|assistant|>
SELECT "position_in_1999" FROM "teams_and_venues" WHERE "capacity">'6,500';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "points_for_the_2007_08_season" (
"name" text,
"pld" real,
"goals" real,
"assists" real,
"points" real,
"pims" real
);
Question: What is the smallest number of assists with 70 Pims and less than 19 goals?
<|assistant|>
SELECT MIN("assists") FROM "points_for_the_2007_08_season" WHERE "pims"=70 AND "goals"<19;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "points_for_the_2007_08_season" (
"name" text,
"pld" real,
"goals" real,
"assists" real,
"points" real,
"pims" real
);
Question: What is the smallest number of assists for Ben Duggan with less than 7 points?
<|assistant|>
SELECT MIN("assists") FROM "points_for_the_2007_08_season" WHERE "name"='ben duggan' AND "points"<7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "division_1" (
"year" text,
"national_champion" text,
"runner_up" text,
"location" text,
"host" text
);
Question: In what Year was Rhode Island the National Champion?
<|assistant|>
SELECT "year" FROM "division_1" WHERE "national_champion"='rhode island';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "division_1" (
"year" text,
"national_champion" text,
"runner_up" text,
"location" text,
"host" text
);
Question: What was the Runner-up in the Monroe County Sports Commission?
<|assistant|>
SELECT "runner_up" FROM "division_1" WHERE "host"='monroe county sports commission';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "division_1" (
"year" text,
"national_champion" text,
"runner_up" text,
"location" text,
"host" text
);
Question: At what Location was the Runner-up TBD?
<|assistant|>
SELECT "location" FROM "division_1" WHERE "runner_up"='tbd';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "division_1" (
"year" text,
"national_champion" text,
"runner_up" text,
"location" text,
"host" text
);
Question: At what Location did Robert Morris University (Illinois) Host the Lindenwood National Chamption?
<|assistant|>
SELECT "location" FROM "division_1" WHERE "host"='robert morris university (illinois)' AND "national_champion"='lindenwood';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "division_1" (
"year" text,
"national_champion" text,
"runner_up" text,
"location" text,
"host" text
);
Question: What was the Runner-up with Ohio as the National Champion in Tucson, AZ?
<|assistant|>
SELECT "runner_up" FROM "division_1" WHERE "national_champion"='ohio' AND "location"='tucson, az';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_table" (
"model" text,
"processor" text,
"memory" text,
"storage" text,
"graphics" text,
"vram" text,
"display_resolution" text,
"msrp" text
);
Question: Which graphics spec has a VRAM spec of 512MB?
<|assistant|>
SELECT "graphics" FROM "comparison_table" WHERE "vram"='512mb';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_table" (
"model" text,
"processor" text,
"memory" text,
"storage" text,
"graphics" text,
"vram" text,
"display_resolution" text,
"msrp" text
);
Question: What is the MSRP for the laptop with storage of 128-512 GB SSD?
<|assistant|>
SELECT "msrp" FROM "comparison_table" WHERE "storage"='128-512 gb ssd';<|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: Name the opponent for game 5
<|assistant|>
SELECT "opponent" FROM "playoffs" WHERE "game"=5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_civil_parishes_and_unparished_ar" (
"name" text,
"status" text,
"population" real,
"district" text,
"former_local_authority" text
);
Question: What status is shown for Cadeby?
<|assistant|>
SELECT "status" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "name"='cadeby';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_civil_parishes_and_unparished_ar" (
"name" text,
"status" text,
"population" real,
"district" text,
"former_local_authority" text
);
Question: What is the Former local authority for Ecclesfield?
<|assistant|>
SELECT "former_local_authority" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "name"='ecclesfield';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_civil_parishes_and_unparished_ar" (
"name" text,
"status" text,
"population" real,
"district" text,
"former_local_authority" text
);
Question: What is the Status of Mexborough?
<|assistant|>
SELECT "status" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "name"='mexborough';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_civil_parishes_and_unparished_ar" (
"name" text,
"status" text,
"population" real,
"district" text,
"former_local_authority" text
);
Question: What is the Status for the District of doncaster, and a Former local authority of doncaster rural district, with a Population of 203?
<|assistant|>
SELECT "status" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "district"='doncaster' AND "former_local_authority"='doncaster rural district' AND "population"=203;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What is the score on December 1?
<|assistant|>
SELECT "score" FROM "regular_season" WHERE "date"='december 1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Which skip has Oliver Dupont as a second?
<|assistant|>
SELECT "skip" FROM "teams" WHERE "second"='oliver dupont';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Which second's third is Jean-Michel Arsenault?
<|assistant|>
SELECT "second" FROM "teams" WHERE "third"='jean-michel arsenault';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Which skip's third is Steffen Walstad?
<|assistant|>
SELECT "skip" FROM "teams" WHERE "third"='steffen walstad';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Which skip's second is Martin Hejhal?
<|assistant|>
SELECT "skip" FROM "teams" WHERE "second"='martin hejhal';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Which skip's lead is Gordon McDougall?
<|assistant|>
SELECT "skip" FROM "teams" WHERE "lead"='gordon mcdougall';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Which second's skip is Chris Plys?
<|assistant|>
SELECT "second" FROM "teams" WHERE "skip"='chris plys';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.