text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2003" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: On what deate was the centerfold featured Luci Victoria?
<|assistant|>
SELECT "date" FROM "2003" WHERE "centerfold_model"='Luci Victoria';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2003" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: How many centerfold models were there when the cover model was Torrie Wilson?
<|assistant|>
SELECT COUNT("centerfold_model") FROM "2003" WHERE "cover_model"='Torrie Wilson';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1566850_9" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: What is the name of the pictorial in the 11-98 issue?
<|assistant|>
SELECT "pictorials" FROM "table1_1566850_9" WHERE "date"='11-98';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1566850_9" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: How many centerfolds were in the 9-98 issue?
<|assistant|>
SELECT COUNT("centerfold_model") FROM "table1_1566850_9" WHERE "date"='9-98';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1566850_9" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: Who was interviewed in the 8-98 issue?
<|assistant|>
SELECT "interview_subject" FROM "table1_1566850_9" WHERE "date"='8-98';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1566850_9" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: Who was asked 20 questions in the issue where the centerfold is Marliece Andrada?
<|assistant|>
SELECT "20_questions" FROM "table1_1566850_9" WHERE "centerfold_model"='Marliece Andrada';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1566850_9" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: Who was asked 20 questions in the issue where the cover model is Linda Brava?
<|assistant|>
SELECT "20_questions" FROM "table1_1566850_9" WHERE "cover_model"='Linda Brava';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1566850_9" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: Who was featured in the pictorials in the issue where John Peterman was asked 20 questions?
<|assistant|>
SELECT "pictorials" FROM "table1_1566850_9" WHERE "20_questions"='John Peterman';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1566852_6" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: How many times was Jillian Grace the centerfold model?
<|assistant|>
SELECT COUNT("date") FROM "table1_1566852_6" WHERE "centerfold_model"='Jillian Grace';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1566852_6" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: What were the interview subjects on those occasions where Bai Ling was the cover model?
<|assistant|>
SELECT "interview_subject" FROM "table1_1566852_6" WHERE "cover_model"='Bai Ling';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1566852_6" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: How many total interview subjects wererthere when the centerfold model was Tamara Witmer?
<|assistant|>
SELECT COUNT("interview_subject") FROM "table1_1566852_6" WHERE "centerfold_model"='Tamara Witmer';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1566852_6" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: What's the subject of 20 questions in those issues where Jillian Grace is the centerfold model?
<|assistant|>
SELECT "20_questions" FROM "table1_1566852_6" WHERE "centerfold_model"='Jillian Grace';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1566852_6" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: Who were the cover model(s) on the 4-05 issue?
<|assistant|>
SELECT "cover_model" FROM "table1_1566852_6" WHERE "date"='4-05';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1566852_6" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: Who was on the cover when the 20 questions subject was Scarlett Johansson?
<|assistant|>
SELECT "cover_model" FROM "table1_1566852_6" WHERE "20_questions"='Scarlett Johansson';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cost_per_kilowatt_hour_us_cents_k_wh" (
"20_years" text,
"2400_k_wh_k_w_p_y" text,
"2200_k_wh_k_w_p_y" text,
"2000_k_wh_k_w_p_y" text,
"1800_k_wh_k_w_p_y" text,
"1600_k_wh_k_w_p_y" text,
"1400_k_wh_k_w_p_y" text,
"1200_k_wh_k_w_p_y" text,
"1000_k_wh_k_w_p_y" text,
"800_k_wh_k_w_p_y" text
);
Question: Name the 20 years for 1600 kwh/kw p y is 8.8
<|assistant|>
SELECT "20_years" FROM "cost_per_kilowatt_hour_us_cents_k_wh" WHERE "1600_k_wh_k_w_p_y"='8.8';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cost_per_kilowatt_hour_us_cents_k_wh" (
"20_years" text,
"2400_k_wh_k_w_p_y" text,
"2200_k_wh_k_w_p_y" text,
"2000_k_wh_k_w_p_y" text,
"1800_k_wh_k_w_p_y" text,
"1600_k_wh_k_w_p_y" text,
"1400_k_wh_k_w_p_y" text,
"1200_k_wh_k_w_p_y" text,
"1000_k_wh_k_w_p_y" text,
"800_k_wh_k_w_p_y" text
);
Question: Name the 1800 kwh/kw p y when 2400 kwh/kw p y is 5.8
<|assistant|>
SELECT "1800_k_wh_k_w_p_y" FROM "cost_per_kilowatt_hour_us_cents_k_wh" WHERE "2400_k_wh_k_w_p_y"='5.8';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: Name the date of 20 questions for jimmy fallon
<|assistant|>
SELECT "date" FROM "2004" WHERE "20_questions"='Jimmy Fallon';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: Name the date for oliver stone
<|assistant|>
SELECT "date" FROM "2004" WHERE "interview_subject"='Oliver Stone';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: Name the 20 questions for derek jeter
<|assistant|>
SELECT "20_questions" FROM "2004" WHERE "interview_subject"='Derek Jeter';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: Name the pictorials for terrel owens
<|assistant|>
SELECT "pictorials" FROM "2004" WHERE "20_questions"='Terrel Owens';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: Name the centerfold model for terrel owens
<|assistant|>
SELECT "centerfold_model" FROM "2004" WHERE "20_questions"='Terrel Owens';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: Name the 20 questions for 8-04
<|assistant|>
SELECT "20_questions" FROM "2004" WHERE "date"='8-04';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
Question: Name the open cup for 2010
<|assistant|>
SELECT "open_cup" FROM "year_by_year" WHERE "year"=2010;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: IN WHAT ISSUE OF PLAYBOY WAS SHEPARD SMITH INTERVIEWED?
<|assistant|>
SELECT "date" FROM "2006" WHERE "interview_subject"='Shepard Smith';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: WHO WAS THE CENTERFOLD MODEL IN THE ISSUE WHERE JASON LEE ANSWERED THE 20 QUESTIONS?
<|assistant|>
SELECT "centerfold_model" FROM "2006" WHERE "20_questions"='Jason Lee';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: HOW MANY MODELS WERE ON THE COVER OF THE ISSUE WHERE THE CENTERFOLD WAS STEPHANIE LARIMORE?
<|assistant|>
SELECT COUNT("cover_model") FROM "2006" WHERE "centerfold_model"='Stephanie Larimore';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: IN THE ISSUE WITH KARA MONACO ON THE COVER, WHO WAS THE INTERVIEW SUBJECT?
<|assistant|>
SELECT "interview_subject" FROM "2006" WHERE "cover_model"='Kara Monaco';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
Question: HOW MANY TIMES WAS LUDACRIS THE INTERVIEW SUBJECT FOR THE 20 QUESTIONS COLUMN?
<|assistant|>
SELECT COUNT("20_questions") FROM "2006" WHERE "interview_subject"='Ludacris';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "countries_territories_and_capitals_admin" (
"english_country_name" text,
"arabic_romanised_country_name" text,
"arabic_country_name" text,
"english_capital_name" text,
"arabic_romanised_capital_name" text,
"arabic_capital_name" text
);
Question: what is the arabic capital name wher the english capital name is manama?
<|assistant|>
SELECT "arabic_capital_name" FROM "countries_territories_and_capitals_admin" WHERE "english_capital_name"='Manama';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "countries_territories_and_capitals_admin" (
"english_country_name" text,
"arabic_romanised_country_name" text,
"arabic_country_name" text,
"english_capital_name" text,
"arabic_romanised_capital_name" text,
"arabic_capital_name" text
);
Question: what is the arabic capital name where the english capital name is beirut?
<|assistant|>
SELECT "arabic_capital_name" FROM "countries_territories_and_capitals_admin" WHERE "english_capital_name"='Beirut';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_nielsen_ratings" (
"num" real,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_timeslot" text,
"rank_night" text,
"rank_week" text
);
Question: what is the rank for the rating 4.4?
<|assistant|>
SELECT "rank_night" FROM "u_s_nielsen_ratings" WHERE "rating"='4.4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_nielsen_ratings" (
"num" real,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_timeslot" text,
"rank_night" text,
"rank_week" text
);
Question: what is the rating where the rank is 48?
<|assistant|>
SELECT "rating_share_18_49" FROM "u_s_nielsen_ratings" WHERE "rank_week"='48';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_nielsen_ratings" (
"num" real,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_timeslot" text,
"rank_night" text,
"rank_week" text
);
Question: what is the total rank where the rank is 58?
<|assistant|>
SELECT COUNT("rank_timeslot") FROM "u_s_nielsen_ratings" WHERE "rank_week"='58';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_nielsen_ratings" (
"num" real,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_timeslot" text,
"rank_night" text,
"rank_week" text
);
Question: what rank has viewers at 6.45?
<|assistant|>
SELECT "rank_week" FROM "u_s_nielsen_ratings" WHERE "viewers_millions"='6.45';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_nielsen_ratings" (
"num" real,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_timeslot" text,
"rank_night" text,
"rank_week" text
);
Question: what is the total number of rank where viewers is 9.38?
<|assistant|>
SELECT COUNT("rank_timeslot") FROM "u_s_nielsen_ratings" WHERE "viewers_millions"='9.38';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "services" (
"platform" real,
"frequency_per_hour" real,
"destination" text,
"service_pattern" text,
"operator" text,
"line" text
);
Question: Where is the service pattern sydenham then fast to norwood junction?
<|assistant|>
SELECT "destination" FROM "services" WHERE "service_pattern"='Sydenham then fast to Norwood Junction';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "services" (
"platform" real,
"frequency_per_hour" real,
"destination" text,
"service_pattern" text,
"operator" text,
"line" text
);
Question: How many platforms have a southern opertator and the pattern is all stations via clapham junction?
<|assistant|>
SELECT COUNT("platform") FROM "services" WHERE "operator"='Southern' AND "service_pattern"='All stations via Clapham Junction';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "services" (
"platform" real,
"frequency_per_hour" real,
"destination" text,
"service_pattern" text,
"operator" text,
"line" text
);
Question: When London Bridge is the destination, what is the frequency?
<|assistant|>
SELECT "frequency_per_hour" FROM "services" WHERE "destination"='London Bridge';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "services" (
"platform" real,
"frequency_per_hour" real,
"destination" text,
"service_pattern" text,
"operator" text,
"line" text
);
Question: When London Bridge is the destination, how many lines are there?
<|assistant|>
SELECT COUNT("line") FROM "services" WHERE "destination"='London Bridge';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "services" (
"platform" real,
"frequency_per_hour" real,
"destination" text,
"service_pattern" text,
"operator" text,
"line" text
);
Question: When the service pattern is sydenham then fast to norwood junction, what is the destination?
<|assistant|>
SELECT "destination" FROM "services" WHERE "service_pattern"='Sydenham then fast to Norwood Junction';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" text,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
Question: What was the playoff advancement during the year 1998?
<|assistant|>
SELECT "playoffs" FROM "year_by_year" WHERE "year"=1998;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" text,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
Question: During 2003 what was open cup qualifying status?
<|assistant|>
SELECT "open_cup" FROM "year_by_year" WHERE "year"=2003;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" text,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
Question: What is the most recent year where team made it to 2nd round of the Open Cup?
<|assistant|>
SELECT MAX("year") FROM "year_by_year" WHERE "open_cup"='2nd Round';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_19" (
"no" real,
"date" text,
"tournament" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Name the margin of victory when the number is 15
<|assistant|>
SELECT "margin_of_victory" FROM "european_tour_wins_19" WHERE "no"=15;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_19" (
"no" real,
"date" text,
"tournament" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Name the number of numbers for howard clark
<|assistant|>
SELECT COUNT("no") FROM "european_tour_wins_19" WHERE "runner_s_up"='Howard Clark';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_19" (
"no" real,
"date" text,
"tournament" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Name the margin of victory when tournament is algarve open de portugal
<|assistant|>
SELECT "margin_of_victory" FROM "european_tour_wins_19" WHERE "tournament"='Algarve Open de Portugal';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_19" (
"no" real,
"date" text,
"tournament" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Name the tournament when margin of victory is 3 strokes and winning score is 71-66-70-67=274
<|assistant|>
SELECT "tournament" FROM "european_tour_wins_19" WHERE "margin_of_victory"='3 strokes' AND "winning_score"='71-66-70-67=274';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australia" (
"name" text,
"overs_bowled" text,
"maidens" real,
"runs_conceded" real,
"wickets" real,
"extras" real,
"e_r" text
);
Question: Name the most runs conceded
<|assistant|>
SELECT MAX("runs_conceded") FROM "australia";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australia" (
"name" text,
"overs_bowled" text,
"maidens" real,
"runs_conceded" real,
"wickets" real,
"extras" real,
"e_r" text
);
Question: Name the wickets when overs bowled is 9
<|assistant|>
SELECT "wickets" FROM "australia" WHERE "overs_bowled"='9';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australia" (
"name" text,
"overs_bowled" text,
"maidens" real,
"runs_conceded" real,
"wickets" real,
"extras" real,
"e_r" text
);
Question: Name the most maidens when e.r. 5.11
<|assistant|>
SELECT MAX("maidens") FROM "australia" WHERE "e_r"='5.11';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australia" (
"name" text,
"overs_bowled" text,
"maidens" real,
"runs_conceded" real,
"wickets" real,
"extras" real,
"e_r" text
);
Question: Name the least runs conceded for brett lee
<|assistant|>
SELECT MIN("runs_conceded") FROM "australia" WHERE "name"='Brett Lee';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sri_lanka" (
"name" text,
"overs_bowled" text,
"maidens" real,
"runs_conceded" real,
"wickets" real,
"extras" real,
"e_r" text
);
Question: How many runs conceded when the earned runs was 4.96?
<|assistant|>
SELECT "runs_conceded" FROM "sri_lanka" WHERE "e_r"='4.96';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sri_lanka" (
"name" text,
"overs_bowled" text,
"maidens" real,
"runs_conceded" real,
"wickets" real,
"extras" real,
"e_r" text
);
Question: How many players named sanath jayasuriya?
<|assistant|>
SELECT COUNT("runs_conceded") FROM "sri_lanka" WHERE "name"='Sanath Jayasuriya';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sri_lanka" (
"name" text,
"overs_bowled" text,
"maidens" real,
"runs_conceded" real,
"wickets" real,
"extras" real,
"e_r" text
);
Question: How many runs conceded for chaminda vaas?
<|assistant|>
SELECT "runs_conceded" FROM "sri_lanka" WHERE "name"='Chaminda Vaas';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sri_lanka" (
"name" text,
"overs_bowled" text,
"maidens" real,
"runs_conceded" real,
"wickets" real,
"extras" real,
"e_r" text
);
Question: How many overs bowled for muttiah muralitharan?
<|assistant|>
SELECT COUNT("overs_bowled") FROM "sri_lanka" WHERE "name"='Muttiah Muralitharan';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sri_lanka" (
"name" text,
"overs_bowled" text,
"maidens" real,
"runs_conceded" real,
"wickets" real,
"extras" real,
"e_r" text
);
Question: What was the ER average for the player that conceded 368 runs?
<|assistant|>
SELECT "e_r" FROM "sri_lanka" WHERE "runs_conceded"=368;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sri_lanka" (
"name" text,
"overs_bowled" text,
"maidens" real,
"runs_conceded" real,
"wickets" real,
"extras" real,
"e_r" text
);
Question: What is the lowest number of wickets for farveez maharoof?
<|assistant|>
SELECT MIN("wickets") FROM "sri_lanka" WHERE "name"='Farveez Maharoof';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2" (
"episode" real,
"title" text,
"story" text,
"adapted_by" text,
"director" text,
"airdate" text,
"exists" text
);
Question: What is the airdate when the story is listed as hugh leonard?
<|assistant|>
SELECT "airdate" FROM "series_2" WHERE "story"='Hugh Leonard';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "record_vs_other_most_played_di_opponents" (
"kansas_state_vs" text,
"games_played" real,
"overall_record" text,
"last_5_meetings" text,
"last_10_meetings" text,
"current_streak" text,
"last_meeting" text
);
Question: who won the kansas state game on 11/26/1988
<|assistant|>
SELECT "kansas_state_vs" FROM "record_vs_other_most_played_di_opponents" WHERE "last_meeting"='11/26/1988';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "record_vs_other_most_played_di_opponents" (
"kansas_state_vs" text,
"games_played" real,
"overall_record" text,
"last_5_meetings" text,
"last_10_meetings" text,
"current_streak" text,
"last_meeting" text
);
Question: how many games has kansas state and depaul played against each other
<|assistant|>
SELECT COUNT("games_played") FROM "record_vs_other_most_played_di_opponents" WHERE "kansas_state_vs"='DePaul';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "record_vs_other_most_played_di_opponents" (
"kansas_state_vs" text,
"games_played" real,
"overall_record" text,
"last_5_meetings" text,
"last_10_meetings" text,
"current_streak" text,
"last_meeting" text
);
Question: if they played last on 12/5/1987 what is their record
<|assistant|>
SELECT "current_streak" FROM "record_vs_other_most_played_di_opponents" WHERE "last_meeting"='12/5/1987';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15777546_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"originalairdate" text,
"tv_broadcast" text
);
Question: What number in the season was "reflections"?
<|assistant|>
SELECT "no_in_season" FROM "table1_15777546_1" WHERE "title"='\"Reflections\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the high points for march 7
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "date"='March 7';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the date for sacramento
<|assistant|>
SELECT "date" FROM "game_log" WHERE "team"='Sacramento';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the high rebounds for march 17
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "date"='March 17';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the location attendance for philadelphia
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "team"='Philadelphia';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Who scored the most assists in game 59?
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "game"=59;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What was the record against Boston?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "team"='Boston';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1_2008" (
"num" real,
"advocate_num_1" text,
"advocate_num_2" text,
"root_of_all_evil" text,
"poll_winner" text,
"original_air_date" text
);
Question: Name the poll winner for greg giraldo for porn
<|assistant|>
SELECT "poll_winner" FROM "season_1_2008" WHERE "advocate_num_2"='Greg Giraldo for Porn';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1_2008" (
"num" real,
"advocate_num_1" text,
"advocate_num_2" text,
"root_of_all_evil" text,
"poll_winner" text,
"original_air_date" text
);
Question: Name the number of advocate #1 that aired on april 2, 2008
<|assistant|>
SELECT COUNT("advocate_num_1") FROM "season_1_2008" WHERE "original_air_date"='April 2, 2008';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1_2008" (
"num" real,
"advocate_num_1" text,
"advocate_num_2" text,
"root_of_all_evil" text,
"poll_winner" text,
"original_air_date" text
);
Question: Name the poll winner for march 19, 2008
<|assistant|>
SELECT COUNT("poll_winner") FROM "season_1_2008" WHERE "original_air_date"='March 19, 2008';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1_2008" (
"num" real,
"advocate_num_1" text,
"advocate_num_2" text,
"root_of_all_evil" text,
"poll_winner" text,
"original_air_date" text
);
Question: Name the air date for andy kindler for donald trump
<|assistant|>
SELECT "original_air_date" FROM "season_1_2008" WHERE "advocate_num_1"='Andy Kindler for Donald Trump';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1_2008" (
"num" real,
"advocate_num_1" text,
"advocate_num_2" text,
"root_of_all_evil" text,
"poll_winner" text,
"original_air_date" text
);
Question: Name the # for youtube
<|assistant|>
SELECT "num" FROM "season_1_2008" WHERE "poll_winner"='YouTube';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1_2008" (
"num" real,
"advocate_num_1" text,
"advocate_num_2" text,
"root_of_all_evil" text,
"poll_winner" text,
"original_air_date" text
);
Question: Name the advocate #1 for american idol
<|assistant|>
SELECT "advocate_num_1" FROM "season_1_2008" WHERE "root_of_all_evil"='American Idol';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2_2008" (
"num" real,
"advocate_num_1" text,
"advocate_num_2" text,
"root_of_all_evil" text,
"poll_winner" text,
"original_air_date" text
);
Question: When steroids won the poll, who was advocate #1?
<|assistant|>
SELECT "advocate_num_1" FROM "season_2_2008" WHERE "poll_winner"='Steroids';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2_2008" (
"num" real,
"advocate_num_1" text,
"advocate_num_2" text,
"root_of_all_evil" text,
"poll_winner" text,
"original_air_date" text
);
Question: What are the original air dates when scientology isthe poll winner?
<|assistant|>
SELECT "original_air_date" FROM "season_2_2008" WHERE "poll_winner"='Scientology';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2_2008" (
"num" real,
"advocate_num_1" text,
"advocate_num_2" text,
"root_of_all_evil" text,
"poll_winner" text,
"original_air_date" text
);
Question: When bloggers was the poll winner, who was the root of all evil?
<|assistant|>
SELECT "root_of_all_evil" FROM "season_2_2008" WHERE "poll_winner"='Bloggers';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2_2008" (
"num" real,
"advocate_num_1" text,
"advocate_num_2" text,
"root_of_all_evil" text,
"poll_winner" text,
"original_air_date" text
);
Question: How many times did drinking games win the poll?
<|assistant|>
SELECT COUNT("num") FROM "season_2_2008" WHERE "poll_winner"='Drinking Games';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1579922_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
Question: What date was an episode with a run time of 24:30 broadcasted?
<|assistant|>
SELECT "broadcast_date" FROM "table1_1579922_1" WHERE "run_time"='24:30';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1579922_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
Question: What episode had a run time of 24:25?
<|assistant|>
SELECT "episode" FROM "table1_1579922_1" WHERE "run_time"='24:25';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
Question: Who was the original artist for week number Top 16 (8 women)?
<|assistant|>
SELECT "original_artist" FROM "performances" WHERE "week_num"='Top 16 (8 Women)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
Question: What was the order number where the original artist is The Doors?
<|assistant|>
SELECT "order_num" FROM "performances" WHERE "original_artist"='The Doors';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
Question: What was the theme when the original artist was The Beatles?
<|assistant|>
SELECT "theme" FROM "performances" WHERE "original_artist"='The Beatles';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
Question: Who was the original artist when the theme was 1980s?
<|assistant|>
SELECT "original_artist" FROM "performances" WHERE "theme"='1980s';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
Question: Who was the original artist when the order number is 9?
<|assistant|>
SELECT "original_artist" FROM "performances" WHERE "order_num"='9';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15823956_1" (
"series" text,
"episodes" real,
"series_premiere" text,
"series_finale" text,
"region_1" text,
"region_2" text,
"region_4" text
);
Question: Which episode was N/A in region 1
<|assistant|>
SELECT "episodes" FROM "table1_15823956_1" WHERE "region_1"='N/A';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15823956_1" (
"series" text,
"episodes" real,
"series_premiere" text,
"series_finale" text,
"region_1" text,
"region_2" text,
"region_4" text
);
Question: When was series premiere on the pilot episode
<|assistant|>
SELECT "series_premiere" FROM "table1_15823956_1" WHERE "series"='Pilot';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15823956_1" (
"series" text,
"episodes" real,
"series_premiere" text,
"series_finale" text,
"region_1" text,
"region_2" text,
"region_4" text
);
Question: What is the region 1 date for series 4
<|assistant|>
SELECT "region_1" FROM "table1_15823956_1" WHERE "series"='4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15823956_1" (
"series" text,
"episodes" real,
"series_premiere" text,
"series_finale" text,
"region_1" text,
"region_2" text,
"region_4" text
);
Question: How many episodes in the series that premieres 5 february 2012
<|assistant|>
SELECT "episodes" FROM "table1_15823956_1" WHERE "series_premiere"='5 February 2012';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15824796_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: What season began on december 5, 1953?
<|assistant|>
SELECT MAX("season_num") FROM "table1_15824796_3" WHERE "original_air_date"='December 5, 1953';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15824796_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: What is the title of the first episode of the season that begin on february 27, 1954?
<|assistant|>
SELECT "title" FROM "table1_15824796_3" WHERE "original_air_date"='February 27, 1954';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15824796_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: What is the title of the episode that aired on december 12, 1953?
<|assistant|>
SELECT "title" FROM "table1_15824796_3" WHERE "original_air_date"='December 12, 1953';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15824796_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: How many episodes aired on february 13, 1954?
<|assistant|>
SELECT COUNT("title") FROM "table1_15824796_3" WHERE "original_air_date"='February 13, 1954';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15824796_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: Which titles were directed by George Blair and written by Jackson Gillis?
<|assistant|>
SELECT "title" FROM "table1_15824796_3" WHERE "directed_by"='George Blair' AND "written_by"='Jackson Gillis';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What are all the CFL teams where the pick number is 36?
<|assistant|>
SELECT "cfl_team" FROM "round_five" WHERE "pick_num"=36;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What are the positions in the college of Alberta?
<|assistant|>
SELECT "position" FROM "round_five" WHERE "college"='Alberta';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What is the total number of CFL teams in the college Wilfrid Laurier
<|assistant|>
SELECT COUNT("cfl_team") FROM "round_five" WHERE "college"='Wilfrid Laurier';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What is the college that Jeffrey Simmer plays for?
<|assistant|>
SELECT "college" FROM "round_five" WHERE "player"='Jeffrey Simmer';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_summary_in_indian_premier_le" (
"year" real,
"matches" real,
"wins" real,
"losses" real,
"no_result" real,
"tied" real,
"success_rate" text,
"position" text,
"summary" text
);
Question: Name the least matches for year 2008
<|assistant|>
SELECT MIN("matches") FROM "performance_summary_in_indian_premier_le" WHERE "year"=2008;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_summary_in_indian_premier_le" (
"year" real,
"matches" real,
"wins" real,
"losses" real,
"no_result" real,
"tied" real,
"success_rate" text,
"position" text,
"summary" text
);
Question: Name the maximum wins for 68.75%
<|assistant|>
SELECT MAX("wins") FROM "performance_summary_in_indian_premier_le" WHERE "success_rate"='68.75%';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.