text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "specific_fuel_consumption_sfc_specific_i" (
"engine_type" text,
"scenario" text,
"sfc_in_lb_lbf_h" real,
"sfc_in_g_k_n_s" real,
"specific_impulse_s" real,
"effective_exhaust_velocity_m_s" real... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "specific_fuel_consumption_sfc_specific_i" (
"engine_type" text,
"scenario" text,
"sfc_in_lb_lbf_h" real,
"sfc_in_g_k_n_s" real,
"specific_impulse_s" real,
"effective_exhaust_velocity_m_s" real... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
Question: The draft pick that was taken before round 4 went to what college?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
Question: What player went to DePaul University?
<|assistant|>
SELECT "player" FROM "draft_picks" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_of_16" (
"team_1" text,
"score" text,
"team_2" text,
"1st_round" text,
"2nd_round" text
);
Question: What is 1st Round, when Team 1 is Sporting Toulon Var (D2)?
<|assistant|>
SELECT "1st_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_of_16" (
"team_1" text,
"score" text,
"team_2" text,
"1st_round" text,
"2nd_round" text
);
Question: What is Score, when 1st Round is 2 - 0, and when Team 2 is Stade Brestois (D1)?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_of_16" (
"team_1" text,
"score" text,
"team_2" text,
"1st_round" text,
"2nd_round" text
);
Question: What is Team 2, when Score is 2 - 1?
<|assistant|>
SELECT "team_2" FROM "round_of_16" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ufc_on_fox_s_nielsen_rating" (
"event" text,
"date" text,
"rating" text,
"share" text,
"viewers" text
);
Question: What is Viewers, when Event is Johnson Vs. Moraga?
<|assistant|>
SELECT "viewe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ufc_on_fox_s_nielsen_rating" (
"event" text,
"date" text,
"rating" text,
"share" text,
"viewers" text
);
Question: What is Rating, when Event is Johnson Vs. Dodson?
<|assistant|>
SELECT "rating... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ufc_on_fox_s_nielsen_rating" (
"event" text,
"date" text,
"rating" text,
"share" text,
"viewers" text
);
Question: What is Event, when Viewers is 2.4 Million, and when Rating is 1.4?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ufc_on_fox_s_nielsen_rating" (
"event" text,
"date" text,
"rating" text,
"share" text,
"viewers" text
);
Question: What is Event, when Date is April 20, 2013?
<|assistant|>
SELECT "event" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ufc_on_fox_s_nielsen_rating" (
"event" text,
"date" text,
"rating" text,
"share" text,
"viewers" text
);
Question: What is Date, when Rating 1.5, and when Event is Johnson Vs. Moraga?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ufc_on_fox_s_nielsen_rating" (
"event" text,
"date" text,
"rating" text,
"share" text,
"viewers" text
);
Question: What is Date, when Viewers is 4.4 million?
<|assistant|>
SELECT "date" FROM "u... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What was Tiger Woods' score?
<|assistant|>
SELECT "score" FROM "third_round" WHERE "player"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: How did Justin Leonard of the United States score?
<|assistant|>
SELECT "score" FROM "third_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Which player is from England?
<|assistant|>
SELECT "player" FROM "third_round" WHERE "countr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Who scored 74-70-67=211 and placed t5?
<|assistant|>
SELECT "player" FROM "third_round" WHER... |
<|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: Who is the player with a score less than 72 and a to par of +1?
<|assistant|>
SELECT "player... |
<|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: Who is the player with a to par of +1?
<|assistant|>
SELECT "player" FROM "first_round" WHER... |
<|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 to par of player john buczek, who has a t9 place and is from the United States?
... |
<|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 to par of player bobby nichols?
<|assistant|>
SELECT "to_par" FROM "first_round"... |
<|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,
"catalog" text
);
Question: What was the date for XLLP 369?
<|assistant|>
SELECT "date" FROM "release_history" WHERE ... |
<|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,
"catalog" text
);
Question: What was the label in the region of Canada?
<|assistant|>
SELECT "label" FROM "release_hi... |
<|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,
"catalog" text
);
Question: What is the format in the region of Europe with an XLCD369 and a label of XL?
<|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,
"catalog" text
);
Question: What date was the United States the region?
<|assistant|>
SELECT "date" FROM "release_his... |
<|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,
"catalog" text
);
Question: What was the label in the region of Argentina and had a format of CD?
<|assistant|>
SELEC... |
<|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,
"catalog" text
);
Question: What is the catalog with the region of the United States?
<|assistant|>
SELECT "catalog" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"record" text
);
Question: Can you tell me the Opponent that has the November larger than 26, and the Game l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"record" text
);
Question: Can you tell me the Record that has the Game of 19?
<|assistant|>
SELECT "record"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"rockets_score" real,
"opponents" real,
"record" text,
"streak" text
);
Question: Which Date has a Rockets score of 9... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"rockets_score" real,
"opponents" real,
"record" text,
"streak" text
);
Question: Which Opponent has a Rockets score ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"rockets_score" real,
"opponents" real,
"record" text,
"streak" text
);
Question: Which Opponent has a Rockets score ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"rockets_score" real,
"opponents" real,
"record" text,
"streak" text
);
Question: Which Opponent has a Date of march ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is the score when the tie no is 29?
<|assistant|>
SELECT "score" FROM "first... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What was the tie no when Watford was the away team?
<|assistant|>
SELECT "tie_no"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What team was the home team when Luton Town was the home team?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What team was the home team when the tie no was 27?
<|assistant|>
SELECT "home_te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "discography" (
"year" real,
"album" text,
"vocals" text,
"bass" text,
"drums" text,
"label" text
);
Question: Who played bass in 1994 for the Atlantic label?
<|assistant|>
SELECT "bass" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "discography" (
"year" real,
"album" text,
"vocals" text,
"bass" text,
"drums" text,
"label" text
);
Question: Who played drums for the Gray Race album?
<|assistant|>
SELECT "drums" FROM "disc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "discography" (
"year" real,
"album" text,
"vocals" text,
"bass" text,
"drums" text,
"label" text
);
Question: Which album had Jay Bentley on bass and Bobby Schayer on drums?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "discography" (
"year" real,
"album" text,
"vocals" text,
"bass" text,
"drums" text,
"label" text
);
Question: Who played the bass for the Against the Grain album after 1982?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "premier_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "premier_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "premier_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "premier_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "premier_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_schools_in_atherton" (
"school" text,
"locality" text,
"description" text,
"ofsted" real,
"website" text
);
Question: Where is the locality with Ofsted less than 106478 for Meadowbank P... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_schools_in_atherton" (
"school" text,
"locality" text,
"description" text,
"ofsted" real,
"website" text
);
Question: What website has an Ofsted less than 106478 in Atherton?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_schools_in_atherton" (
"school" text,
"locality" text,
"description" text,
"ofsted" real,
"website" text
);
Question: How many values for Ofsted occurr at Chowbent Primary School?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sports_teams" (
"sport" text,
"league" text,
"club" text,
"founded" real,
"venue" text,
"league_championships" real,
"championship_years" text
);
Question: Which League championship is the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sports_teams" (
"sport" text,
"league" text,
"club" text,
"founded" real,
"venue" text,
"league_championships" real,
"championship_years" text
);
Question: How much Founded has a League cha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sports_teams" (
"sport" text,
"league" text,
"club" text,
"founded" real,
"venue" text,
"league_championships" real,
"championship_years" text
);
Question: Which Venue has a League of ncaa,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "census_of_2010" (
"province" text,
"total" real,
"hindu" real,
"pct_hindu_2010" text,
"pct_hindu_2000" text
);
Question: What is the total when the Hindu is greater than 1,076, in the Jawa Bara... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "census_of_2010" (
"province" text,
"total" real,
"hindu" real,
"pct_hindu_2010" text,
"pct_hindu_2000" text
);
Question: What % Hindu 2010 has a 0.01% % Hindu 2000, and a greater than 136 Hindu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"country" text,
"backstroke_leg" text,
"breaststroke_leg" text,
"butterfly_leg" text,
"freestyle_leg" text
);
Question: What is the freestyle leg for the Netherlands?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
Question: In which state did Marquis Li rule?
<|assistant|>
SELECT "state" FROM "vass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
Question: What was the Royal House for the state of Song?
<|assistant|>
SELECT "royal... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
Question: What type of state was Chu?
<|assistant|>
SELECT "type" FROM "vassal_states... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
Question: What type of state was Lu, when Yi was the ruler from the royal house of Ji... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is Score, when Competition is "Euro 2004 Qualifier"?
<|assistant|>
SELECT "sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is Competition, when Date is "28 March 2001"?
<|assistant|>
SELECT "competiti... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kickboxing_record" (
"date" text,
"result" text,
"opponent" text,
"event" text,
"location" text,
"method" text,
"record" text
);
Question: who is the opponent on 2004-06-26 with the result ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kickboxing_record" (
"date" text,
"result" text,
"opponent" text,
"event" text,
"location" text,
"method" text,
"record" text
);
Question: what is the location when the opponent is aleksand... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kickboxing_record" (
"date" text,
"result" text,
"opponent" text,
"event" text,
"location" text,
"method" text,
"record" text
);
Question: what is the event when the location is saitama, ja... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kickboxing_record" (
"date" text,
"result" text,
"opponent" text,
"event" text,
"location" text,
"method" text,
"record" text
);
Question: what is the location when the event is k-1 world g... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kickboxing_record" (
"date" text,
"result" text,
"opponent" text,
"event" text,
"location" text,
"method" text,
"record" text
);
Question: what is the record when the result is win on 2004-... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kickboxing_record" (
"date" text,
"result" text,
"opponent" text,
"event" text,
"location" text,
"method" text,
"record" text
);
Question: what is the event when the result is loss and the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What is the date of the game with a result of W 13-10?
<|assistant|>
SELECT "date" FROM "sch... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
);
Question: What is the total number of Total(s), when Finish is "T21", and when ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
);
Question: What is Finish, when Total is "306"?
<|assistant|>
SELECT "finish" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
);
Question: What is the total number of To Par, when Player is "Julius Boros", an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
);
Question: What is the total number of To Par, when Total is "295"?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
);
Question: What is the lowest Total, when Year(s) Won is "1948 , 1950 , 1951 , 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television" (
"year" real,
"title" text,
"role" text,
"network" text,
"notes" text
);
Question: What is the sum of Year, when Role is "himself", and when Notes is "celebrity guest alongside yg ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television" (
"year" real,
"title" text,
"role" text,
"network" text,
"notes" text
);
Question: What is the highest Year, when Notes is "Celebrity Guest Alongside YG Family"?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television" (
"year" real,
"title" text,
"role" text,
"network" text,
"notes" text
);
Question: What is the Year, when Role is "himself", and when Title is "Epik High's Love And Delusion"?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television" (
"year" real,
"title" text,
"role" text,
"network" text,
"notes" text
);
Question: What is the sum of Year, when Title is "Mnet Director's Cut"?
<|assistant|>
SELECT SUM("year") FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television" (
"year" real,
"title" text,
"role" text,
"network" text,
"notes" text
);
Question: What is the Network, when Title is "Epik High's Love And Delusion"?
<|assistant|>
SELECT "network... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: How many were in attendance during week 12?
<|assistant|>
SELECT "attendance" FROM "schedule... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: On what date was the Result l 38-14?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "resu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: On what date was the week less than 3 with a result of w 24-13?
<|assistant|>
SELECT "date" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "water_parks_in_terms_of_attendance" (
"rank" real,
"water_park" text,
"location" text,
"2011" real,
"2012" real
);
Question: what is the water park with the rank 20?
<|assistant|>
SELECT "water... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "water_parks_in_terms_of_attendance" (
"rank" real,
"water_park" text,
"location" text,
"2011" real,
"2012" real
);
Question: what is 2011 when the rank is less than 8 and the water park is ocea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "water_parks_in_terms_of_attendance" (
"rank" real,
"water_park" text,
"location" text,
"2011" real,
"2012" real
);
Question: what is the lowest 2011 for sunway lagoon water park and 2012 is les... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"area" text,
"population" text,
"pct_muslim" text,
"pct_hindu" text,
"pct_buddhist" text,
"pct_other" text
);
Question: What percentage of Azad Kashmir is Hindu?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"area" text,
"population" text,
"pct_muslim" text,
"pct_hindu" text,
"pct_buddhist" text,
"pct_other" text
);
Question: What area shows % Hindu of statistics from the bbc in d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"area" text,
"population" text,
"pct_muslim" text,
"pct_hindu" text,
"pct_buddhist" text,
"pct_other" text
);
Question: What is the population when the % Muslim shows 30%?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"area" text,
"population" text,
"pct_muslim" text,
"pct_hindu" text,
"pct_buddhist" text,
"pct_other" text
);
Question: What is the percentage of Buddhist when the Population ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"area" text,
"population" text,
"pct_muslim" text,
"pct_hindu" text,
"pct_buddhist" text,
"pct_other" text
);
Question: What area has a % Other of –, and a % Muslim of 95%?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"area" text,
"population" text,
"pct_muslim" text,
"pct_hindu" text,
"pct_buddhist" text,
"pct_other" text
);
Question: What area has a percentage of other of 3%?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: What Game had a Result of 125-123 (OT)?
<|assistant|>
SELECT "game" FROM "nba_finals" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: What is the Date of Game 5 with Road Team St. Louis?
<|assistant|>
SELECT "date" FROM "nba... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: What is the Road Team of Game 3?
<|assistant|>
SELECT "road_team" FROM "nba_finals" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: What is the Game on April 13 with Road Team St. Louis?
<|assistant|>
SELECT "game" FROM "n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: What is the Home Team in the game with a Result of 124-109?
<|assistant|>
SELECT "home_tea... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.