text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team" (
"year" real,
"location" text,
"gold" text,
"silver" text,
"bronze" text
);
Question: What location is previous to 1994?
<|assistant|>
SELECT "location" FROM "team" WHERE "year"<1994;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: Who won the men's doubles before 1979 when carol silman prina ben shushan won the women's doubles?
<|assistant|>
SELECT "men_s_doubles" FROM "past_winners" WHERE "year"<1979 AND "women_s_doubles"='carol silman prina ben shushan';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick_num" real,
"round" text,
"player" text,
"position" text,
"college" text
);
Question: What college(s) did the player(s) picked in round 4 with a pick number less than 98 play for?
<|assistant|>
SELECT "college" FROM "nfl_draft" WHERE "pick_num"<98 AND "round"='round 4';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick_num" real,
"round" text,
"player" text,
"position" text,
"college" text
);
Question: What is the pick number for the player(s) drafted in round 8?
<|assistant|>
SELECT "pick_num" FROM "nfl_draft" WHERE "round"='round 8';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick_num" real,
"round" text,
"player" text,
"position" text,
"college" text
);
Question: What position(s) did the player(s) with a pick number of 125 play?
<|assistant|>
SELECT "position" FROM "nfl_draft" WHERE "pick_num"=125;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_48_case_6" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: What mean number of extra points was there when James Lawrence was a player and the touchdown number was less than 1?
<|assistant|>
SELECT AVG("extra_points") FROM "michigan_48_case_6" WHERE "player"='james lawrence' AND "touchdowns"<1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_48_case_6" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: What is the smallest amount of touchdowns when there is a total player and a number of field goals of more than 0?
<|assistant|>
SELECT MIN("touchdowns") FROM "michigan_48_case_6" WHERE "player"='total' AND "field_goals">0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1969" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: On what Date were the Results¹ 4:0?
<|assistant|>
SELECT "date" FROM "1969" WHERE "results"='4:0';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1969" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: On what Date were the Results¹ 5:1?
<|assistant|>
SELECT "date" FROM "1969" WHERE "results"='5:1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1969" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: On what Date were the Results¹ 4:0?
<|assistant|>
SELECT "date" FROM "1969" WHERE "results"='4:0';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparative_methods" (
"name" text,
"number_of_sequences_number_of_sequences" text,
"alignment_alignment_predicts_an_alignment" text,
"structure_structure_predicts_structure" text,
"knots_knots_pseudoknot_prediction" text,
"link" text
);
Question: What is the pseudoknot prediction of the software named tfold?
<|assistant|>
SELECT "knots_knots_pseudoknot_prediction" FROM "comparative_methods" WHERE "name"='tfold';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "selected_vocabulary_differences" (
"rioplatense" text,
"castilian" text,
"andalusian" text,
"mexican" text,
"chilean" text,
"english_us_uk" text,
"italian" text
);
Question: What Chilean word is used for the Castilian word ordenador?
<|assistant|>
SELECT "chilean" FROM "selected_vocabulary_differences" WHERE "castilian"='ordenador';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "selected_vocabulary_differences" (
"rioplatense" text,
"castilian" text,
"andalusian" text,
"mexican" text,
"chilean" text,
"english_us_uk" text,
"italian" text
);
Question: What is the Italian word for the Mexican word frijol?
<|assistant|>
SELECT "italian" FROM "selected_vocabulary_differences" WHERE "mexican"='frijol';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "selected_vocabulary_differences" (
"rioplatense" text,
"castilian" text,
"andalusian" text,
"mexican" text,
"chilean" text,
"english_us_uk" text,
"italian" text
);
Question: What word would a Castilian speaker use for the Italian word auto(mobile)?
<|assistant|>
SELECT "castilian" FROM "selected_vocabulary_differences" WHERE "italian"='auto(mobile)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "selected_vocabulary_differences" (
"rioplatense" text,
"castilian" text,
"andalusian" text,
"mexican" text,
"chilean" text,
"english_us_uk" text,
"italian" text
);
Question: What word would a Castilian speaker use for the Italian word auto(mobile)?
<|assistant|>
SELECT "castilian" FROM "selected_vocabulary_differences" WHERE "italian"='auto(mobile)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "selected_vocabulary_differences" (
"rioplatense" text,
"castilian" text,
"andalusian" text,
"mexican" text,
"chilean" text,
"english_us_uk" text,
"italian" text
);
Question: How would an Italian say the Andalusian word coche?
<|assistant|>
SELECT "italian" FROM "selected_vocabulary_differences" WHERE "andalusian"='coche';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
Question: Which Home has a Visitor of ny rangers, and a Series of flyers win 4–3?
<|assistant|>
SELECT "home" FROM "playoffs" WHERE "visitor"='ny rangers' AND "series"='flyers win 4–3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
Question: Which Score has a Series of flyers lead 3–2?
<|assistant|>
SELECT "score" FROM "playoffs" WHERE "series"='flyers lead 3–2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
Question: Which Decision has a Date of april 25?
<|assistant|>
SELECT "decision" FROM "playoffs" WHERE "date"='april 25';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
Question: Which Decision has a Date of april 30?
<|assistant|>
SELECT "decision" FROM "playoffs" WHERE "date"='april 30';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
Question: Which Home has a Series of series tied 3–3?
<|assistant|>
SELECT "home" FROM "playoffs" WHERE "series"='series tied 3–3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
Question: Events of 22, and a Rank smaller than 4 involved which of the lowest earnings ($)?
<|assistant|>
SELECT MIN("earnings") FROM "leaders" WHERE "events"=22 AND "rank"<4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
Question: Player of corey pavin, and a Rank larger than 4 involved which highest earnings ($)?
<|assistant|>
SELECT MAX("earnings") FROM "leaders" WHERE "player"='corey pavin' AND "rank">4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
Question: Events larger than 22, and a Earnings ( $ ) of 1,543,192, and a Rank smaller than 2 has the lowest wins?
<|assistant|>
SELECT MIN("wins") FROM "leaders" WHERE "events">22 AND "earnings"='1,543,192' AND "rank"<2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
Question: Country of united states, and a Events of 22, and a Earnings ( $ ) larger than 1,340,079 has the highest rank?
<|assistant|>
SELECT MAX("rank") FROM "leaders" WHERE "country"='united states' AND "events"=22 AND "earnings">'1,340,079';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment_2010" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
Question: What is the mascot with an enrollment (2010) less than 980, and heritage as the school?
<|assistant|>
SELECT "mascot" FROM "indiana_high_school_athletics_conference" WHERE "enrollment_2010"<980 AND "school"='heritage';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "arkansas" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" real,
"class" text,
"hometown" text,
"games" real
);
Question: What is the class of the player with a weight of 242 pounds?
<|assistant|>
SELECT "class" FROM "arkansas" WHERE "weight"=242;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "arkansas" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" real,
"class" text,
"hometown" text,
"games" real
);
Question: How many games were played by the player at FB?
<|assistant|>
SELECT COUNT("games") FROM "arkansas" WHERE "position"='fb';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Name has a Round smaller than 5, and a Pick # larger than 13?
<|assistant|>
SELECT "name" FROM "jacksonville_jaguars_draft_history" WHERE "round"<5 AND "pick_num">13;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Pick # has a Round smaller than 6, and an Overall larger than 13, and a College of penn state?
<|assistant|>
SELECT "pick_num" FROM "jacksonville_jaguars_draft_history" WHERE "round"<6 AND "overall">13 AND "college"='penn state';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Name has an Overall of 235?
<|assistant|>
SELECT "name" FROM "jacksonville_jaguars_draft_history" WHERE "overall"=235;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "legislative_activity" (
"congress" text,
"bill_number_s" text,
"date_introduced" text,
"sponsor_s" text,
"num_of_cosponsors" real
);
Question: How many cosponsors have a Date introduced of may 22, 2008?
<|assistant|>
SELECT COUNT("num_of_cosponsors") FROM "legislative_activity" WHERE "date_introduced"='may 22, 2008';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "legislative_activity" (
"congress" text,
"bill_number_s" text,
"date_introduced" text,
"sponsor_s" text,
"num_of_cosponsors" real
);
Question: Which Congress has a # of cosponsors of 19?
<|assistant|>
SELECT "congress" FROM "legislative_activity" WHERE "num_of_cosponsors"=19;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "full_international_caps_and_goals" (
"date" text,
"venue" text,
"result" text,
"goals" real,
"competition" text
);
Question: On what date was a friendly match held at Auckland?
<|assistant|>
SELECT "date" FROM "full_international_caps_and_goals" WHERE "competition"='friendly match' AND "venue"='auckland';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "full_international_caps_and_goals" (
"date" text,
"venue" text,
"result" text,
"goals" real,
"competition" text
);
Question: What were the goals at Sydney?
<|assistant|>
SELECT "goals" FROM "full_international_caps_and_goals" WHERE "venue"='sydney';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"player" text,
"played" real,
"sets_won" real,
"sets_lost" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" real
);
Question: How many sets lost have a sets won less than 0?
<|assistant|>
SELECT COUNT("sets_lost") FROM "statistics" WHERE "sets_won"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What shows for IATA for the City of sapporo?
<|assistant|>
SELECT "iata" FROM "destinations" WHERE "city"='sapporo';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What is the ICAO when the IATA shows cts?
<|assistant|>
SELECT "icao" FROM "destinations" WHERE "iata"='cts';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What is the Country when the IATA shows cju?
<|assistant|>
SELECT "country" FROM "destinations" WHERE "iata"='cju';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What is the ICAO when the IATA shows mfm?
<|assistant|>
SELECT "icao" FROM "destinations" WHERE "iata"='mfm';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What is the ICAO for Hong Kong?
<|assistant|>
SELECT "icao" FROM "destinations" WHERE "country"='hong kong';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What is the Airport when the ICAO shows rpvm?
<|assistant|>
SELECT "airport" FROM "destinations" WHERE "icao"='rpvm';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "club_records" (
"season" real,
"belonging_league" text,
"matches" real,
"points" real,
"draw" real,
"lose" real,
"goal_difference" real,
"goals_for" real,
"goals_against" real,
"position" real
);
Question: What is the lowest goals for value with fewer than 5 draws and under 70 points?
<|assistant|>
SELECT MIN("goals_for") FROM "club_records" WHERE "draw"<5 AND "points"<70;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "club_records" (
"season" real,
"belonging_league" text,
"matches" real,
"points" real,
"draw" real,
"lose" real,
"goal_difference" real,
"goals_for" real,
"goals_against" real,
"position" real
);
Question: What is the lowest goals against value for a team with 83 points and a difference over 50?
<|assistant|>
SELECT MIN("goals_against") FROM "club_records" WHERE "points"=83 AND "goal_difference">50;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "club_records" (
"season" real,
"belonging_league" text,
"matches" real,
"points" real,
"draw" real,
"lose" real,
"goal_difference" real,
"goals_for" real,
"goals_against" real,
"position" real
);
Question: What is the earliest season that has a position over 12?
<|assistant|>
SELECT MIN("season") FROM "club_records" WHERE "position">12;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "club_records" (
"season" real,
"belonging_league" text,
"matches" real,
"points" real,
"draw" real,
"lose" real,
"goal_difference" real,
"goals_for" real,
"goals_against" real,
"position" real
);
Question: What is the average goals for with a position under 12, draws over 1, and goals against under 28?
<|assistant|>
SELECT AVG("goals_for") FROM "club_records" WHERE "position"<12 AND "draw">1 AND "goals_against"<28;<|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: Who was the Opponent with a Result of l 17–24?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "result"='l 17–24';<|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 Date has a Result of l 21–34?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "result"='l 21–34';<|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 Game Site has a Week smaller than 11, and a Date of october 21, 1973?
<|assistant|>
SELECT "game_site" FROM "schedule" WHERE "week"<11 AND "date"='october 21, 1973';<|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 value of the lowest Week with a Record of 2–9?
<|assistant|>
SELECT MIN("week") FROM "schedule" WHERE "record"='2–9';<|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,
"attendance" real
);
Question: Who is the opponent for the game that occurred after week 13?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "week">13;<|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,
"attendance" text
);
Question: What day did the play on week 6?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "week"=6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: Which tournament had a 2009 result of 1R?
<|assistant|>
SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2009"='1r';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: Which tournament had a 2010 result of QF and a 2012 result of SF?
<|assistant|>
SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2012"='sf' AND "2010"='qf';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: Which tournament had a result in 2010 and 2012 of a?
<|assistant|>
SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2012"='a' AND "2010"='a';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual_events" (
"round" text,
"venue" text,
"discipline" text,
"date" text,
"winner" text,
"second" text,
"third" text
);
Question: Who was third during round 6 in Rybinsk?
<|assistant|>
SELECT "third" FROM "individual_events" WHERE "venue"='rybinsk' AND "round"='6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual_events" (
"round" text,
"venue" text,
"discipline" text,
"date" text,
"winner" text,
"second" text,
"third" text
);
Question: Who was third in round 14?
<|assistant|>
SELECT "third" FROM "individual_events" WHERE "round"='14';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual_events" (
"round" text,
"venue" text,
"discipline" text,
"date" text,
"winner" text,
"second" text,
"third" text
);
Question: What was the venue with a 3.3km c prologue discipline?
<|assistant|>
SELECT "venue" FROM "individual_events" WHERE "discipline"='3.3km c prologue';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual_events" (
"round" text,
"venue" text,
"discipline" text,
"date" text,
"winner" text,
"second" text,
"third" text
);
Question: Who was the winner on 28 December 2007?
<|assistant|>
SELECT "winner" FROM "individual_events" WHERE "date"='28 december 2007';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual_events" (
"round" text,
"venue" text,
"discipline" text,
"date" text,
"winner" text,
"second" text,
"third" text
);
Question: Who was third at the 0.8km f sprint discipline?
<|assistant|>
SELECT "third" FROM "individual_events" WHERE "discipline"='0.8km f sprint';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_final_statistics" (
"rank" real,
"airport" text,
"code_iata_icao" text,
"total_cargo_metric_tonnes" real,
"pct_change" text
);
Question: What is the highest total cargo of an airport ranked larger than 19 with a code of BKK/VTBS?
<|assistant|>
SELECT MAX("total_cargo_metric_tonnes") FROM "2007_final_statistics" WHERE "code_iata_icao"='bkk/vtbs' AND "rank">19;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_final_statistics" (
"rank" real,
"airport" text,
"code_iata_icao" text,
"total_cargo_metric_tonnes" real,
"pct_change" text
);
Question: What is the rank of the airport with the BKK/VTBS code?
<|assistant|>
SELECT "rank" FROM "2007_final_statistics" WHERE "code_iata_icao"='bkk/vtbs';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rankings_table" (
"rank" real,
"matches_as_champion" real,
"reigns_as_champion" real,
"title_matches_won" real,
"title_last_held" text
);
Question: Which Matches has champion Rank of 5?
<|assistant|>
SELECT MAX("matches_as_champion") FROM "rankings_table" WHERE "rank"=5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rankings_table" (
"rank" real,
"matches_as_champion" real,
"reigns_as_champion" real,
"title_matches_won" real,
"title_last_held" text
);
Question: Which Matches is on 24 march 1963 with a Rank larger than 44?
<|assistant|>
SELECT MAX("matches_as_champion") FROM "rankings_table" WHERE "title_last_held"='24 march 1963' AND "rank">44;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: what game was on may 24
<|assistant|>
SELECT "game" FROM "nba_finals" WHERE "date"='may 24';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: what game was on may 29
<|assistant|>
SELECT "result" FROM "nba_finals" WHERE "date"='may 29';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: what team played on may 20 on the home side
<|assistant|>
SELECT "home_team" FROM "nba_finals" WHERE "date"='may 20';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: what team played in game 2
<|assistant|>
SELECT "road_team" FROM "nba_finals" WHERE "game"='game 2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lineup" (
"name" text,
"size" text,
"price" text,
"quantity" real,
"released" text,
"nicotine" real
);
Question: Which Raison Blue has the highest nicotine?
<|assistant|>
SELECT MAX("nicotine") FROM "lineup" WHERE "name"='raison blue';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lineup" (
"name" text,
"size" text,
"price" text,
"quantity" real,
"released" text,
"nicotine" real
);
Question: For Raison Blue with a nicotine larger than 0.30000000000000004, what's the lowest quantity?
<|assistant|>
SELECT MIN("quantity") FROM "lineup" WHERE "name"='raison blue' AND "nicotine">0.30000000000000004;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title" text,
"language_s" text,
"director" text,
"result" text
);
Question: What was the result for the fil Paljas?
<|assistant|>
SELECT "result" FROM "submissions" WHERE "film_title"='paljas';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "under_construction" (
"rank" real,
"name" text,
"height_m_ft" text,
"floors" real,
"year" real
);
Question: In what year was the rank less than 6 for Damac Heights?
<|assistant|>
SELECT "year" FROM "under_construction" WHERE "rank"<6 AND "name"='damac heights';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "under_construction" (
"rank" real,
"name" text,
"height_m_ft" text,
"floors" real,
"year" real
);
Question: What is the height for rank greater than 10 in Tameer Tower?
<|assistant|>
SELECT "height_m_ft" FROM "under_construction" WHERE "rank">10 AND "name"='tameer tower';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "under_construction" (
"rank" real,
"name" text,
"height_m_ft" text,
"floors" real,
"year" real
);
Question: What was the earliest year with rank 20 and less than 60 floors?
<|assistant|>
SELECT MIN("year") FROM "under_construction" WHERE "rank"=20 AND "floors"<60;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "under_construction" (
"rank" real,
"name" text,
"height_m_ft" text,
"floors" real,
"year" real
);
Question: What is the highest floors with rank greater than 1 in Conrad Dubai?
<|assistant|>
SELECT MAX("floors") FROM "under_construction" WHERE "rank">1 AND "name"='conrad dubai';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_race" (
"team" text,
"driver" text,
"laps" real,
"time" text,
"grid" real
);
Question: How many Laps have a Driver of satrio hermanto?
<|assistant|>
SELECT SUM("laps") FROM "main_race" WHERE "driver"='satrio hermanto';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_race" (
"team" text,
"driver" text,
"laps" real,
"time" text,
"grid" real
);
Question: Which Time has a Grid of 19?
<|assistant|>
SELECT "time" FROM "main_race" WHERE "grid"=19;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_race" (
"team" text,
"driver" text,
"laps" real,
"time" text,
"grid" real
);
Question: Which Grid is the lowest one that has a Team of germany, and Laps smaller than 45?
<|assistant|>
SELECT MIN("grid") FROM "main_race" WHERE "team"='germany' AND "laps"<45;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round_num_overall" text,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: WHich team draft the player who went to college in Washington?
<|assistant|>
SELECT "nfl_team" FROM "nfl_draft" WHERE "college"='washington';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round_num_overall" text,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What position did the palyer drafted out of Washington play?
<|assistant|>
SELECT "position" FROM "nfl_draft" WHERE "college"='washington';<|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 medals when there are 5 bronze medals?
<|assistant|>
SELECT AVG("gold") FROM "medal_table" WHERE "bronze"=5;<|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 highest amount of bronze medals when the rank was larger than 9?
<|assistant|>
SELECT MAX("bronze") FROM "medal_table" WHERE "rank">9;<|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 leowest number of Bronze medals for Jamaica who ranked less than 4 and had more than 0 silver medals and a total of less than 22 medals?
<|assistant|>
SELECT MIN("bronze") FROM "medal_table" WHERE "silver">0 AND "rank"<4 AND "nation"='jamaica' AND "total"<22;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "groups_all_around" (
"place" real,
"nation" text,
"5_hoops" real,
"3_balls_2_ribbons" real,
"total" real
);
Question: Nation of bulgaria, and a Place larger than 1 had what highest 3 Balls, 2 Ribbons?
<|assistant|>
SELECT MAX("3_balls_2_ribbons") FROM "groups_all_around" WHERE "nation"='bulgaria' AND "place">1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "groups_all_around" (
"place" real,
"nation" text,
"5_hoops" real,
"3_balls_2_ribbons" real,
"total" real
);
Question: 5 Hoops that has a Place larger than 7, and a Total larger than 38.525 had what sum?
<|assistant|>
SELECT SUM("5_hoops") FROM "groups_all_around" WHERE "place">7 AND "total">38.525;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "groups_all_around" (
"place" real,
"nation" text,
"5_hoops" real,
"3_balls_2_ribbons" real,
"total" real
);
Question: 5 Hoops larger than 19.325, and a Total of 39.4, and a Place larger than 2 had what total number of 3 balls and 2 ribbons?
<|assistant|>
SELECT COUNT("3_balls_2_ribbons") FROM "groups_all_around" WHERE "5_hoops">19.325 AND "total"=39.4 AND "place">2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "groups_all_around" (
"place" real,
"nation" text,
"5_hoops" real,
"3_balls_2_ribbons" real,
"total" real
);
Question: Total of 38.55, and a 3 Balls, 2 Ribbons smaller than 19.4 had what lowest place?
<|assistant|>
SELECT MIN("place") FROM "groups_all_around" WHERE "total"=38.55 AND "3_balls_2_ribbons"<19.4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cast" (
"character_name" text,
"voice_actor_japanese" text,
"voice_actor_english_1997_saban" text,
"voice_actor_english_1998_pioneer" text,
"voice_actor_english_2006_fu_nimation" text
);
Question: what voice acter played tien
<|assistant|>
SELECT "voice_actor_japanese" FROM "cast" WHERE "character_name"='tien';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cast" (
"character_name" text,
"voice_actor_japanese" text,
"voice_actor_english_1997_saban" text,
"voice_actor_english_1998_pioneer" text,
"voice_actor_english_2006_fu_nimation" text
);
Question: what character did Laara sadiq play
<|assistant|>
SELECT "character_name" FROM "cast" WHERE "voice_actor_english_1998_pioneer"='laara sadiq';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cast" (
"character_name" text,
"voice_actor_japanese" text,
"voice_actor_english_1997_saban" text,
"voice_actor_english_1998_pioneer" text,
"voice_actor_english_2006_fu_nimation" text
);
Question: what character did Masaharu satou play
<|assistant|>
SELECT "character_name" FROM "cast" WHERE "voice_actor_japanese"='masaharu satou';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cast" (
"character_name" text,
"voice_actor_japanese" text,
"voice_actor_english_1997_saban" text,
"voice_actor_english_1998_pioneer" text,
"voice_actor_english_2006_fu_nimation" text
);
Question: what character did dave ward play
<|assistant|>
SELECT "voice_actor_english_1998_pioneer" FROM "cast" WHERE "voice_actor_english_1997_saban"='dave ward';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cast" (
"character_name" text,
"voice_actor_japanese" text,
"voice_actor_english_1997_saban" text,
"voice_actor_english_1998_pioneer" text,
"voice_actor_english_2006_fu_nimation" text
);
Question: what character did naoko watanabe play
<|assistant|>
SELECT "character_name" FROM "cast" WHERE "voice_actor_japanese"='naoko watanabe';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "titleholders" (
"year" real,
"country_territory" text,
"miss_world" text,
"national_title" text,
"location" text
);
Question: At what Location was Miss World 2009?
<|assistant|>
SELECT "location" FROM "titleholders" WHERE "year"=2009;<|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 1996 Emarate cup on March 25, 1996?
<|assistant|>
SELECT "score" FROM "international_goals" WHERE "competition"='1996 emarate cup' AND "date"='march 25, 1996';<|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 on August 11, 1996?
<|assistant|>
SELECT "competition" FROM "international_goals" WHERE "date"='august 11, 1996';<|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 in Dubai?
<|assistant|>
SELECT "competition" FROM "international_goals" WHERE "venue"='dubai';<|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 match in Bangkok?
<|assistant|>
SELECT "result" FROM "international_goals" WHERE "venue"='bangkok';<|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 match with a result of 4-0?
<|assistant|>
SELECT "date" FROM "international_goals" WHERE "result"='4-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: What is the score of the match with a 4-0 result?
<|assistant|>
SELECT "score" FROM "international_goals" WHERE "result"='4-0';<|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: Which name has an overall number of more than 164, when the pick number is more than 2, the position is running back, and the round is 16?
<|assistant|>
SELECT "name" FROM "atlanta_falcons_draft_history" WHERE "overall">164 AND "pick_num">2 AND "position"='running back' AND "round"=16;<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.