text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aircraft_inventory" (
"aircraft" text,
"origin" text,
"type" text,
"versions" text,
"in_service" text
);
Question: Which version B-58 aircraft model originated in the United States has 2 in ser... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aircraft_inventory" (
"aircraft" text,
"origin" text,
"type" text,
"versions" text,
"in_service" text
);
Question: What aircraft type is the Casa C-212 Aviocar?
<|assistant|>
SELECT "type" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aircraft_inventory" (
"aircraft" text,
"origin" text,
"type" text,
"versions" text,
"in_service" text
);
Question: How many T-260 EU aircrafts are currently in service?
<|assistant|>
SELECT "in... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aircraft_inventory" (
"aircraft" text,
"origin" text,
"type" text,
"versions" text,
"in_service" text
);
Question: How many C-95 aircrafts originating in Brazil are currently in service?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"census_year" real,
"total" real,
"macedonians" real,
"albanians" real,
"turks" real,
"roma" real,
"vlachs" real,
"serbs" real,
"bosniaks" real,
"other" real
);
Questi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"census_year" real,
"total" real,
"macedonians" real,
"albanians" real,
"turks" real,
"roma" real,
"vlachs" real,
"serbs" real,
"bosniaks" real,
"other" real
);
Questi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Name the lowest ERP W with a frequency mhz less than 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Name the city with 103.1 frequency and ERP W less than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_six" (
"pick_num" real,
"mls_team" text,
"player" text,
"position" text,
"affiliation" text
);
Question: Tell me the affiliation for pick number less than 59 and position of gk
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_7" (
"year" real,
"championship" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: What is the margin at the Nabisco Championship?
<|assistant|>
SELECT "margin" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_7" (
"year" real,
"championship" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: What was the margin in 2001 at the McDonald's LPGA Championship?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
Question: Tell me the date of goal 5
<|assistant|>
SELECT "date" FROM "international_goals" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
Question: Tell me the date for goal of 5
<|assistant|>
SELECT "date" FROM "international_goal... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1990s" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
);
Question: What was the result of Sopot (pol)?
<|assistant|>
SELECT "result" FROM "1990s"... |
<|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: Which division was the Rampage in when they were in the 2nd round... |
<|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 Rampage's regular season in 1997?
<|assistant|>
SELE... |
<|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 Rampage's status in the Open Cup in the year that th... |
<|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 Rampage's result in the playoffs in the year that th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_boxing_record" (
"date" text,
"result" text,
"opponent" text,
"method" text,
"round" real
);
Question: Which method resulting in a win against Ed Mahone?
<|assistant|>
SELECT "meth... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_boxing_record" (
"date" text,
"result" text,
"opponent" text,
"method" text,
"round" real
);
Question: When did the technical knockout against Fatu Tuimanono happen?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_boxing_record" (
"date" text,
"result" text,
"opponent" text,
"method" text,
"round" real
);
Question: When did the opponent knockout Barry Prior in more than 2 rounds?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_boxing_record" (
"date" text,
"result" text,
"opponent" text,
"method" text,
"round" real
);
Question: What resulted after 4 rounds with Ed Mahone?
<|assistant|>
SELECT "result" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1_venues" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: Tell me the region for georgia
<|assistant|>
SELECT "region" FROM "round_1_venues" WHERE "stat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1_venues" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: Tell me the host for midwest thomas assembly center
<|assistant|>
SELECT "host" FROM "round_1_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1_venues" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: Tell me the region for frank erwin center
<|assistant|>
SELECT "region" FROM "round_1_venues" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reserves_team" (
"year" text,
"competition" text,
"opponent" text,
"score" text,
"venue" text
);
Question: In 1971 at MCG, what was the score of the VFL Reserves?
<|assistant|>
SELECT "score" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reserves_team" (
"year" text,
"competition" text,
"opponent" text,
"score" text,
"venue" text
);
Question: What was the score when Richmond was the opponent?
<|assistant|>
SELECT "score" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reserves_team" (
"year" text,
"competition" text,
"opponent" text,
"score" text,
"venue" text
);
Question: Where was the match with a score of 18.6 (114) - 21.14 (140)?
<|assistant|>
SELECT "ve... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reserves_team" (
"year" text,
"competition" text,
"opponent" text,
"score" text,
"venue" text
);
Question: At the VFL Reserves, who was the opponent when the score was 18.6 (114) - 21.14 (140)?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reserves_team" (
"year" text,
"competition" text,
"opponent" text,
"score" text,
"venue" text
);
Question: Where was the match with a score of 4.10 (34) - 8.12 (60)?
<|assistant|>
SELECT "venue... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tv_ratings" (
"year" text,
"broadcast_date" text,
"bbc_one_total_viewing" text,
"bbc_one_rank" text,
"bbc_two_total_viewing" text,
"bbc_two_rank" text
);
Question: How much is the total BBC 2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tv_ratings" (
"year" text,
"broadcast_date" text,
"bbc_one_total_viewing" text,
"bbc_one_rank" text,
"bbc_two_total_viewing" text,
"bbc_two_rank" text
);
Question: What was the rank of BBC 2 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tv_ratings" (
"year" text,
"broadcast_date" text,
"bbc_one_total_viewing" text,
"bbc_one_rank" text,
"bbc_two_total_viewing" text,
"bbc_two_rank" text
);
Question: What is the BBC 2 rank when... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tv_ratings" (
"year" text,
"broadcast_date" text,
"bbc_one_total_viewing" text,
"bbc_one_rank" text,
"bbc_two_total_viewing" text,
"bbc_two_rank" text
);
Question: In what year was BBC 2 13th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players" (
"player" text,
"country" text,
"caps" real,
"goals" text,
"years_active" text
);
Question: How many goals occurred for Stein Huysegems when the caps value is more than 8?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players" (
"player" text,
"country" text,
"caps" real,
"goals" text,
"years_active" text
);
Question: What is the largest caps value for Glen Moss?
<|assistant|>
SELECT MAX("caps") FROM "player... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recordings" (
"cellist" text,
"orchestra" text,
"conductor" text,
"record_company" text,
"year_of_recording" real,
"format" text
);
Question: What is the oldest year that the Royal Philharmon... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recordings" (
"cellist" text,
"orchestra" text,
"conductor" text,
"record_company" text,
"year_of_recording" real,
"format" text
);
Question: What format was conductor Erich Leinsdorf's album... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recordings" (
"cellist" text,
"orchestra" text,
"conductor" text,
"record_company" text,
"year_of_recording" real,
"format" text
);
Question: What record company released a CD in 1964?
<|assi... |
<|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,
"avg_attendance" text
);
Question: What division has finalist playoffs and ... |
<|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,
"avg_attendance" text
);
Question: What year was the team 8th in the season... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "launch_history" (
"flight" text,
"launch_date_time_utc" text,
"variant" text,
"launch_pad" text,
"payload" text,
"payload_mass" text
);
Question: Tell me the launch date/time for payload of g... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "launch_history" (
"flight" text,
"launch_date_time_utc" text,
"variant" text,
"launch_pad" text,
"payload" text,
"payload_mass" text
);
Question: Tell me the launch pad for 25 december 2010 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"rank" real,
"name" text,
"confederation" text,
"caps" real,
"last" real
);
Question: Who had a rank more than 48, and a last in 2005?
<|assistant|>
SELECT "name" FROM "women" WHERE "r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"rank" real,
"name" text,
"confederation" text,
"caps" real,
"last" real
);
Question: Which UEFA confederation member had a rank more than 17 and caps of 114?
<|assistant|>
SELECT "nam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: Tell me the result of july 16, 2000
<|assistant|>
SELECT "result" FROM "internatio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_caps_for_estonia" (
"rank" real,
"player" text,
"career" text,
"caps" real,
"goals" real
);
Question: What is the maximum cap number where 0 goals were scored with a rank of 15?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_served_in_by_adam_bolitho" (
"ship" text,
"guns" real,
"class" text,
"captain" text,
"rank" text,
"year" text
);
Question: What were the fewest amount of guns possessed by a frigate tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other" (
"place" real,
"title" text,
"units_sold_in_japan" text,
"units_sold_in_the_uk" text,
"units_sold_in_the_us" text,
"total_units_sold" real
);
Question: Of the games that sold 321,000 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other" (
"place" real,
"title" text,
"units_sold_in_japan" text,
"units_sold_in_the_uk" text,
"units_sold_in_the_us" text,
"total_units_sold" real
);
Question: How many units were sold in the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"mls_team" text,
"player" text,
"position" text,
"affiliation" text
);
Question: Tell me the player from dallas burn
<|assistant|>
SELECT "player" FROM "round_fou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"mls_team" text,
"player" text,
"position" text,
"affiliation" text
);
Question: Tell me the sum of pick number for kenny arena
<|assistant|>
SELECT SUM("pick_num... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: What city is the Northeast Louisiana University located in?
<|assistant|>
SELECT "city" FROM "fir... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: What region is the city of Philadelphia located in?
<|assistant|>
SELECT "region" FROM "first_rou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: What venue is in Long Beach?
<|assistant|>
SELECT "venue" FROM "first_round" WHERE "city"='long b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: What state is Knoxville and the mideast region located in?
<|assistant|>
SELECT "state" FROM "fir... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: What is the host in Georgia?
<|assistant|>
SELECT "host" FROM "first_round" WHERE "state"='georgi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: What state is the University of Tennessee located in?
<|assistant|>
SELECT "state" FROM "first_ro... |
<|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: Tell me the date that has a week larger than 3 and a result of w 28-27
<|assistant|>
SELECT ... |
<|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: Tell me the sum of attendane for a result of w 12-3 and week more than 12
<|assistant|>
SELE... |
<|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: Tell me the total number of attendance for result of l 18-6
<|assistant|>
SELECT COUNT("atte... |
<|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: Tell me the total number of attendance for week of 16
<|assistant|>
SELECT COUNT("attendance... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many bronzes were held by those with a total of 4 and less than 3 silvers.
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"location" text
);
Question: How many rounds did the IFL: Oakland event h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"location" text
);
Question: Which opponent has a record of 3-0?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying" (
"pos" text,
"driver" text,
"constructor" text,
"part_1" text,
"grid" text
);
Question: Tell me the constructor for david coulthard
<|assistant|>
SELECT "constructor" FROM "qualify... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying" (
"pos" text,
"driver" text,
"constructor" text,
"part_1" text,
"grid" text
);
Question: Tell me the pos for adrian sutil
<|assistant|>
SELECT "pos" FROM "qualifying" WHERE "driver"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying" (
"pos" text,
"driver" text,
"constructor" text,
"part_1" text,
"grid" text
);
Question: Tell me the part 1 of grid of 1
<|assistant|>
SELECT "part_1" FROM "qualifying" WHERE "grid"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" text,
"class" text,
"fcc_info" text
);
Question: Name the city of license for call sign of k215es
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" text,
"class" text,
"fcc_info" text
);
Question: Name the FCC info for call sign of k208eq
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "open_era_singles_finals_3_2" (
"outcome" text,
"date" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: Tell me the total number ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "open_era_singles_finals_3_2" (
"outcome" text,
"date" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: Tell me the opponent for ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l" (
"player" text,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: What is the nationality of Martin Lewis?
<|assistant|>
SELECT "nationality... |
<|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: Tell me the opponent of week 14
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "week"... |
<|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: Tell me the average attendance for week of 11
<|assistant|>
SELECT AVG("attendance") FROM "s... |
<|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: Tell me opponent for result of w 33-31
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "iodine_123" (
"name" text,
"investigation" text,
"route_of_administration" text,
"in_vitro_in_vivo" text,
"imaging_non_imaging" text
);
Question: What Name is administered by oral or iv, and is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "media" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: Who is the owner with a call sign of cjgx?
<|assistant|>
SELECT "owner" FROM "media" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "media" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: Who is the owner of the branding gx94?
<|assistant|>
SELECT "owner" FROM "media" WHERE "br... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "media" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: What is the call frequency sign of cjjc-fm?
<|assistant|>
SELECT "frequency" FROM "media" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "media" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: Who is the owner with the branding fox fm?
<|assistant|>
SELECT "owner" FROM "media" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "media" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: What is the branding frequency of cbc radio 2?
<|assistant|>
SELECT "frequency" FROM "medi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "himalayan_peaks_of_uttarakhand" (
"name" text,
"location" text,
"district" text,
"altitude_metres" real,
"region" text
);
Question: Tell me the location for altitude being less thaan 6102
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "himalayan_peaks_of_uttarakhand" (
"name" text,
"location" text,
"district" text,
"altitude_metres" real,
"region" text
);
Question: Say the region for 6854 altitudes
<|assistant|>
SELECT "regio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "buses" (
"number" real,
"origin" text,
"final_destination" text,
"frequency" text,
"distance" text
);
Question: What is the frequency of number 161?
<|assistant|>
SELECT "frequency" FROM "buses... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "buses" (
"number" real,
"origin" text,
"final_destination" text,
"frequency" text,
"distance" text
);
Question: What is the frequency of number 3 with a bus station origin?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "buses" (
"number" real,
"origin" text,
"final_destination" text,
"frequency" text,
"distance" text
);
Question: What is the origin of the one with a number larger than 161?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "buses" (
"number" real,
"origin" text,
"final_destination" text,
"frequency" text,
"distance" text
);
Question: What is the origin of the one whose final destination is Brandholmen?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1970_isle_of_man_lightweight_tt_125cc_fi" (
"place" real,
"rider" text,
"country" text,
"machine" text,
"speed" text,
"time" text,
"points" real
);
Question: What is the highest rank of a r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notes" (
"hangul" text,
"hanja" text,
"revised" text,
"mc_cune_reischauer" text,
"estimated_distribution_2000" real
);
Question: Tell me the revised of mccune reischauer of yŏn (s) ryŏn (n)
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notes" (
"hangul" text,
"hanja" text,
"revised" text,
"mc_cune_reischauer" text,
"estimated_distribution_2000" real
);
Question: Name the hanja for hangul of 주
<|assistant|>
SELECT "hanja" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notes" (
"hangul" text,
"hanja" text,
"revised" text,
"mc_cune_reischauer" text,
"estimated_distribution_2000" real
);
Question: Tell me the hanja of eum
<|assistant|>
SELECT "hanja" FROM "note... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_ir_model_comparison" (
"model" text,
"sensor_resolution" text,
"angle" real,
"released" real,
"latest_software" text
);
Question: What model was released in 2005?
<|assistant|>
SELECT "mo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: Tell me the score for 9 may 2001
<|assistant|>
SELECT "score" FROM "international_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: Tell me the competition for 25 march 2001
<|assistant|>
SELECT "competition" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"date" text,
"track" text,
"event_name" text,
"pole_winner" text,
"race_winner" text
);
Question: Who was the Race Winner of the Southern Illinois 100?
<|assistant|>
SEL... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.