text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What is the heat with a time of 3:45.57 in lane 3?
<|assistant|>
SELECT "heat" FROM "heats" WHERE "l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_3" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: Who are the Rowers with a Time of 6:39.49?
<|assistant|>
SELECT "rowers" FROM "heat_3" WHERE "time"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_3" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: What is the Country of the rowers with a Rank of 4?
<|assistant|>
SELECT "country" FROM "heat_3" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"county" text
);
Question: What counties mascot are the Red R... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"county" text
);
Question: What is the IHSAA class when the c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"county" text
);
Question: What is the enrollment number for ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What is the Result of the game on October 20, 1963 with an Attendance of 60,671 or greater?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What is the Attendance of the game against Minnesota Vikings?
<|assistant|>
SELECT COUNT("at... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: what is the average score for søren kjeldsen?
<|assistant|>
SELECT AVG("score") FROM "first_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1946_ladder" (
"club" text,
"wins" real,
"losses" real,
"draws" real,
"against" real
);
Question: What's the against of South Warrnambool when the draw is less than 0?
<|assistant|>
SELECT SUM(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1946_ladder" (
"club" text,
"wins" real,
"losses" real,
"draws" real,
"against" real
);
Question: What's the smallest draw of Warrnambool when the against was less than 1299, more than 7 wins, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1946_ladder" (
"club" text,
"wins" real,
"losses" real,
"draws" real,
"against" real
);
Question: What's the against when the draw was more than 0 and had 13 losses?
<|assistant|>
SELECT COUNT(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1946_ladder" (
"club" text,
"wins" real,
"losses" real,
"draws" real,
"against" real
);
Question: What's the against when there were more than 2 losses, more than 3 wins, and draws more than 0?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1946_ladder" (
"club" text,
"wins" real,
"losses" real,
"draws" real,
"against" real
);
Question: What's the highest amount of losses of Camperdown when the against was less than 945?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_of_the_national_championships_19" (
"year" real,
"venue" text,
"men_s_open" text,
"women_s_open" text,
"men_s_35s" text
);
Question: What is the venue later than 1983 with Men's Open of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_of_the_national_championships_19" (
"year" real,
"venue" text,
"men_s_open" text,
"women_s_open" text,
"men_s_35s" text
);
Question: What is the venue earlier than 1995 with Men's Open ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_of_the_national_championships_19" (
"year" real,
"venue" text,
"men_s_open" text,
"women_s_open" text,
"men_s_35s" text
);
Question: What is the Men's 35 in year before 1990 when Men's ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_of_the_national_championships_19" (
"year" real,
"venue" text,
"men_s_open" text,
"women_s_open" text,
"men_s_35s" text
);
Question: In what year was the venue Gold Coast and the Men's ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_of_the_national_championships_19" (
"year" real,
"venue" text,
"men_s_open" text,
"women_s_open" text,
"men_s_35s" text
);
Question: What is the Men's Open when the venue is Perth?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_of_the_national_championships_19" (
"year" real,
"venue" text,
"men_s_open" text,
"women_s_open" text,
"men_s_35s" text
);
Question: What is the year that the Men's 35 is NSW, Women's O... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendances" (
"team" text,
"played" real,
"highest" real,
"lowest" real,
"total" real,
"average" real
);
Question: What is the average for the team with highest less than 13,500 and games pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" real,
"league_cup_goals" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" real,
"league_cup_goals" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" real,
"league_cup_goals" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" real,
"league_cup_goals" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_recognition" (
"index" text,
"score" text,
"palop_rank" text,
"cplp_rank" text,
"n_africa_rank" text,
"world_rank" text,
"year" real
);
Question: What year had a score of 0.58... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_recognition" (
"index" text,
"score" text,
"palop_rank" text,
"cplp_rank" text,
"n_africa_rank" text,
"world_rank" text,
"year" real
);
Question: What's the n Africa in 2012 w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "miss_earth_titleholders" (
"year" real,
"finals_venue" text,
"location" text,
"pageant_date" text,
"number_of_delegates" text
);
Question: What was the final venue for 82 delegates?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "best_selling_albums_in_the_uk" (
"artist" text,
"record_label" text,
"released" text,
"chart_peak" real,
"number_of_times_certified_platinum" text
);
Question: Which Artist has a Record label o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "settlements_on_m40_corridor" (
"place" text,
"population" real,
"ceremonial_county" text,
"main_railway_station" text,
"motorway_junction" text
);
Question: Where is the ceremonial county for m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "settlements_on_m40_corridor" (
"place" text,
"population" real,
"ceremonial_county" text,
"main_railway_station" text,
"motorway_junction" text
);
Question: What was the place that had a main r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scholar_survey_results" (
"president" text,
"schl_1948" text,
"schl_1962" text,
"m_b_1982" text,
"ct_1982" text,
"siena_1982" text,
"siena_1990" text,
"siena_1994" text,
"r_mc_i_1996" te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scholar_survey_results" (
"president" text,
"schl_1948" text,
"schl_1962" text,
"m_b_1982" text,
"ct_1982" text,
"siena_1982" text,
"siena_1990" text,
"siena_1994" text,
"r_mc_i_1996" te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scholar_survey_results" (
"president" text,
"schl_1948" text,
"schl_1962" text,
"m_b_1982" text,
"ct_1982" text,
"siena_1982" text,
"siena_1990" text,
"siena_1994" text,
"r_mc_i_1996" te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "k" (
"club" text,
"league_division" text,
"home_ground" text,
"location" text,
"position_in_2012_13" text
);
Question: Which Location has a Home Ground of Mong kok stadium?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "k" (
"club" text,
"league_division" text,
"home_ground" text,
"location" text,
"position_in_2012_13" text
);
Question: Which club is in the First division?
<|assistant|>
SELECT "club" FROM "k" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "k" (
"club" text,
"league_division" text,
"home_ground" text,
"location" text,
"position_in_2012_13" text
);
Question: What is the Home Ground with the Location n/a for the Club kcdrsc?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "k" (
"club" text,
"league_division" text,
"home_ground" text,
"location" text,
"position_in_2012_13" text
);
Question: What League/Division has a Location of n/a?
<|assistant|>
SELECT "league_d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "k" (
"club" text,
"league_division" text,
"home_ground" text,
"location" text,
"position_in_2012_13" text
);
Question: What Location is in the second division and has 4th, third division (promo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_a_b_2" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: What was the rank of the team who raced at a time of 7:16.13?
<|assistant|>
SELECT "rank" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_a_b_2" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: What is the total number of rank for the country of greece?
<|assistant|>
SELECT COUNT("ran... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_a_b_2" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: What country were the athletes where ranked smaller than 5 with notes listed as fb?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_a_b_2" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: What is the time for the race with the United States?
<|assistant|>
SELECT "time" FROM "sem... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_roster_season_2013_2014" (
"shirt_no" real,
"nationality" text,
"player" text,
"birth_date" text,
"height" real,
"position" text
);
Question: What shirt No has a Birth Date of April 12, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_roster_season_2013_2014" (
"shirt_no" real,
"nationality" text,
"player" text,
"birth_date" text,
"height" real,
"position" text
);
Question: What position that has a Height larger than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_roster_season_2013_2014" (
"shirt_no" real,
"nationality" text,
"player" text,
"birth_date" text,
"height" real,
"position" text
);
Question: What is the shirt no with a position of sett... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_roster_season_2013_2014" (
"shirt_no" real,
"nationality" text,
"player" text,
"birth_date" text,
"height" real,
"position" text
);
Question: What player that has a position of middle bl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_roster_season_2013_2014" (
"shirt_no" real,
"nationality" text,
"player" text,
"birth_date" text,
"height" real,
"position" text
);
Question: What player that has a Nationality of Turkey... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "canoe" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which nation won 29 gold medals?
<|assistant|>
SELECT "nation" FROM "canoe" WHERE "go... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "canoe" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the fewest number of bronze medals won among the nations ranked 12 that won n... |
<|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: What is the FCC info for the translator with frequency... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"country" text,
"builder" text,
"location" text,
"ship" text,
"class_type" text
);
Question: Which ship was launched from Devonport, Devon?
<|assistant|>
SELECT "ship" FROM "see_als... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"country" text,
"builder" text,
"location" text,
"ship" text,
"class_type" text
);
Question: What country was the Pegasus, build by Royal Dockyard, from?
<|assistant|>
SELECT "count... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"country" text,
"builder" text,
"location" text,
"ship" text,
"class_type" text
);
Question: Who was the builder of Gannet from the United Kingdom?
<|assistant|>
SELECT "builder" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"country" text,
"builder" text,
"location" text,
"ship" text,
"class_type" text
);
Question: Who was the builder of Nor?
<|assistant|>
SELECT "builder" FROM "see_also" WHERE "ship"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"country" text,
"builder" text,
"location" text,
"ship" text,
"class_type" text
);
Question: Who was the builder of Brage from Norway?
<|assistant|>
SELECT "builder" FROM "see_also"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"country" text,
"builder" text,
"location" text,
"ship" text,
"class_type" text
);
Question: What country was Brage, built by karljohansverns verft, from?
<|assistant|>
SELECT "coun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which Silver has a Total of 11, and a Gold smaller than 8?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which Silver has a Total of 1, and a Rank of 12?
<|assistant|>
SELECT MIN("sil... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_football_class" text,
"county" text
);
Question: Which IHSAA Football Clas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_football_class" text,
"county" text
);
Question: Which IHSAA Football Clas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_football_class" text,
"county" text
);
Question: Which IHSAA Football Clas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"county" text
);
Question: Which Size has a County of 62 perry?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"county" text
);
Question: Which IHSAA Class has a Size larger than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"county" text
);
Question: Which IHSAA Class has a School of mitche... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"county" text
);
Question: Which County has a Size larger than 258,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
"match" text,
"date" text,
"location" text,
"lineup" text,
"result" text,
"competition" text
);
Question: What was her place in the lineup on match... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"record" text
);
Question: What is the record of the game played on 2/17/1974?
<|assistant|>
SELECT "record" FROM "game_log"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "home_attendance" (
"date" text,
"round" text,
"attendance" real,
"opposition" text,
"stadium" text
);
Question: Which stadium had the opposition of 79,122?
<|assistant|>
SELECT "stadium" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_a_b_2" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: What are the notes of the number 1 rank?
<|assistant|>
SELECT "notes" FROM "semifinal_a_b_2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_a_b_2" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: What's the rank if the time was 5:54.57 and FB in notes?
<|assistant|>
SELECT "rank" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_a_b_2" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: Who are the rowers with the time of 5:54.57?
<|assistant|>
SELECT "rowers" FROM "semifinal_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_a_b_2" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: What are the notes of the United States?
<|assistant|>
SELECT "notes" FROM "semifinal_a_b_2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the gold for a bronze larger than 1, with a total smaller than 10, and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the average total when the silver is larger than 2, and a gold larger ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: When the rank is 11, and bronze a smaller than 1 what is the lowest total?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualified_competitors" (
"position" real,
"gymnast" text,
"a_score" real,
"b_score" real,
"total" real
);
Question: What was the A Score when the B Score was 9.05, and position was larger than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualified_competitors" (
"position" real,
"gymnast" text,
"a_score" real,
"b_score" real,
"total" real
);
Question: What is the total when the B Score was 9.15 for Cheng Fei ( chn )?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualified_competitors" (
"position" real,
"gymnast" text,
"a_score" real,
"b_score" real,
"total" real
);
Question: What was their position when the score of B was less than 9.05, a total was 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualified_competitors" (
"position" real,
"gymnast" text,
"a_score" real,
"b_score" real,
"total" real
);
Question: What is their position when the b score is more than 8.975 for Ekaterina Kram... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "joystiq" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What year had Third-Person Shooter?
<|assistant|>
SELECT AVG("year") FROM "joystiq" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "joystiq" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What year was Portal?
<|assistant|>
SELECT MAX("year") FROM "joystiq" WHERE "game"='portal'... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "joystiq" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: Who was the developer(s) of the genre Adventure?
<|assistant|>
SELECT "developer_s" FROM "j... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "joystiq" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What's the platform of the genre RPG?
<|assistant|>
SELECT "platform_s" FROM "joystiq" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "joystiq" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What's the genre of developer(s) Lionhead Studios?
<|assistant|>
SELECT "genre" FROM "joyst... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "joystiq" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What's year was the genre Adventure?
<|assistant|>
SELECT "year" FROM "joystiq" WHERE "genr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"cardinalatial_order_and_title" text,
"elevated" text,
"elevator" text
);
Question: When was Cardinal-Deacon of S. Giorgio in Velabro el... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"cardinalatial_order_and_title" text,
"elevated" text,
"elevator" text
);
Question: What is the Cardinalatial order and title that Pedro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"cardinalatial_order_and_title" text,
"elevated" text,
"elevator" text
);
Question: What is the nationality of the elector withe the Car... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_7" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What Tournament had Jack Nicklaus as Runner(s)-up?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_7" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What is the Date of the Tournament with a Winning score of −9 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_7" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What is the Winning Score of the Tournament with Jack Nicklaus... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_7" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What is the Runner(s)-up of the Kemper Open Tournament?
<|assi... |
<|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,
"tv_time" text
);
Question: What week has December 19, 2004 as the date?
<|assistant|>
SELECT "week" FROM "schedule" WHERE ... |
<|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,
"tv_time" text
);
Question: What is the highest week that has espn 8:30pm as the TV time?
<|assistant|>
SELECT MAX("week") ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"tv_time" text
);
Question: What result has miami dolphins as the opponent?
<|assistant|>
SELECT "result" FROM "schedule" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What is the Time of the swimmer from Chinese Taipei in Heat 3?
<|assistant|>
SELECT "time" FROM "hea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"dolphins_points" real,
"opponents" real,
"record" text,
"attendance" real
);
Question: What's the Dolphin Points whe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"dolphins_points" real,
"opponents" real,
"record" text,
"attendance" real
);
Question: What's the game with an atten... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nominations_table" (
"week_1" text,
"week_3" text,
"week_4" text,
"week_6" text,
"week_7" text,
"week_8" text,
"week_9" text,
"week_10" text,
"final_week_12" text
);
Question: What was ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.