text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sovereign_states" (
"name" text,
"subdivisions" text,
"area_km" real,
"population_1_july_2005_est" real,
"population_density_per_km" real,
"capital" text
);
Question: What is Population densi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_men_s_doubles_finals_20_16_4" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Who were the opponen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_men_s_doubles_finals_20_16_4" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Who was the partner ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_men_s_doubles_finals_20_16_4" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: When playing on gras... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_canada_cup" text
);
Question: Which league's playoffs was national semi-finals?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Which country is Lemd the ICAO of?
<|assistant|>
SELECT "country" FROM "references" WHERE "icao"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Paris-Charles de Gaulle airport is in which country?
<|assistant|>
SELECT "country" FROM "refere... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What is the ICAO for Riyadh, Saudi Arabia?
<|assistant|>
SELECT "icao" FROM "references" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What is the IATA for Benghazi, Libya?
<|assistant|>
SELECT "iata" FROM "references" WHERE "count... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_1_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: What is the average Grid for the honda cbr1000rr, with 18 laps and a time of +1:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_1_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: What is the Bike with 18 laps and +41.280 as the time?
<|assistant|>
SELECT "bik... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_1_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: What is the Time when there are 18 laps, grid larger than 15, and Rider of Russe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_1_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: What is the Bike with a grid more than 4 and the rider is Michel Fabrizio?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_goals" (
"name" text,
"career" text,
"goals" real,
"appearances" real,
"goals_game_ratio" real
);
Question: What was Lee Smith's highest number of goals when he made fewer than 364 appeara... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_goals" (
"name" text,
"career" text,
"goals" real,
"appearances" real,
"goals_game_ratio" real
);
Question: What is the sum of Rob Coldray's goals when he made fewer than 348 appearances w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_goals" (
"name" text,
"career" text,
"goals" real,
"appearances" real,
"goals_game_ratio" real
);
Question: Which goals/game ratio has fewer than 201 goals and fewer than 170 appearances?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" (
"rank" real,
"location" text,
"total_passengers" real,
"annual_change" text,
"capacity_in_use" text
);
Question: What is the average rank of the airp... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" (
"rank" real,
"location" text,
"total_passengers" real,
"annual_change" text,
"capacity_in_use" text
);
Question: What is the average rank of the airp... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" (
"rank" real,
"location" text,
"total_passengers" real,
"annual_change" text,
"capacity_in_use" text
);
Question: Where is the airport located that ha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" (
"rank" real,
"location" text,
"total_passengers" real,
"annual_change" text,
"capacity_in_use" text
);
Question: What rank is the airport in Fortalez... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recent_winners" (
"year_theme" text,
"award_name" text,
"team_name" text,
"team_number" real,
"city_state_country" text
);
Question: What is the Award name with a Team name that is cougar robot... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rookie_cup" (
"driver" text,
"nor_1" text,
"nor_2" text,
"zan_1" text,
"zan_2" text,
"n_r_1" text,
"n_r_2" text
);
Question: What is the zan 1 that has 11 as the nor 1?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rookie_cup" (
"driver" text,
"nor_1" text,
"nor_2" text,
"zan_1" text,
"zan_2" text,
"n_r_1" text,
"n_r_2" text
);
Question: What driver has 19 as the zan 1?
<|assistant|>
SELECT "driver" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rookie_cup" (
"driver" text,
"nor_1" text,
"nor_2" text,
"zan_1" text,
"zan_2" text,
"n_r_1" text,
"n_r_2" text
);
Question: What driver has 5 as the zan 2?
<|assistant|>
SELECT "driver" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rookie_cup" (
"driver" text,
"nor_1" text,
"nor_2" text,
"zan_1" text,
"zan_2" text,
"n_r_1" text,
"n_r_2" text
);
Question: What is the nor 2 that has nor 1 as nor 1?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rookie_cup" (
"driver" text,
"nor_1" text,
"nor_2" text,
"zan_1" text,
"zan_2" text,
"n_r_1" text,
"n_r_2" text
);
Question: What driver has 22 as nor 1?
<|assistant|>
SELECT "driver" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australia_in_england_1905" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: What Date had a Result of draw, and a Venue of lord's?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australia_in_england_1905" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: What Date that had a Result of draw, with Oval as a venue?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australia_in_england_1905" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: What is the Away captain when the Result was draw, and a Venue of lo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australia_in_england_1905" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: What is the Date when the match Resulted in a draw?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_11" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was the margin of victory when the winning score was –10... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_11" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: When Gary Player was the runner-up, what was the margin of vi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_11" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: In what tournament was the winning score –10 (68-71-69-70=278... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_professional_career_summar" (
"year" text,
"starts" real,
"cuts_made" real,
"wins" real,
"top_10" real,
"top_25" real,
"earnings" real,
"money_list_rank" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_professional_career_summar" (
"year" text,
"starts" real,
"cuts_made" real,
"wins" real,
"top_10" real,
"top_25" real,
"earnings" real,
"money_list_rank" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_professional_career_summar" (
"year" text,
"starts" real,
"cuts_made" real,
"wins" real,
"top_10" real,
"top_25" real,
"earnings" real,
"money_list_rank" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_professional_career_summar" (
"year" text,
"starts" real,
"cuts_made" real,
"wins" real,
"top_10" real,
"top_25" real,
"earnings" real,
"money_list_rank" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_professional_career_summar" (
"year" text,
"starts" real,
"cuts_made" real,
"wins" real,
"top_10" real,
"top_25" real,
"earnings" real,
"money_list_rank" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"height" text,
"weight_lbs" real,
"position" text,
"class" text,
"hometown" text
);
Question: What is the Name when the position is g, and weight is 190 pounds?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"height" text,
"weight_lbs" real,
"position" text,
"class" text,
"hometown" text
);
Question: What is the Position with a weight of more than 195 pounds, height of 6'5"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"height" text,
"weight_lbs" real,
"position" text,
"class" text,
"hometown" text
);
Question: What is the sum of Weight for the person with a height of 6'6"?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: Who was the home team of the game on 2 February 2006?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: What is the home team of the game with Warriors as the visitor team?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_10_7_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What date was the match on a hard surface with a scor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_10_7_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What is the Score of the match on a clay surface with... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_10_7_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What is the Outcome of the match with a Score of 6–3,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_10_7_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What is the Outcome of the match with a Score of 6–3,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_10_7_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What is the Outcome of the match on 12 september 2004... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_10_7_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What was the Surface when the Score was 6–4, 2–6, 3–6... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cost_per_kilowatt_hour_us_cents_k_wh" (
"20_years" text,
"2400_k_wh_k_w_p_y" real,
"2200_k_wh_k_w_p_y" real,
"2000_k_wh_k_w_p_y" real,
"1800_k_wh_k_w_p_y" real,
"1600_k_wh_k_w_p_y" real,
"14... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cost_per_kilowatt_hour_us_cents_k_wh" (
"20_years" text,
"2400_k_wh_k_w_p_y" real,
"2200_k_wh_k_w_p_y" real,
"2000_k_wh_k_w_p_y" real,
"1800_k_wh_k_w_p_y" real,
"1600_k_wh_k_w_p_y" real,
"14... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cost_per_kilowatt_hour_us_cents_k_wh" (
"20_years" text,
"2400_k_wh_k_w_p_y" real,
"2200_k_wh_k_w_p_y" real,
"2000_k_wh_k_w_p_y" real,
"1800_k_wh_k_w_p_y" real,
"1600_k_wh_k_w_p_y" real,
"14... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cost_per_kilowatt_hour_us_cents_k_wh" (
"20_years" text,
"2400_k_wh_k_w_p_y" real,
"2200_k_wh_k_w_p_y" real,
"2000_k_wh_k_w_p_y" real,
"1800_k_wh_k_w_p_y" real,
"1600_k_wh_k_w_p_y" real,
"14... |
<|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 was the total attendance at a game against the Pittsburgh Steelers before week 4?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "premier_division" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: What was the date of the game held at the A venue with a result of 0-1 against 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" text
);
Question: Who was the opponent on November 11, 2001?
<|assistant|>
SELECT "opponent" FROM "schedule" W... |
<|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: Who was the opponent before week 5 that played on September 23, 2001?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tyler" (
"model_number" text,
"frequency" text,
"l2_cache" text,
"multiplier_1" text,
"voltage" text,
"socket" text,
"release_date" text,
"order_part_number" text
);
Question: What is the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tyler" (
"model_number" text,
"frequency" text,
"l2_cache" text,
"multiplier_1" text,
"voltage" text,
"socket" text,
"release_date" text,
"order_part_number" text
);
Question: What is the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tyler" (
"model_number" text,
"frequency" text,
"l2_cache" text,
"multiplier_1" text,
"voltage" text,
"socket" text,
"release_date" text,
"order_part_number" text
);
Question: What is the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tyler" (
"model_number" text,
"frequency" text,
"l2_cache" text,
"multiplier_1" text,
"voltage" text,
"socket" text,
"release_date" text,
"order_part_number" text
);
Question: What is the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polling" (
"poll_source" text,
"date_s_administered" text,
"sample_size" real,
"margin_of_error" text,
"mel_martinez_r" text,
"betty_castor_d" text
);
Question: What is the highest sample siz... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polling" (
"poll_source" text,
"date_s_administered" text,
"sample_size" real,
"margin_of_error" text,
"mel_martinez_r" text,
"betty_castor_d" text
);
Question: What is the percentage for Mel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "apea_s_campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: How many games were pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "apea_s_campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: How many games were pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1867_74" (
"1st_built" real,
"1913_class" text,
"w_a" text,
"no_built" real,
"builder" text,
"date" text,
"lner_class" text
);
Question: What LINER class has a W.A. of 0-6-0st with a 2 No. ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What is the pick number for Peter Moore of the Montreal Alouettes?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What CFL team did Kelly Bates play for?
<|assistant|>
SELECT "cfl_team" FROM "round_f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_derby_appearances" (
"competition" text,
"total_matches" real,
"cardiff_win" real,
"draw" real,
"swansea_win" real
);
Question: How many average total matches have a swansea win less than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_derby_appearances" (
"competition" text,
"total_matches" real,
"cardiff_win" real,
"draw" real,
"swansea_win" real
);
Question: How many cardiff wins have a draw greater than 27?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_derby_appearances" (
"competition" text,
"total_matches" real,
"cardiff_win" real,
"draw" real,
"swansea_win" real
);
Question: How many average total matches have league cup as the compet... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_population_density" (
"rank" real,
"province" text,
"population" real,
"area" real,
"density" real
);
Question: What is the highest Rank with a density less than 376.37, the province was val... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_population_density" (
"rank" real,
"province" text,
"population" real,
"area" real,
"density" real
);
Question: What is the average Density when the area is more than 1,185.8 with a populati... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_population_density" (
"rank" real,
"province" text,
"population" real,
"area" real,
"density" real
);
Question: What is the highest Density for the independencia province, with an area small... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eighthfinals" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Which 2nd leg has pamesa valencia for team #2?
<|assistant|>
SELECT "2nd_leg" FROM "e... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eighthfinals" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the team #1 that has unics kazan for team #2?
<|assistant|>
SELECT "team_num1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eighthfinals" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the 1st leg that has akasvayu girona as team #2?
<|assistant|>
SELECT "1st_le... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: Which Wins has a Tournament of totals, and a Cuts made la... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: Which Top-10 has a Cuts made larger than 42?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: Which Wins has a Top-5 of 6?
<|assistant|>
SELECT AVG("wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: Which Cuts made has a Top-25 smaller than 3?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: Which Top-10 has a Cuts made of 10, and a Top-5 larger th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rankings" (
"name" text,
"rank" real,
"out_of" text,
"source" text,
"year" real
);
Question: Concerning protestantism by country, the ranking is out of how many total?
<|assistant|>
SELECT "out... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rankings" (
"name" text,
"rank" real,
"out_of" text,
"source" text,
"year" real
);
Question: What is the lowest rank that the protestants population holds?
<|assistant|>
SELECT MIN("rank") FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "albums" (
"album_title" text,
"format" text,
"year" real,
"original_label" text,
"chart_positions" text
);
Question: The album titled I had what chart positions?
<|assistant|>
SELECT "chart_pos... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "albums" (
"album_title" text,
"format" text,
"year" real,
"original_label" text,
"chart_positions" text
);
Question: What is the title of the album that has Popup has the original label?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "albums" (
"album_title" text,
"format" text,
"year" real,
"original_label" text,
"chart_positions" text
);
Question: What is the format of the album with a year less than 1992?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "albums" (
"album_title" text,
"format" text,
"year" real,
"original_label" text,
"chart_positions" text
);
Question: What chart positions did the album reach when ep was the format?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_players_drafted_in_the_nba" (
"year" real,
"round" real,
"pick" real,
"player" text,
"nba_team" text
);
Question: What was the average pick with Ed O'Bannon and a round smaller than 1?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_players_drafted_in_the_nba" (
"year" real,
"round" real,
"pick" real,
"player" text,
"nba_team" text
);
Question: What player was drafted for the Detroit Pistons?
<|assistant|>
SELECT "pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preliminary_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Which Team 2 had a Team 1 of montreal impact?
<|assistant|>
SELECT "team_2" FROM "prel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preliminary_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Which Team 2 had a Team 1of joe public?
<|assistant|>
SELECT "team_2" FROM "preliminar... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preliminary_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Which team 1 had a Team 2 of hankook verdes?
<|assistant|>
SELECT "team_1" FROM "preli... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preliminary_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the first leg score when team 2 is Wagad Mogadishu?
<|assistant|>
SELECT "1st_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preliminary_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the first leg score when the second leg score is 0-4?
<|assistant|>
SELECT "1s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.