text stringlengths 310 1.28k |
|---|
<|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: Wh... |
<|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: Wh... |
<|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: Wh... |
<|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: Ho... |
<|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: Ho... |
<|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: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text,
"streak" text
);
Question: What is the number of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text,
"streak" text
);
Question: What is the number of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text,
"streak" text
);
Question: What is the leading s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text,
"streak" text
);
Question: what's the score where ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text,
"streak" text
);
Question: what's the home where d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text,
"streak" text
);
Question: what's the date where v... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text,
"streak" text
);
Question: what's the home team wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text,
"streak" text
);
Question: what's the leading scor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text,
"streak" text
);
Question: what's the leading scor... |
<|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: w... |
<|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: w... |
<|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: w... |
<|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: w... |
<|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: wh... |
<|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: w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
Question: Na... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
Question: Na... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scores" (
"country" text,
"preliminaries" text,
"interview" text,
"swimsuit" text,
"evening_gown" text,
"average" text
);
Question: what's the preliminaries with average being 9.135
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scores" (
"country" text,
"preliminaries" text,
"interview" text,
"swimsuit" text,
"evening_gown" text,
"average" text
);
Question: what's the evening gown with preliminaries being 9.212
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scores" (
"country" text,
"preliminaries" text,
"interview" text,
"swimsuit" text,
"evening_gown" text,
"average" text
);
Question: what's the interview with swimsuit being 9.140
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scores" (
"country" text,
"preliminaries" text,
"interview" text,
"swimsuit" text,
"evening_gown" text,
"average" text
);
Question: what's the evening gown with swimsuit being 9.134
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scores" (
"country" text,
"preliminaries" text,
"interview" text,
"swimsuit" text,
"evening_gown" text,
"average" text
);
Question: what's the preliminaries with average being 9.360
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1199219_2" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
Question: How many successors were seated in the New York 20th d... |
<|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,
"reg_season" text,
"playoffs" text,
"open_cup" text
);
Question: What playoff result happened during the season in which they fini... |
<|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,
"reg_season" text,
"playoffs" text,
"open_cup" text
);
Question: How many teams placed 4th in the regular season?
<|assistant|>
SE... |
<|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,
"reg_season" text,
"playoffs" text,
"open_cup" text
);
Question: What was the result of the open cup when they finished 4th in the... |
<|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,
"reg_season" text,
"playoffs" text,
"open_cup" text
);
Question: How many open cups were hosted in 1993?
<|assistant|>
SELECT COUN... |
<|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,
"reg_season" text,
"playoffs" text,
"open_cup" text
);
Question: What year did they finish 1st, southern?
<|assistant|>
SELECT MAX... |
<|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,
"reg_season" text,
"playoffs" text,
"open_cup" text
);
Question: What was the playoff result for theteam in the apsl in 1992?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "box_score" (
"finish" real,
"start" real,
"car_no" real,
"driver" text,
"car_name" text,
"car_make" text,
"entrant" text,
"laps" real,
"status" text
);
Question: What was the status of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "box_score" (
"finish" real,
"start" real,
"car_no" real,
"driver" text,
"car_name" text,
"car_make" text,
"entrant" text,
"laps" real,
"status" text
);
Question: What is the status of j... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "box_score" (
"finish" real,
"start" real,
"car_no" real,
"driver" text,
"car_name" text,
"car_make" text,
"entrant" text,
"laps" real,
"status" text
);
Question: What is the laops of ma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table" (
"index_year" text,
"author_editor_source" text,
"year_of_publication" text,
"countries_sampled" real,
"world_ranking_1" text,
"ranking_l_a_2" text
);
Question: what's the author / ed... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table" (
"index_year" text,
"author_editor_source" text,
"year_of_publication" text,
"countries_sampled" real,
"world_ranking_1" text,
"ranking_l_a_2" text
);
Question: how many countries sa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table" (
"index_year" text,
"author_editor_source" text,
"year_of_publication" text,
"countries_sampled" real,
"world_ranking_1" text,
"ranking_l_a_2" text
);
Question: what's the author / ed... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nsl_cup_winners" (
"season" text,
"cup_final_date" text,
"winning_team" text,
"score" text,
"losing_team" text,
"location" text,
"cup_final_attendance" real
);
Question: How many losingteam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nsl_cup_winners" (
"season" text,
"cup_final_date" text,
"winning_team" text,
"score" text,
"losing_team" text,
"location" text,
"cup_final_attendance" real
);
Question: How many seasons wa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nsl_cup_winners" (
"season" text,
"cup_final_date" text,
"winning_team" text,
"score" text,
"losing_team" text,
"location" text,
"cup_final_attendance" real
);
Question: Who was the winning... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12027364_1" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: Who won the womens doubles when wu ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12027364_1" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: Who won the mixed doubles when ji x... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12027364_1" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: How many womens singles winners wer... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12033013_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: WHO WROTE THE STORY WITH THE PRODU... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12033013_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: WHAT IS "DAVE MOVES OUT" PRODUCTIO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12033013_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: WHO WROTE "DAD'S DEAD"
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12033013_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: WHO AUTHORED "RED ASPHALT"?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12030612_9" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: Name the number of titles written by adam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12033013_3" (
"no_in_series" text,
"no_in_season" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What's the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12033013_3" (
"no_in_series" text,
"no_in_season" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What's the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12033013_3" (
"no_in_series" text,
"no_in_season" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Who directe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "administration" (
"english_name" text,
"simplified" text,
"traditional" text,
"pinyin" text,
"hakka" text,
"area" real,
"population" real,
"density" real
);
Question: When pinyin is xīnlu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "administration" (
"english_name" text,
"simplified" text,
"traditional" text,
"pinyin" text,
"hakka" text,
"area" real,
"population" real,
"density" real
);
Question: What is the pinyin f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "administration" (
"english_name" text,
"simplified" text,
"traditional" text,
"pinyin" text,
"hakka" text,
"area" real,
"population" real,
"density" real
);
Question: What is the area of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "administration" (
"english_name" text,
"simplified" text,
"traditional" text,
"pinyin" text,
"hakka" text,
"area" real,
"population" real,
"density" real
);
Question: Which pinyin have a ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overview_by_city" (
"metropolitan_area" text,
"media_market_ranking" real,
"hosted_4_teams_since" real,
"nfl_team_s" text,
"mlb_team_s" text,
"nba_team_s" text,
"nhl_team_s" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overview_by_city" (
"metropolitan_area" text,
"media_market_ranking" real,
"hosted_4_teams_since" real,
"nfl_team_s" text,
"mlb_team_s" text,
"nba_team_s" text,
"nhl_team_s" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overview_by_city" (
"metropolitan_area" text,
"media_market_ranking" real,
"hosted_4_teams_since" real,
"nfl_team_s" text,
"mlb_team_s" text,
"nba_team_s" text,
"nhl_team_s" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overview_by_city" (
"metropolitan_area" text,
"media_market_ranking" real,
"hosted_4_teams_since" real,
"nfl_team_s" text,
"mlb_team_s" text,
"nba_team_s" text,
"nhl_team_s" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1206114_2" (
"vendor_and_type" text,
"models" text,
"net_flow_version" text,
"implementation" text,
"comments" text
);
Question: How many netflow version are there when the vendor and ty... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1206114_2" (
"vendor_and_type" text,
"models" text,
"net_flow_version" text,
"implementation" text,
"comments" text
);
Question: What are the comments when the vendor and type is alcate... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1206114_2" (
"vendor_and_type" text,
"models" text,
"net_flow_version" text,
"implementation" text,
"comments" text
);
Question: What are the comments when vendor and type is enterasys s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1206114_2" (
"vendor_and_type" text,
"models" text,
"net_flow_version" text,
"implementation" text,
"comments" text
);
Question: What is the netflow version when vendor and type is pc an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1206114_2" (
"vendor_and_type" text,
"models" text,
"net_flow_version" text,
"implementation" text,
"comments" text
);
Question: What are the comments when the implementation is software... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1206114_2" (
"vendor_and_type" text,
"models" text,
"net_flow_version" text,
"implementation" text,
"comments" text
);
Question: What is the implementation when the netflow version is v5... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_of_the_national_referendum_on_pr" (
"jurisdiction" text,
"for_prohibition" real,
"percent_for" text,
"against_prohibition" real,
"percent_against" text
);
Question: Name the minimum for... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_of_the_national_referendum_on_pr" (
"jurisdiction" text,
"for_prohibition" real,
"percent_for" text,
"against_prohibition" real,
"percent_against" text
);
Question: What is the number o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_of_the_national_referendum_on_pr" (
"jurisdiction" text,
"for_prohibition" real,
"percent_for" text,
"against_prohibition" real,
"percent_against" text
);
Question: Name the max for pro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_of_the_national_referendum_on_pr" (
"jurisdiction" text,
"for_prohibition" real,
"percent_for" text,
"against_prohibition" real,
"percent_against" text
);
Question: What is the percent ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_of_the_national_referendum_on_pr" (
"jurisdiction" text,
"for_prohibition" real,
"percent_for" text,
"against_prohibition" real,
"percent_against" text
);
Question: What is the percent ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "train_services" (
"train_no" text,
"train_name" text,
"origin" text,
"destination" text,
"frequency" text
);
Question: How many trains leave from puri?
<|assistant|>
SELECT COUNT("train_name") ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "train_services" (
"train_no" text,
"train_name" text,
"origin" text,
"destination" text,
"frequency" text
);
Question: What train number is heading to amritsar?
<|assistant|>
SELECT "train_no" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "train_services" (
"train_no" text,
"train_name" text,
"origin" text,
"destination" text,
"frequency" text
);
Question: How often does a train leave sealdah?
<|assistant|>
SELECT "frequency" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "train_services" (
"train_no" text,
"train_name" text,
"origin" text,
"destination" text,
"frequency" text
);
Question: Where does the bg express train end?
<|assistant|>
SELECT "destination" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "train_services" (
"train_no" text,
"train_name" text,
"origin" text,
"destination" text,
"frequency" text
);
Question: What's the name of train number 15647/48?
<|assistant|>
SELECT "train_name... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12086015_7" (
"player" text,
"nationality" text,
"finals" real,
"win_loss" text,
"year_s" text
);
Question: What is the number of nationality in 1992?
<|assistant|>
SELECT COUNT("nationa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "executive_commissioners" (
"year" text,
"communications_and_corporate_affairs" text,
"human_resources_operations" text,
"local_affairs" text,
"academic_university_affairs" text,
"external_affa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "executive_commissioners" (
"year" text,
"communications_and_corporate_affairs" text,
"human_resources_operations" text,
"local_affairs" text,
"academic_university_affairs" text,
"external_affa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "building_and_withdrawal_data" (
"number" real,
"builder" text,
"built" text,
"rebuilt" text,
"name_as_rebuilt" text,
"scrapped_sold" text
);
Question: What was the built data for Knocklayd re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "building_and_withdrawal_data" (
"number" real,
"builder" text,
"built" text,
"rebuilt" text,
"name_as_rebuilt" text,
"scrapped_sold" text
);
Question: How many times does the rebuilt data co... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "building_and_withdrawal_data" (
"number" real,
"builder" text,
"built" text,
"rebuilt" text,
"name_as_rebuilt" text,
"scrapped_sold" text
);
Question: What is the built data on the scrapped i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "building_and_withdrawal_data" (
"number" real,
"builder" text,
"built" text,
"rebuilt" text,
"name_as_rebuilt" text,
"scrapped_sold" text
);
Question: How many times was the rebuilt data cann... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "building_and_withdrawal_data" (
"number" real,
"builder" text,
"built" text,
"rebuilt" text,
"name_as_rebuilt" text,
"scrapped_sold" text
);
Question: What is the built data for number 34?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "building_and_withdrawal_data" (
"number" real,
"builder" text,
"built" text,
"rebuilt" text,
"name_as_rebuilt" text,
"scrapped_sold" text
);
Question: What is the highest number listed?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "21st_century" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: Who won the womens singles when Marc Zwi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines_and_transmissions" (
"model_engine" text,
"capacity" text,
"cylinders_valves" text,
"power_rpm" text,
"torque_nm_rpm" text
);
Question: The 1.6 Duratec model/engine has how many torque ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines_and_transmissions" (
"model_engine" text,
"capacity" text,
"cylinders_valves" text,
"power_rpm" text,
"torque_nm_rpm" text
);
Question: For the model with torque of n·m (lb·ft)/*n·m (lb... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines_and_transmissions" (
"model_engine" text,
"capacity" text,
"cylinders_valves" text,
"power_rpm" text,
"torque_nm_rpm" text
);
Question: For the model/engine of 1.8 Duratec HE, what is t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines_and_transmissions" (
"model_engine" text,
"capacity" text,
"cylinders_valves" text,
"power_rpm" text,
"torque_nm_rpm" text
);
Question: How many capacities are possible for the 1.6 Dura... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines_and_transmissions" (
"model_engine" text,
"capacity" text,
"cylinders_valves" text,
"power_rpm" text,
"torque_nm_rpm" text
);
Question: What is the torque formula for the model/engine w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines_and_transmissions" (
"model_engine" text,
"capacity" text,
"cylinders_valves" text,
"power_rpm" text,
"torque_nm_rpm" text
);
Question: What is the torque formula for the 1.6 Duratec ti... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ghanaian_presidents_ages" (
"num" real,
"president" text,
"date_of_birth" text,
"date_of_inauguration" text,
"age_at_inauguration" text,
"end_of_term" text,
"length_of_retirement" text,
"d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ghanaian_presidents_ages" (
"num" real,
"president" text,
"date_of_birth" text,
"date_of_inauguration" text,
"age_at_inauguration" text,
"end_of_term" text,
"length_of_retirement" text,
"d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ghanaian_presidents_ages" (
"num" real,
"president" text,
"date_of_birth" text,
"date_of_inauguration" text,
"age_at_inauguration" text,
"end_of_term" text,
"length_of_retirement" text,
"d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ghanaian_presidents_ages" (
"num" real,
"president" text,
"date_of_birth" text,
"date_of_inauguration" text,
"age_at_inauguration" text,
"end_of_term" text,
"length_of_retirement" text,
"d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.