text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: How many people attended the September 21, 1980 game?
<|assistant|>
SELECT AVG("attendance")... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "feast_days" (
"date" real,
"doubles_i_class" real,
"doubles_ii_class" real,
"greater_doubles" real,
"doubles" real,
"semidoubles" real,
"total" real
);
Question: Which Doubles have a Total ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "feast_days" (
"date" real,
"doubles_i_class" real,
"doubles_ii_class" real,
"greater_doubles" real,
"doubles" real,
"semidoubles" real,
"total" real
);
Question: Which Total has a Date of 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "feast_days" (
"date" real,
"doubles_i_class" real,
"doubles_ii_class" real,
"greater_doubles" real,
"doubles" real,
"semidoubles" real,
"total" real
);
Question: How much Total has Semidoub... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "feast_days" (
"date" real,
"doubles_i_class" real,
"doubles_ii_class" real,
"greater_doubles" real,
"doubles" real,
"semidoubles" real,
"total" real
);
Question: Which Greater Doubles have ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "feast_days" (
"date" real,
"doubles_i_class" real,
"doubles_ii_class" real,
"greater_doubles" real,
"doubles" real,
"semidoubles" real,
"total" real
);
Question: How much Total has Doubles ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"rank" real,
"name" text,
"1st_run" text,
"2nd_run" text,
"3rd_run" text,
"total" real
);
Question: Which Rank has a 2nd run of 1:17.170 (8)?
<|assistant|>
SELECT MAX("rank") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"rank" real,
"name" text,
"1st_run" text,
"2nd_run" text,
"3rd_run" text,
"total" real
);
Question: Which Rank has a Total smaller than 10, and a 3rd run of 36.457 (2)?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"rank" real,
"name" text,
"1st_run" text,
"2nd_run" text,
"3rd_run" text,
"total" real
);
Question: Which Name has a 3rd run of 36.200 (1)?
<|assistant|>
SELECT "name" FROM "se... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "size_of_intervals_in_15_equal_temperamen" (
"interval_name" text,
"size_steps" real,
"size_cents" real,
"just_ratio" text,
"just_cents" real,
"error" text,
"audio" text
);
Question: What is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "size_of_intervals_in_15_equal_temperamen" (
"interval_name" text,
"size_steps" real,
"size_cents" real,
"just_ratio" text,
"just_cents" real,
"error" text,
"audio" text
);
Question: what is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "size_of_intervals_in_15_equal_temperamen" (
"interval_name" text,
"size_steps" real,
"size_cents" real,
"just_ratio" text,
"just_cents" real,
"error" text,
"audio" text
);
Question: What is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "size_of_intervals_in_15_equal_temperamen" (
"interval_name" text,
"size_steps" real,
"size_cents" real,
"just_ratio" text,
"just_cents" real,
"error" text,
"audio" text
);
Question: What is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semi_final_1_31_january_2009" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" real
);
Question: What is the average number of points for places over 7 and having a draw order ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semi_final_1_31_january_2009" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" real
);
Question: What is the sum of placings for the song "Tavo Spalvos"?
<|assistant|>
SELECT S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_summer_season" (
"japanese_title" text,
"romaji_title" text,
"tv_station" text,
"episodes" real,
"average_ratings" text
);
Question: For the Japanese title サプリ that had 11 episodes, what i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_summer_season" (
"japanese_title" text,
"romaji_title" text,
"tv_station" text,
"episodes" real,
"average_ratings" text
);
Question: When the average ratings is 10.3%, what is the average ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_summer_season" (
"japanese_title" text,
"romaji_title" text,
"tv_station" text,
"episodes" real,
"average_ratings" text
);
Question: What is the fewest episodes with the Romaji title Regat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_summer_season" (
"japanese_title" text,
"romaji_title" text,
"tv_station" text,
"episodes" real,
"average_ratings" text
);
Question: With the Romaji title of Hanayome Wa Yakudoshi!, what i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_summer_season" (
"japanese_title" text,
"romaji_title" text,
"tv_station" text,
"episodes" real,
"average_ratings" text
);
Question: For what Japanese title is there less than 11 episodes ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_fall_season" (
"japanese_title" text,
"romaji_title" text,
"tv_station" text,
"episodes" real,
"average_ratings" text
);
Question: what is the most episodes when the average ratings is 18.... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_fall_season" (
"japanese_title" text,
"romaji_title" text,
"tv_station" text,
"episodes" real,
"average_ratings" text
);
Question: How many episodes when the tv station is ntv and the japa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_fall_season" (
"japanese_title" text,
"romaji_title" text,
"tv_station" text,
"episodes" real,
"average_ratings" text
);
Question: what is the tv station when the romaji title is kazoku~ts... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_fall_season" (
"japanese_title" text,
"romaji_title" text,
"tv_station" text,
"episodes" real,
"average_ratings" text
);
Question: what is the tv station when the average ratings is 19.5%?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"county" text,
"year_joined" real,
"previous_conference" text,
"year_left" real,
"conference_joined" text
);
Question: Of all ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"county" text,
"year_joined" real,
"previous_conference" text,
"year_left" real,
"conference_joined" text
);
Question: What ye... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"track" text,
"song_title" text,
"writer_s" text,
"original_artist" text,
"original_release" real,
"length" text
);
Question: What is the original Release date of the Track w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"track" text,
"song_title" text,
"writer_s" text,
"original_artist" text,
"original_release" real,
"length" text
);
Question: What is the Original Artis of the Track with a L... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"track" text,
"song_title" text,
"writer_s" text,
"original_artist" text,
"original_release" real,
"length" text
);
Question: What Song has a Length of 2:50?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television_series" (
"year" real,
"title" text,
"hangul_japanese" text,
"role" text,
"network" text,
"genre" text
);
Question: What's the title when the genre is drama and network of KBS2 hap... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television_series" (
"year" real,
"title" text,
"hangul_japanese" text,
"role" text,
"network" text,
"genre" text
);
Question: What's the title when the genre is drama with a network of KBS2 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television_series" (
"year" real,
"title" text,
"hangul_japanese" text,
"role" text,
"network" text,
"genre" text
);
Question: What's the network in 2011?
<|assistant|>
SELECT "network" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television_series" (
"year" real,
"title" text,
"hangul_japanese" text,
"role" text,
"network" text,
"genre" text
);
Question: What's the Hangul/Japanese that happened before 2014 having a ro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television_series" (
"year" real,
"title" text,
"hangul_japanese" text,
"role" text,
"network" text,
"genre" text
);
Question: What's the Hangul/Japanese of Boys Over Flowers that's drama?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_roster_season_2011_2012" (
"shirt_no" real,
"nationality" text,
"player" text,
"birth_date" text,
"height" real,
"position" text
);
Question: What is the Shirt No for Henry Bell Cisnero ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_roster_season_2011_2012" (
"shirt_no" real,
"nationality" text,
"player" text,
"birth_date" text,
"height" real,
"position" text
);
Question: What is the Shirt No for the person whose he... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_roster_season_2011_2012" (
"shirt_no" real,
"nationality" text,
"player" text,
"birth_date" text,
"height" real,
"position" text
);
Question: What is the height of the person whose posit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"country" text,
"athlete" text,
"technical" real,
"free" real,
"total" real
);
Question: What is the total for the person with free of 47.667, and technical less than 47.417?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"country" text,
"athlete" text,
"technical" real,
"free" real,
"total" real
);
Question: What is the technical number for Jiang Tingting & Jiang Wenwen, and the total was more than 96.... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"country" text,
"athlete" text,
"technical" real,
"free" real,
"total" real
);
Question: What is the free of Apolline Dreyfuss & Lila Meesseman-Bakir, when the total was larger than 90... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: What is the average number of games drawn among teams that played over 14 gam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: What is the total number of points combined from the teams that played over 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: How many points did the ESC Riverrats Geretsried, who lost more than 3 games,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: What is the average number of games drawn among the teams that lost over 13 g... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_2" (
"rank" real,
"athletes" text,
"country" text,
"time" text,
"notes" text
);
Question: Which country was ranked 8 and noted as qs?
<|assistant|>
SELECT "country" FROM "heat_2" WHERE "no... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_2" (
"rank" real,
"athletes" text,
"country" text,
"time" text,
"notes" text
);
Question: What are the notes for the contestants that were ranked #1?
<|assistant|>
SELECT "notes" FROM "hea... |
<|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,
"record" text
);
Question: Who did the Hawks play on 12/21/1973?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "date... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_round" (
"rank" text,
"group" text,
"name" text,
"nationality" text,
"mark" text
);
Question: What rank does Tricia Flores have?
<|assistant|>
SELECT "rank" FROM "qualifying_round" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_round" (
"rank" text,
"group" text,
"name" text,
"nationality" text,
"mark" text
);
Question: Who is in group B and has a mark of 6.33?
<|assistant|>
SELECT "name" FROM "qualifying_r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_round" (
"rank" text,
"group" text,
"name" text,
"nationality" text,
"mark" text
);
Question: What is the mark for Grenada in group A?
<|assistant|>
SELECT "mark" FROM "qualifying_ro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_round" (
"rank" text,
"group" text,
"name" text,
"nationality" text,
"mark" text
);
Question: Who has a mark of 6.17 in group B?
<|assistant|>
SELECT "name" FROM "qualifying_round" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_round" (
"rank" text,
"group" text,
"name" text,
"nationality" text,
"mark" text
);
Question: What rank does Tatyana Lebedeva have?
<|assistant|>
SELECT "rank" FROM "qualifying_round... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_round" (
"rank" text,
"group" text,
"name" text,
"nationality" text,
"mark" text
);
Question: What rank has a mark of NM and is from India?
<|assistant|>
SELECT "rank" FROM "qualifyi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_game" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"opposition" text
);
Question: What is the sum of totals for ranks under 3 with tallies of 2-5?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_game" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"opposition" text
);
Question: Which player had a rank of 8 and tally of 1-5?
<|assistant|>
SELECT "playe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episodes" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"ratings" text
);
Question: What is the sum of the numbe... |
<|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_attendance" text,
"record" text
);
Question: What was the score for the game played in Alexander Memorial Colise... |
<|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_attendance" text,
"record" text
);
Question: When was the game played that was at the Seattle Center Coliseum?
<... |
<|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_attendance" text,
"record" text
);
Question: What is the least game that was played in Alexander Memorial Colise... |
<|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_attendance" text,
"record" text
);
Question: What average game was played on October 16?
<|assistant|>
SELECT AV... |
<|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_attendance" text,
"record" text
);
Question: On what day was game 2 played?
<|assistant|>
SELECT "date" FROM "ga... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_indicators_for_international" (
"country" text,
"tourist_arrivals_2011_millions" real,
"tourism_receipts_2011_millions_of_us" real,
"tourism_receipts_2011_us_per_arrival" real,
"tour... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_indicators_for_international" (
"country" text,
"tourist_arrivals_2011_millions" real,
"tourism_receipts_2011_millions_of_us" real,
"tourism_receipts_2011_us_per_arrival" real,
"tour... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_indicators_for_international" (
"country" text,
"tourist_arrivals_2011_millions" real,
"tourism_receipts_2011_millions_of_us" real,
"tourism_receipts_2011_us_per_arrival" real,
"tour... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_indicators_for_international" (
"country" text,
"tourist_arrivals_2011_millions" real,
"tourism_receipts_2011_millions_of_us" real,
"tourism_receipts_2011_us_per_arrival" real,
"tour... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_indicators_for_international" (
"country" text,
"tourist_arrivals_2011_millions" real,
"tourism_receipts_2011_millions_of_us" real,
"tourism_receipts_2011_us_per_arrival" real,
"tour... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_championships" (
"year" real,
"champion" text,
"score" text,
"runner_up" text,
"city" text,
"arena" text
);
Question: In what year was Wisconsin the runner-up?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_championships" (
"year" real,
"champion" text,
"score" text,
"runner_up" text,
"city" text,
"arena" text
);
Question: In what arena was the North Dakota the runner-up?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_championships" (
"year" real,
"champion" text,
"score" text,
"runner_up" text,
"city" text,
"arena" text
);
Question: What was the score of the game at the Broadmoor Arena?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_championships" (
"year" real,
"champion" text,
"score" text,
"runner_up" text,
"city" text,
"arena" text
);
Question: Who was the runner-up at the Broadmoor Arena before 2008?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_championships" (
"year" real,
"champion" text,
"score" text,
"runner_up" text,
"city" text,
"arena" text
);
Question: In what year was the competition at the Pepsi Arena?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: Which opponent has a 53-24 record?
<|assistant|>
SELECT "opponent" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: Who was the opponent for game 73?
<|assistant|>
SELECT "opponent" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_number_of_appearances" (
"name" text,
"years" text,
"a_league" text,
"finals" text,
"total" text
);
Question: What years have 10 (0) in the finals?
<|assistant|>
SELECT "years" FROM "most_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_number_of_appearances" (
"name" text,
"years" text,
"a_league" text,
"finals" text,
"total" text
);
Question: What A-League has 6 (1) for the finals, and leigh broxham as the name?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_number_of_appearances" (
"name" text,
"years" text,
"a_league" text,
"finals" text,
"total" text
);
Question: What finals have grant brebner as the name?
<|assistant|>
SELECT "finals" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_number_of_appearances" (
"name" text,
"years" text,
"a_league" text,
"finals" text,
"total" text
);
Question: What years have 9 (0) as the finals and 133 (1) as the A-League?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_number_of_appearances" (
"name" text,
"years" text,
"a_league" text,
"finals" text,
"total" text
);
Question: What years have 9 (3) as the finals?
<|assistant|>
SELECT "years" FROM "most_n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_number_of_appearances" (
"name" text,
"years" text,
"a_league" text,
"finals" text,
"total" text
);
Question: What years have 101 (16) as the total?
<|assistant|>
SELECT "years" FROM "most... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "quarterfinal_2" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
Question: Who has a time of 7:26.85 and notes of sc/d?
<|assistant|>
SELECT "athlete" FROM "quarterfi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "quarterfinal_2" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
Question: Ioannis Christou with a rank smaller than 6 has what notes?
<|assistant|>
SELECT "notes" FR... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.