text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_masters" (
"name" text,
"employed" text,
"position_held" text,
"honour" text,
"citation" text
);
Question: What are the years employed shown for mathematics & prefect master?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_masters" (
"name" text,
"employed" text,
"position_held" text,
"honour" text,
"citation" text
);
Question: What citation is shown for the employed years of 1970–1996?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_masters" (
"name" text,
"employed" text,
"position_held" text,
"honour" text,
"citation" text
);
Question: What is the name of the person employed 1970–2005?
<|assistant|>
SELECT "name"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "repechage_1" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: What is the Time of the Rowers from Finland with a Rank of less than 4?
<|assistant|>
SELECT "t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "repechage_1" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: What is the Rank of the Rowers with a Time of 7:30.92?
<|assistant|>
SELECT SUM("rank") FROM "r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "repechage_1" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: What are the Notes of the Country of finland?
<|assistant|>
SELECT "notes" FROM "repechage_1" W... |
<|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: Who were the opponents for week 12?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polls" (
"date_s_released" text,
"polling_institute" text,
"nationalist" text,
"labour" text,
"democratic_alternative" text,
"undecided_no_answer" text,
"lead" text
);
Question: Whi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polls" (
"date_s_released" text,
"polling_institute" text,
"nationalist" text,
"labour" text,
"democratic_alternative" text,
"undecided_no_answer" text,
"lead" text
);
Question: Whi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polls" (
"date_s_released" text,
"polling_institute" text,
"nationalist" text,
"labour" text,
"democratic_alternative" text,
"undecided_no_answer" text,
"lead" text
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polls" (
"date_s_released" text,
"polling_institute" text,
"nationalist" text,
"labour" text,
"democratic_alternative" text,
"undecided_no_answer" text,
"lead" text
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polls" (
"date_s_released" text,
"polling_institute" text,
"nationalist" text,
"labour" text,
"democratic_alternative" text,
"undecided_no_answer" text,
"lead" text
);
Question: Whi... |
<|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 lowest week that has Minnesota Vikings as the opponent?
<|assistant|>
SELECT MIN... |
<|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 opponent has December 6, 1964 as the date?
<|assistant|>
SELECT "opponent" FROM "schedu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What was the attendance of the game on September 18, 1965 before week 3?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What was the result of the game before week 3 with an attendance of 53,658?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What was the earliest week on September 26, 1965?
<|assistant|>
SELECT MIN("week") FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tallest_buildings" (
"rank" text,
"name" text,
"height_ft_m" text,
"floors" real,
"year" real,
"address" text
);
Question: What is the total time for one south broad?
<|assistant|>
SELECT SUM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tallest_buildings" (
"rank" text,
"name" text,
"height_ft_m" text,
"floors" real,
"year" real,
"address" text
);
Question: What is the 123 south broad street address name before 1973?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
Question: Which competition has goals less than 2?
<|assistant|>
SELECT "competition" FROM "i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
Question: What's the result of a goal larger than 4?
<|assistant|>
SELECT "result" FROM "inte... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
);
Question: tell me the type that has the marostica to bibione course.
<|assistant|>
SELECT "type" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
);
Question: who won on 29 may?
<|assistant|>
SELECT "winner" FROM "stage_results" WHERE "date"='29 may'... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "territorial_house" (
"name" text,
"party" text,
"hometown" text,
"division" text,
"term" text,
"legislatures" text
);
Question: What is the term for hometown Ester Creek?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the number of Gold medals for the Nation with a Total of 5 and Rank lar... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total number of Silver for the Nation with more than 1 Bronze and a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: In what round was the loss at... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tauranga_city" (
"name" text,
"gender" text,
"area" text,
"authority" text,
"decile" real
);
Question: What is the smallest decile with an Area of otumoetai?
<|assistant|>
SELECT MIN("decile") ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tauranga_city" (
"name" text,
"gender" text,
"area" text,
"authority" text,
"decile" real
);
Question: Which decile has an Area of welcome bay, and an Authority of state?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tauranga_city" (
"name" text,
"gender" text,
"area" text,
"authority" text,
"decile" real
);
Question: How many deciles have a Gender of coed, an Authority of state, and a Name of mount maungan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tauranga_city" (
"name" text,
"gender" text,
"area" text,
"authority" text,
"decile" real
);
Question: Which name has a Decile of 5, and an Area of tauranga?
<|assistant|>
SELECT "name" FROM "t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tauranga_city" (
"name" text,
"gender" text,
"area" text,
"authority" text,
"decile" real
);
Question: Which Authority has a Gender of coed, a Decile smaller than 6, and an Area of merivale?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tauranga_city" (
"name" text,
"gender" text,
"area" text,
"authority" text,
"decile" real
);
Question: What is the smallest decile with a Name of st mary's catholic school?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_movement_of_jews_from_former_" (
"year" text,
"births_000s" real,
"deaths" real,
"natural_growth" real,
"total_fertility_rate" text
);
Question: What is the average birth rate that h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_movement_of_jews_from_former_" (
"year" text,
"births_000s" real,
"deaths" real,
"natural_growth" real,
"total_fertility_rate" text
);
Question: What was the amount of deaths that ha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_movement_of_jews_from_former_" (
"year" text,
"births_000s" real,
"deaths" real,
"natural_growth" real,
"total_fertility_rate" text
);
Question: What is the average births that had a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_movement_of_jews_from_former_" (
"year" text,
"births_000s" real,
"deaths" real,
"natural_growth" real,
"total_fertility_rate" text
);
Question: What was the amount of Births (000s) ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_movement_of_jews_from_former_" (
"year" text,
"births_000s" real,
"deaths" real,
"natural_growth" real,
"total_fertility_rate" text
);
Question: What was the total fertility rate tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "28_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
);
Question: How many votes did the security guard get?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "28_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
);
Question: What is John Marvin Wierenga's occupation?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "investment" (
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"total" real,
"average_annual" real
);
Question: What is the average value for 2005, when the v... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "investment" (
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"total" real,
"average_annual" real
);
Question: What is the average value for 2005, when the v... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" text,
"finish" text,
"team" text,
"tournament" text,
"role" text
);
Question: In what Year was 1st Division El Salvador with a Finish of Champion and a Team of Fas?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" text,
"finish" text,
"team" text,
"tournament" text,
"role" text
);
Question: In what Year was the Finish Champions?
<|assistant|>
SELECT "year" FROM "achievements" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" text,
"finish" text,
"team" text,
"tournament" text,
"role" text
);
Question: During the Tournament of 1st Division El Salvador, what was the Finish for the Team of Plate... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" text,
"finish" text,
"team" text,
"tournament" text,
"role" text
);
Question: What is the Role in the 1st Division Honduras Tournament?
<|assistant|>
SELECT "role" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" text,
"finish" text,
"team" text,
"tournament" text,
"role" text
);
Question: What is the Tournament in the Year of 1986?
<|assistant|>
SELECT "tournament" FROM "achievem... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" text,
"finish" text,
"team" text,
"tournament" text,
"role" text
);
Question: During the Tournament of Torneo Fraternidad/UNCAF Club championship, what is the Role of the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What is the record of teams that play the yankees, and lose at mulholland (5... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which total is highest with 0 gold and more than 0 silver, in Ukraine?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total rank with more than 2 silver and total larger than 10?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total rank with a total larger than 2, and less than 0 gold
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which is the highest bronze with gold less than 0?
<|assistant|>
SELECT MAX("br... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total with a rank less than 5, gold larger than 5 and bronze larger... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
Question: Result of 1st, and an Extra of 4 x 400 m relay is in what lowest year?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
Question: a Year smaller than 2007, and a Result of 1st is in what venue?
<|assistant|>
SELECT "venu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
Question: Venue of melbourne , australia, and a Extra of 200 m has what results?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
Question: Result of 1st, and a Venue of melbourne , australia, and a Extra of 100 m happened in whic... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variations_on_the_theme" (
"num_tubes" text,
"converter" text,
"det_pre_amp" text,
"audio_amp" text,
"rectifier" text
);
Question: Name the rectifier for Det/Pre-amp of x and # tubes of 4
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variations_on_the_theme" (
"num_tubes" text,
"converter" text,
"det_pre_amp" text,
"audio_amp" text,
"rectifier" text
);
Question: Name the # tubes with Det/Pre-amp of x and audio amp of x x (p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variations_on_the_theme" (
"num_tubes" text,
"converter" text,
"det_pre_amp" text,
"audio_amp" text,
"rectifier" text
);
Question: Name the det/pre-amp with # of tubes of 8
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variations_on_the_theme" (
"num_tubes" text,
"converter" text,
"det_pre_amp" text,
"audio_amp" text,
"rectifier" text
);
Question: Name the det/pre-amp with # tubes of 4 and rectifier of x
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variations_on_the_theme" (
"num_tubes" text,
"converter" text,
"det_pre_amp" text,
"audio_amp" text,
"rectifier" text
);
Question: Name the # tubes with audio amp of x
<|assistant|>
SELECT "num... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
Question: What type of Competition has a Goal of 3?
<|assistant|>
SELECT "competition" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
Question: Which Competition has the Date July 1, 2000?
<|assistant|>
SELECT "competition" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "external_links" (
"representative" text,
"years" text,
"state" text,
"party" text,
"lifespan" text
);
Question: Which years did James Robert Jones serve?
<|assistant|>
SELECT "years" FROM "exte... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "external_links" (
"representative" text,
"years" text,
"state" text,
"party" text,
"lifespan" text
);
Question: James Hutchins Johnson, from New Hampshire, served during what years?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_record" (
"season" text,
"team_name" text,
"games" real,
"losses" real,
"points" real
);
Question: Who is the team that has played more than 18 games and has 6 losses?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_record" (
"season" text,
"team_name" text,
"games" real,
"losses" real,
"points" real
);
Question: Which season did the Burnaby Lakers have less than 16 points and less than 18 losses?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_record" (
"season" text,
"team_name" text,
"games" real,
"losses" real,
"points" real
);
Question: Which team had more than 15 losses in 1988?
<|assistant|>
SELECT "team_name" FROM "al... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_record" (
"season" text,
"team_name" text,
"games" real,
"losses" real,
"points" real
);
Question: How many losses did the Burnaby Lakers accumulate when they scored 8 points in 1998 p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: What was the school for the player who was a DL?
<|assistant|>
SELECT "school_club_t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: Which pick was used on Ian Hazlett?
<|assistant|>
SELECT MIN("pick") FROM "cfl_draft... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "available_keypads" (
"supplier" text,
"basic_shape" text,
"keys_x_modes" text,
"wrist_pad" text,
"thumb_stick" text,
"backlit" text
);
Question: Which Thumb stick has a Basic shape of curved,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "available_keypads" (
"supplier" text,
"basic_shape" text,
"keys_x_modes" text,
"wrist_pad" text,
"thumb_stick" text,
"backlit" text
);
Question: Which Thumb stick has a Wrist pad of no, and a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "available_keypads" (
"supplier" text,
"basic_shape" text,
"keys_x_modes" text,
"wrist_pad" text,
"thumb_stick" text,
"backlit" text
);
Question: Which keys (x modes) have a Supplier of wolfki... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "available_keypads" (
"supplier" text,
"basic_shape" text,
"keys_x_modes" text,
"wrist_pad" text,
"thumb_stick" text,
"backlit" text
);
Question: Which Supplier have a Basic shape of flat, a W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"time" text,
"att" real,
"record" text
);
Question: Who was the opponent with the time 3:59?
<|assistant|>
SELECT "oppon... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ifl_champions" (
"season" text,
"champion" text,
"runner_up" text,
"israel_bowl" text,
"venue" text,
"date" text,
"finals_mvp" text
);
Question: Name the Israel Bowl for march 30, 2012
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ifl_champions" (
"season" text,
"champion" text,
"runner_up" text,
"israel_bowl" text,
"venue" text,
"date" text,
"finals_mvp" text
);
Question: Name the venue for march 28, 2008
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ifl_champions" (
"season" text,
"champion" text,
"runner_up" text,
"israel_bowl" text,
"venue" text,
"date" text,
"finals_mvp" text
);
Question: Name the champion for israel bowl of iv
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ifl_champions" (
"season" text,
"champion" text,
"runner_up" text,
"israel_bowl" text,
"venue" text,
"date" text,
"finals_mvp" text
);
Question: Name the season for runner up of judean rebe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_town_tramway_systems_in_the_neth" (
"name_of_system" text,
"location" text,
"traction_type" text,
"date_from" text,
"date_to" text
);
Question: On what date did the event begin that had... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_town_tramway_systems_in_the_neth" (
"name_of_system" text,
"location" text,
"traction_type" text,
"date_from" text,
"date_to" text
);
Question: On what date did the event at Zaltbommel ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_town_tramway_systems_in_the_neth" (
"name_of_system" text,
"location" text,
"traction_type" text,
"date_from" text,
"date_to" text
);
Question: At what location did the event that used ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the to par of the player from England with a t1 place?
<|assistant|>
SELECT "to_par"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the country sergio garcía, who has a score of 69-70-67=206, is from?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the to par of the player from the United States with a t5 place?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the to par of the player from the United States with a score of 69-68-65=202?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: How many lanes had a rank smaller than 4 and a time of 2:01.51?
<|assistant|>
SELECT COUNT("la... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What was the time of the person in lane 7?
<|assistant|>
SELECT "time" FROM "semifinal_2" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "largest_employers" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"employees" real,
"reference_date" real
);
Question: How many employees at nokia, ranked under 3?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "incoming_transfers" (
"rank" real,
"year" real,
"name" text,
"moving_from" text,
"moving_to" text
);
Question: The person with a rank of 8 moving to Shakhtar Donetsk was moving from what Ukrain... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "incoming_transfers" (
"rank" real,
"year" real,
"name" text,
"moving_from" text,
"moving_to" text
);
Question: Ismaël Bangoura with a rank larger than 5 after the year 2005 was moving to what f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "incoming_transfers" (
"rank" real,
"year" real,
"name" text,
"moving_from" text,
"moving_to" text
);
Question: The player with a rank of 9, made a move from what football club?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "incoming_transfers" (
"rank" real,
"year" real,
"name" text,
"moving_from" text,
"moving_to" text
);
Question: Moving from Nancy after 2005, what is listed as the lowest rank?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "incoming_transfers" (
"rank" real,
"year" real,
"name" text,
"moving_from" text,
"moving_to" text
);
Question: What is the listed year that has a rank smaller than 8 and moving from Olympiacos?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "clubs_stadiums_and_locations" (
"team" text,
"city" text,
"state" text,
"home_venue" text,
"capacity" real
);
Question: Which team plays in Goa, Salcette?
<|assistant|>
SELECT "home_venue" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "clubs_stadiums_and_locations" (
"team" text,
"city" text,
"state" text,
"home_venue" text,
"capacity" real
);
Question: Where is the home venue of Bengaluru FC?
<|assistant|>
SELECT "home_venue... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "clubs_stadiums_and_locations" (
"team" text,
"city" text,
"state" text,
"home_venue" text,
"capacity" real
);
Question: What is the state of the team who plays in Mumbai?
<|assistant|>
SELECT "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.