text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goalscorers" (
"name" text,
"league" real,
"fa_cup" real,
"league_cup" real,
"europe" real,
"total" real
);
Question: How many league cup goals on average for players with over 0 FA cup and 5... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goalscorers" (
"name" text,
"league" real,
"fa_cup" real,
"league_cup" real,
"europe" real,
"total" real
);
Question: What is the low FA cup goals for viduka with under 2 europe goals?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"association" text,
"category" text,
"nominated_work" text,
"result" text
);
Question: Who won the most recent favorite rap/hip-hop new artist at the Amer... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: What is the Date with a Leading scorer with maurice williams (25), and a S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: What is the Score with a Home with hornets?
<|assistant|>
SELECT "score" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: What is the Score with a Visitor of bucks, and a Leading scorer with mauri... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: What is the Record with a Leading scorer with andrew bogut (29)?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: What is the Record with a Leading scorer with maurice williams (25), and a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: What is the Record with a Score with 80–87, and a Visitor with bucks?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "b" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the nationality of the player Tom Boswell?
<|assistant|>
SELECT "nat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "b" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the nationality of the player from Duke?
<|assistant|>
SELECT "natio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "b" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What position did the player from Florida International play?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "b" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the nationality of the player from UCLA?
<|assistant|>
SELECT "natio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "record_as_j_league_member" (
"season" real,
"div" text,
"tms" real,
"pos" real,
"attendance_g" real,
"emperor_s_cup" text
);
Question: What was Attendance/G with Tms more than 18?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "record_as_j_league_member" (
"season" real,
"div" text,
"tms" real,
"pos" real,
"attendance_g" real,
"emperor_s_cup" text
);
Question: How many seasons did the Div J1 have the Emperor's cup i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: Which chassis had an entrant of John Mecom?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: What tyre was used for an entrant of Ecurie Na... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: Which rounds was Hap Sharp a driver in?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drama" (
"year" real,
"title" text,
"original_channel" text,
"role" text,
"note" text
);
Question: what is the year when the title is jotei?
<|assistant|>
SELECT SUM("year") FROM "drama" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drama" (
"year" real,
"title" text,
"original_channel" text,
"role" text,
"note" text
);
Question: what is the original channel when the year is before 2006 and the note is supporting?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drama" (
"year" real,
"title" text,
"original_channel" text,
"role" text,
"note" text
);
Question: what is the original channel when the note is co-star in year 2012?
<|assistant|>
SELECT "orig... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drama" (
"year" real,
"title" text,
"original_channel" text,
"role" text,
"note" text
);
Question: what is the original channel when the year is after 2012?
<|assistant|>
SELECT "original_chann... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drama" (
"year" real,
"title" text,
"original_channel" text,
"role" text,
"note" text
);
Question: what is the year when the note is supporting and the title is rokumeikan?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drama" (
"year" real,
"title" text,
"original_channel" text,
"role" text,
"note" text
);
Question: what is the title when the year is after 2011 and the original channel is nhk?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" text
);
Question: O... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" text
);
Question: A... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" text
);
Question: O... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" text
);
Question: O... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_17" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"result" text
);
Question: What's the date that Morocco has an Against along with a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_17" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"result" text
);
Question: What's Round has a Surface of hard and Opponent of Jelen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What driver won in the xv grand prix de l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lms_coaches" (
"number_name" text,
"description" text,
"current_status" text,
"livery" text,
"date" real
);
Question: What is the latest death with a description of BR-Built inspection saloon?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lms_coaches" (
"number_name" text,
"description" text,
"current_status" text,
"livery" text,
"date" real
);
Question: What is the identifying number for a description of Stanier (Period III) fu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lms_coaches" (
"number_name" text,
"description" text,
"current_status" text,
"livery" text,
"date" real
);
Question: What is the date with identifying number of No. 37817?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "formats" (
"release_format" text,
"country" text,
"label_s" text,
"cat_no" text,
"release_date" text
);
Question: What is the release date for the standard cd release format in north america?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "formats" (
"release_format" text,
"country" text,
"label_s" text,
"cat_no" text,
"release_date" text
);
Question: What is the cat no for the label mute and the standard cd format?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "weekly_ratings" (
"episode" text,
"air_date" text,
"rating" real,
"share" real,
"rating_share_18_49" text,
"viewers_m" real,
"timeslot_rank" real,
"night_rank" text,
"overall_rank" real
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "weekly_ratings" (
"episode" text,
"air_date" text,
"rating" real,
"share" real,
"rating_share_18_49" text,
"viewers_m" real,
"timeslot_rank" real,
"night_rank" text,
"overall_rank" real
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "weekly_ratings" (
"episode" text,
"air_date" text,
"rating" real,
"share" real,
"rating_share_18_49" text,
"viewers_m" real,
"timeslot_rank" real,
"night_rank" text,
"overall_rank" real
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "weekly_ratings" (
"episode" text,
"air_date" text,
"rating" real,
"share" real,
"rating_share_18_49" text,
"viewers_m" real,
"timeslot_rank" real,
"night_rank" text,
"overall_rank" real
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "weekly_ratings" (
"episode" text,
"air_date" text,
"rating" real,
"share" real,
"rating_share_18_49" text,
"viewers_m" real,
"timeslot_rank" real,
"night_rank" text,
"overall_rank" real
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brisbane_based" (
"club_team" text,
"league" text,
"venue" text,
"established" real,
"premierships" text
);
Question: How many premierships for the queensland raceway?
<|assistant|>
SELECT "pre... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brisbane_based" (
"club_team" text,
"league" text,
"venue" text,
"established" real,
"premierships" text
);
Question: How many premierships for the commonwealth bank trophy league?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick" real,
"round" real,
"player" text,
"position" text,
"school" text
);
Question: In which round was there a pick of 4?
<|assistant|>
SELECT MAX("round") FROM "nfl_draft" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick" real,
"round" real,
"player" text,
"position" text,
"school" text
);
Question: How many rounds were there an offensive tackle position?
<|assistant|>
SELECT COUNT("round") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick" real,
"round" real,
"player" text,
"position" text,
"school" text
);
Question: What was the pick number in round 228 for Mike Ford?
<|assistant|>
SELECT MAX("pick") FROM "nf... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_of_the_moroccan_grand_prix" (
"year" text,
"driver" text,
"constructor" text,
"category" text,
"location" text,
"report" text
);
Question: What year was E. Meyer the driver?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_of_the_moroccan_grand_prix" (
"year" text,
"driver" text,
"constructor" text,
"category" text,
"location" text,
"report" text
);
Question: What is the name of the driver of the vehicl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_of_the_moroccan_grand_prix" (
"year" text,
"driver" text,
"constructor" text,
"category" text,
"location" text,
"report" text
);
Question: What company constructed the vehicle in the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_of_the_moroccan_grand_prix" (
"year" text,
"driver" text,
"constructor" text,
"category" text,
"location" text,
"report" text
);
Question: What company constructed the vehicle when th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_of_the_moroccan_grand_prix" (
"year" text,
"driver" text,
"constructor" text,
"category" text,
"location" text,
"report" text
);
Question: What is the name of the driver in 1955?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_of_the_moroccan_grand_prix" (
"year" text,
"driver" text,
"constructor" text,
"category" text,
"location" text,
"report" text
);
Question: What is the name of the constructor when rep... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines_for_united_states_models" (
"generation" text,
"years" text,
"engine" text,
"power" text,
"torque" text,
"induction" text
);
Question: What is the inductioin for 1975–1976?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines_for_united_states_models" (
"generation" text,
"years" text,
"engine" text,
"power" text,
"torque" text,
"induction" text
);
Question: What is the power of an engine of 1972?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: In the game where richmond was the away t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: On what date did the match where fitzroy ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: In the match where the away team scored 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the name of the away team had a ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: On the match where the away team scored 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "club_career_stats" (
"season" text,
"team" text,
"country" text,
"division" real,
"apps" real,
"goals" real
);
Question: What is the smallest apps in Honduras with less than 2 goals for Club ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What grid for jacques villeneuve with over 36 laps?
<|assistant|>
SELECT MAX("grid") FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What were the lowest laps of Tarso Marques?
<|assistant|>
SELECT MIN("laps") FROM "race" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What's the average Grid for those who spun off after Lap 64?
<|assistant|>
SELECT AVG("grid... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the grid total that has a Time/Retired of + 1:33.141, and under 70 laps?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the high lap total for tyrrell - yamaha, and a Time/Retired of + 1 lap?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the low lap total for a grid of 14?
<|assistant|>
SELECT MIN("laps") FROM "race" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: How many laps for martin brundle with a grid of less than 10?
<|assistant|>
SELECT COUNT("l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_and_cup_history" (
"season" text,
"level" text,
"goals" text,
"points" real,
"domestic_cup" text
);
Question: What was the average points in the quarterfinals domestic cup?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_and_cup_history" (
"season" text,
"level" text,
"goals" text,
"points" real,
"domestic_cup" text
);
Question: Which level is quarterfinals domestic cup?
<|assistant|>
SELECT "level" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalogue" text
);
Question: What format is catalogue 148615 in?
<|assistant|>
SELECT "format" FROM "release_history... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalogue" text
);
Question: Which region was on June 8, 2004?
<|assistant|>
SELECT "region" FROM "release_history" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalogue" text
);
Question: What format is catalogue WPCR13504 in?
<|assistant|>
SELECT "format" FROM "release_hist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalogue" text
);
Question: What format is the Catalogue 9362486152 from the region of Australia in?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalogue" text
);
Question: What region is the catalogue number 9362486152 that was from September 3, 2004 from?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalogue" text
);
Question: What region is the catalogue released on June 8, 2004 from?
<|assistant|>
SELECT "regio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What day is carlton the home side?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the away team's score when the Ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the home team's score when south ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What day does the home side score 13.13 (... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"county" text,
"proposed" text,
"listed" text,
"construction_completed" text,
"partially_deleted" text,
"deleted" text
);
Question: Tell... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_biggest_loser_u_s_tv_series" (
"episode" real,
"rating" real,
"share" real,
"rating_share_18_49" text,
"rank_timeslot" real,
"rank_night" real
);
Question: What is the timeslor rank for t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_biggest_loser_u_s_tv_series" (
"episode" real,
"rating" real,
"share" real,
"rating_share_18_49" text,
"rank_timeslot" real,
"rank_night" real
);
Question: What is the smallest rating wit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_biggest_loser_u_s_tv_series" (
"episode" real,
"rating" real,
"share" real,
"rating_share_18_49" text,
"rank_timeslot" real,
"rank_night" real
);
Question: What is the lowest nightly rank... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_biggest_loser_u_s_tv_series" (
"episode" real,
"rating" real,
"share" real,
"rating_share_18_49" text,
"rank_timeslot" real,
"rank_night" real
);
Question: What is the timeslot rank when ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_biggest_loser_u_s_tv_series" (
"episode" real,
"rating" real,
"share" real,
"rating_share_18_49" text,
"rank_timeslot" real,
"rank_night" real
);
Question: What is the smallest timeslot r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What away team played at Kardinia Park?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What team played Hawthorn?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
);
Question: What is the total wins with less than 21 goa... |
<|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 "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
);
Question: What player is a lock with 1 cap?
<|assistant|>
SELECT "p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
);
Question: What position does ceri sweeney with under 87 caps of the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
);
Question: What player has 12 caps?
<|assistant|>
SELECT "player" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008" (
"block_a" text,
"ryuji_hijikata" text,
"shuji_kondo" text,
"mazada" text,
"el_samurai" text
);
Question: Tell me the Shuji Kondo for MAZADA of X with Ryuji Hijikata of hijikata (14:24)
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008" (
"block_a" text,
"ryuji_hijikata" text,
"shuji_kondo" text,
"mazada" text,
"el_samurai" text
);
Question: Name the El samurai with MAZADA of x for Ryuji Hijikata of draw (30:00)
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008" (
"block_a" text,
"ryuji_hijikata" text,
"shuji_kondo" text,
"mazada" text,
"el_samurai" text
);
Question: Name the MAZADA for El Samurai of mazada (16:22)
<|assistant|>
SELECT "mazada" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008" (
"block_a" text,
"ryuji_hijikata" text,
"shuji_kondo" text,
"mazada" text,
"el_samurai" text
);
Question: Name the Shuji Kondo for MAZADA of hijikata (14:24)
<|assistant|>
SELECT "shuji_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "br_railbuses" (
"number_range" text,
"builder" text,
"introduced" real,
"no_built" real,
"region" text,
"withdrawn" real
);
Question: when was the building withdrawn when the builder was ac c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "october" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What was the decision on october 5?
<|assistant|>
SELECT "d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.