text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1000181_1" (
"state_territory" text,
"text_background_colour" text,
"format" text,
"current_slogan" text,
"current_series" text,
"notes" text
);
Question: Tell me what the notes are for South Australia
<|assistant|>
SELECT "notes" FROM "table1_1000181_1" WHERE "current_slogan"='SOUTH AUSTRALIA';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1000181_1" (
"state_territory" text,
"text_background_colour" text,
"format" text,
"current_slogan" text,
"current_series" text,
"notes" text
);
Question: What is the current series where the new series began in June 2011?
<|assistant|>
SELECT "current_series" FROM "table1_1000181_1" WHERE "notes"='New series began in June 2011';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1000181_1" (
"state_territory" text,
"text_background_colour" text,
"format" text,
"current_slogan" text,
"current_series" text,
"notes" text
);
Question: What is the format for South Australia?
<|assistant|>
SELECT "format" FROM "table1_1000181_1" WHERE "state_territory"='South Australia';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1000181_1" (
"state_territory" text,
"text_background_colour" text,
"format" text,
"current_slogan" text,
"current_series" text,
"notes" text
);
Question: Name the background colour for the Australian Capital Territory
<|assistant|>
SELECT "text_background_colour" FROM "table1_1000181_1" WHERE "state_territory"='Australian Capital Territory';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fleet" (
"order_year" text,
"manufacturer" text,
"model" text,
"fleet_series_quantity" text,
"powertrain_engine_transmission" text,
"fuel_propulsion" text
);
Question: how many times is the fuel propulsion is cng?
<|assistant|>
SELECT COUNT("fleet_series_quantity") FROM "fleet" WHERE "fuel_propulsion"='CNG';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fleet" (
"order_year" text,
"manufacturer" text,
"model" text,
"fleet_series_quantity" text,
"powertrain_engine_transmission" text,
"fuel_propulsion" text
);
Question: what is the fuel propulsion where the fleet series (quantity) is 310-329 (20)?
<|assistant|>
SELECT "fuel_propulsion" FROM "fleet" WHERE "fleet_series_quantity"='310-329 (20)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fleet" (
"order_year" text,
"manufacturer" text,
"model" text,
"fleet_series_quantity" text,
"powertrain_engine_transmission" text,
"fuel_propulsion" text
);
Question: who is the manufacturer for the order year 1998?
<|assistant|>
SELECT "manufacturer" FROM "fleet" WHERE "order_year"='1998';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fleet" (
"order_year" text,
"manufacturer" text,
"model" text,
"fleet_series_quantity" text,
"powertrain_engine_transmission" text,
"fuel_propulsion" text
);
Question: how many times is the model ge40lfr?
<|assistant|>
SELECT COUNT("manufacturer") FROM "fleet" WHERE "model"='GE40LFR';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fleet" (
"order_year" text,
"manufacturer" text,
"model" text,
"fleet_series_quantity" text,
"powertrain_engine_transmission" text,
"fuel_propulsion" text
);
Question: how many times is the fleet series (quantity) is 468-473 (6)?
<|assistant|>
SELECT COUNT("order_year") FROM "fleet" WHERE "fleet_series_quantity"='468-473 (6)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fleet" (
"order_year" text,
"manufacturer" text,
"model" text,
"fleet_series_quantity" text,
"powertrain_engine_transmission" text,
"fuel_propulsion" text
);
Question: what is the powertrain (engine/transmission) when the order year is 2000?
<|assistant|>
SELECT "powertrain_engine_transmission" FROM "fleet" WHERE "order_year"='2000';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "disk_loading_comparison" (
"aircraft" text,
"description" text,
"max_gross_weight" text,
"total_disk_area" text,
"max_disk_loading" text
);
Question: What if the description of a ch-47d chinook?
<|assistant|>
SELECT "description" FROM "disk_loading_comparison" WHERE "aircraft"='CH-47D Chinook';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "disk_loading_comparison" (
"aircraft" text,
"description" text,
"max_gross_weight" text,
"total_disk_area" text,
"max_disk_loading" text
);
Question: What is the max gross weight of the Robinson R-22?
<|assistant|>
SELECT "max_gross_weight" FROM "disk_loading_comparison" WHERE "aircraft"='Robinson R-22';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: What school did player number 6 come from?
<|assistant|>
SELECT "school_club_team" FROM "a" WHERE "no"='6';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: What school did the player that has been in Toronto from 2012-present come from?
<|assistant|>
SELECT "school_club_team" FROM "a" WHERE "years_in_toronto"='2012-present';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: What school did the player that has been in Toronto from 2010-2012 go to?
<|assistant|>
SELECT "school_club_team" FROM "a" WHERE "years_in_toronto"='2010-2012';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: What position did the player from Baylor play?
<|assistant|>
SELECT "position" FROM "a" WHERE "school_club_team"='Baylor';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: Who played in the Toronto Raptors from 1995-96?
<|assistant|>
SELECT "player" FROM "o" WHERE "years_in_toronto"='1995-96';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: Which number was Patrick O'Bryant?
<|assistant|>
SELECT "no" FROM "o" WHERE "player"='Patrick O''Bryant';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: What school did Patrick O'Bryant play for?
<|assistant|>
SELECT "school_club_team" FROM "o" WHERE "player"='Patrick O''Bryant';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: How many number does Fordham school have?
<|assistant|>
SELECT COUNT("no") FROM "o" WHERE "school_club_team"='Fordham';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: Which school was in Toronto in 2001-02?
<|assistant|>
SELECT "school_club_team" FROM "o" WHERE "years_in_toronto"='2001-02';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: Which school did the player that played 2004-05 attend?
<|assistant|>
SELECT "school_club_team" FROM "w" WHERE "years_in_toronto"='2004-05';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: Which position does Loren Woods play?
<|assistant|>
SELECT "position" FROM "w" WHERE "player"='Loren Woods';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: What number is the player that played 1998-2001
<|assistant|>
SELECT MIN("no") FROM "w" WHERE "years_in_toronto"='1998-2001';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: Which country is the player that went to Georgetown from?
<|assistant|>
SELECT "nationality" FROM "w" WHERE "school_club_team"='Georgetown';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: Which school did Herb Williams go to?
<|assistant|>
SELECT "school_club_team" FROM "w" WHERE "player"='Herb Williams';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "c" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: When did the player from Hawaii play for Toronto?
<|assistant|>
SELECT "years_in_toronto" FROM "c" WHERE "school_club_team"='Hawaii';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "c" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: During what period did Dell Curry play for Toronto?
<|assistant|>
SELECT "years_in_toronto" FROM "c" WHERE "player"='Dell Curry';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "c" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: What's the number of the player from Boise State?
<|assistant|>
SELECT "no" FROM "c" WHERE "school_club_team"='Boise State';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "c" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: What's Dell Curry nationality?
<|assistant|>
SELECT "nationality" FROM "c" WHERE "player"='Dell Curry';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "g" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: which player is from georgia
<|assistant|>
SELECT "player" FROM "g" WHERE "school_club_team"='Georgia';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "g" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: what school is rudy gay from
<|assistant|>
SELECT "school_club_team" FROM "g" WHERE "player"='Rudy Gay';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "g" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: what nationality is the player who played from 1997-98
<|assistant|>
SELECT "nationality" FROM "g" WHERE "years_in_toronto"='1997-98';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "g" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: what position did the player from connecticut play
<|assistant|>
SELECT "position" FROM "g" WHERE "school_club_team"='Connecticut';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "b" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: During which years was Marcus Banks in Toronto?
<|assistant|>
SELECT "years_in_toronto" FROM "b" WHERE "player"='Marcus Banks';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "b" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: Which positions were in Toronto in 2004?
<|assistant|>
SELECT "position" FROM "b" WHERE "years_in_toronto"='2004';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "b" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: What nationality is the player Muggsy Bogues?
<|assistant|>
SELECT "nationality" FROM "b" WHERE "player"='Muggsy Bogues';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "b" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: What years was the player Lonny Baxter in Toronto?
<|assistant|>
SELECT "years_in_toronto" FROM "b" WHERE "player"='Lonny Baxter';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "b" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: How many players were with the school or club team La Salle?
<|assistant|>
SELECT COUNT("player") FROM "b" WHERE "school_club_team"='La Salle';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"2nd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" text,
"scoring_average" text,
"scoring_rank" text
);
Question: When the scoring rank was 117, what was the best finish?
<|assistant|>
SELECT "best_finish" FROM "lpga_tour_career_summary" WHERE "scoring_rank"='117';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"2nd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" text,
"scoring_average" text,
"scoring_rank" text
);
Question: When the best finish was T69, how many people came in 2nd?
<|assistant|>
SELECT "2nd" FROM "lpga_tour_career_summary" WHERE "best_finish"='T69';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"2nd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" text,
"scoring_average" text,
"scoring_rank" text
);
Question: How many wins were there when the money list rank was 183?
<|assistant|>
SELECT COUNT("wins") FROM "lpga_tour_career_summary" WHERE "money_list_rank"='183';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"2nd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" text,
"scoring_average" text,
"scoring_rank" text
);
Question: When the money list rank was n/a, what was the scoring average?
<|assistant|>
SELECT "scoring_average" FROM "lpga_tour_career_summary" WHERE "money_list_rank"='n/a';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"2nd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" text,
"scoring_average" text,
"scoring_rank" text
);
Question: What time was the highest for 2nd finishers?
<|assistant|>
SELECT MAX("2nd") FROM "lpga_tour_career_summary";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"season" real,
"player" text,
"position" text,
"nationality" text,
"team" text,
"draft_pick_num" text,
"draft_class" text,
"college" text
);
Question: When did the Metrostars have their first Rookie of the Year winner?
<|assistant|>
SELECT MIN("season") FROM "winners" WHERE "team"='MetroStars';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"season" real,
"player" text,
"position" text,
"nationality" text,
"team" text,
"draft_pick_num" text,
"draft_class" text,
"college" text
);
Question: What college did the Rookie of the Year from the Columbus Crew attend?
<|assistant|>
SELECT "college" FROM "winners" WHERE "team"='Columbus Crew';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"season" real,
"player" text,
"position" text,
"nationality" text,
"team" text,
"draft_pick_num" text,
"draft_class" text,
"college" text
);
Question: How many teams had a #1 draft pick that won the Rookie of the Year Award?
<|assistant|>
SELECT COUNT("team") FROM "winners" WHERE "draft_pick_num"='1';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"season" real,
"player" text,
"position" text,
"nationality" text,
"team" text,
"draft_pick_num" text,
"draft_class" text,
"college" text
);
Question: What position did the #10 draft pick play?
<|assistant|>
SELECT "position" FROM "winners" WHERE "draft_pick_num"='10';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "squad_members" (
"player" text,
"years_played" text,
"total_w_l" text,
"singles_w_l" text,
"doubles_w_l" text
);
Question: what's the years played with singles w-l of 3–2
<|assistant|>
SELECT "years_played" FROM "squad_members" WHERE "singles_w_l"='3–2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "squad_members" (
"player" text,
"years_played" text,
"total_w_l" text,
"singles_w_l" text,
"doubles_w_l" text
);
Question: what's the doubles w-l for player seol jae-min (none)
<|assistant|>
SELECT "doubles_w_l" FROM "squad_members" WHERE "player"='Seol Jae-Min (none)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "squad_members" (
"player" text,
"years_played" text,
"total_w_l" text,
"singles_w_l" text,
"doubles_w_l" text
);
Question: what's the singles w-l for kim doo-hwan
<|assistant|>
SELECT "singles_w_l" FROM "squad_members" WHERE "player"='Kim Doo-Hwan';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "squad_members" (
"player" text,
"years_played" text,
"total_w_l" text,
"singles_w_l" text,
"doubles_w_l" text
);
Question: what's the total number of singles w-l with doubles w-l of 0–0 and total w-l of 3–1
<|assistant|>
SELECT COUNT("singles_w_l") FROM "squad_members" WHERE "doubles_w_l"='0–0' AND "total_w_l"='3–1';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "squad_members" (
"player" text,
"years_played" text,
"total_w_l" text,
"singles_w_l" text,
"doubles_w_l" text
);
Question: what's the doubles w-l with years played value of 1 (1968)
<|assistant|>
SELECT "doubles_w_l" FROM "squad_members" WHERE "years_played"='1 (1968)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "squad_members" (
"player" text,
"years_played" text,
"total_w_l" text,
"singles_w_l" text,
"doubles_w_l" text
);
Question: what years are played for player im chung-yang
<|assistant|>
SELECT "years_played" FROM "squad_members" WHERE "player"='Im Chung-Yang';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"name" text,
"canton" text,
"height_meters" real,
"crest_length_meters" real,
"type" text,
"year_of_construction" real,
"name_of_the_lake" text
);
Question: What is the name of the 375 crest length?
<|assistant|>
SELECT "name" FROM "see_also" WHERE "crest_length_meters"=375;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"name" text,
"canton" text,
"height_meters" real,
"crest_length_meters" real,
"type" text,
"year_of_construction" real,
"name_of_the_lake" text
);
Question: What is year of construction of spitallamm?
<|assistant|>
SELECT MIN("year_of_construction") FROM "see_also" WHERE "name"='Spitallamm';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"name" text,
"canton" text,
"height_meters" real,
"crest_length_meters" real,
"type" text,
"year_of_construction" real,
"name_of_the_lake" text
);
Question: What is the canton of grande dixence?
<|assistant|>
SELECT "canton" FROM "see_also" WHERE "name"='Grande Dixence';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"name" text,
"canton" text,
"height_meters" real,
"crest_length_meters" real,
"type" text,
"year_of_construction" real,
"name_of_the_lake" text
);
Question: What is the name where lago di luzzone is?
<|assistant|>
SELECT "name" FROM "see_also" WHERE "name_of_the_lake"='Lago di Luzzone';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "names_and_attributes" (
"name" text,
"direction" text,
"mantra" text,
"weapon" text,
"consort" text,
"graha_planet" text,
"guardian_m_t_k" text
);
Question: What is the guardian mātṛkā for the guardian whose consort is Svāhā?
<|assistant|>
SELECT "guardian_m_t_k" FROM "names_and_attributes" WHERE "consort"='Svāhā';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "names_and_attributes" (
"name" text,
"direction" text,
"mantra" text,
"weapon" text,
"consort" text,
"graha_planet" text,
"guardian_m_t_k" text
);
Question: Where the mantra is "oṃ yaṃ vāyuve namaḥ", what is the direction of the guardian?
<|assistant|>
SELECT "direction" FROM "names_and_attributes" WHERE "mantra"='Oṃ Yaṃ Vāyuve Namaḥ';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "names_and_attributes" (
"name" text,
"direction" text,
"mantra" text,
"weapon" text,
"consort" text,
"graha_planet" text,
"guardian_m_t_k" text
);
Question: What weapon is used by the guardian whose consort is śacī?
<|assistant|>
SELECT "weapon" FROM "names_and_attributes" WHERE "consort"='Śacī';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "names_and_attributes" (
"name" text,
"direction" text,
"mantra" text,
"weapon" text,
"consort" text,
"graha_planet" text,
"guardian_m_t_k" text
);
Question: What are the directions for the guardian whose weapon is khaḍga (sword)?
<|assistant|>
SELECT "direction" FROM "names_and_attributes" WHERE "weapon"='Khaḍga (sword)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "names_and_attributes" (
"name" text,
"direction" text,
"mantra" text,
"weapon" text,
"consort" text,
"graha_planet" text,
"guardian_m_t_k" text
);
Question: What are the weapons used by guardians for the direction East?
<|assistant|>
SELECT "weapon" FROM "names_and_attributes" WHERE "direction"='East';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "names_and_attributes" (
"name" text,
"direction" text,
"mantra" text,
"weapon" text,
"consort" text,
"graha_planet" text,
"guardian_m_t_k" text
);
Question: What are the directions for the guardian whose graha (planet) is bṛhaspati (Jupiter)?
<|assistant|>
SELECT "direction" FROM "names_and_attributes" WHERE "graha_planet"='Bṛhaspati (Jupiter)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members" (
"member" text,
"headquarters" text,
"classification" text,
"chapters" real,
"founded" text,
"uccfs" real
);
Question: What is the number of chapters listed for the fraternity with a headquarters in Austin, Texas?
<|assistant|>
SELECT MAX("chapters") FROM "members" WHERE "classification"='Fraternity' AND "headquarters"='Austin, Texas';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members" (
"member" text,
"headquarters" text,
"classification" text,
"chapters" real,
"founded" text,
"uccfs" real
);
Question: What are the members listed with the sorority classification
<|assistant|>
SELECT "member" FROM "members" WHERE "classification"='Sorority';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members" (
"member" text,
"headquarters" text,
"classification" text,
"chapters" real,
"founded" text,
"uccfs" real
);
Question: Name the member that has 12 chapters
<|assistant|>
SELECT "member" FROM "members" WHERE "chapters"=12;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members" (
"member" text,
"headquarters" text,
"classification" text,
"chapters" real,
"founded" text,
"uccfs" real
);
Question: Where is the headquarters of Alpha Nu Omega
<|assistant|>
SELECT "headquarters" FROM "members" WHERE "member"='Alpha Nu Omega';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "incidence_of_disease_in_russian_empire_a" (
"year" text,
"typhus" real,
"typhoid_fever" real,
"relapsing_fever" real,
"smallpox" real,
"malaria" text
);
Question: what is the number of relapsing fever when malaria is 3000
<|assistant|>
SELECT MIN("relapsing_fever") FROM "incidence_of_disease_in_russian_empire_a" WHERE "malaria"='3000';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "incidence_of_disease_in_russian_empire_a" (
"year" text,
"typhus" real,
"typhoid_fever" real,
"relapsing_fever" real,
"smallpox" real,
"malaria" text
);
Question: what is the typhoid fever number for the year 1934
<|assistant|>
SELECT "typhoid_fever" FROM "incidence_of_disease_in_russian_empire_a" WHERE "year"='1934';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "incidence_of_disease_in_russian_empire_a" (
"year" text,
"typhus" real,
"typhoid_fever" real,
"relapsing_fever" real,
"smallpox" real,
"malaria" text
);
Question: What are all the typhus number when smallpox is 4
<|assistant|>
SELECT "typhus" FROM "incidence_of_disease_in_russian_empire_a" WHERE "smallpox"=4;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "incidence_of_disease_in_russian_empire_a" (
"year" text,
"typhus" real,
"typhoid_fever" real,
"relapsing_fever" real,
"smallpox" real,
"malaria" text
);
Question: what is the number of smallpox when typhoid fever is 293
<|assistant|>
SELECT MAX("smallpox") FROM "incidence_of_disease_in_russian_empire_a" WHERE "typhoid_fever"=293;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "incidence_of_disease_in_russian_empire_a" (
"year" text,
"typhus" real,
"typhoid_fever" real,
"relapsing_fever" real,
"smallpox" real,
"malaria" text
);
Question: what is the typhoid fever number for the year 1929
<|assistant|>
SELECT "typhoid_fever" FROM "incidence_of_disease_in_russian_empire_a" WHERE "year"='1929';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"school" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"team_nickname" text,
"primary_conference" text
);
Question: How many schools are in Bloomington, IN?
<|assistant|>
SELECT COUNT("founded") FROM "current_members" WHERE "location"='Bloomington, IN';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"school" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"team_nickname" text,
"primary_conference" text
);
Question: How many of the schools are designated private/Presbyterian?
<|assistant|>
SELECT COUNT("location") FROM "current_members" WHERE "affiliation"='Private/Presbyterian';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"school" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"team_nickname" text,
"primary_conference" text
);
Question: In what year was Lindenwood University founded?
<|assistant|>
SELECT MIN("founded") FROM "current_members" WHERE "school"='Lindenwood University';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"school" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"team_nickname" text,
"primary_conference" text
);
Question: How many of the schools listed are in Ames, IA?
<|assistant|>
SELECT COUNT("primary_conference") FROM "current_members" WHERE "location"='Ames, IA';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1008653_9" (
"country_exonym" text,
"capital_exonym" text,
"country_endonym" text,
"capital_endonym" text,
"official_or_native_language_s_alphabet_script" text
);
Question: What is the capital (endonym) where Douglas is the Capital (exonym)?
<|assistant|>
SELECT "capital_endonym" FROM "table1_1008653_9" WHERE "capital_exonym"='Douglas';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1008653_9" (
"country_exonym" text,
"capital_exonym" text,
"country_endonym" text,
"capital_endonym" text,
"official_or_native_language_s_alphabet_script" text
);
Question: How many countries (endonym) has the capital (endonym) of Jakarta?
<|assistant|>
SELECT COUNT("country_endonym") FROM "table1_1008653_9" WHERE "capital_endonym"='Jakarta';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1008653_9" (
"country_exonym" text,
"capital_exonym" text,
"country_endonym" text,
"capital_endonym" text,
"official_or_native_language_s_alphabet_script" text
);
Question: What is the country (exonym) where the official or native language(s) (alphabet/script) is Icelandic?
<|assistant|>
SELECT "country_exonym" FROM "table1_1008653_9" WHERE "official_or_native_language_s_alphabet_script"='Icelandic';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1008653_9" (
"country_exonym" text,
"capital_exonym" text,
"country_endonym" text,
"capital_endonym" text,
"official_or_native_language_s_alphabet_script" text
);
Question: In which country (endonym) is Irish English the official or native language(s) (alphabet/script)?
<|assistant|>
SELECT "country_endonym" FROM "table1_1008653_9" WHERE "official_or_native_language_s_alphabet_script"='Irish English';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1008653_9" (
"country_exonym" text,
"capital_exonym" text,
"country_endonym" text,
"capital_endonym" text,
"official_or_native_language_s_alphabet_script" text
);
Question: Which country (exonym) is the country (endonym) isle of man ellan vannin?
<|assistant|>
SELECT "country_exonym" FROM "table1_1008653_9" WHERE "country_endonym"='Isle of Man Ellan Vannin';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_television_ratings" (
"season" text,
"network" text,
"season_premiere" text,
"season_finale" text,
"tv_season" text,
"ranking" text,
"viewers_in_millions" text
);
Question: The season premiere aired on September 11, 2000 aired on how many networks?
<|assistant|>
SELECT COUNT("network") FROM "u_s_television_ratings" WHERE "season_premiere"='September 11, 2000';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_television_ratings" (
"season" text,
"network" text,
"season_premiere" text,
"season_finale" text,
"tv_season" text,
"ranking" text,
"viewers_in_millions" text
);
Question: What was the ranking of the season finale aired on May 8, 2006?
<|assistant|>
SELECT "ranking" FROM "u_s_television_ratings" WHERE "season_finale"='May 8, 2006';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1011906_1" (
"regional_county_municipality_rcm" text,
"population_canada_2011_census" real,
"land_area" text,
"density_pop_per_km2" text,
"seat_of_rcm" text
);
Question: what is the minimum population canada 2011 census with seat of rcm being cowansville
<|assistant|>
SELECT MIN("population_canada_2011_census") FROM "table1_1011906_1" WHERE "seat_of_rcm"='Cowansville';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1011906_1" (
"regional_county_municipality_rcm" text,
"population_canada_2011_census" real,
"land_area" text,
"density_pop_per_km2" text,
"seat_of_rcm" text
);
Question: what's the land area with seat of rcm being granby
<|assistant|>
SELECT "land_area" FROM "table1_1011906_1" WHERE "seat_of_rcm"='Granby';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "habitual_irish_speakers" (
"county" text,
"english_name" text,
"irish_name" text,
"population" real,
"irish_speakers" text
);
Question: What is the population for County Mayo with the English Name Carrowteige?
<|assistant|>
SELECT "population" FROM "habitual_irish_speakers" WHERE "county"='County Mayo' AND "english_name"='Carrowteige';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "habitual_irish_speakers" (
"county" text,
"english_name" text,
"irish_name" text,
"population" real,
"irish_speakers" text
);
Question: What is the Irish name listed with 62% Irish speakers?
<|assistant|>
SELECT "irish_name" FROM "habitual_irish_speakers" WHERE "irish_speakers"='62%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "habitual_irish_speakers" (
"county" text,
"english_name" text,
"irish_name" text,
"population" real,
"irish_speakers" text
);
Question: What is the population for the Irish Name Leitir mealláin?
<|assistant|>
SELECT "population" FROM "habitual_irish_speakers" WHERE "irish_name"='Leitir Mealláin';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "habitual_irish_speakers" (
"county" text,
"english_name" text,
"irish_name" text,
"population" real,
"irish_speakers" text
);
Question: What is the county for the Irish name Carna?
<|assistant|>
SELECT "county" FROM "habitual_irish_speakers" WHERE "irish_name"='Carna';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "habitual_irish_speakers" (
"county" text,
"english_name" text,
"irish_name" text,
"population" real,
"irish_speakers" text
);
Question: How many County Kerry have 53% Irish speakers?
<|assistant|>
SELECT COUNT("english_name") FROM "habitual_irish_speakers" WHERE "irish_speakers"='53%' AND "county"='County Kerry';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "habitual_irish_speakers" (
"county" text,
"english_name" text,
"irish_name" text,
"population" real,
"irish_speakers" text
);
Question: What is the population for the English name Spiddal?
<|assistant|>
SELECT "population" FROM "habitual_irish_speakers" WHERE "english_name"='Spiddal';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "us_states_by_asian_americans_population" (
"state_territory" text,
"asian_american_population_2010_census" real,
"chinese" real,
"filipino" real,
"indian" real,
"japanese" real,
"korean" real,
"vietnamese" real,
"other_asian" real
);
Question: What is the the Chinese population for the state that has a Filipino population of 1474707?
<|assistant|>
SELECT MIN("chinese") FROM "us_states_by_asian_americans_population" WHERE "filipino"=1474707;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "us_states_by_asian_americans_population" (
"state_territory" text,
"asian_american_population_2010_census" real,
"chinese" real,
"filipino" real,
"indian" real,
"japanese" real,
"korean" real,
"vietnamese" real,
"other_asian" real
);
Question: How many States have an Indian population of 30947?
<|assistant|>
SELECT COUNT("filipino") FROM "us_states_by_asian_americans_population" WHERE "indian"=30947;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "us_states_by_asian_americans_population" (
"state_territory" text,
"asian_american_population_2010_census" real,
"chinese" real,
"filipino" real,
"indian" real,
"japanese" real,
"korean" real,
"vietnamese" real,
"other_asian" real
);
Question: What is the highest Indian population?
<|assistant|>
SELECT MAX("indian") FROM "us_states_by_asian_americans_population";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10121127_1" (
"un_operation_name" text,
"un_operation_title" text,
"location" text,
"dates_of_australian_involvement" text,
"number_of_australians_involved" text,
"australian_role" text
);
Question: What is Australia's role in the UN operation Unama?
<|assistant|>
SELECT "australian_role" FROM "table1_10121127_1" WHERE "un_operation_name"='UNAMA';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10121127_1" (
"un_operation_name" text,
"un_operation_title" text,
"location" text,
"dates_of_australian_involvement" text,
"number_of_australians_involved" text,
"australian_role" text
);
Question: What is the UN operation title with the UN operation name, Uncok?
<|assistant|>
SELECT "un_operation_title" FROM "table1_10121127_1" WHERE "un_operation_name"='UNCOK';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10121127_1" (
"un_operation_name" text,
"un_operation_title" text,
"location" text,
"dates_of_australian_involvement" text,
"number_of_australians_involved" text,
"australian_role" text
);
Question: How many Australians were in the UN commission on Korea?
<|assistant|>
SELECT COUNT("number_of_australians_involved") FROM "table1_10121127_1" WHERE "un_operation_title"='UN Commission on Korea';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10121127_1" (
"un_operation_name" text,
"un_operation_title" text,
"location" text,
"dates_of_australian_involvement" text,
"number_of_australians_involved" text,
"australian_role" text
);
Question: When was it where 65 Australians were involved in the UN?
<|assistant|>
SELECT "dates_of_australian_involvement" FROM "table1_10121127_1" WHERE "number_of_australians_involved"='65';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_broadcast_and_ratings" (
"season" real,
"timeslot_et" text,
"season_premiere" text,
"season_finale" text,
"tv_season" text,
"rank" text,
"viewers_millions" text
);
Question: What year is the season with the 10.73 million views?
<|assistant|>
SELECT "tv_season" FROM "u_s_broadcast_and_ratings" WHERE "viewers_millions"='10.73';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.