text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_three" (
"num" real,
"title" text,
"original_airdate" text,
"timeslot" text,
"viewers_millions" text,
"nightly_rank" real,
"weekly_rank" real
);
Question: When did "Man in the Machine" originally air?
<|assistant|>
SELECT "original_airdate" FROM "series_three" WHERE "title"='\"Man in the Machine\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23399481_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: What is the original air date of the episode that was directed by David Paymer?
<|assistant|>
SELECT "original_air_date" FROM "table1_23399481_2" WHERE "directed_by"='David Paymer';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23399481_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: If the amount of U.S. viewers is 2.14 million, who was the episode directed by?
<|assistant|>
SELECT "directed_by" FROM "table1_23399481_2" WHERE "u_s_viewers_in_millions"='2.14';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23399481_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: If the amount of U.S. viewers is 2.05 milliom, who was the episode directed by?
<|assistant|>
SELECT "directed_by" FROM "table1_23399481_2" WHERE "u_s_viewers_in_millions"='2.05';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23399481_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: What is the director name is the U.S. viewers is 2.22 million?
<|assistant|>
SELECT "directed_by" FROM "table1_23399481_2" WHERE "u_s_viewers_in_millions"='2.22';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "us_ratings" (
"num" real,
"airdate" text,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_timeslot" real,
"rank_night" real
);
Question: What date did "we are no longer in the bible belt" air on?
<|assistant|>
SELECT "airdate" FROM "us_ratings" WHERE "episode"='\"We Are No Longer in the Bible Belt\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "us_ratings" (
"num" real,
"airdate" text,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_timeslot" real,
"rank_night" real
);
Question: How many million viewers watched the episode that had a 2.6/7 rating/share (18-49)
<|assistant|>
SELECT "viewers_millions" FROM "us_ratings" WHERE "rating_share_18_49"='2.6/7';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "us_ratings" (
"num" real,
"airdate" text,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_timeslot" real,
"rank_night" real
);
Question: How many million viewers watched "nanna is kickin' your butt"?
<|assistant|>
SELECT "viewers_millions" FROM "us_ratings" WHERE "episode"='\"Nanna Is Kickin'' Your Butt\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "us_ratings" (
"num" real,
"airdate" text,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_timeslot" real,
"rank_night" real
);
Question: How many million viewers watched the episode that aired on March 28, 2010?
<|assistant|>
SELECT "viewers_millions" FROM "us_ratings" WHERE "airdate"='March 28, 2010';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "us_ratings" (
"num" real,
"airdate" text,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_timeslot" real,
"rank_night" real
);
Question: How many rankings (timeslot) were there for the episode that aired on May 2, 2010?
<|assistant|>
SELECT COUNT("rank_timeslot") FROM "us_ratings" WHERE "airdate"='May 2, 2010';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23399481_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: Who was the writer for the episode called "What Are You Made of?"
<|assistant|>
SELECT "written_by" FROM "table1_23399481_3" WHERE "title"='\"What Are You Made Of?\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23399481_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: What episode had 1.42 million viewers?
<|assistant|>
SELECT "series_num" FROM "table1_23399481_3" WHERE "u_s_viewers_in_millions"='1.42';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23399481_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: What is the original air date for episode 4?
<|assistant|>
SELECT "original_air_date" FROM "table1_23399481_3" WHERE "season_num"=4;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23399481_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: Who was the writer for the show titled "and the rocky goes to..."?
<|assistant|>
SELECT "written_by" FROM "table1_23399481_3" WHERE "title"='\"And the Rocky Goes To...\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_results" (
"pos" real,
"no" real,
"driver" text,
"team" text,
"chassis_engine" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" real
);
Question: Which team uses lola t92/00/ buick for their chassis/engine?
<|assistant|>
SELECT "team" FROM "race_results" WHERE "chassis_engine"='Lola T92/00/ Buick';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_results" (
"pos" real,
"no" real,
"driver" text,
"team" text,
"chassis_engine" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" real
);
Question: When the pos equals 18 what is the max amount of points?
<|assistant|>
SELECT MAX("points") FROM "race_results" WHERE "pos"=18;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_results" (
"pos" real,
"no" real,
"driver" text,
"team" text,
"chassis_engine" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" real
);
Question: How many drivers used lola t92/00/ buick for their chassis/engine?
<|assistant|>
SELECT COUNT("no") FROM "race_results" WHERE "chassis_engine"='Lola T92/00/ Buick';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23403578_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text,
"u_s_viewers_in_millions" text
);
Question: What's the series number of the episode with a season number 5, written by Bernie Ancheta?
<|assistant|>
SELECT MIN("no_in_series") FROM "table1_23403578_3" WHERE "written_by"='Bernie Ancheta' AND "no_in_season"=5;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23403578_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text,
"u_s_viewers_in_millions" text
);
Question: When did the episode with production code 213 air for the first time?
<|assistant|>
SELECT "original_air_date" FROM "table1_23403578_3" WHERE "prod_code"='213';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23403578_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text,
"u_s_viewers_in_millions" text
);
Question: Who directed the episode with production code 208?
<|assistant|>
SELECT "directed_by" FROM "table1_23403578_3" WHERE "prod_code"='208';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23403578_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text,
"u_s_viewers_in_millions" text
);
Question: How many millions of people in the US saw the episode titled "Ball of Trash"?
<|assistant|>
SELECT "u_s_viewers_in_millions" FROM "table1_23403578_3" WHERE "title"='\"Ball of Trash\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_mountains" (
"direction" text,
"number" real,
"trigram" text,
"24_mountains" text,
"bearing_degrees" text,
"nature" text
);
Question: What is every direction with 24 mountains as Wei ζͺ Kun ε€ Shen η³?
<|assistant|>
SELECT "direction" FROM "24_mountains" WHERE "24_mountains"='Wei ζͺ Kun ε€ Shen η³';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_mountains" (
"direction" text,
"number" real,
"trigram" text,
"24_mountains" text,
"bearing_degrees" text,
"nature" text
);
Question: How many values for 24 mountains when the bearing or degrees is 67.6 - 82.5 82.6 - 97.5 97.6 - 112.5?
<|assistant|>
SELECT COUNT("24_mountains") FROM "24_mountains" WHERE "bearing_degrees"='67.6 - 82.5 82.6 - 97.5 97.6 - 112.5';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_mountains" (
"direction" text,
"number" real,
"trigram" text,
"24_mountains" text,
"bearing_degrees" text,
"nature" text
);
Question: What is every trigram when direction is Northwest?
<|assistant|>
SELECT "trigram" FROM "24_mountains" WHERE "direction"='Northwest';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_mountains" (
"direction" text,
"number" real,
"trigram" text,
"24_mountains" text,
"bearing_degrees" text,
"nature" text
);
Question: What are all values for 24 mountains when direction is Northeast?
<|assistant|>
SELECT "24_mountains" FROM "24_mountains" WHERE "direction"='Northeast';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chronological_list_of_grand_slam_singles" (
"years_led" text,
"span_of_years_led" real,
"player" text,
"titles_won_at_point_of_lead" real,
"total_career_titles" real,
"tournament_at_which_lead_began" text
);
Question: How many career titles does roy emerson have?
<|assistant|>
SELECT "total_career_titles" FROM "chronological_list_of_grand_slam_singles" WHERE "player"='Roy Emerson';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chronological_list_of_grand_slam_singles" (
"years_led" text,
"span_of_years_led" real,
"player" text,
"titles_won_at_point_of_lead" real,
"total_career_titles" real,
"tournament_at_which_lead_began" text
);
Question: What were the total career titles of the player who led for 5 years?
<|assistant|>
SELECT COUNT("total_career_titles") FROM "chronological_list_of_grand_slam_singles" WHERE "span_of_years_led"=5;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chronological_list_of_grand_slam_singles" (
"years_led" text,
"span_of_years_led" real,
"player" text,
"titles_won_at_point_of_lead" real,
"total_career_titles" real,
"tournament_at_which_lead_began" text
);
Question: Of the players whose lead began at the australian championships, what was the shortest span of years led?
<|assistant|>
SELECT MIN("span_of_years_led") FROM "chronological_list_of_grand_slam_singles" WHERE "tournament_at_which_lead_began"='Australian Championships';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chronological_list_of_grand_slam_singles" (
"years_led" text,
"span_of_years_led" real,
"player" text,
"titles_won_at_point_of_lead" real,
"total_career_titles" real,
"tournament_at_which_lead_began" text
);
Question: At which tournament did william renshaw begin his lead when he had won 7 titles?
<|assistant|>
SELECT "tournament_at_which_lead_began" FROM "chronological_list_of_grand_slam_singles" WHERE "player"='William Renshaw' AND "titles_won_at_point_of_lead"=7;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chronological_list_of_grand_slam_singles" (
"years_led" text,
"span_of_years_led" real,
"player" text,
"titles_won_at_point_of_lead" real,
"total_career_titles" real,
"tournament_at_which_lead_began" text
);
Question: At what tournament did pete sampras begin his lead?
<|assistant|>
SELECT "tournament_at_which_lead_began" FROM "chronological_list_of_grand_slam_singles" WHERE "player"='Pete Sampras';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2342078_2" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_order_they_were_made_num" real
);
Question: Who are all directors when Sherwood Schwartz is the writer?
<|assistant|>
SELECT "directed_by" FROM "table1_2342078_2" WHERE "written_by"='Sherwood Schwartz';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2342078_2" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_order_they_were_made_num" real
);
Question: What is the highest episode# with the writer Paul West?
<|assistant|>
SELECT MAX("episode_num") FROM "table1_2342078_2" WHERE "written_by"='Paul West';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2342078_2" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_order_they_were_made_num" real
);
Question: What is every production code for episode # 13?
<|assistant|>
SELECT "production_code_order_they_were_made_num" FROM "table1_2342078_2" WHERE "episode_num"=13;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2342078_4" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_num" real
);
Question: What is the highest episode number written by Harry Winkler?
<|assistant|>
SELECT MAX("episode_num") FROM "table1_2342078_4" WHERE "written_by"='Harry Winkler';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2342078_4" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_num" real
);
Question: List all directors when Brad Radnitz was the writer?
<|assistant|>
SELECT "directed_by" FROM "table1_2342078_4" WHERE "written_by"='Brad Radnitz';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2342078_6" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_num" real
);
Question: Name the airdate for the episode written by howard ostroff
<|assistant|>
SELECT "original_airdate" FROM "table1_2342078_6" WHERE "written_by"='Howard Ostroff';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2342078_6" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_num" real
);
Question: Name the production code # for episode 109
<|assistant|>
SELECT COUNT("production_code_num") FROM "table1_2342078_6" WHERE "episode_num"=109;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2342078_6" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_num" real
);
Question: Name who drected the episode written by george tibbles
<|assistant|>
SELECT "directed_by" FROM "table1_2342078_6" WHERE "written_by"='George Tibbles';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2342078_5" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_num" real
);
Question: How many different people directed the episode titled "Fright Night"?
<|assistant|>
SELECT COUNT("directed_by") FROM "table1_2342078_5" WHERE "title"='\"Fright Night\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2342078_5" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_num" real
);
Question: What's the number of the episode titled "Everyone can't be George Washington"?
<|assistant|>
SELECT MIN("episode_num") FROM "table1_2342078_5" WHERE "title"='\"Everyone Can''t Be George Washington\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2342078_5" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_num" real
);
Question: How many original air dates are there for the episode titled "Everyone can't be George Washington"?
<|assistant|>
SELECT COUNT("original_airdate") FROM "table1_2342078_5" WHERE "title"='\"Everyone Can''t Be George Washington\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2342078_5" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_num" real
);
Question: What's the title of the episode written by Harry Winkler?
<|assistant|>
SELECT "title" FROM "table1_2342078_5" WHERE "written_by"='Harry Winkler';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2342078_5" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_num" real
);
Question: What's the production code of the episode titled "The subject was noses"?
<|assistant|>
SELECT MIN("production_code_num") FROM "table1_2342078_5" WHERE "title"='\"The Subject Was Noses\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"place_came" text,
"artist" text,
"category" text,
"act" text,
"semi_final" text,
"result" text
);
Question: During the 1st Place (Won the Series), who was the act?
<|assistant|>
SELECT "act" FROM "final" WHERE "place_came"='1st Place (Won the Series)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"place_came" text,
"artist" text,
"category" text,
"act" text,
"semi_final" text,
"result" text
);
Question: During the act, Playing on Glasses, what was the semi-final?
<|assistant|>
SELECT "semi_final" FROM "final" WHERE "act"='Playing on Glasses';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"place_came" text,
"artist" text,
"category" text,
"act" text,
"semi_final" text,
"result" text
);
Question: During the act, Performance of "Lost" by Anouk, what was the result?
<|assistant|>
SELECT "result" FROM "final" WHERE "act"='Performance of \"Lost\" by Anouk';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"place_came" text,
"artist" text,
"category" text,
"act" text,
"semi_final" text,
"result" text
);
Question: During the act, Performance of "Lost" by Anouk, what was the result?
<|assistant|>
SELECT "result" FROM "final" WHERE "act"='Performance of \"Lost\" by Anouk';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"place_came" text,
"artist" text,
"category" text,
"act" text,
"semi_final" text,
"result" text
);
Question: What was the final place came for the performance of Erlend Bratland?
<|assistant|>
SELECT "place_came" FROM "final" WHERE "artist"='Erlend Bratland';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"place_came" text,
"artist" text,
"category" text,
"act" text,
"semi_final" text,
"result" text
);
Question: During the act, Performance of "Lost" by Anouk, what was the result?
<|assistant|>
SELECT COUNT("result") FROM "final" WHERE "act"='Performance of \"Lost\" by Anouk';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23423_2" (
"period" text,
"live_births_per_year" text,
"deaths_per_year" text,
"natural_change_per_year" text,
"cbr" text,
"cdr" text,
"nc" text,
"tfr" text,
"imr" real,
"life_expectancy_total" text,
"life_expectancy_males" text,
"life_expectancy_females" text
);
Question: How many imr* have 64.3 life expectancy males?
<|assistant|>
SELECT MIN("imr") FROM "table1_23423_2" WHERE "life_expectancy_males"='64.3';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23423_2" (
"period" text,
"live_births_per_year" text,
"deaths_per_year" text,
"natural_change_per_year" text,
"cbr" text,
"cdr" text,
"nc" text,
"tfr" text,
"imr" real,
"life_expectancy_total" text,
"life_expectancy_males" text,
"life_expectancy_females" text
);
Question: How many imr* have tfr* of 4.31?
<|assistant|>
SELECT "imr" FROM "table1_23423_2" WHERE "tfr"='4.31';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23423_2" (
"period" text,
"live_births_per_year" text,
"deaths_per_year" text,
"natural_change_per_year" text,
"cbr" text,
"cdr" text,
"nc" text,
"tfr" text,
"imr" real,
"life_expectancy_total" text,
"life_expectancy_males" text,
"life_expectancy_females" text
);
Question: How many deaths per year have 66.3 as the life expectancy females?
<|assistant|>
SELECT "deaths_per_year" FROM "table1_23423_2" WHERE "life_expectancy_females"='66.3';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23423_2" (
"period" text,
"live_births_per_year" text,
"deaths_per_year" text,
"natural_change_per_year" text,
"cbr" text,
"cdr" text,
"nc" text,
"tfr" text,
"imr" real,
"life_expectancy_total" text,
"life_expectancy_males" text,
"life_expectancy_females" text
);
Question: How many imr* have tfr* 5.35?
<|assistant|>
SELECT COUNT("imr") FROM "table1_23423_2" WHERE "tfr"='5.35';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"round" text,
"clubs_remaining" real,
"clubs_involved" real,
"winners_from_previous_round" text,
"new_entries_this_round" text,
"leagues_entering_at_this_round" text
);
Question: Which leagues entered in rounds where there were 16 winners from the previous round?
<|assistant|>
SELECT "leagues_entering_at_this_round" FROM "teams" WHERE "winners_from_previous_round"='16';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"round" text,
"clubs_remaining" real,
"clubs_involved" real,
"winners_from_previous_round" text,
"new_entries_this_round" text,
"leagues_entering_at_this_round" text
);
Question: Which rounds had 32 clubs involved?
<|assistant|>
SELECT "round" FROM "teams" WHERE "clubs_involved"=32;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"round" text,
"clubs_remaining" real,
"clubs_involved" real,
"winners_from_previous_round" text,
"new_entries_this_round" text,
"leagues_entering_at_this_round" text
);
Question: Which round had 24 new entries?
<|assistant|>
SELECT "round" FROM "teams" WHERE "new_entries_this_round"='24';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"round" text,
"clubs_remaining" real,
"clubs_involved" real,
"winners_from_previous_round" text,
"new_entries_this_round" text,
"leagues_entering_at_this_round" text
);
Question: Which leagues entered an extra preliminary round?
<|assistant|>
SELECT "leagues_entering_at_this_round" FROM "teams" WHERE "round"='Extra Preliminary Round';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: Name the location of buffalo sabres
<|assistant|>
SELECT "location" FROM "game_log" WHERE "opponent"='Buffalo Sabres';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: Name the game for 13β17β9
<|assistant|>
SELECT "game" FROM "game_log" WHERE "record"='13β17β9';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: Name the score for december 19
<|assistant|>
SELECT "score" FROM "game_log" WHERE "date"='December 19';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: Name the date for new york islanders
<|assistant|>
SELECT "date" FROM "game_log" WHERE "opponent"='New York Islanders';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: Name the opponents for december 3
<|assistant|>
SELECT COUNT("opponent") FROM "game_log" WHERE "date"='December 3';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: How many games did they play the carolina hurricanes?
<|assistant|>
SELECT COUNT("game") FROM "game_log" WHERE "opponent"='Carolina Hurricanes';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: What was the score when they had 62 points?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "points"=62;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: What team did the Maple Leafs score 9 points against?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "points"=9;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_junior_classic_practice_times_and_l" (
"rank" real,
"rider" text,
"mon_24_aug" text,
"tues_25_aug" text,
"wed_26_aug" text,
"thurs_27_aug" text,
"fri_28_aug" text,
"sat_29_aug" text
);
Question: What time was achieved on Saturday 29th August by the rider who recorded 23' 18.82 97.102mph on Tuesday 25th August?
<|assistant|>
SELECT "sat_29_aug" FROM "2009_junior_classic_practice_times_and_l" WHERE "tues_25_aug"='23'' 18.82 97.102mph';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_junior_classic_practice_times_and_l" (
"rank" real,
"rider" text,
"mon_24_aug" text,
"tues_25_aug" text,
"wed_26_aug" text,
"thurs_27_aug" text,
"fri_28_aug" text,
"sat_29_aug" text
);
Question: What time was achieved on Saturday 29th August by the rider who recorded 24' 17.26 93.208mph on Monday 24th August?
<|assistant|>
SELECT "sat_29_aug" FROM "2009_junior_classic_practice_times_and_l" WHERE "mon_24_aug"='24'' 17.26 93.208mph';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_junior_classic_practice_times_and_l" (
"rank" real,
"rider" text,
"mon_24_aug" text,
"tues_25_aug" text,
"wed_26_aug" text,
"thurs_27_aug" text,
"fri_28_aug" text,
"sat_29_aug" text
);
Question: What time was achieved on Saturday 29th August by the rider who recorded 22' 54.20 98.842mph on Tuesday 25th August?
<|assistant|>
SELECT "sat_29_aug" FROM "2009_junior_classic_practice_times_and_l" WHERE "tues_25_aug"='22'' 54.20 98.842mph';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_junior_classic_practice_times_and_l" (
"rank" real,
"rider" text,
"mon_24_aug" text,
"tues_25_aug" text,
"wed_26_aug" text,
"thurs_27_aug" text,
"fri_28_aug" text,
"sat_29_aug" text
);
Question: What time was achieved on Saturday 29th August by the rider who recorded 25' 01.89 90.438mph on Friday 28th August?
<|assistant|>
SELECT "sat_29_aug" FROM "2009_junior_classic_practice_times_and_l" WHERE "fri_28_aug"='25'' 01.89 90.438mph';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_newcomers_race_b_practice_times_and" (
"rank" real,
"rider" text,
"mon_24_aug" text,
"tues_25_aug" text,
"wed_26_aug" text,
"thurs_27_aug" text,
"fri_28_aug" text
);
Question: What was the event on Wed 26 Aug where rider is Andrew Farrell 400cc Kawasaki?
<|assistant|>
SELECT "wed_26_aug" FROM "2009_newcomers_race_b_practice_times_and" WHERE "rider"='Andrew Farrell 400cc Kawasaki';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_newcomers_race_b_practice_times_and" (
"rank" real,
"rider" text,
"mon_24_aug" text,
"tues_25_aug" text,
"wed_26_aug" text,
"thurs_27_aug" text,
"fri_28_aug" text
);
Question: What was the event on Thurs 27 Aug when Tues 25 Aug was 23' 00.59 98.384mph?
<|assistant|>
SELECT "thurs_27_aug" FROM "2009_newcomers_race_b_practice_times_and" WHERE "tues_25_aug"='23'' 00.59 98.384mph';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_newcomers_race_b_practice_times_and" (
"rank" real,
"rider" text,
"mon_24_aug" text,
"tues_25_aug" text,
"wed_26_aug" text,
"thurs_27_aug" text,
"fri_28_aug" text
);
Question: What was the Tues 25 Aug time and speed when Mon 24 Aug was 22' 24.56 101.021mph?
<|assistant|>
SELECT "tues_25_aug" FROM "2009_newcomers_race_b_practice_times_and" WHERE "mon_24_aug"='22'' 24.56 101.021mph';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_newcomers_race_b_practice_times_and" (
"rank" real,
"rider" text,
"mon_24_aug" text,
"tues_25_aug" text,
"wed_26_aug" text,
"thurs_27_aug" text,
"fri_28_aug" text
);
Question: Who was the rider when Fri 28 Aug was 24' 23.36 92.820mph?
<|assistant|>
SELECT "rider" FROM "2009_newcomers_race_b_practice_times_and" WHERE "fri_28_aug"='24'' 23.36 92.820mph';<|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,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
Question: Which opponent has 32194 as the attendance?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "attendance"=32194;<|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,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
Question: Which opponent has 36102 is the attendance?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "attendance"=36102;<|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,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
Question: What is the attendance?
<|assistant|>
SELECT MAX("attendance") FROM "schedule";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "delegates" (
"province" text,
"contestant" text,
"age" real,
"height_in" text,
"height_mt" text,
"hometown" text
);
Question: What is the hometown of contestants who are from the province of Huesca?
<|assistant|>
SELECT "hometown" FROM "delegates" WHERE "province"='Huesca';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "delegates" (
"province" text,
"contestant" text,
"age" real,
"height_in" text,
"height_mt" text,
"hometown" text
);
Question: What is the height in inches of contestants who are from the province of La Rioja?
<|assistant|>
SELECT "height_in" FROM "delegates" WHERE "province"='La Rioja';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "delegates" (
"province" text,
"contestant" text,
"age" real,
"height_in" text,
"height_mt" text,
"hometown" text
);
Question: How many contestants of whatever age are there whose hometown of Andujar?
<|assistant|>
SELECT COUNT("age") FROM "delegates" WHERE "hometown"='Andujar';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "delegates" (
"province" text,
"contestant" text,
"age" real,
"height_in" text,
"height_mt" text,
"hometown" text
);
Question: How tall are contestants whose home province is La Rioja?
<|assistant|>
SELECT "height_in" FROM "delegates" WHERE "province"='La Rioja';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_duronto_express_trains" (
"service" real,
"train_number" real,
"train_name" text,
"source" text,
"departure" text,
"destination" text,
"arrival" text
);
Question: What's the service number of the Jammu Duronto train?
<|assistant|>
SELECT MAX("service") FROM "list_of_duronto_express_trains" WHERE "train_name"='Jammu Duronto';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_duronto_express_trains" (
"service" real,
"train_number" real,
"train_name" text,
"source" text,
"departure" text,
"destination" text,
"arrival" text
);
Question: What's the name of the train to Madurai Junction?
<|assistant|>
SELECT "train_name" FROM "list_of_duronto_express_trains" WHERE "destination"='Madurai Junction';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_duronto_express_trains" (
"service" real,
"train_number" real,
"train_name" text,
"source" text,
"departure" text,
"destination" text,
"arrival" text
);
Question: What's the service number of the Pune Duronto train that departures at 21:35?
<|assistant|>
SELECT "service" FROM "list_of_duronto_express_trains" WHERE "train_name"='Pune Duronto' AND "departure"='21:35';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_duronto_express_trains" (
"service" real,
"train_number" real,
"train_name" text,
"source" text,
"departure" text,
"destination" text,
"arrival" text
);
Question: What's the name of the train that goes to Bhubaneswar?
<|assistant|>
SELECT "train_name" FROM "list_of_duronto_express_trains" WHERE "destination"='Bhubaneswar';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: What is the record when the opposing team was the Pittsburgh Penguins?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "opponent"='Pittsburgh Penguins';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: What was the game number when the opposing team was the Buffalo Sabres?
<|assistant|>
SELECT MIN("game") FROM "game_log" WHERE "opponent"='Buffalo Sabres';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_234886_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
Question: What is the product code for the episode titled "Kafelnikov"?
<|assistant|>
SELECT "prod_code" FROM "table1_234886_3" WHERE "title"='\"Kafelnikov\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_234886_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
Question: Who directed episode no. 44 in the series?
<|assistant|>
SELECT "directed_by" FROM "table1_234886_3" WHERE "no_in_series"=44;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_234886_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
Question: What is the number in the season of the episode with a production code of 2-05?
<|assistant|>
SELECT COUNT("no_in_season") FROM "table1_234886_3" WHERE "prod_code"='2-05';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_234886_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
Question: What is the title of the episode with the production code 2-19?
<|assistant|>
SELECT "title" FROM "table1_234886_3" WHERE "prod_code"='2-19';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_234886_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
Question: What is the total number of titles for the episode numbered 29 in the series?
<|assistant|>
SELECT COUNT("title") FROM "table1_234886_3" WHERE "no_in_series"=29;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23492454_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: What was the name of the episode directed by Jessica Yu?
<|assistant|>
SELECT "title" FROM "table1_23492454_1" WHERE "directed_by"='Jessica Yu';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23492454_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: who directed the episode written by Shonda Rhimes?
<|assistant|>
SELECT "directed_by" FROM "table1_23492454_1" WHERE "written_by"='Shonda Rhimes';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23492454_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: How many episodes in the series are also episode 18 in the season?
<|assistant|>
SELECT COUNT("no_in_series") FROM "table1_23492454_1" WHERE "no_in_season"=18;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: Who is every opponent on the date of March 16?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "date"='March 16';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: What is every score for the opponent of Atlanta Thrashers?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "opponent"='Atlanta Thrashers';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: What is every location for the date of March 20?
<|assistant|>
SELECT "location" FROM "game_log" WHERE "date"='March 20';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: What is every score at the location of Verizon Center and points of 68?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "location"='Verizon Center' AND "points"=68;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: What is every date with a record of 30β34β12?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "record"='30β34β12';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "growth_personnel" (
"date" text,
"total_usaaf" real,
"tot_officers" real,
"tot_enlisted" real,
"num_overseas" real,
"officers_o_s" real,
"enlisted_o_s" real
);
Question: How many officers o/s were there on the day when the number of USAAF was 2373882?
<|assistant|>
SELECT MAX("officers_o_s") FROM "growth_personnel" WHERE "total_usaaf"=2373882;<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.