text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numbers_from_100_10_000_000" (
"value" text,
"khmer" real,
"word_form" text,
"ungegn" text,
"ala_lc" text,
"other" text,
"notes" text
);
Question: What number value has the Other transliter... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numbers_from_100_10_000_000" (
"value" text,
"khmer" real,
"word_form" text,
"ungegn" text,
"ala_lc" text,
"other" text,
"notes" text
);
Question: What is the word form for the ALA-LC trans... |
<|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,
"record" text
);
Question: Name the loss when the record is 76-81
<|assistant|>
SELECT "loss" FROM "game_log" WHERE "record"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which average bronze had a silver greater than 2 and a gold larger than 7?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: When the total was 11 and silver was greater than 4 what was the highest gold?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many bronze had a total less than 4 and gold bigger than 1?
<|assistant|>
SELECT COUNT("bron... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "canada_west_football_conference_hardy_tr" (
"institution" text,
"team" text,
"city" text,
"province" text,
"first_season" real,
"head_coach" text,
"enrollment" real,
"endowment" text,
"f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mc_gwire_s_rookie_record_49_home_runs" (
"home_run" real,
"game" real,
"date" text,
"inning" text,
"location" text,
"opposing_pitcher" text,
"team" text
);
Question: Which Date has an Oppos... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mc_gwire_s_rookie_record_49_home_runs" (
"home_run" real,
"game" real,
"date" text,
"inning" text,
"location" text,
"opposing_pitcher" text,
"team" text
);
Question: Which average Home Run ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mc_gwire_s_rookie_record_49_home_runs" (
"home_run" real,
"game" real,
"date" text,
"inning" text,
"location" text,
"opposing_pitcher" text,
"team" text
);
Question: Which team has a Home R... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" text,
"location" text,
"lineup" text,
"assist_pass" text,
"score" text,
"result" text,
"competition" text
);
Question: Which Assist/pass has a Score of 1-0, an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" text,
"location" text,
"lineup" text,
"assist_pass" text,
"score" text,
"result" text,
"competition" text
);
Question: Which Assist/pass has a Result of 6-2?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" text,
"location" text,
"lineup" text,
"assist_pass" text,
"score" text,
"result" text,
"competition" text
);
Question: Which Assist/pass has a Goal of 5?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" text,
"location" text,
"lineup" text,
"assist_pass" text,
"score" text,
"result" text,
"competition" text
);
Question: Which location has a Goal of 2?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" text,
"location" text,
"lineup" text,
"assist_pass" text,
"score" text,
"result" text,
"competition" text
);
Question: Which lineup has a Location of usa virgi... |
<|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 date had a score of 5-1?
<|assistant|>
SELECT "date" FROM "international_goa... |
<|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 result had a score of 2-1?
<|assistant|>
SELECT "result" FROM "international_... |
<|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 date had a score of 3-2?
<|assistant|>
SELECT "date" FROM "international_goa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
);
Question: What is the oldest model Porsche v12 that has points less than or... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1992_winter_olympics" (
"date_of_issue" text,
"theme" text,
"denomination" text,
"printer" text,
"quantity" text,
"design" text,
"perforation" text,
"first_day_cover_cancellation" text
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1992_winter_olympics" (
"date_of_issue" text,
"theme" text,
"denomination" text,
"printer" text,
"quantity" text,
"design" text,
"perforation" text,
"first_day_cover_cancellation" text
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
);
Question: What is the highest pts after 1952 with connaught type a?
<|assis... |
<|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 did the Chiefs play in Week 8?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "we... |
<|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: Which week was on October 11, 1970 and an attendance larger than 41,379.
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_runner_up_16" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_final" text,
"score" text
);
Question: On what surface was the 26 August 2001 tournament ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "project_overview" (
"project" text,
"year" text,
"location" text,
"capacity" real,
"suites" text,
"architect" text,
"cost" text
);
Question: What is the average capacity for 150 suites?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "project_overview" (
"project" text,
"year" text,
"location" text,
"capacity" real,
"suites" text,
"architect" text,
"cost" text
);
Question: Where is the Eren Talu bidding project located?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "project_overview" (
"project" text,
"year" text,
"location" text,
"capacity" real,
"suites" text,
"architect" text,
"cost" text
);
Question: Which location has a capacity larger than 52,000... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "project_overview" (
"project" text,
"year" text,
"location" text,
"capacity" real,
"suites" text,
"architect" text,
"cost" text
);
Question: What is the highest capacity in Aslantepe in 200... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numbers_from_100_10_000_000" (
"value" text,
"khmer" real,
"word_form" text,
"ungegn" text,
"ala_lc" text,
"notes" text
);
Question: What is the UNGEGN, when the Khmer is greater than ១០០០០០០... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numbers_from_100_10_000_000" (
"value" text,
"khmer" real,
"word_form" text,
"ungegn" text,
"ala_lc" text,
"notes" text
);
Question: What is the Value, when the Notes are literally "one hundr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numbers_from_100_10_000_000" (
"value" text,
"khmer" real,
"word_form" text,
"ungegn" text,
"ala_lc" text,
"notes" text
);
Question: What is the Word Form, when the Notes are literally "one h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numbers_from_100_10_000_000" (
"value" text,
"khmer" real,
"word_form" text,
"ungegn" text,
"ala_lc" text,
"notes" text
);
Question: What is the Word Form, when the Khmer is greater than ១០០០... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numbers_from_100_10_000_000" (
"value" text,
"khmer" real,
"word_form" text,
"ungegn" text,
"ala_lc" text,
"notes" text
);
Question: What is the total amount of Khmer, when the Notes are lite... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numbers_from_100_10_000_000" (
"value" text,
"khmer" real,
"word_form" text,
"ungegn" text,
"ala_lc" text,
"notes" text
);
Question: What is the UNGEGN, when the Value is 10 000?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: Name the 2008 for wta premier mandatory tournaments of 2007
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: Name the tournament of beijing
<|assistant|>
SELECT "2011" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: Name the 2009 for 2007 of 2r and tournament of wimbledon
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: Name the 2011 for 2010 of olympic games
<|assistant|>
SELECT "2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: Name the 2011 for tokyo tournament
<|assistant|>
SELECT "2011" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: Name the 2009 for wta premier mandatory tournaments
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_winners" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: Who won Mixed Doubles the year t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_winners" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: Who won Men's singles the year t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_winners" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: Who won Mixed doubles the year t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: Which year did Ray Crawford the Kurtis Kraft 500g chassis?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "averages" (
"city" text,
"january_avg_high_f" text,
"january_avg_low_f" text,
"july_avg_high_f" real,
"july_avg_low_f" real
);
Question: What city had a july high below 84, and a january low of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "averages" (
"city" text,
"january_avg_high_f" text,
"january_avg_low_f" text,
"july_avg_high_f" real,
"july_avg_low_f" real
);
Question: What is the july average low associated with a january a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cfwh_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: Which class has an identifier of CBUA-FM?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cfwh_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What is the city of license for the frequenc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cfwh_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What is the power when the city of license i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cfwh_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What is the city of license when the class i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cfwh_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What is the class when the frequency is 560 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "forbes_global_2000" (
"rank" real,
"company" text,
"revenues_us_billion" real,
"profit_us_billion" real,
"assets_us_billion" real,
"market_value_us_billion" real
);
Question: What are the sma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "forbes_global_2000" (
"rank" real,
"company" text,
"revenues_us_billion" real,
"profit_us_billion" real,
"assets_us_billion" real,
"market_value_us_billion" real
);
Question: What is the aver... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "forbes_global_2000" (
"rank" real,
"company" text,
"revenues_us_billion" real,
"profit_us_billion" real,
"assets_us_billion" real,
"market_value_us_billion" real
);
Question: Which company ha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "west_indies_in_england" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: Tell me the venue with result of eng by 6 wkts
<|assistant|>
SELECT "ve... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "west_indies_in_england" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: Name the Home captain for venue of the oval
<|assistant|>
SELECT "home_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "west_indies_in_england" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: Name the away captain with result of wi by 9 wkts
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "west_indies_in_england" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: Name the venue for eng by 6 wkts
<|assistant|>
SELECT "venue" FROM "wes... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "billy_elliot" (
"status" text,
"name" text,
"first_performance" text,
"last_performance" text,
"style" text
);
Question: What is the date of the last performance when the style is street dance ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "billy_elliot" (
"status" text,
"name" text,
"first_performance" text,
"last_performance" text,
"style" text
);
Question: What is the date of the last performance for Liam Mower?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: How many points did the Weslake v12 get in 1966?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What was the name of the team in 1965 driving the Ferrari 158?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What Chassis had a Weslake v12 in it?
<|assistant|>
SELECT "ch... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_table" (
"interferon_beta_1a" text,
"betaseron_beta_1b" text,
"copaxone" text,
"mitoxantrone" text,
"tysabri" text,
"fingolimod_gylenya" text,
"teriflunomide" text
);
Question: Name... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"player" text,
"test_career" text,
"tests" real,
"catches" real,
"stumpings" real,
"total_dismissals" real
);
Question: Who has a career that has test larger than 41, catches over... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"player" text,
"test_career" text,
"tests" real,
"catches" real,
"stumpings" real,
"total_dismissals" real
);
Question: What is the average dismissals of 83 test and catches less ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"trofeo_fast_team" text
);
Que... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"trofeo_fast_team" text
);
Que... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"trofeo_fast_team" text
);
Que... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"trofeo_fast_team" text
);
Que... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"trofeo_fast_team" text
);
Que... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"trofeo_fast_team" text
);
Que... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"first_elected" text
);
Question: What is the year First elected when the Member is John Armitage?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"first_elected" text
);
Question: Who is the Electorate, when the year for First elected is 1974, and when the Party is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"first_elected" text
);
Question: Who is the Member when the Party is Alp, and when the Electorate is Grey?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"first_elected" text
);
Question: What is the State, when the year First elected is 1966, and when the Member is Alan J... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"first_elected" text
);
Question: What is the year First Elected, when the Party is Alp, and when the State is qld?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"first_elected" text
);
Question: What is the year First elected, when the State is vic, and when the Member is Hon Don... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_professional_career_summar" (
"year" text,
"starts" real,
"cuts_made" real,
"wins" real,
"top_10" real,
"top_25" real,
"earnings" real,
"money_list_rank" real
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_professional_career_summar" (
"year" text,
"starts" real,
"cuts_made" real,
"wins" real,
"top_10" real,
"top_25" real,
"earnings" real,
"money_list_rank" real
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_professional_career_summar" (
"year" text,
"starts" real,
"cuts_made" real,
"wins" real,
"top_10" real,
"top_25" real,
"earnings" real,
"money_list_rank" real
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_professional_career_summar" (
"year" text,
"starts" real,
"cuts_made" real,
"wins" real,
"top_10" real,
"top_25" real,
"earnings" real,
"money_list_rank" real
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "northern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What Away team had an Attendance of 3,395?
<|assistant|>
SELECT "away_team" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "northern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What Home team had an Attendance of 2,776?
<|assistant|>
SELECT "home_team" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: Which engine has more than 1 point after 1981?
<|assistant|>
SELECT "engin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: Which engine did Marlboro Team Alfa Romeo used with a chassis of alfa rome... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personal_bests" (
"surface" text,
"event" text,
"time_h_m_s" text,
"date" text,
"place" text
);
Question: When has a surface of road and an event of half marathon?
<|assistant|>
SELECT "date" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personal_bests" (
"surface" text,
"event" text,
"time_h_m_s" text,
"date" text,
"place" text
);
Question: Which Surface has a Place of lappeenranta?
<|assistant|>
SELECT "surface" FROM "persona... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personal_bests" (
"surface" text,
"event" text,
"time_h_m_s" text,
"date" text,
"place" text
);
Question: What is the Date that has 1:01:42?
<|assistant|>
SELECT "date" FROM "personal_bests" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personal_bests" (
"surface" text,
"event" text,
"time_h_m_s" text,
"date" text,
"place" text
);
Question: What is the Time ( h : m : s ) on 13 october 2010
<|assistant|>
SELECT "time_h_m_s" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personal_bests" (
"surface" text,
"event" text,
"time_h_m_s" text,
"date" text,
"place" text
);
Question: What is the Place with Time 7:44.15?
<|assistant|>
SELECT "place" FROM "personal_bests... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"class" text,
"tyres" text,
"team" text,
"co_drivers" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: Which Class Pos have Laps sm... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"class" text,
"tyres" text,
"team" text,
"co_drivers" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: What is the lowest Laps that... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"crowd" text,
"record" text
);
Question: How many people attended the score of w 7-6?
<|assistant|>
SELECT "crowd" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"crowd" text,
"record" text
);
Question: Who lost that has a score of w 4-3?
<|assistant|>
SELECT "loss" FROM "regul... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"crowd" text,
"record" text
);
Question: Loss of schrom happened on what date?
<|assistant|>
SELECT "date" FROM "reg... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"crowd" text,
"record" text
);
Question: Opponent of @mil, and a Record of 45-16 happened on what date?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"crowd" text,
"record" text
);
Question: Loss of willis has what record?
<|assistant|>
SELECT "record" FROM "regular... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"crowd" text,
"record" text
);
Question: Loss of wilcox, and a Date of jun 18 had what opponent?
<|assistant|>
SELEC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.