text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "busiest_domestic_routes_from_lex_april_2" (
"rank" real,
"city" text,
"airport" text,
"passengers" real,
"carriers" text
);
Question: What is the least passengers from the Dallas/Fort Worth Int... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "busiest_domestic_routes_from_lex_april_2" (
"rank" real,
"city" text,
"airport" text,
"passengers" real,
"carriers" text
);
Question: What city is ranked greater than 6, and the airport is St. ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "busiest_domestic_routes_from_lex_april_2" (
"rank" real,
"city" text,
"airport" text,
"passengers" real,
"carriers" text
);
Question: What is the total rank of the airport that has 79,290 passe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_nordic_combined" (
"winner" text,
"country" text,
"winter_olympics" text,
"fis_nordic_world_ski_championships" text,
"holmenkollen" text
);
Question: Which Winner has a Country of norway,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_nordic_combined" (
"winner" text,
"country" text,
"winter_olympics" text,
"fis_nordic_world_ski_championships" text,
"holmenkollen" text
);
Question: Which Country has a FIS Nordic World ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_nordic_combined" (
"winner" text,
"country" text,
"winter_olympics" text,
"fis_nordic_world_ski_championships" text,
"holmenkollen" text
);
Question: Which Holmenkollen has a Country of n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_nordic_combined" (
"winner" text,
"country" text,
"winter_olympics" text,
"fis_nordic_world_ski_championships" text,
"holmenkollen" text
);
Question: Which FIS Nordic World Ski Championsh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_nordic_combined" (
"winner" text,
"country" text,
"winter_olympics" text,
"fis_nordic_world_ski_championships" text,
"holmenkollen" text
);
Question: Which Country has a Winter Olympics o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_nordic_combined" (
"winner" text,
"country" text,
"winter_olympics" text,
"fis_nordic_world_ski_championships" text,
"holmenkollen" text
);
Question: Which Winner has a Winter Olympics of... |
<|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" text
);
Question: What was the result of the game when the attendance was 43,279?
<|assistant|>
SELECT "result... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "uefa_cup_winners_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: What is the average Attendance, when Date is 1 October 1998?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "uefa_cup_winners_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: What is Opponent, when Date is 17 September 1998?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "uefa_cup_winners_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: What is Opponent, when Date is 8 April 1999?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pre_season_friendly_match_details" (
"date" text,
"opponents" text,
"venue" text,
"result" text,
"score_f_a" text
);
Question: What was the Score F-A when the result was D?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pre_season_friendly_match_details" (
"date" text,
"opponents" text,
"venue" text,
"result" text,
"score_f_a" text
);
Question: On which date did they play Leicester City in Venue A?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pre_season_friendly_match_details" (
"date" text,
"opponents" text,
"venue" text,
"result" text,
"score_f_a" text
);
Question: What was the result of the game played in Venue H?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pre_season_friendly_match_details" (
"date" text,
"opponents" text,
"venue" text,
"result" text,
"score_f_a" text
);
Question: What was the result of the game played on 17 July 2008?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_by_season" (
"passenger" text,
"points" real,
"races" real,
"wins" text,
"second" text,
"third" text
);
Question: What Passenger has 16 Wins?
<|assistant|>
SELECT "passenger" FROM "sea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "broadcasting" (
"small_season_number" real,
"time_of_broadcast" text,
"days_of_the_week" text,
"hours" text,
"length_of_episode" text,
"picture_format" text
);
Question: Name the Time of broa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "broadcasting" (
"small_season_number" real,
"time_of_broadcast" text,
"days_of_the_week" text,
"hours" text,
"length_of_episode" text,
"picture_format" text
);
Question: Which Days of the wee... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: Which Outcome has a Championship of us cha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: Which Outcome has a Year larger than 1939,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: Which Surface has an Opponent in the final... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: How many years have an Opponent in the fin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" real
);
Question: What is the score of player dick metz?
<|assistant|>
SELECT "score" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bezirksliga" (
"season" text,
"north" text,
"south" text,
"east" text,
"west" text
);
Question: Which season had EV Bad Wörishofen in the West?
<|assistant|>
SELECT "season" FROM "bezirksliga" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bezirksliga" (
"season" text,
"north" text,
"south" text,
"east" text,
"west" text
);
Question: Who was in the South in the 2004-05 season?
<|assistant|>
SELECT "south" FROM "bezirksliga" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bezirksliga" (
"season" text,
"north" text,
"south" text,
"east" text,
"west" text
);
Question: Who was in the South when EV Bad Wörishofen was in the West?
<|assistant|>
SELECT "south" FROM "b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bezirksliga" (
"season" text,
"north" text,
"south" text,
"east" text,
"west" text
);
Question: Who was in the South when TSV Kottern was in the West and EHF Passau was in the East?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bezirksliga" (
"season" text,
"north" text,
"south" text,
"east" text,
"west" text
);
Question: Who was in the East when TUS Geretsried II was in the South?
<|assistant|>
SELECT "east" FROM "be... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bezirksliga" (
"season" text,
"north" text,
"south" text,
"east" text,
"west" text
);
Question: Who was in the West when ESV Gebensbach was in the East?
<|assistant|>
SELECT "west" FROM "bezirk... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the average Gold, when Nation is Hungary, and when Bronze is greater th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the average Total, when Nation is Soviet Union, and when Gold is greate... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total number of Bronze, when Silver is greater than 0, when Gold is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the highest Bronze, when Total is less than 3, and when Silver is less ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the average Total, when Silver is greater than 4, and when Gold is grea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the sum of Silver, when Total is less than 1?
<|assistant|>
SELECT SUM(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_semester" (
"day_1" text,
"day_2" text,
"day_3" text,
"day_4" text,
"day_5" text,
"wednesday" text
);
Question: What is day 4 when day 2 is PAAQ?
<|assistant|>
SELECT "day_4" FROM "firs... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "religion" (
"ethnicity" text,
"islam" text,
"christianity" text,
"judaism" text,
"buddhism" text,
"other" text,
"atheism" text
);
Question: What is the other value associated with a Christi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "religion" (
"ethnicity" text,
"islam" text,
"christianity" text,
"judaism" text,
"buddhism" text,
"other" text,
"atheism" text
);
Question: What is the Judaism percentage associated with Bu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "religion" (
"ethnicity" text,
"islam" text,
"christianity" text,
"judaism" text,
"buddhism" text,
"other" text,
"atheism" text
);
Question: What is the percentage of Atheism associated with... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "religion" (
"ethnicity" text,
"islam" text,
"christianity" text,
"judaism" text,
"buddhism" text,
"other" text,
"atheism" text
);
Question: What is the percentage of Buddhists associated wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "religion" (
"ethnicity" text,
"islam" text,
"christianity" text,
"judaism" text,
"buddhism" text,
"other" text,
"atheism" text
);
Question: What is the percentage of Judaism associated with... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "religion" (
"ethnicity" text,
"islam" text,
"christianity" text,
"judaism" text,
"buddhism" text,
"other" text,
"atheism" text
);
Question: What is the value of other religions associated w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "female_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "female_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "female_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "female_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "female_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "female_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
);
Question: How many Laps have Grid larger than 14, and a Rider of sylvain guintoli?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
);
Question: Which Grid has Laps of 24, and a Rider of marco melandri?
<|assistant|>
SELECT SU... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
);
Question: Which Grid has Laps smaller than 24, and a Time of retirement?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
);
Question: Which Grid has a Rider of randy de puniet, and Laps smaller than 24?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" text,
"finalist" text,
"semifinalists" text
);
Question: What was the type of surface played on for the week of M... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" text,
"finalist" text,
"semifinalists" text
);
Question: What was the tournament for the week of August 4?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" text,
"finalist" text,
"semifinalists" text
);
Question: Which tournament had Richard Krajicek as a finalist?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
Question: On what date did Detroit play at home?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
Question: Who was the home team on June 9?
<|assistant|>
SELECT "hom... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: What was the money value that went along with the score of 68-67-69-76=280?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
Question: What score did Leonard Thompson have when he won $9,000?
<|assistant|>
SELEC... |
<|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: What date had a record of 15-14-4?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "record"='15... |
<|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: What is the fame number when the Montreal Canadiens were the opponent?
<|assistant|>
SELECT COUNT... |
<|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: What is the Score of game 35?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "game"=35;<|endo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the average oveall pick for players from the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which player was drafted overall from the college of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the lowest overall draft pick number for terr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the sum of the rounds where the draft pick ca... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What position did the draft pick number play that was... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the overall pick number for the player who wa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What college did the player who had the position of O... |
<|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 "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What was the score when Calgary was visiting team an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What is the score when Biron got the decision and Ph... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What is the attendance when Pittsburgh is the home t... |
<|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: What was the Attendance after Week 4 on October 10, 1971?
<|assistant|>
SELECT AVG("attendan... |
<|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: What was the Attendance in the game against the New Orleans Saints?
<|assistant|>
SELECT COU... |
<|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: What is the Date in Week 7 with an Attendance greater than 44,000?
<|assistant|>
SELECT "dat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "characters" (
"gatchaman" text,
"battle_of_the_planets" text,
"g_force" text,
"eagle_riders" text,
"ova_harmony_gold_dub" text,
"rank" text,
"bird_uniform" text,
"weapon" text,
"mecha" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "characters" (
"gatchaman" text,
"battle_of_the_planets" text,
"g_force" text,
"eagle_riders" text,
"ova_harmony_gold_dub" text,
"rank" text,
"bird_uniform" text,
"weapon" text,
"mecha" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "characters" (
"gatchaman" text,
"battle_of_the_planets" text,
"g_force" text,
"eagle_riders" text,
"ova_harmony_gold_dub" text,
"rank" text,
"bird_uniform" text,
"weapon" text,
"mecha" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "characters" (
"gatchaman" text,
"battle_of_the_planets" text,
"g_force" text,
"eagle_riders" text,
"ova_harmony_gold_dub" text,
"rank" text,
"bird_uniform" text,
"weapon" text,
"mecha" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "characters" (
"gatchaman" text,
"battle_of_the_planets" text,
"g_force" text,
"eagle_riders" text,
"ova_harmony_gold_dub" text,
"rank" text,
"bird_uniform" text,
"weapon" text,
"mecha" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eighth_finals" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Which 1st leg has a Team 1 of drita?
<|assistant|>
SELECT "1st_leg" FROM "eighth_finals" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eighth_finals" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Which Team 2 has a Team 1 of vardar?
<|assistant|>
SELECT "team_2" FROM "eighth_finals" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eighth_finals" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Which Team 1 has a 2nd leg of 1–2?
<|assistant|>
SELECT "team_1" FROM "eighth_finals" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f" (
"player" text,
"nationality" text,
"jersey_number_s" real,
"position" text,
"years" text,
"from" text
);
Question: What years was the jersey number(s) smaller than 3?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f" (
"player" text,
"nationality" text,
"jersey_number_s" real,
"position" text,
"years" text,
"from" text
);
Question: Which position was played by the player wearing jersey number 40?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f" (
"player" text,
"nationality" text,
"jersey_number_s" real,
"position" text,
"years" text,
"from" text
);
Question: What was the jersey number(s) when the position was SG from North Carol... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f" (
"player" text,
"nationality" text,
"jersey_number_s" real,
"position" text,
"years" text,
"from" text
);
Question: Which nationality does Cincinnati belong to?
<|assistant|>
SELECT "nati... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f" (
"player" text,
"nationality" text,
"jersey_number_s" real,
"position" text,
"years" text,
"from" text
);
Question: Where is jersey number 3 from?
<|assistant|>
SELECT "from" FROM "f" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"hometown_school" text
);
Question: What pick number was the rhp with a hometown/school of university of hawa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"hometown_school" text
);
Question: What player was drafted number 10?
<|assistant|>
SELECT "player" FROM "fi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"hometown_school" text
);
Question: What number pick was the player with the hometown school of concordia col... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"team" text,
"score" text,
"record" text,
"streak" text
);
Question: What is the date of game 66?
<|assistant|>
SELECT "date" FROM "season_schedul... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"team" text,
"score" text,
"record" text,
"streak" text
);
Question: What is the game on February 21?
<|assistant|>
SELECT "game" FROM "season_sch... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_i" (
"position" real,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
Question: What is t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.