text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" real,
"box_score" text,
"report" text
);
Question: Who was the away team during the game w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" real,
"box_score" text,
"report" text
);
Question: What was the score of the game which fe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_list" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_list" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_list" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_list" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What was the position of the player from the college ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which college had a pick in a round under 7, with a p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_pastoral_regions" (
"pastoral_region" text,
"episcopal_vicar" text,
"parishes" real,
"high_schools" real,
"elementary_schools" text,
"cemeteries" real
);
Question: How many Parishes i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_pastoral_regions" (
"pastoral_region" text,
"episcopal_vicar" text,
"parishes" real,
"high_schools" real,
"elementary_schools" text,
"cemeteries" real
);
Question: What Pastoral Regio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_pastoral_regions" (
"pastoral_region" text,
"episcopal_vicar" text,
"parishes" real,
"high_schools" real,
"elementary_schools" text,
"cemeteries" real
);
Question: How many High schoo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_pastoral_regions" (
"pastoral_region" text,
"episcopal_vicar" text,
"parishes" real,
"high_schools" real,
"elementary_schools" text,
"cemeteries" real
);
Question: What Pastoral Regio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_appearances" (
"rank" real,
"name" text,
"period" text,
"games" real,
"goals" text
);
Question: What is the name of the person with more than 299 games during the 1995–07 period?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_appearances" (
"rank" real,
"name" text,
"period" text,
"games" real,
"goals" text
);
Question: What is the number of games for Shlomi Avrahami?
<|assistant|>
SELECT COUNT("games") FROM "m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_appearances" (
"rank" real,
"name" text,
"period" text,
"games" real,
"goals" text
);
Question: What is the rank for the period of 1973–89, with less than 423 games.
<|assistant|>
SELECT S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the team 1 when Ulisses is team 2?
<|assistant|>
SELECT "team_1" FROM "first_round" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "temperature_records" (
"year" text,
"2011" text,
"2010" text,
"2009" text,
"2008" text,
"2007" text,
"2006" text,
"2005" text
);
Question: What is 2009, when Year is "Highest Mean Annual ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_sport" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many gold values have totals over 30, bronzes over 35, and are in Swimming?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_sport" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the highest bronze value with silvers over 2, golds under 16, and in Cycling?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_sport" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total associated with Bronzes over 35?
<|assistant|>
SELECT "total" FROM "by_sport" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_sport" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the smallest bronze value associated with golds over 0, silvers over 11, and totals of 36?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_sport" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the average number of golds in athletics associated with over 42 silvers?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_sport" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the smallest number of silvers associated with bronzes under 20, totals of 1, golds of 0, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_one" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What was the lowest pick number for Marc Pilon?
<|assistant|>
SELECT MIN("pick_num") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_one" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What player was from the British Columbia college?
<|assistant|>
SELECT "player" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_one" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What was the highest pick number for the Hamilton tiger-cats?
<|assistant|>
SELECT MAX... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_one" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What was the pick number for the WR position?
<|assistant|>
SELECT "pick_num" FROM "ro... |
<|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: Can you tell me the Goal that has the Result of 2-0?
<|assistant|>
SELECT "goal" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_10_prizes" (
"rank" text,
"event" text,
"place" text,
"name" text,
"prize" text
);
Question: What is Place, when Prize is "$381.030"?
<|assistant|>
SELECT "place" FROM "top_10_prizes" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_10_prizes" (
"rank" text,
"event" text,
"place" text,
"name" text,
"prize" text
);
Question: What is Rank, when Event is "LAPT3 Punta Del Este"?
<|assistant|>
SELECT "rank" FROM "top_10_pri... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_10_prizes" (
"rank" text,
"event" text,
"place" text,
"name" text,
"prize" text
);
Question: What is Name, when Prize is "$279.330"?
<|assistant|>
SELECT "name" FROM "top_10_prizes" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_10_prizes" (
"rank" text,
"event" text,
"place" text,
"name" text,
"prize" text
);
Question: What is Prize, when Rank is "2nd"?
<|assistant|>
SELECT "prize" FROM "top_10_prizes" WHERE "rank... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_10_prizes" (
"rank" text,
"event" text,
"place" text,
"name" text,
"prize" text
);
Question: What is Rank, when Event is "LAPT4 São Paulo"?
<|assistant|>
SELECT "rank" FROM "top_10_prizes" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_10_prizes" (
"rank" text,
"event" text,
"place" text,
"name" text,
"prize" text
);
Question: What is Prize, when Name is "Valdemar Kwaysser"?
<|assistant|>
SELECT "prize" FROM "top_10_prize... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "features" (
"fieldbus" text,
"bus_power" text,
"cabling_redundancy" text,
"synchronisation" text,
"sub_millisecond_cycle" text
);
Question: What is the bus power for the Controlnet Fieldbus?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "features" (
"fieldbus" text,
"bus_power" text,
"cabling_redundancy" text,
"synchronisation" text,
"sub_millisecond_cycle" text
);
Question: What is the millisecond cycle for the Fieldbus?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "features" (
"fieldbus" text,
"bus_power" text,
"cabling_redundancy" text,
"synchronisation" text,
"sub_millisecond_cycle" text
);
Question: What is the synchronisation for the controlnet fieldb... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Position has a College of colorado?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which College has an Overall larger than 211, a Posit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Overall has a College of michigan state, a Posi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Round has a College of arizona?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Overall has a Round of 7?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Round has a Pick larger than 1?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_robin" (
"locale" text,
"skip" text,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" text
);
Question: In italy, when the stolen ends were 10 and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_robin" (
"locale" text,
"skip" text,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" text
);
Question: When ends won were below 57 but stolen ends... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "values" (
"constellation" text,
"largest_component_fractional_share" real,
"other_components_fractional_shares" text,
"n_laakso_taagepera" real,
"n_golosov" real
);
Question: What is the highes... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "values" (
"constellation" text,
"largest_component_fractional_share" real,
"other_components_fractional_shares" text,
"n_laakso_taagepera" real,
"n_golosov" real
);
Question: What is the sum of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "values" (
"constellation" text,
"largest_component_fractional_share" real,
"other_components_fractional_shares" text,
"n_laakso_taagepera" real,
"n_golosov" real
);
Question: What is the sum of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "values" (
"constellation" text,
"largest_component_fractional_share" real,
"other_components_fractional_shares" text,
"n_laakso_taagepera" real,
"n_golosov" real
);
Question: What is the averag... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "values" (
"constellation" text,
"largest_component_fractional_share" real,
"other_components_fractional_shares" text,
"n_laakso_taagepera" real,
"n_golosov" real
);
Question: What is the lowest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What was the attendance record for Leicester City?
<|assistant|>
SELECT "at... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What was the attendance for Arsenal?
<|assistant|>
SELECT "attendance" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: Who was the home team against the Bolton Wanderers?
<|assistant|>
SELECT "h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"location" text
);
Question: Who was the opponent of the match in South D... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "branches_and_at_ms_of_scheduled_commerci" (
"bank_type" text,
"number_of_branches" real,
"on_site_at_ms" real,
"off_site_at_ms" real,
"total_at_ms" real
);
Question: What is the total ATMs with... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "branches_and_at_ms_of_scheduled_commerci" (
"bank_type" text,
"number_of_branches" real,
"on_site_at_ms" real,
"off_site_at_ms" real,
"total_at_ms" real
);
Question: What is the total number of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "branches_and_at_ms_of_scheduled_commerci" (
"bank_type" text,
"number_of_branches" real,
"on_site_at_ms" real,
"off_site_at_ms" real,
"total_at_ms" real
);
Question: What is the minimum total A... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "branches_and_at_ms_of_scheduled_commerci" (
"bank_type" text,
"number_of_branches" real,
"on_site_at_ms" real,
"off_site_at_ms" real,
"total_at_ms" real
);
Question: What is the mean on-site AT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "branches_and_at_ms_of_scheduled_commerci" (
"bank_type" text,
"number_of_branches" real,
"on_site_at_ms" real,
"off_site_at_ms" real,
"total_at_ms" real
);
Question: With foreign banks as the b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "enemy_aircraft_shot_down_or_disabled_by_" (
"pilot" text,
"date" text,
"place" text,
"weapon" text,
"effect" text
);
Question: What is Effect, when Weapon is "35mm/Small arms fire"?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "enemy_aircraft_shot_down_or_disabled_by_" (
"pilot" text,
"date" text,
"place" text,
"weapon" text,
"effect" text
);
Question: What is Date, when Effect is "Shot Down", and when Place is "South... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "enemy_aircraft_shot_down_or_disabled_by_" (
"pilot" text,
"date" text,
"place" text,
"weapon" text,
"effect" text
);
Question: What is Place, when Weapon is "35mm fire", and when Date is "27 Ma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "enemy_aircraft_shot_down_or_disabled_by_" (
"pilot" text,
"date" text,
"place" text,
"weapon" text,
"effect" text
);
Question: What is Pilot, when Place is "Goose Green", and when Date is "27 M... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "enemy_aircraft_shot_down_or_disabled_by_" (
"pilot" text,
"date" text,
"place" text,
"weapon" text,
"effect" text
);
Question: What is Place, when Weapon is "35mm/Small arms fire"?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "enemy_aircraft_shot_down_or_disabled_by_" (
"pilot" text,
"date" text,
"place" text,
"weapon" text,
"effect" text
);
Question: What is Pilot, when Weapon is "35mm fire", and when Date is "4 May... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o" (
"player" text,
"nationality" text,
"jersey_number_s" real,
"position" text,
"years" text,
"from" text
);
Question: Where is the player from that has a Jersey Number(s) greater than 0 in ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o" (
"player" text,
"nationality" text,
"jersey_number_s" real,
"position" text,
"years" text,
"from" text
);
Question: Who is the player with a Jersey Number(s) greater than 30?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o" (
"player" text,
"nationality" text,
"jersey_number_s" real,
"position" text,
"years" text,
"from" text
);
Question: What is the Years of the player with Jersey Number(s) of 44?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_korea_rok" (
"city" text,
"korean" text,
"hanja" text,
"province" text,
"population_2010" real
);
Question: What was the population in North Jeolla?
<|assistant|>
SELECT "population_2010"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_korea_rok" (
"city" text,
"korean" text,
"hanja" text,
"province" text,
"population_2010" real
);
Question: What's Korean for 南楊州 Hanja?
<|assistant|>
SELECT "korean" FROM "south_korea_ro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_korea_rok" (
"city" text,
"korean" text,
"hanja" text,
"province" text,
"population_2010" real
);
Question: What's the Korean word for Pohang?
<|assistant|>
SELECT "korean" FROM "south_ko... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_teams" (
"institution" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"team_nickname" text,
"primary_conference" text
);
Question: What's the team nick... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_teams" (
"institution" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"team_nickname" text,
"primary_conference" text
);
Question: What's the total enr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"season" real,
"team_1" text,
"score" text,
"team_2" text,
"venue" text
);
Question: What year did Bangkok University and Chunnam Dragons have a score of 0-0?
<|assistant|>
SELECT SU... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
);
Question: What is the transfer window for Christian Nerlinger?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
);
Question: What is the name for the end of contract because they're moving to Falk... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
);
Question: What type of transfer window is winter in Ita?
<|assistant|>
SELECT "ty... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
);
Question: What is the type of loan and the transfer fee loan?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"team" text,
"score" text,
"record" text,
"streak" text
);
Question: On what date did a streak start on November 14?
<|assistant|>
SELECT "streak"... |
<|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,
"location_attendance" text,
"record" text
);
Question: What was the score of game 36?
<|assistant|>
SELECT "score" FROM "g... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cable_stayed_bridges_under_construction_" (
"name" text,
"location" text,
"country" text,
"longest_span" text,
"pylons" real
);
Question: Where was the third bridge over panama canal?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "passing" (
"name" text,
"rating" real,
"comp" real,
"long" real,
"yds_game" real
);
Question: Name the Comp which has a Name of smith?
<|assistant|>
SELECT "comp" FROM "passing" WHERE "name"='s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "passing" (
"name" text,
"rating" real,
"comp" real,
"long" real,
"yds_game" real
);
Question: Name the sum of Comp which has a Yds/game smaller than 209.5,brytus Name, and a Rating smaller than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "passing" (
"name" text,
"rating" real,
"comp" real,
"long" real,
"yds_game" real
);
Question: Name the highest Comp which has a Yds/game larger than 0, bostick, and a Rating smaller than 91.77?... |
<|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: Can you tell me the sum of Score that has the Place of t5, and the Country of united states,... |
<|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,
"location" text
);
Question: Which event had a decision method?
<|assistant|>
SELECT "eve... |
<|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,
"location" text
);
Question: Where was the method of tko?
<|assistant|>
SELECT "location"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_10_men" (
"rank" text,
"time" text,
"athlete" text,
"nation" text,
"date" text,
"race" text
);
Question: What is the time of kenya, which is ranked 2?
<|assistant|>
SELECT "time" FROM "to... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_10_men" (
"rank" text,
"time" text,
"athlete" text,
"nation" text,
"date" text,
"race" text
);
Question: What race is on 26 June 2011?
<|assistant|>
SELECT "race" FROM "top_10_men" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_10_men" (
"rank" text,
"time" text,
"athlete" text,
"nation" text,
"date" text,
"race" text
);
Question: What is the time of the peachtree road race in kenya?
<|assistant|>
SELECT "time" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
);
Question: What is the nationality of the person who played small forward?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
);
Question: What position did Rich Manning play?
<|assistant|>
SELECT "position" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
);
Question: What position did the player who was with the grizzlies from 2007-2009 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "selections" (
"draft" real,
"round" real,
"pick" real,
"player" text,
"college_high_school_club" text
);
Question: Who is the player in the 2008 draft with a pick greater than 5?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "selections" (
"draft" real,
"round" real,
"pick" real,
"player" text,
"college_high_school_club" text
);
Question: What is the total pick number of the player from a round greater than 1, a dra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "selections" (
"draft" real,
"round" real,
"pick" real,
"player" text,
"college_high_school_club" text
);
Question: What is the lowest draft number with a 48 pick?
<|assistant|>
SELECT MIN("draf... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"name" text,
"position" text,
"college" text,
"aafc_team" text
);
Question: Which Name has a AAFC Team of los angeles dons, and... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.