text stringlengths 310 1.28k |
|---|
<|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,
"game_site" text,
"attendance" real
);
Question: Which Date has a Result of w 13–6?
<|assistant|>
SELECT "date" FROM "sch... |
<|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,
"game_site" text,
"attendance" real
);
Question: What is the Result of Week larger than 3 on 1971-11-07?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_by_season" (
"season" text,
"tier" real,
"division" text,
"pos" real,
"cup_competitions" text
);
Question: What is the pos with more than 1 tier during Pokal Slovenije 1. round?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dry_measures" (
"unit" text,
"russian" text,
"translation" text,
"ratio" text,
"cubic_inches_exact" text,
"metric_value" text,
"imperial_value" text,
"us_customary" text
);
Question: What... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dry_measures" (
"unit" text,
"russian" text,
"translation" text,
"ratio" text,
"cubic_inches_exact" text,
"metric_value" text,
"imperial_value" text,
"us_customary" text
);
Question: What... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dry_measures" (
"unit" text,
"russian" text,
"translation" text,
"ratio" text,
"cubic_inches_exact" text,
"metric_value" text,
"imperial_value" text,
"us_customary" text
);
Question: What... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dry_measures" (
"unit" text,
"russian" text,
"translation" text,
"ratio" text,
"cubic_inches_exact" text,
"metric_value" text,
"imperial_value" text,
"us_customary" text
);
Question: What... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a_part_of_yanagiya_s_flight_log_in_april" (
"date" text,
"id_code_of_his_zero_fighter" text,
"flight_hours" text,
"count" text,
"sub_total" text
);
Question: Which Zero Fighter has a count of 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a_part_of_yanagiya_s_flight_log_in_april" (
"date" text,
"id_code_of_his_zero_fighter" text,
"flight_hours" text,
"count" text,
"sub_total" text
);
Question: On which day were the subtotal hour... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a_part_of_yanagiya_s_flight_log_in_april" (
"date" text,
"id_code_of_his_zero_fighter" text,
"flight_hours" text,
"count" text,
"sub_total" text
);
Question: What is the count for the Zero Figh... |
<|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,
"round" real,
"time" text,
"location" text
);
Question: Which record has Katsuomi Inagaki as an oppon... |
<|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,
"round" real,
"time" text,
"location" text
);
Question: Which method has a 1:46 time?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is Henri Crockett's highest overall with more th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which college has fewer than 2 rounds?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What are the total number of picks for a guard with f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the lowest overall for a quarterback with few... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"reg_season" text,
"playoffs" text,
"open_cup" text,
"avg_attendance" real
);
Question: What Playoffs had an Open Cup of 3rd rou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_5_2005" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: What was the D segment for episode 60?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_5_2005" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: What was the B segmint for Netlix S03E... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_5_2005" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: What was the D segment for episode 60?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "argentine_clubs_in_international_competi" (
"team" text,
"intercontinental" text,
"recopa_1996" text,
"supercopa_1996" text,
"conmebol_1996" text,
"copa_libertadores_1997" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
Question: What's the capacity that has the highest greater than 1,763 and is at H... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
Question: What's the highest with a capacity of greater than 4,000 and an average... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
Question: At Balmoor Stadium, what's the total average having a greater than 400 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What was the score of Tommy Aaron (2) when the tournament was... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What was the tournament that had a first prize of $12,600?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What was the score of Ken Still (3) when he won first place?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_performances" (
"date" text,
"placing" text,
"beat_by" text,
"location" text,
"distance" text
);
Question: Who beat Chic by 8fm?
<|assistant|>
SELECT "beat_by" FROM "race_performances" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_performances" (
"date" text,
"placing" text,
"beat_by" text,
"location" text,
"distance" text
);
Question: What was the placing of the race in which Chic won by 8gf?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_performances" (
"date" text,
"placing" text,
"beat_by" text,
"location" text,
"distance" text
);
Question: What was the date in which Chic won at CHS?
<|assistant|>
SELECT "date" FROM "rac... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: Who is the opponent of game 54, which was in Los Angele... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What is the earliest date of the game with a score of 2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What is the average date of the game with the Detroit R... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What is the date of the game with a score of 4-2?
<|ass... |
<|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" text,
"record" text
);
Question: What was the loss of the game that had a record of 3-3?
<|assistant|>
SELECT... |
<|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" text,
"record" text
);
Question: What was the score of the game with a loss of Mercedes (0-1)?
<|assistant|>
... |
<|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" text,
"record" text
);
Question: Who was the opponent at the game with a loss of Weaver (1-2)?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: What's the Remixed by with a Version of Strings for Soul's Mix?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: What the highest Year with a Remixed by Laurent Boutonnat?
<|assistant|>
SELECT MAX... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: What's the total Year with a Length of 4:45 an has an Album of Les Mots?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: What's the Length with the Version of Album Version?
<|assistant|>
SELECT "length" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: What Album has a Year that's larger than 2001?
<|assistant|>
SELECT "album" FROM "o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_2_20_12_2007" (
"position" real,
"pilot" text,
"glider" text,
"speed" text,
"distance" text
);
Question: What is the lowest position for bruce taylor?
<|assistant|>
SELECT MIN("position") ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_2_20_12_2007" (
"position" real,
"pilot" text,
"glider" text,
"speed" text,
"distance" text
);
Question: Which pilot has a position above 5 and a speed of 118.8km/h?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_2_20_12_2007" (
"position" real,
"pilot" text,
"glider" text,
"speed" text,
"distance" text
);
Question: What is Erwin Sommer's average position?
<|assistant|>
SELECT AVG("position") FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opening_weekend_gross" (
"date" text,
"territory" text,
"screens" real,
"rank" real,
"gross" text
);
Question: What is the highest rank of the day with a gross of $38,916 and more than 6 screen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opening_weekend_gross" (
"date" text,
"territory" text,
"screens" real,
"rank" real,
"gross" text
);
Question: What is the gross in the United Kingdom?
<|assistant|>
SELECT "gross" FROM "openin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opening_weekend_gross" (
"date" text,
"territory" text,
"screens" real,
"rank" real,
"gross" text
);
Question: What is the territory with 17 screens?
<|assistant|>
SELECT "territory" FROM "open... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real,
"participants" real
);
Question: What is the lowest number of Golds that has Participants smaller than 14,... |
<|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: On what date was the record 39–54?
<|assistant|>
SELECT "date" FROM "game_lo... |
<|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 was the record on July 1?
<|assistant|>
SELECT "record" FROM "game_log"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_a_helsinki" (
"pos" real,
"matches" real,
"wins" real,
"loses" real,
"results" text,
"points" real,
"diff" text
);
Question: How many total matches with less than 1 win and a position... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "liberal_party_federal_electoral_results" (
"year" text,
"seats_in_house" real,
"liberal_candidates" real,
"seats_won" real,
"seat_change" text,
"popular_vote" real,
"pct_of_popular_vote" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "liberal_party_federal_electoral_results" (
"year" text,
"seats_in_house" real,
"liberal_candidates" real,
"seats_won" real,
"seat_change" text,
"popular_vote" real,
"pct_of_popular_vote" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "liberal_party_federal_electoral_results" (
"year" text,
"seats_in_house" real,
"liberal_candidates" real,
"seats_won" real,
"seat_change" text,
"popular_vote" real,
"pct_of_popular_vote" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "liberal_party_federal_electoral_results" (
"year" text,
"seats_in_house" real,
"liberal_candidates" real,
"seats_won" real,
"seat_change" text,
"popular_vote" real,
"pct_of_popular_vote" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "liberal_party_federal_electoral_results" (
"year" text,
"seats_in_house" real,
"liberal_candidates" real,
"seats_won" real,
"seat_change" text,
"popular_vote" real,
"pct_of_popular_vote" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"winners" text,
"score" text,
"runner_up" text,
"venue" text
);
Question: What is the score during the 2006-2007 year?
<|assistant|>
SELECT "score" FROM "winners" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"winners" text,
"score" text,
"runner_up" text,
"venue" text
);
Question: Who were the winners in 2010-2011?
<|assistant|>
SELECT "winners" FROM "winners" WHERE "year"='... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"winners" text,
"score" text,
"runner_up" text,
"venue" text
);
Question: What is the score of the match with UTC as the runner-up and Saint-Gaudens Bears as the winners... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"winners" text,
"score" text,
"runner_up" text,
"venue" text
);
Question: Which year had UTC as the runner-up and Saint-Gaudens Bears as the winners?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"winners" text,
"score" text,
"runner_up" text,
"venue" text
);
Question: What is the venue of the match with a score of 33-22?
<|assistant|>
SELECT "venue" FROM "winner... |
<|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 "playoff_games_that_went_at_least_into_do" (
"length_of_game" text,
"date" text,
"away_team" text,
"score" text,
"home_team" text
);
Question: What is the date of the that was played with the Ba... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoff_games_that_went_at_least_into_do" (
"length_of_game" text,
"date" text,
"away_team" text,
"score" text,
"home_team" text
);
Question: How long did the game go that was played with the H... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoff_games_that_went_at_least_into_do" (
"length_of_game" text,
"date" text,
"away_team" text,
"score" text,
"home_team" text
);
Question: What was the date of the game that lasted 75:43?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoff_games_that_went_at_least_into_do" (
"length_of_game" text,
"date" text,
"away_team" text,
"score" text,
"home_team" text
);
Question: Who is the away team for the game played on Decembe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoff_games_that_went_at_least_into_do" (
"length_of_game" text,
"date" text,
"away_team" text,
"score" text,
"home_team" text
);
Question: What was the length of the game where the Baltimore... |
<|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's the number of laps for 16 grids?
<|assistant|>
SELECT SUM("laps") FR... |
<|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 was the rider for laps less than 23 with grid greater than 21 that had ... |
<|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's the total grid for someone with a time/retire of +44.831
<|assistant... |
<|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's the smallest grid for Time/Retired of +22.687?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1996" text,
"supercopa_sudamericana_1996" text,
"copa_conmebol_1996" text,
"recopa_sudamericana_1996" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1996" text,
"supercopa_sudamericana_1996" text,
"copa_conmebol_1996" text,
"recopa_sudamericana_1996" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1996" text,
"supercopa_sudamericana_1996" text,
"copa_conmebol_1996" text,
"recopa_sudamericana_1996" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1996" text,
"supercopa_sudamericana_1996" text,
"copa_conmebol_1996" text,
"recopa_sudamericana_1996" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1996" text,
"supercopa_sudamericana_1996" text,
"copa_conmebol_1996" text,
"recopa_sudamericana_1996" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1996" text,
"supercopa_sudamericana_1996" text,
"copa_conmebol_1996" text,
"recopa_sudamericana_1996" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "greatest_win_margins_by_runs" (
"rank" text,
"margin" text,
"opponent" text,
"venue" text,
"season" text
);
Question: What season has 195 runs as a margin?
<|assistant|>
SELECT "season" FROM "g... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "greatest_win_margins_by_runs" (
"rank" text,
"margin" text,
"opponent" text,
"venue" text,
"season" text
);
Question: What season has 2 as a rank?
<|assistant|>
SELECT "season" FROM "greatest_w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "greatest_win_margins_by_runs" (
"rank" text,
"margin" text,
"opponent" text,
"venue" text,
"season" text
);
Question: What venue has 2 as the rank?
<|assistant|>
SELECT "venue" FROM "greatest_w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "greatest_win_margins_by_runs" (
"rank" text,
"margin" text,
"opponent" text,
"venue" text,
"season" text
);
Question: What opponent has 2011/12 as the season?
<|assistant|>
SELECT "opponent" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: What is the length of the version from 2003?
<|assistant|>
SELECT "length" FROM "of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: Who remixed the version with a length of 4:22?
<|assistant|>
SELECT "remixed_by" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: What is the length of the UK remix version?
<|assistant|>
SELECT "length" FROM "off... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: What year was the version with a remixes album?
<|assistant|>
SELECT "year" FROM "o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sanfl" (
"season" real,
"team" text,
"wins" real,
"losses" real,
"draws" real
);
Question: How many losses did the team, Sturt, have when they had more than 0 wins?
<|assistant|>
SELECT COUNT("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sanfl" (
"season" real,
"team" text,
"wins" real,
"losses" real,
"draws" real
);
Question: What is the average number of draws for the team that had more than 0 wins?
<|assistant|>
SELECT AVG("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sanfl" (
"season" real,
"team" text,
"wins" real,
"losses" real,
"draws" real
);
Question: What is the least amount of losses for the team that had more than 0 draws during the seasons earlier ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sanfl" (
"season" real,
"team" text,
"wins" real,
"losses" real,
"draws" real
);
Question: What is the highest number of wins for the team, Central District, who had less than 0 draws and took ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sanfl" (
"season" real,
"team" text,
"wins" real,
"losses" real,
"draws" real
);
Question: What is the average number of wins before the season in 1906 where there were 0 draws?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chief_wilson_s_36_triples" (
"triple" real,
"game" real,
"date" text,
"inning" text,
"location" text,
"opposing_pitcher" text,
"team" text
);
Question: Who is the Opposing Pitcher when Team... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chief_wilson_s_36_triples" (
"triple" real,
"game" real,
"date" text,
"inning" text,
"location" text,
"opposing_pitcher" text,
"team" text
);
Question: What is the lowest Game where Inning ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chief_wilson_s_36_triples" (
"triple" real,
"game" real,
"date" text,
"inning" text,
"location" text,
"opposing_pitcher" text,
"team" text
);
Question: What is was Date that where Triple wa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.