text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"year" real,
"title" text,
"label" text,
"format" text,
"album" text
);
Question: What title has a Label of warp records / paper bag records?
<|assistant|>
SELECT "title" FROM "singl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1986_87" text,
"1987_88" text,
"1988_89" real
);
Question: What's the highest Average that has a 1987-88 of 55 and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1986_87" text,
"1987_88" text,
"1988_89" real
);
Question: What's the lowest Points for the Team of San Martín De T... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1986_87" text,
"1987_88" text,
"1988_89" real
);
Question: What's the 1986-87 that's got a 1988-89 that's larger th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1986_87" text,
"1987_88" text,
"1988_89" real
);
Question: What's the total of 1988-89 that has a 1986-87 of 38, an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What nation has a total more than 3, with more than 5 for bronze, and less than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the largest number for bronze with a rank of 19?
<|assistant|>
SELECT M... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "last_encounters_since_2006" (
"season" text,
"home" text,
"score" text,
"away" text,
"date" text
);
Question: what season had a score of 1:0
<|assistant|>
SELECT "season" FROM "last_encounters_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nasl_indoor_soccer" (
"indoor_year" text,
"record" text,
"regular_season_finish" text,
"playoffs" text,
"avg_attend" real
);
Question: indoor year is 1978, what is the record?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"game_num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
);
Question: Record of 11-10-3 is what sum of game #?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"game_num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
);
Question: Points of 31, and a Score of 1 - 5 is what home?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"game_num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
);
Question: Visitor of calgary has what record?
<|assistant|>
SELECT "reco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"game_num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
);
Question: Score of 2 - 2 had what points?
<|assistant|>
SELECT "points" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_division" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
Question: On what Date was Gainsborough Trinity the Opponents with H/A of H?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_division" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
Question: What H/A had more than 15,000 in Attendance and Blackpool as Opponents?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_division" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
Question: What was the Attendance when Lincoln City was the Opponents with H/A of A?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"on_air_id" text,
"purpose" text
);
Question: what Area has the frequency of 100.3 and an On-air ID of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"on_air_id" text,
"purpose" text
);
Question: What is the Callsign with an Area of tamworth and freque... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"on_air_id" text,
"purpose" text
);
Question: What is the Purpose of the Area Braidwood?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"on_air_id" text,
"purpose" text
);
Question: What Band has a Frequency of 0 99.7 in the Area of Newca... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"on_air_id" text,
"purpose" text
);
Question: What is the Frequency of Gosford when the Callsign of 2c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"on_air_id" text,
"purpose" text
);
Question: What is the On-air ID with the frequency of 105.9, and p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
Question: What Time/Retired has a Points that's smaller than 11 and has a Laps of 74?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
Question: What Time/Retired has a Laps of 86 and the Team of HVM Racing?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
Question: What is the Catalog number in France?
<|assistant|>
SELECT "catalog" FROM "release_histor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
Question: What is the Format o Catalog F4 87199?
<|assistant|>
SELECT "format" FROM "release_histor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
Question: What is the Region of Catalog 885 973-4?
<|assistant|>
SELECT "region" FROM "release_hist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
Question: What is the Catalog number in the Region of France?
<|assistant|>
SELECT "catalog" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
Question: What Label has a Catalog number of 885 572-7 in 7" single Format?
<|assistant|>
SELECT "l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march_may" (
"date" text,
"opponents" text,
"result_f_a" text,
"attendance" real,
"league_position" text
);
Question: How many people in total attended the game on 1 november 1997?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b_b_blingen" (
"pos" real,
"matches" real,
"wins" real,
"loses" real,
"results" text,
"points" real,
"diff" text
);
Question: Wins of 3, and a Pos. larger than 3 is what average loses... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b_b_blingen" (
"pos" real,
"matches" real,
"wins" real,
"loses" real,
"results" text,
"points" real,
"diff" text
);
Question: Matches larger than 5 is the sum of what position?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_coaches_results" (
"name" text,
"years" text,
"seasons" real,
"lost" real,
"pct" real
);
Question: What years did Dwane Morrison had a pct less than 0.389 and losses less than 12?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_coaches_results" (
"name" text,
"years" text,
"seasons" real,
"lost" real,
"pct" real
);
Question: How many seasons did Charles C. Farrell coach?
<|assistant|>
SELECT COUNT("seasons") FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_coaches_results" (
"name" text,
"years" text,
"seasons" real,
"lost" real,
"pct" real
);
Question: What's the average pct for George Felton when he had losses greater than 7?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Which Margin of victory has a Runner(s)-up of josé maria ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Which Tournament has a Runner(s)-up of bob charles?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was the winning score on 7 jun 1976?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Which Winning score has a Margin of victory of 1 stroke, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: On which date was the Winning score –5 (70-65-69-75=279)?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Which Runner(s)-up has a Winning score of –9 (71-68-72-68... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text
);
Question: What is the leading scorer of the game with an atten... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text
);
Question: What is the leading scorer of the game with the Celt... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text
);
Question: What is the date of the game with an attendance of 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"track_number" real,
"song_title" text,
"songwriter_s" text,
"orchestra" text,
"time" text
);
Question: Name the time with track number less than 4 for you're my everything
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"track_number" real,
"song_title" text,
"songwriter_s" text,
"orchestra" text,
"time" text
);
Question: Name the orchestra for ted varnick
<|assistant|>
SELECT "orchestra" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"track_number" real,
"song_title" text,
"songwriter_s" text,
"orchestra" text,
"time" text
);
Question: Name the songwriter for track number 12
<|assistant|>
SELECT "songwriter... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
Question: Player of dan federman, and a Pick larger than 114 involves which highest round?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
Question: College of villanova has what round?
<|assistant|>
SELECT "round" FROM "nba_draft" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
Question: College of boston college has what pick?
<|assistant|>
SELECT "pick" FROM "nba_draft" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_by_nation" (
"nation" text,
"finalists" real,
"winners" real,
"runners_up" real,
"pct_won" real,
"years_won" text
);
Question: How many finalists were there when the years won was... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"time_time_zone" text,
"game_site" text,
"final_score" text,
"record" text,
"match_report" text
);
Question: Where was the gam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"time_time_zone" text,
"game_site" text,
"final_score" text,
"record" text,
"match_report" text
);
Question: What is the final... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"time_time_zone" text,
"game_site" text,
"final_score" text,
"record" text,
"match_report" text
);
Question: What is the match... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"time_time_zone" text,
"game_site" text,
"final_score" text,
"record" text,
"match_report" text
);
Question: Where is the game... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"streak" text
);
Question: What was the Record of the game with a Score of 118–105?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"streak" text
);
Question: What is the Record of the game with a Score of 107–108?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"streak" text
);
Question: What was the Record during the game with a Score of 113–103?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_championship_points_in_a_season_up_" (
"driver" text,
"points" real,
"season" real,
"races" real,
"percentage_of_possible_points" text
);
Question: How many points have a percentage of pos... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_championship_points_in_a_season_up_" (
"driver" text,
"points" real,
"season" real,
"races" real,
"percentage_of_possible_points" text
);
Question: Which races have points greater than 123... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_championship_points_in_a_season_up_" (
"driver" text,
"points" real,
"season" real,
"races" real,
"percentage_of_possible_points" text
);
Question: How many seasons have fernando alonso as... |
<|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 after 1999?
<|assistant|>
SELECT "remixed_by" FROM "officia... |
<|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 3:58?
<|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: Which album is the royal g's club mix version, which is remixed by royal garden sou... |
<|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,
"record" text,
"attendance" text
);
Question: How many were in attendance in a week less than 4 with ... |
<|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,
"record" text,
"attendance" text
);
Question: How many were in attendance at Griffith Stadium with Ph... |
<|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,
"record" text,
"attendance" text
);
Question: In what week was the attendance 25,000?
<|assistant|>
S... |
<|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,
"record" text,
"attendance" text
);
Question: What game site had a result at l 21–13?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
Question: What score has 34-19-6 as the record?
<|assistant|>
SELECT "score" FROM "schedule... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is the average February that has 56 as the game?
<|assistant|>
SELECT AVG("f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"round" real,
"track" text,
"date" text,
"pole_position" text,
"fastest_race_lap" text,
"winner" text,
"team" text
);
Question: What is the sum of team impul wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"round" real,
"track" text,
"date" text,
"pole_position" text,
"fastest_race_lap" text,
"winner" text,
"team" text
);
Question: what is the pole position of Rou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"round" real,
"track" text,
"date" text,
"pole_position" text,
"fastest_race_lap" text,
"winner" text,
"team" text
);
Question: what is the lowest round pole po... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What was the home team with the away team of rushden & diamonds?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: For the attendance of 2 january 1999 with a home team of plymouth argyle what is t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_b_austria" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: Which Lost has a Drawn larger than 1, and Games smaller than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_b_austria" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: Which Drawn has Games smaller than 7?
<|assistant|>
SELECT SU... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_b_austria" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: How many Games have a Drawn smaller than 1, and a Lost larger... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
Question: what is the winning driver in taunus
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "montreal_canadiens_4_quebec_nordiques_2" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Which Record has a Home of Montreal Canadiens and a Date of April 2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "montreal_canadiens_4_quebec_nordiques_2" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What Score has a Home of Montreal Canadiens and a Date of April 22?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medallists_by_nation" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the lowest number of bronze medals received by a nation with f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medallists_by_nation" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the lowest number of silver medals for a nation with fewer tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "total_all_around_medals_by_country_1963_" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which Rank has a Total larger than 17, and a Silve... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "total_all_around_medals_by_country_1963_" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which Total is the highest one that has a Gold of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "total_all_around_medals_by_country_1963_" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How much Total has a Silver smaller than 0?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "total_all_around_medals_by_country_1963_" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which Total has a Rank of 4, and a Silver smaller ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "total_all_around_medals_by_country_1963_" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which Silver is the lowest one that has a Bronze s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "filmfare_awards" (
"year" real,
"song" text,
"film" text,
"music_director_s" text,
"lyricist" text
);
Question: WHich Year has a Music director(s) of anu malik?
<|assistant|>
SELECT SUM("year")... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "filmfare_awards" (
"year" real,
"song" text,
"film" text,
"music_director_s" text,
"lyricist" text
);
Question: Which Year has a Film of baazigar?
<|assistant|>
SELECT MAX("year") FROM "filmfar... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "filmfare_awards" (
"year" real,
"song" text,
"film" text,
"music_director_s" text,
"lyricist" text
);
Question: Which Film has a Song of "ek ladki ko dekha"?
<|assistant|>
SELECT "film" FROM "f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bulls_score" real,
"opponent_score" real,
"record" text,
"streak" text
);
Question: Which Record has an Opponent sco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bulls_score" real,
"opponent_score" real,
"record" text,
"streak" text
);
Question: Which Record has an Opponent of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bulls_score" real,
"opponent_score" real,
"record" text,
"streak" text
);
Question: Which Opponent has a Streak of l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nc_rna_gene_prediction_software" (
"name" text,
"number_of_sequences_number_of_sequences" text,
"alignment_alignment_predicts_an_alignment" text,
"structure_structure_predicts_structure" text,
"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nc_rna_gene_prediction_software" (
"name" text,
"number_of_sequences_number_of_sequences" text,
"alignment_alignment_predicts_an_alignment" text,
"structure_structure_predicts_structure" text,
"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nc_rna_gene_prediction_software" (
"name" text,
"number_of_sequences_number_of_sequences" text,
"alignment_alignment_predicts_an_alignment" text,
"structure_structure_predicts_structure" text,
"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nc_rna_gene_prediction_software" (
"name" text,
"number_of_sequences_number_of_sequences" text,
"alignment_alignment_predicts_an_alignment" text,
"structure_structure_predicts_structure" text,
"... |
<|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,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
Question: Which Playoffs have a Year smaller than 2012, and an Open Cup... |
<|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,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
Question: Which Year is the lowest one that has a Regular Season of 5th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.