text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wairoa_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Which years have a Decile smaller than 2, and an Area of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wairoa_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Which gender has an Authority of state, Years of 1β8, and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wairoa_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Which roll has an Area of mahia?
<|assistant|>
SELECT "ro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wairoa_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Which Decile has an Authority of state, a Roll smaller th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances" (
"name" text,
"league" real,
"play_offs" real,
"fa_cup" real,
"league_cup" real,
"total" real
);
Question: What's the highest League Cup with an FA Cup thats larger than 2?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances" (
"name" text,
"league" real,
"play_offs" real,
"fa_cup" real,
"league_cup" real,
"total" real
);
Question: What's the total number of FA Cup with a Play-offs of 3, and the Name ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances" (
"name" text,
"league" real,
"play_offs" real,
"fa_cup" real,
"league_cup" real,
"total" real
);
Question: What's the total of number of FA Cup that has a League small than 29 w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances" (
"name" text,
"league" real,
"play_offs" real,
"fa_cup" real,
"league_cup" real,
"total" real
);
Question: What's the lowest Play-offs with a League of 4 and FA Cup larger than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances" (
"name" text,
"league" real,
"play_offs" real,
"fa_cup" real,
"league_cup" real,
"total" real
);
Question: What's the total number of League Cup with a Play-off larger than 2, a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_kingdom" (
"episode_num" real,
"title" text,
"airdate" text,
"viewers_millions" real,
"channel_4_weekly_rank_a" real
);
Question: What is the number for the Channel 4 weekly rank when th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_kingdom" (
"episode_num" real,
"title" text,
"airdate" text,
"viewers_millions" real,
"channel_4_weekly_rank_a" real
);
Question: What is the average Channel 4 weekly rank for less than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_kingdom" (
"episode_num" real,
"title" text,
"airdate" text,
"viewers_millions" real,
"channel_4_weekly_rank_a" real
);
Question: What is the number of viewers in millions for the episod... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ev_as" (
"start_date_time" text,
"duration" text,
"end_time" text,
"spacecraft" text,
"crew" text
);
Question: What is the duration of the flight with end time of 21:06?
<|assistant|>
SELECT "d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ev_as" (
"start_date_time" text,
"duration" text,
"end_time" text,
"spacecraft" text,
"crew" text
);
Question: What is the spacecraft with end time of 4 September 04:51?
<|assistant|>
SELECT "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ev_as" (
"start_date_time" text,
"duration" text,
"end_time" text,
"spacecraft" text,
"crew" text
);
Question: What is the crew with the end time of 21:11?
<|assistant|>
SELECT "crew" FROM "ev_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ev_as" (
"start_date_time" text,
"duration" text,
"end_time" text,
"spacecraft" text,
"crew" text
);
Question: What is the duration of the Expedition 20 ISS Zvezda?
<|assistant|>
SELECT "durati... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ev_as" (
"start_date_time" text,
"duration" text,
"end_time" text,
"spacecraft" text,
"crew" text
);
Question: Who was the crew for the duration of 12 minutes?
<|assistant|>
SELECT "crew" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: Name the sum of year for connaught engineering and points less... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_by_season_records" (
"year" text,
"record_a" text,
"win_pct" real,
"league_b" text,
"division_c" text,
"gb_d" text,
"post_season_record_e" text,
"post_season_win_pct" text,
"mlb_a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: What was the starting position of Joie Chitwood when he finished more than 200... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: What is Chitwood's lowest completed number of laps with a qualifying time of 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1963_1998" (
"date" text,
"venue" text,
"score_a" text,
"competition" text,
"att" text
);
Question: Which venue was used on 12 September 1998?
<|assistant|>
SELECT "venue" FROM "1963_1998" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1963_1998" (
"date" text,
"venue" text,
"score_a" text,
"competition" text,
"att" text
);
Question: What is the score [A] of the match at Vanuatu (n) on 5 September 1998?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1963_1998" (
"date" text,
"venue" text,
"score_a" text,
"competition" text,
"att" text
);
Question: What is the score [A] of the match on 19 September 1998?
<|assistant|>
SELECT "score_a" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What was the score of the game when the record was 32β19β7?
<|assistant|>
SELECT "score" FROM "gam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What was the date of the game when the record was 9β5β2?
<|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,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Who was the home team when the record was 36β21β8?
<|assistant|>
SELECT "home" FROM "game_log" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What was the date of the game when the Calgary Flames were the visiting team and there was a recor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Who was the home team when the record was 27β14β6?
<|assistant|>
SELECT "home" FROM "game_log" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "external_links" (
"representative" text,
"years" text,
"state" text,
"party" text,
"lifespan" text
);
Question: What was the lifespan of Representative Harry P. O'neill from the state of Pennsy... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "external_links" (
"representative" text,
"years" text,
"state" text,
"party" text,
"lifespan" text
);
Question: What years did Representative Frank A. Oliver serve?
<|assistant|>
SELECT "years"... |
<|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,
"time" text,
"att" real,
"record" text
);
Question: Name the record for october 11
<|assistant|>
SELECT "record" FROM "g... |
<|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: Name the score with record of 68-66
<|assistant|>
SELECT "score" FROM "game_... |
<|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: Name the record for august 28
<|assistant|>
SELECT "record" FROM "game_log" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: What was the score for Leo Diegel?
<|assistant|>
SELECT "score" FROM "first_round" WHERE "pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: What is the name of the player with a To par of β4?
<|assistant|>
SELECT "player" FROM "firs... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_20_10_10" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: What was the surface for the gam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_20_10_10" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: What is the final score for the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_20_10_10" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: What was the outcome for the gam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_20_10_10" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: What is the score for the game t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_20_10_10" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: What was the surface for the gam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "global_challenge_2004_5" (
"overall_place" text,
"yacht_name" text,
"skipper" text,
"points" text,
"combined_elapsed_time" text
);
Question: What points has james allen as the skipper?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "global_challenge_2004_5" (
"overall_place" text,
"yacht_name" text,
"skipper" text,
"points" text,
"combined_elapsed_time" text
);
Question: What is the name of the yacht where 12 is the overal... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "global_challenge_2004_5" (
"overall_place" text,
"yacht_name" text,
"skipper" text,
"points" text,
"combined_elapsed_time" text
);
Question: Which skipper has a combine elapsed time of 174d 01h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "global_challenge_2004_5" (
"overall_place" text,
"yacht_name" text,
"skipper" text,
"points" text,
"combined_elapsed_time" text
);
Question: Which skipper has barclays adventurer as the name of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "global_challenge_2004_5" (
"overall_place" text,
"yacht_name" text,
"skipper" text,
"points" text,
"combined_elapsed_time" text
);
Question: What is the overall place that has 170d 11h 31m 10s ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_judges" (
"state" text,
"born_died" text,
"chief_judge" text,
"senior_status" text,
"appointed_by" text,
"reason_for_termination" text
);
Question: What was the senior status for the j... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "paralympic_men" (
"classification" text,
"fastest_time_s" real,
"athlete" text,
"country" text,
"date" text,
"location" text
);
Question: What is the location of Classification of T12?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "paralympic_men" (
"classification" text,
"fastest_time_s" real,
"athlete" text,
"country" text,
"date" text,
"location" text
);
Question: What is the fastest time for athlete Jason Smyth?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nominations" (
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text,
"no_11" text,
"no_12" text,
"no_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nominations" (
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text,
"no_11" text,
"no_12" text,
"no_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: Name the total number of years for chassis of ensign n175
<|as... |
<|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 Blue Jays lowest attendance when their record was 52-48?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
);
Question: What is the result when you play at home against Pride
<|assistant|>
SELECT "result" FROM "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
);
Question: What is the result of games played at frontier field
<|assistant|>
SELECT "result" FROM "sch... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
);
Question: What days were games played at Hofstra Stadium?
<|assistant|>
SELECT "date" FROM "schedule" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
);
Question: What Field was played at in an away game against the bayhawks?
<|assistant|>
SELECT "field" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the score of the game played on February 18?
<|assistant|>
SELECT "score" FROM "regu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Who was the home team that played against the Boston Bruins on January 11?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fiba_euro_basket_2007_squads" (
"player" text,
"height" real,
"position" text,
"year_born" real,
"current_club" text
);
Question: Name the sum of year for olimpija ljubljana with height less th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fiba_euro_basket_2007_squads" (
"player" text,
"height" real,
"position" text,
"year_born" real,
"current_club" text
);
Question: Name the position with height of 2.09
<|assistant|>
SELECT "pos... |
<|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 attendance at the ballpark during the game where the Blue Jays ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nominated_work" text,
"result" text
);
Question: What nominated work received a tony award in 2009?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nominated_work" text,
"result" text
);
Question: What result in the table is from the year 2012?
<|assistant|>
SELECT "res... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles" (
"tournament" text,
"2008" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Name the 2011 with 2010 of 2r
<|assistant|>
SELECT "2011" FROM "women_s_doub... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles" (
"tournament" text,
"2008" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Name the 2012 when 2011 is qf
<|assistant|>
SELECT "2012" FROM "women_s_doub... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles" (
"tournament" text,
"2008" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Name the 2012 for 2011 being 1r
<|assistant|>
SELECT "2012" FROM "women_s_do... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles" (
"tournament" text,
"2008" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Name the 2012 for 2011 being qf
<|assistant|>
SELECT "2012" FROM "women_s_do... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles" (
"tournament" text,
"2008" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Name the 2008 for 2012 f
<|assistant|>
SELECT "2008" FROM "women_s_doubles" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recent_results_and_forthcoming_fixtures" (
"date" text,
"location" text,
"score" text,
"scorers_for_chad" text,
"competition" text
);
Question: What is the location of the match on February 29,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recent_results_and_forthcoming_fixtures" (
"date" text,
"location" text,
"score" text,
"scorers_for_chad" text,
"competition" text
);
Question: What is the score of the match on November 15, 20... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar" (
"race" real,
"circuit" text,
"location_state" text,
"date" text,
"winner" text,
"team" text
);
Question: How many races were in the Mallala Motor Sport Park circuit?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar" (
"race" real,
"circuit" text,
"location_state" text,
"date" text,
"winner" text,
"team" text
);
Question: What was the first race in Launceston, Tasmania?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_of_16" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Name the 2nd leg for team 1 of hamburg
<|assistant|>
SELECT "2nd_leg" FROM "round_of_16" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1935" (
"title" text,
"studio" text,
"role" text,
"leading_lady" text,
"director" text
);
Question: Name the role for mono studio and title of paradise canyon
<|assistant|>
SELECT "role" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1935" (
"title" text,
"studio" text,
"role" text,
"leading_lady" text,
"director" text
);
Question: Name the title for marion burns leading lady and role of john mason
<|assistant|>
SELECT "tit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1935" (
"title" text,
"studio" text,
"role" text,
"leading_lady" text,
"director" text
);
Question: Name the role for studio of rep with sheila mannors leading lady and title of westward ho
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1935" (
"title" text,
"studio" text,
"role" text,
"leading_lady" text,
"director" text
);
Question: Name the studio for john scott
<|assistant|>
SELECT "studio" FROM "1935" WHERE "role"='john s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "emigration_of_jews_and_their_family_memb" (
"year" text,
"total_000s" real,
"israel" real,
"germany" real,
"jews_halakha_in_israel" text
);
Question: What is the amount of 000s from 1996?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "emigration_of_jews_and_their_family_memb" (
"year" text,
"total_000s" real,
"israel" real,
"germany" real,
"jews_halakha_in_israel" text
);
Question: What was the amount of 000s when Germany ha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_appearances" (
"player" text,
"period" text,
"league" real,
"concacaf" real,
"libertadores" real,
"merconorte" real,
"inter_liga" real,
"superliga" real,
"matches" real
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_appearances" (
"player" text,
"period" text,
"league" real,
"concacaf" real,
"libertadores" real,
"merconorte" real,
"inter_liga" real,
"superliga" real,
"matches" real
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_8_4" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents_in_final" text,
"score_in_final" text
);
Question: What was the outcome for the match that ended in a sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_8_4" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents_in_final" text,
"score_in_final" text
);
Question: What was the surface of the match that ended in a sco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_8_4" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents_in_final" text,
"score_in_final" text
);
Question: Who were the opponents in the match or matches that e... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What kind of Chassis supports a Maserati Straight-6 engine wit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What kind of Chassis supports an Equipe Gordini Entrant?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What kind of Entrant has a Maserati Straight-6 Engine, built i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What is the average year for Maserati Straight-4 Engines?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Name the sum of ERP W for class of d and frequency mhz... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Name the ERP W with a frequency mhz more than 93.3 and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"location" text
);
Question: Which record has a result of loss in the Her... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"location" text
);
Question: Which event led to a 4-0 record?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"location" text
);
Question: Which location led to a 10-3 record?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"location" text
);
Question: In the match against Masahiro Oishi, what wa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_round" (
"team" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: What is the fewest number of points for clubs with less than 2 draws and more than 8 matches pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_round" (
"team" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: What is the fewest drawn matches for teams with 2 points and fewer than 6 losses?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_round" (
"team" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: What is the most number of losses for Quetta Zorawar?
<|assistant|>
SELECT MAX("lost") FROM "le... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_round" (
"team" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: What is the sum of the drawn values for teams with 2 losses?
<|assistant|>
SELECT SUM("drawn") ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "greatest_winning_margins" (
"rank" text,
"margin" text,
"club" text,
"opponent" text,
"year" text,
"round" text,
"venue" text
);
Question: which round has a margin of 178?
<|assistant|>
SEL... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.