text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ghanaian_presidents_ages" (
"num" real,
"president" text,
"date_of_birth" text,
"date_of_inauguration" text,
"age_at_inauguration" text,
"end_of_term" text,
"length_of_retirement" text,
"d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ghanaian_presidents_ages" (
"num" real,
"president" text,
"date_of_birth" text,
"date_of_inauguration" text,
"age_at_inauguration" text,
"end_of_term" text,
"length_of_retirement" text,
"d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lone_star_series" (
"date" text,
"winning_team" text,
"score" text,
"winning_pitcher" text,
"losing_pitcher" text,
"attendance" real,
"location" text
);
Question: Who was the winning pitche... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lone_star_series" (
"date" text,
"winning_team" text,
"score" text,
"winning_pitcher" text,
"losing_pitcher" text,
"attendance" real,
"location" text
);
Question: How many games were on May... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lone_star_series" (
"date" text,
"winning_team" text,
"score" text,
"winning_pitcher" text,
"losing_pitcher" text,
"attendance" real,
"location" text
);
Question: Who is the losing pitcher ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lone_star_series" (
"date" text,
"winning_team" text,
"score" text,
"winning_pitcher" text,
"losing_pitcher" text,
"attendance" real,
"location" text
);
Question: Who is the winning pitcher... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: How many NHL teams does Terry French play for?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Who's the player for the New York Rangers?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: How many positions do the players of Chicago Bl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What is the nationality of the player from Buff... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What position does the player from Peterborough... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What's Dave Fortier's pick number?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What team does George Hulme play for?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What position does Neil Komadoski play?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_five" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: where is team player mike mcniven played for?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_five" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: what college has nhl team chicago black hawks?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_five" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: what is the college that has the nhl chicago b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_five" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: who is the player with the nationality of cana... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_three" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: How many teams did Bob Peppler play for?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_three" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What is the position listed for the team the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_three" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: How many nationalities are listed for the pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_seven" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Which players have the position of centre and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_seven" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Which nhl team has a college/junior/club team... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_seven" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: what are all the position where player is al ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_seven" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What nationality is pick # 89
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_seven" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Which college/junior/club teams nationality i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_seven" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: what is the total number of pick # where nhl ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_six" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What is the nationality of the player from the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_six" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What position does Jim Johnston play?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_six" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Which team does Pierre Duguay play for?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_six" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What country does the goaltender come from?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12148018_2" (
"num" real,
"episode" text,
"director" text,
"writer" text,
"original_airdate" text,
"viewers" text
);
Question: who is the writer where viewers is 5.16m
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12148018_2" (
"num" real,
"episode" text,
"director" text,
"writer" text,
"original_airdate" text,
"viewers" text
);
Question: who is the writer for episode "episode 7"
<|assistant|>
... |
<|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,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
Question: For which league is the open cup the quarter finals
<|assista... |
<|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,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
Question: What open cups where played in 2002
<|assistant|>
SELECT "ope... |
<|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,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
Question: What leagues includes division 3
<|assistant|>
SELECT "league... |
<|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,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
Question: What was the result of the playoffs when the regular season w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12159115_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: What'... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12159115_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: Who's... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12159115_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: What'... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12159115_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: What'... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12159115_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: What'... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nations_cup" (
"season" text,
"winner" text,
"runner_up" text,
"third" text,
"winner_men" text,
"winner_women" text
);
Question: What is the season where the winner is norway and the winner w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nations_cup" (
"season" text,
"winner" text,
"runner_up" text,
"third" text,
"winner_men" text,
"winner_women" text
);
Question: What is the winner women and third is italy and runner-up is f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nations_cup" (
"season" text,
"winner" text,
"runner_up" text,
"third" text,
"winner_men" text,
"winner_women" text
);
Question: What is the number of runner up when the winner of women is no... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_standings" (
"rd" real,
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
Question: what's the report ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_standings" (
"rd" real,
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
Question: what's the grand p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_standings" (
"rd" real,
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
Question: who is the the pol... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_standings" (
"rd" real,
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
Question: who is the the fas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12159115_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12159115_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12159115_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12148147_2" (
"subjects" text,
"first_year" text,
"second_year" text,
"third_year" text,
"fourth_year" text
);
Question: What is the third year course in science?
<|assistant|>
SELECT "t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12148147_2" (
"subjects" text,
"first_year" text,
"second_year" text,
"third_year" text,
"fourth_year" text
);
Question: What is the second year class following pag-unawa?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12148147_2" (
"subjects" text,
"first_year" text,
"second_year" text,
"third_year" text,
"fourth_year" text
);
Question: How many classes are taken in the third year when pag-unawa was t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12148147_2" (
"subjects" text,
"first_year" text,
"second_year" text,
"third_year" text,
"fourth_year" text
);
Question: What is the first year course in the program where geometry is ta... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12148147_2" (
"subjects" text,
"first_year" text,
"second_year" text,
"third_year" text,
"fourth_year" text
);
Question: What is the second year course in the program where physics is ta... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: Who won the womens singles event the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: Who won the mens doubles the year Al... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "design_details" (
"308_winchester_cartridge_type" text,
"100_m_group_mm" text,
"100_m_group_moa" text,
"300_m_group_mm" text,
"300_m_group_moa" text
);
Question: What are all the .308 Wincheste... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "design_details" (
"308_winchester_cartridge_type" text,
"100_m_group_mm" text,
"100_m_group_moa" text,
"300_m_group_mm" text,
"300_m_group_moa" text
);
Question: For which 100 m group ( moa ) i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "design_details" (
"308_winchester_cartridge_type" text,
"100_m_group_mm" text,
"100_m_group_moa" text,
"300_m_group_mm" text,
"300_m_group_moa" text
);
Question: What are all the 300 m group (m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "design_details" (
"308_winchester_cartridge_type" text,
"100_m_group_mm" text,
"100_m_group_moa" text,
"300_m_group_mm" text,
"300_m_group_moa" text
);
Question: For which .308 winchester cartr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "design_details" (
"308_winchester_cartridge_type" text,
"100_m_group_mm" text,
"100_m_group_moa" text,
"300_m_group_mm" text,
"300_m_group_moa" text
);
Question: For which 300 m group ( moa ) i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "design_details" (
"308_winchester_cartridge_type" text,
"100_m_group_mm" text,
"100_m_group_moa" text,
"300_m_group_mm" text,
"300_m_group_moa" text
);
Question: What are all the 100 m group (m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: How many years did Peter Mikkelsen w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: Who won the Men's Doubles when Karin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: How many Mixed Doubles won when Oliv... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: Who won the Men's Doubles when Guo X... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_one" (
"overall_pick_num" real,
"afl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Which college did Dennis Byrd come from?
<|assistant|>
SELECT "college" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_one" (
"overall_pick_num" real,
"afl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Bob Johnson plays for which AFL team?
<|assistant|>
SELECT "afl_team" FROM "ro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_one" (
"overall_pick_num" real,
"afl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What position does the Cincinnati Bengals' player have?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_one" (
"overall_pick_num" real,
"afl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What position does Syracuse's player have?
<|assistant|>
SELECT "position" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_one" (
"overall_pick_num" real,
"afl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What college did the Cincinnati Bengals' player come from?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contents" (
"chapter" real,
"chinese" text,
"pinyin" text,
"translation" text,
"subject" text
);
Question: What is the pinyin for explaining music?
<|assistant|>
SELECT "pinyin" FROM "contents"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contents" (
"chapter" real,
"chinese" text,
"pinyin" text,
"translation" text,
"subject" text
);
Question: How many subjects have the pinyin shixun?
<|assistant|>
SELECT COUNT("subject") FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contents" (
"chapter" real,
"chinese" text,
"pinyin" text,
"translation" text,
"subject" text
);
Question: What is the pinyin for explaining beasts?
<|assistant|>
SELECT "pinyin" FROM "contents... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contents" (
"chapter" real,
"chinese" text,
"pinyin" text,
"translation" text,
"subject" text
);
Question: How many pinyin transaltions are available for the chinese phrase 釋蟲?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contents" (
"chapter" real,
"chinese" text,
"pinyin" text,
"translation" text,
"subject" text
);
Question: What chapter number is Shiqiu?
<|assistant|>
SELECT MIN("chapter") FROM "contents" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: How many mens doubles when womens double... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: Who is the mens doubles when womens doub... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: Who is themens doubles when the mens sin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: Who was the womens doubles when the mixe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: Who was the mens doubles when womens sin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grands_prix" (
"round" real,
"date" text,
"grand_prix" text,
"circuit" text,
"125cc_winner" text,
"250cc_winner" text,
"moto_gp_winner" text,
"report" text
);
Question: Who is the Motogp ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grands_prix" (
"round" real,
"date" text,
"grand_prix" text,
"circuit" text,
"125cc_winner" text,
"250cc_winner" text,
"moto_gp_winner" text,
"report" text
);
Question: Who is the 125cc w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grands_prix" (
"round" real,
"date" text,
"grand_prix" text,
"circuit" text,
"125cc_winner" text,
"250cc_winner" text,
"moto_gp_winner" text,
"report" text
);
Question: What is the date o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grands_prix" (
"round" real,
"date" text,
"grand_prix" text,
"circuit" text,
"125cc_winner" text,
"250cc_winner" text,
"moto_gp_winner" text,
"report" text
);
Question: What circuit was o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12193259_1" (
"season" text,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: Name the number of mens doubles f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12193259_1" (
"season" text,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: Name the total number for mens si... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12193259_1" (
"season" text,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: Name the mens singles for 1944/19... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" (
"number" real,
"name" text,
"titles" text,
"date" text,
"opponent" text,
"result" text,
"defenses" real
);
Question: How many times was pernell w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" (
"number" real,
"name" text,
"titles" text,
"date" text,
"opponent" text,
"result" text,
"defenses" real
);
Question: How many times was iran bark... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" (
"number" real,
"name" text,
"titles" text,
"date" text,
"opponent" text,
"result" text,
"defenses" real
);
Question: Who was the opponent when th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" (
"number" real,
"name" text,
"titles" text,
"date" text,
"opponent" text,
"result" text,
"defenses" real
);
Question: How many opponents fought on... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" (
"number" real,
"name" text,
"titles" text,
"date" text,
"opponent" text,
"result" text,
"defenses" real
);
Question: What is the name of the titl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12221135_3" (
"departure" text,
"going_to" text,
"calling_at" text,
"arrival" text,
"operator" text
);
Question: How many trains call at Castor, Overton, Peterborough East and are operat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_12204717_1" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: Who won the mens singles in 2009?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "member_institutions" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"joined" real,
"nickname" text,
"colors" text
);
Question: What are the the University of Richmond's... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "member_institutions" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"joined" real,
"nickname" text,
"colors" text
);
Question: What are the school colors of the Univers... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.