text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_by_nation" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Name the average total for gold less than 1 and rank less than 5
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_by_nation" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Name the sum of silver when total is mor ethan 1, bronze is 1 and gold is les than 0
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_by_nation" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Name the most gold when bronze is more than 0 and rank is more than 5 with total more ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_by_nation" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Name the average bronze with silver more than 0, total of 6 and gold more than 0
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_by_nation" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Name the sum of total with gold more than 1 and bronze more than 0
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2005" (
"category" text,
"film" text,
"director_s" text,
"country" text,
"nominating_festival" text
);
Question: What country did Jonas Geirnaert direct a film in?
<|assistant|>
SELECT "country... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2005" (
"category" text,
"film" text,
"director_s" text,
"country" text,
"nominating_festival" text
);
Question: What Nominating Festival took place in Germany?
<|assistant|>
SELECT "nominating... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2005" (
"category" text,
"film" text,
"director_s" text,
"country" text,
"nominating_festival" text
);
Question: What is the category of the film made in Switzerland?
<|assistant|>
SELECT "cate... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2005" (
"category" text,
"film" text,
"director_s" text,
"country" text,
"nominating_festival" text
);
Question: What film was directed by Sandro Aguilar?
<|assistant|>
SELECT "film" FROM "2005... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
Question: Name the language that has number of 14
<|assistant|>
SELECT "language" FROM "langua... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
Question: Name the number which has language of other
<|assistant|>
SELECT "number" FROM "lang... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" text,
"league" text,
"regular_season" text,
"playoffs" text,
"u_s_open_cup" text,
"avg_attendance" text
);
Question: Which regular season was 2013 in... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" text,
"league" text,
"regular_season" text,
"playoffs" text,
"u_s_open_cup" text,
"avg_attendance" text
);
Question: What year did the team make conf... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_the_50_largest_country_subdivisi" (
"rank" real,
"subdivision_name" text,
"country" text,
"area_km" real,
"population" real
);
Question: What's the name of a subdivision in Denmark rank... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_the_50_largest_country_subdivisi" (
"rank" real,
"subdivision_name" text,
"country" text,
"area_km" real,
"population" real
);
Question: What's the smallest area in Russia that is ranke... |
<|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,
"record" text
);
Question: On the date of June 8 what was the record?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "d... |
<|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,
"record" text
);
Question: On the date of June 15 what was the score?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "da... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_seven" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What College/junior/club had a player of Unit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_seven" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What is the college/junior/club team of the d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_american_le_mans_series_results" (
"year" real,
"entrant" text,
"class" text,
"chassis" text,
"engine" text,
"tyres" text,
"rank" text,
"points" real
);
Question: What is the ran... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_american_le_mans_series_results" (
"year" real,
"entrant" text,
"class" text,
"chassis" text,
"engine" text,
"tyres" text,
"rank" text,
"points" real
);
Question: What is the ent... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_american_le_mans_series_results" (
"year" real,
"entrant" text,
"class" text,
"chassis" text,
"engine" text,
"tyres" text,
"rank" text,
"points" real
);
Question: What is the ran... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_american_le_mans_series_results" (
"year" real,
"entrant" text,
"class" text,
"chassis" text,
"engine" text,
"tyres" text,
"rank" text,
"points" real
);
Question: What is the eng... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bt_global_challenge_2000_1" (
"overall_place" text,
"yacht_name" text,
"skipper" text,
"points" text,
"combined_elapsed_time" text
);
Question: Which points have a Combined elapsed time of 175d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bt_global_challenge_2000_1" (
"overall_place" text,
"yacht_name" text,
"skipper" text,
"points" text,
"combined_elapsed_time" text
);
Question: Which yacht name has a Combined elapsed time of 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bt_global_challenge_2000_1" (
"overall_place" text,
"yacht_name" text,
"skipper" text,
"points" text,
"combined_elapsed_time" text
);
Question: Which skipper has 78 points?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bt_global_challenge_2000_1" (
"overall_place" text,
"yacht_name" text,
"skipper" text,
"points" text,
"combined_elapsed_time" text
);
Question: Which points have an Overall place of 9=, and a S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bt_global_challenge_2000_1" (
"overall_place" text,
"yacht_name" text,
"skipper" text,
"points" text,
"combined_elapsed_time" text
);
Question: Which Overall place has a Yacht name of lg flatro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bt_global_challenge_2000_1" (
"overall_place" text,
"yacht_name" text,
"skipper" text,
"points" text,
"combined_elapsed_time" text
);
Question: Which Combined elapsed time has a Skipper of step... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: Before the year 1988, what is the lowest number of points that entrant Col... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: Which chassis used by the entrant Automobiles Gonfaronnaises Sportives sco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: Who was the entrant before 1988?
<|assistant|>
SELECT "entrant" FROM "comp... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: Which engine was used in 1987?
<|assistant|>
SELECT "engine" FROM "complet... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" text,
"league" text,
"reg_season" text,
"playoffs" text,
"open_cup" text
);
Question: What league did they play in 2001?
<|assistant|>
SELECT "league" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" text,
"league" text,
"reg_season" text,
"playoffs" text,
"open_cup" text
);
Question: What open cup did they play in when they finished 2nd, northeast ... |
<|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 week with a date of October 9, 1983, and attendance smaller than 40,492?
<|assis... |
<|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 attendance with week 14?
<|assistant|>
SELECT MIN("attendance") FROM "sch... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"opponent" text,
"result" text,
"game_site" text,
"attendance" real
);
Question: Where did the Oakland Raiders play in week 12 of their 1976 season?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: How many years did Barclay Nordica Arrows BMW enter with Coswo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: How many years did barclay nordica arrows bmw enter with a bmw... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: How many years was ensign n180b a Chassis with 4 points?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_regular_season_football_standings" (
"school" text,
"team" text,
"division_record" text,
"overall_record" text,
"season_outcome" text
);
Question: What is the division record for the India... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_regular_season_football_standings" (
"school" text,
"team" text,
"division_record" text,
"overall_record" text,
"season_outcome" text
);
Question: What is the overall record of Indian Rive... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_regular_season_football_standings" (
"school" text,
"team" text,
"division_record" text,
"overall_record" text,
"season_outcome" text
);
Question: What was the season outcome of Lake Fores... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kawerau_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real
);
Question: How many Deciles are coed?
<|assistant|>
SELECT COUNT("decile") FROM "k... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kawerau_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real
);
Question: Which is the lowest Decile that is coed?
<|assistant|>
SELECT MIN("deci... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kawerau_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real
);
Question: What are the years for Kawerau Putauaki School?
<|assistant|>
SELECT "y... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round_race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
Question: What is the round or race of th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"performance" text
);
Question: What was the earliest year in which long jump was performed in the world indoor C... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"performance" text
);
Question: What was the latest year in which she took 4th position in Budapest, Hungary?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "apollo_astronauts_who_walked_on_the_moon" (
"name" text,
"born" text,
"age_at_first_step" text,
"mission" text,
"lunar_eva_dates" text,
"service" text
);
Question: Which astronaut went on the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "apollo_astronauts_who_walked_on_the_moon" (
"name" text,
"born" text,
"age_at_first_step" text,
"mission" text,
"lunar_eva_dates" text,
"service" text
);
Question: David Scott went on which m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "apollo_astronauts_who_walked_on_the_moon" (
"name" text,
"born" text,
"age_at_first_step" text,
"mission" text,
"lunar_eva_dates" text,
"service" text
);
Question: The astronaut who was 37y 8... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "apollo_astronauts_who_walked_on_the_moon" (
"name" text,
"born" text,
"age_at_first_step" text,
"mission" text,
"lunar_eva_dates" text,
"service" text
);
Question: Pete Conrad was on the Apol... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "apollo_astronauts_who_walked_on_the_moon" (
"name" text,
"born" text,
"age_at_first_step" text,
"mission" text,
"lunar_eva_dates" text,
"service" text
);
Question: The Apollo astronaut who wa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_american_le_mans_series_results" (
"year" real,
"entrant" text,
"class" text,
"chassis" text,
"engine" text,
"rank" text,
"points" text
);
Question: Which class has a year prior to... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_american_le_mans_series_results" (
"year" real,
"entrant" text,
"class" text,
"chassis" text,
"engine" text,
"rank" text,
"points" text
);
Question: Which engine has a year later t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_american_le_mans_series_results" (
"year" real,
"entrant" text,
"class" text,
"chassis" text,
"engine" text,
"rank" text,
"points" text
);
Question: How many years has an engine of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_american_le_mans_series_results" (
"year" real,
"entrant" text,
"class" text,
"chassis" text,
"engine" text,
"rank" text,
"points" text
);
Question: Which entrant has 25th as the r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_won" real,
"total" real,
"to_par" real
);
Question: What is the average year Rich Beem had a to par less than 17?
<|assistant|>
SELECT AVG... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_won" real,
"total" real,
"to_par" real
);
Question: What is the earliest year won with a total bigger than 156?
<|assistant|>
SELECT MIN("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_won" real,
"total" real,
"to_par" real
);
Question: What is the total for Bob Tway for the year won before 2002 with a to par bigger than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_won" real,
"total" real,
"to_par" real
);
Question: What is the to par for Paul Azinger from the United States after 1986 for a total bigg... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_won" real,
"total" real,
"to_par" real
);
Question: What is the earliest year won Paul Azinger had with a to par higher than 5?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_won" real,
"total" real,
"to_par" real
);
Question: What is the year won by Australia with a to par bigger than 16?
<|assistant|>
SELECT C... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"representative" text,
"years" text,
"state" text,
"party" text,
"lifespan" text
);
Question: What is the Lifespan when the Representative is Theodore F. Kluttz?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"opponent" text,
"result" text,
"game_site" text,
"attendance" real
);
Question: What week's game had a result of l 35–37?
<|assistant|>
SELECT "week" FROM "schedule" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What year was trio brdeact wind allass the entrant?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What is the year when kurtis kraft 500f was the chassis?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What is the earliest year when the points were more than 0?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "clutha_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: What's the school name in Balclutha that has a Decile of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "clutha_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Which school in Balclutha has a roll smaller than 55?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "edmonton_oilers_4_winnipeg_jets_1" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: When has winnipeg jets with a Score of 4–6?
<|assistant|>
SELECT "date" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "edmonton_oilers_4_winnipeg_jets_1" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: When is Edmonton Oilers in?
<|assistant|>
SELECT "date" FROM "edmonton_oi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "edmonton_oilers_4_winnipeg_jets_1" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the Score that has a Winnipeg Jets as Visitor on april 7?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "edmonton_oilers_4_winnipeg_jets_1" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the Score on April 6?
<|assistant|>
SELECT "score" FROM "edmonton... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "edmonton_oilers_4_winnipeg_jets_1" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: When has a Record of 1–0?
<|assistant|>
SELECT "date" FROM "edmonton_oile... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "llws_results" (
"year" real,
"champion" text,
"city" text,
"llws" text,
"record" text
);
Question: What is the LLWS when the Year is 2003?
<|assistant|>
SELECT "llws" FROM "llws_results" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "llws_results" (
"year" real,
"champion" text,
"city" text,
"llws" text,
"record" text
);
Question: What is the earliest Year when the City is Peabody?
<|assistant|>
SELECT MIN("year") FROM "llw... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "llws_results" (
"year" real,
"champion" text,
"city" text,
"llws" text,
"record" text
);
Question: What is the total number of Years when the LLWS is 4th place, and when the City is Westport?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personnel_and_kits" (
"team" text,
"manager_1" text,
"captain" text,
"kit_manufacturer" text,
"shirt_sponsor" text
);
Question: What team has Pony as the kit manufacturer and Gary Mabbutt as th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personnel_and_kits" (
"team" text,
"manager_1" text,
"captain" text,
"kit_manufacturer" text,
"shirt_sponsor" text
);
Question: Who is the manager 1 for Leeds United?
<|assistant|>
SELECT "mana... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personnel_and_kits" (
"team" text,
"manager_1" text,
"captain" text,
"kit_manufacturer" text,
"shirt_sponsor" text
);
Question: What is the team with a Pony kit manufacturer and Julian Dicks as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personnel_and_kits" (
"team" text,
"manager_1" text,
"captain" text,
"kit_manufacturer" text,
"shirt_sponsor" text
);
Question: What team has a kit manufacturer of Umbro and Eric Cantona as cap... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personnel_and_kits" (
"team" text,
"manager_1" text,
"captain" text,
"kit_manufacturer" text,
"shirt_sponsor" text
);
Question: Who is the manager 1 with Puma as the kit manufacturer and Puma a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personnel_and_kits" (
"team" text,
"manager_1" text,
"captain" text,
"kit_manufacturer" text,
"shirt_sponsor" text
);
Question: What is the kit manufacturer with Walkers as the shirt sponsor?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_international_formula_3000_resu" (
"year" real,
"chassis" text,
"engine" text,
"tyres" text,
"points" real
);
Question: Name the average points for dallara 3087 lola t88/50 and year be... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_international_formula_3000_resu" (
"year" real,
"chassis" text,
"engine" text,
"tyres" text,
"points" real
);
Question: Name the sum of points for 1992
<|assistant|>
SELECT SUM("points... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_international_formula_3000_resu" (
"year" real,
"chassis" text,
"engine" text,
"tyres" text,
"points" real
);
Question: Name the points for year more than 1987
<|assistant|>
SELECT "po... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_international_formula_3000_resu" (
"year" real,
"chassis" text,
"engine" text,
"tyres" text,
"points" real
);
Question: Name the year for points less than 20 and chassis of dallara 308... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international" (
"national_team" text,
"club" text,
"season" text,
"apps" real,
"goals" real
);
Question: What is the most apps that a has a total season and 3 goals?
<|assistant|>
SELECT MAX("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international" (
"national_team" text,
"club" text,
"season" text,
"apps" real,
"goals" real
);
Question: What is the final number of apps with 2 goals?
<|assistant|>
SELECT COUNT("apps") FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_4" (
"episode_no" real,
"airdate" text,
"total_viewers" real,
"share" text,
"bbc_one_weekly_ranking" real
);
Question: What date did the episode with a weekly ranking of 14 air?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_4" (
"episode_no" real,
"airdate" text,
"total_viewers" real,
"share" text,
"bbc_one_weekly_ranking" real
);
Question: What is the total number of total viewers with a share of 18.8% and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Who has 37 grids?
<|assistant|>
SELECT "rider" FROM "125cc_classification" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the average grid with more than 23 laps?
<|assistant|>
SELECT AVG("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the average grid with more than 23 laps?
<|assistant|>
SELECT AVG("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "thames_coromandel_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: What is the average decile for te puru school?... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.