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 service?
<|assistant|>
SELECT "aircraft" FROM "aircraft_inventory" WHERE "in_service"='2' AND "origin"='united states' AND "versions"='b-58';<|endoftext|> |
<|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 "aircraft_inventory" WHERE "aircraft"='casa c-212 aviocar';<|endoftext|> |
<|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_service" FROM "aircraft_inventory" WHERE "versions"='t-260 eu';<|endoftext|> |
<|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?
<|assistant|>
SELECT "in_service" FROM "aircraft_inventory" WHERE "origin"='brazil' AND "versions"='c-95';<|endoftext|> |
<|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
);
Question: Tell me the lowest other for albanians more than 8793 and Roma less than 1030
<|assistant|>
SELECT MIN("other") FROM "demographics" WHERE "albanians">8793 AND "roma"<1030;<|endoftext|> |
<|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
);
Question: Tell me the highest bosniaks for year more than 2002
<|assistant|>
SELECT MAX("bosniaks") FROM "demographics" WHERE "census_year">2002;<|endoftext|> |
<|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 103.1
<|assistant|>
SELECT MIN("erp_w") FROM "translators" WHERE "frequency_m_hz"<103.1;<|endoftext|> |
<|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 80
<|assistant|>
SELECT "city_of_license" FROM "translators" WHERE "frequency_m_hz"=103.1 AND "erp_w"<80;<|endoftext|> |
<|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
<|assistant|>
SELECT "affiliation" FROM "round_six" WHERE "pick_num"<59 AND "position"='gk';<|endoftext|> |
<|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,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text
);
Question: What Tournament of canada happened in 1998?
<|assistant|>
SELECT "1998" FROM "doubles_performance_timeline" WHERE "tournament"='canada';<|endoftext|> |
<|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,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text
);
Question: Who had 1990 of 2–2 in 1993?
<|assistant|>
SELECT "1993" FROM "doubles_performance_timeline" WHERE "1990"='2–2';<|endoftext|> |
<|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,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text
);
Question: What Tournament of monte carlo had 1996 and a 1987 of nme?
<|assistant|>
SELECT "1996" FROM "doubles_performance_timeline" WHERE "1987"='nme' AND "tournament"='monte carlo';<|endoftext|> |
<|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,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text
);
Question: What Tournament of the french open had 2004 that has a 1998 of 2r?
<|assistant|>
SELECT "2004" FROM "doubles_performance_timeline" WHERE "1998"='2r' AND "tournament"='french open';<|endoftext|> |
<|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" FROM "wins_7" WHERE "championship"='nabisco championship';<|endoftext|> |
<|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|>
SELECT "margin" FROM "wins_7" WHERE "year"=2001 AND "championship"='mcdonald''s lpga championship';<|endoftext|> |
<|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" WHERE "goal"=5;<|endoftext|> |
<|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_goals" WHERE "goal"=5;<|endoftext|> |
<|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" WHERE "location"='sopot (pol)';<|endoftext|> |
<|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 in the Open Cup?
<|assistant|>
SELECT "division" FROM "year_by_year" WHERE "open_cup"='2nd round';<|endoftext|> |
<|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|>
SELECT "reg_season" FROM "year_by_year" WHERE "year"=1997;<|endoftext|> |
<|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 they made it to the 2nd round of the playoffs?
<|assistant|>
SELECT "open_cup" FROM "year_by_year" WHERE "playoffs"='2nd round';<|endoftext|> |
<|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 their regular season resulted in 4th, central?
<|assistant|>
SELECT "playoffs" FROM "year_by_year" WHERE "reg_season"='4th, central';<|endoftext|> |
<|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 "method" FROM "professional_boxing_record" WHERE "result"='win' AND "opponent"='ed mahone';<|endoftext|> |
<|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|>
SELECT "date" FROM "professional_boxing_record" WHERE "method"='technical knockout' AND "opponent"='fatu tuimanono';<|endoftext|> |
<|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|>
SELECT "date" FROM "professional_boxing_record" WHERE "method"='knockout' AND "round">2 AND "opponent"='barry prior';<|endoftext|> |
<|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" FROM "professional_boxing_record" WHERE "round">4 AND "opponent"='ed mahone';<|endoftext|> |
<|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 "state"='georgia';<|endoftext|> |
<|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_venues" WHERE "region"='midwest' AND "venue"='thomas assembly center';<|endoftext|> |
<|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" WHERE "venue"='frank erwin center';<|endoftext|> |
<|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" FROM "reserves_team" WHERE "competition"='vfl reserves' AND "venue"='mcg' AND "year"='1971';<|endoftext|> |
<|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 "reserves_team" WHERE "opponent"='richmond';<|endoftext|> |
<|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 "venue" FROM "reserves_team" WHERE "score"='18.6 (114) - 21.14 (140)';<|endoftext|> |
<|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)?
<|assistant|>
SELECT "opponent" FROM "reserves_team" WHERE "competition"='vfl reserves' AND "score"='18.6 (114) - 21.14 (140)';<|endoftext|> |
<|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" FROM "reserves_team" WHERE "score"='4.10 (34) - 8.12 (60)';<|endoftext|> |
<|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 viewing in 1999?
<|assistant|>
SELECT "bbc_two_total_viewing" FROM "tv_ratings" WHERE "year"='1999';<|endoftext|> |
<|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 in 2005?
<|assistant|>
SELECT "bbc_two_rank" FROM "tv_ratings" WHERE "year"='2005';<|endoftext|> |
<|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 BBC 1 is 1st rank and the total viewing is 9,840,000?
<|assistant|>
SELECT "bbc_two_rank" FROM "tv_ratings" WHERE "bbc_one_rank"='1st' AND "bbc_one_total_viewing"='9,840,000';<|endoftext|> |
<|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 in rank?
<|assistant|>
SELECT "year" FROM "tv_ratings" WHERE "bbc_two_rank"='13th';<|endoftext|> |
<|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|>
SELECT "goals" FROM "players" WHERE "caps">8 AND "player"='stein huysegems';<|endoftext|> |
<|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 "players" WHERE "player"='glen moss';<|endoftext|> |
<|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 Philharmonic Orchestra released a record with Decca Records?
<|assistant|>
SELECT MIN("year_of_recording") FROM "recordings" WHERE "orchestra"='royal philharmonic orchestra' AND "record_company"='decca records';<|endoftext|> |
<|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 released on?
<|assistant|>
SELECT "format" FROM "recordings" WHERE "conductor"='erich leinsdorf';<|endoftext|> |
<|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?
<|assistant|>
SELECT "record_company" FROM "recordings" WHERE "year_of_recording"=1964 AND "format"='cd';<|endoftext|> |
<|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 was 3rd round Open Cup?
<|assistant|>
SELECT "division" FROM "year_by_year" WHERE "playoffs"='finalist' AND "open_cup"='3rd round';<|endoftext|> |
<|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 and made it to the 3rd round in Open Cup?
<|assistant|>
SELECT "year" FROM "year_by_year" WHERE "reg_season"='8th' AND "open_cup"='3rd round';<|endoftext|> |
<|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 gsat-4
<|assistant|>
SELECT "launch_date_time_utc" FROM "launch_history" WHERE "payload"='gsat-4';<|endoftext|> |
<|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 10:34
<|assistant|>
SELECT "launch_pad" FROM "launch_history" WHERE "launch_date_time_utc"='25 december 2010 10:34';<|endoftext|> |
<|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 "rank">48 AND "last"=2005;<|endoftext|> |
<|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 "name" FROM "women" WHERE "rank">17 AND "confederation"='uefa' AND "caps"=114;<|endoftext|> |
<|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 "international_goals" WHERE "date"='july 16, 2000';<|endoftext|> |
<|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?
<|assistant|>
SELECT MAX("caps") FROM "most_caps_for_estonia" WHERE "goals"=0 AND "rank"=15;<|endoftext|> |
<|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 that served in 1815?
<|assistant|>
SELECT MIN("guns") FROM "ships_served_in_by_adam_bolitho" WHERE "class"='frigate' AND "year"='1815';<|endoftext|> |
<|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 units in the UK, what is their average place?
<|assistant|>
SELECT AVG("place") FROM "other" WHERE "units_sold_in_the_uk"='321,000';<|endoftext|> |
<|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 US of the game that sold 346,000 units in japan?
<|assistant|>
SELECT "units_sold_in_the_us" FROM "other" WHERE "units_sold_in_japan"='346,000';<|endoftext|> |
<|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_four" WHERE "mls_team"='dallas burn';<|endoftext|> |
<|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") FROM "round_four" WHERE "player"='kenny arena';<|endoftext|> |
<|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 "first_round" WHERE "host"='northeast louisiana university';<|endoftext|> |
<|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_round" WHERE "city"='philadelphia';<|endoftext|> |
<|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 beach';<|endoftext|> |
<|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 "first_round" WHERE "region"='mideast' AND "city"='knoxville';<|endoftext|> |
<|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"='georgia';<|endoftext|> |
<|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_round" WHERE "host"='university of tennessee';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"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 "date" FROM "schedule" WHERE "week">3 AND "result"='w 28-27';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: Tell me the sum of attendane for a result of w 12-3 and week more than 12
<|assistant|>
SELECT SUM("attendance") FROM "schedule" WHERE "result"='w 12-3' AND "week">12;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: Tell me the total number of attendance for result of l 18-6
<|assistant|>
SELECT COUNT("attendance") FROM "schedule" WHERE "result"='l 18-6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: Tell me the total number of attendance for week of 16
<|assistant|>
SELECT COUNT("attendance") FROM "schedule" WHERE "week"=16;<|endoftext|> |
<|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.
<|assistant|>
SELECT SUM("bronze") FROM "medal_table" WHERE "total"=4 AND "silver"<3;<|endoftext|> |
<|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 have?
<|assistant|>
SELECT SUM("round") FROM "mixed_martial_arts_record" WHERE "event"='ifl: oakland';<|endoftext|> |
<|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?
<|assistant|>
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "record"='3-0';<|endoftext|> |
<|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 "qualifying" WHERE "driver"='david coulthard';<|endoftext|> |
<|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"='adrian sutil';<|endoftext|> |
<|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"='1';<|endoftext|> |
<|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
<|assistant|>
SELECT "city_of_license" FROM "translators" WHERE "call_sign"='k215es';<|endoftext|> |
<|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|>
SELECT "fcc_info" FROM "translators" WHERE "call_sign"='k208eq';<|endoftext|> |
<|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 of date for carpet
<|assistant|>
SELECT COUNT("date") FROM "open_era_singles_finals_3_2" WHERE "surface"='carpet';<|endoftext|> |
<|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 6–2, 3–6, 4–6
<|assistant|>
SELECT "opponent_in_the_final" FROM "open_era_singles_finals_3_2" WHERE "score_in_the_final"='6–2, 3–6, 4–6';<|endoftext|> |
<|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" FROM "l" WHERE "player"='martin lewis';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: Tell me the opponent of week 14
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "week"=14;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: Tell me the average attendance for week of 11
<|assistant|>
SELECT AVG("attendance") FROM "schedule" WHERE "week"=11;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: Tell me opponent for result of w 33-31
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "result"='w 33-31';<|endoftext|> |
<|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 being investigated for thyroid imaging thyroid metastases imaging?
<|assistant|>
SELECT "name" FROM "iodine_123" WHERE "route_of_administration"='oral or iv' AND "investigation"='thyroid imaging thyroid metastases imaging';<|endoftext|> |
<|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 "call_sign"='cjgx';<|endoftext|> |
<|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 "branding"='gx94';<|endoftext|> |
<|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" WHERE "call_sign"='cjjc-fm';<|endoftext|> |
<|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 "branding"='fox fm';<|endoftext|> |
<|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 "media" WHERE "branding"='cbc radio 2';<|endoftext|> |
<|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
<|assistant|>
SELECT "location" FROM "himalayan_peaks_of_uttarakhand" WHERE "altitude_metres"<6102;<|endoftext|> |
<|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 "region" FROM "himalayan_peaks_of_uttarakhand" WHERE "altitude_metres"=6854;<|endoftext|> |
<|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" WHERE "number"=161;<|endoftext|> |
<|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 "frequency" FROM "buses" WHERE "origin"='bus station' AND "number"=3;<|endoftext|> |
<|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 "origin" FROM "buses" WHERE "number">161;<|endoftext|> |
<|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|>
SELECT "origin" FROM "buses" WHERE "final_destination"='brandholmen';<|endoftext|> |
<|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 rider whose time was 1:19.02.8?
<|assistant|>
SELECT MAX("place") FROM "1970_isle_of_man_lightweight_tt_125cc_fi" WHERE "time"='1:19.02.8';<|endoftext|> |
<|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)
<|assistant|>
SELECT "revised" FROM "notes" WHERE "mc_cune_reischauer"='yŏn (s) ryŏn (n)';<|endoftext|> |
<|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 "notes" WHERE "hangul"='주';<|endoftext|> |
<|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 "notes" WHERE "revised"='eum';<|endoftext|> |
<|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 "model" FROM "track_ir_model_comparison" WHERE "released"=2005;<|endoftext|> |
<|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_goals" WHERE "date"='9 may 2001';<|endoftext|> |
<|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 "international_goals" WHERE "date"='25 march 2001';<|endoftext|> |
<|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|>
SELECT "race_winner" FROM "schedule_and_results" WHERE "event_name"='southern illinois 100';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.