text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_team_matches" (
"date" text,
"location" text,
"opponenent" text,
"result" text,
"match_type" text
);
Question: Where was the opponent Germany?
<|assistant|>
SELECT "location" FROM "nat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_team_matches" (
"date" text,
"location" text,
"opponenent" text,
"result" text,
"match_type" text
);
Question: Who was the opponent when the result was 2-2 (draw)?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_team_matches" (
"date" text,
"location" text,
"opponenent" text,
"result" text,
"match_type" text
);
Question: What was the match type in Budapest where the opponent was Luxembourg?
<|... |
<|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 has the score 72-67-69=208?
<|assistant|>
SELECT "player" FROM "third_round" WH... |
<|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 has the par score of 70-76-68-214?
<|assistant|>
SELECT "to_par" FROM "third_round" WHER... |
<|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 country has the score 70-76-68-214?
<|assistant|>
SELECT "country" FROM "third_round" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "billy_elliot" (
"status" text,
"name" text,
"first_performance" text,
"last_performance" text,
"style" text
);
Question: when was the first performance for the ballet with peter mazurowski in t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "billy_elliot" (
"status" text,
"name" text,
"first_performance" text,
"last_performance" text,
"style" text
);
Question: who had the first performance on 3 july 2011?
<|assistant|>
SELECT "name... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "billy_elliot" (
"status" text,
"name" text,
"first_performance" text,
"last_performance" text,
"style" text
);
Question: who had a last performance of 3 july 2011?
<|assistant|>
SELECT "name" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "billy_elliot" (
"status" text,
"name" text,
"first_performance" text,
"last_performance" text,
"style" text
);
Question: what's the status in the style of ballet/ gymnastics?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "billy_elliot" (
"status" text,
"name" text,
"first_performance" text,
"last_performance" text,
"style" text
);
Question: what's the name with final cast status and first performance on 12 novem... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "billy_elliot" (
"status" text,
"name" text,
"first_performance" text,
"last_performance" text,
"style" text
);
Question: what last performance has past status, ballet as style and tommy batchel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "squad_information" (
"nat" text,
"name" text,
"since" real,
"goals" real,
"ends" text,
"transfer_fee" text
);
Question: How many goals was by Rix from Eng who started before 2005 in the youth... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "squad_information" (
"nat" text,
"name" text,
"since" real,
"goals" real,
"ends" text,
"transfer_fee" text
);
Question: Where is Rix from?
<|assistant|>
SELECT "nat" FROM "squad_information" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cab_units_fa_fp_series" (
"model" text,
"specification" text,
"build_date" text,
"total_produced" real,
"wheel_arrangement" text,
"prime_mover" text,
"power_output" text
);
Question: What i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cab_units_fa_fp_series" (
"model" text,
"specification" text,
"build_date" text,
"total_produced" real,
"wheel_arrangement" text,
"prime_mover" text,
"power_output" text
);
Question: What i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cab_units_fa_fp_series" (
"model" text,
"specification" text,
"build_date" text,
"total_produced" real,
"wheel_arrangement" text,
"prime_mover" text,
"power_output" text
);
Question: What i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cab_units_fa_fp_series" (
"model" text,
"specification" text,
"build_date" text,
"total_produced" real,
"wheel_arrangement" text,
"prime_mover" text,
"power_output" text
);
Question: What i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_transmitters" (
"region_served" text,
"city" text,
"channels_analog_digital" text,
"first_air_date" text,
"erp_analog_digital" text,
"haat_analog_digital_1" text,
"transmitter_location"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"season" text,
"prelim" text,
"1st_round" text,
"2nd_round" text,
"3rd_round" text,
"finals" text
);
Question: Name the 3rd round for 1st eound of out of playoffs
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"season" text,
"prelim" text,
"1st_round" text,
"2nd_round" text,
"3rd_round" text,
"finals" text
);
Question: Name the finals for prelim of out of playoffs
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"season" text,
"prelim" text,
"1st_round" text,
"2nd_round" text,
"3rd_round" text,
"finals" text
);
Question: Name the 2nd round for 1st round of l, 1β3, sjnb
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_filmography" (
"year" real,
"song" text,
"film" text,
"language" text,
"music_director" text
);
Question: Who is the musical director of the film Vettaiyaadu vilaiyaadu?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_filmography" (
"year" real,
"song" text,
"film" text,
"language" text,
"music_director" text
);
Question: What is the 2007 film in Hindi with a music director Shantanu moitra?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winningest_coaches_by_wins" (
"coach" text,
"team" text,
"wins" real,
"loss" real,
"pct" real,
"pts" real
);
Question: What is the number of losses that coach John Kowalski has with a PTS sma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winningest_coaches_by_wins" (
"coach" text,
"team" text,
"wins" real,
"loss" real,
"pct" real,
"pts" real
);
Question: What is the average PCT when it has a PTS smaller than 9 a wins larger t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winningest_coaches_by_wins" (
"coach" text,
"team" text,
"wins" real,
"loss" real,
"pct" real,
"pts" real
);
Question: What is the sum of PTS when there is a PCT smaller than 0.1?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winningest_coaches_by_wins" (
"coach" text,
"team" text,
"wins" real,
"loss" real,
"pct" real,
"pts" real
);
Question: What coach has a PCT larger than 0.1, PTS larger than 9 and a loss of 19... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What's the name of spain rank greater than 2?
<|assistant|>
SELECT "name" FROM "semifinal_2" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: Spain had what time with lanes smaller than 4?
<|assistant|>
SELECT "time" FROM "semifinal_2" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What's the smallest rank of noriko inada?
<|assistant|>
SELECT MIN("rank") FROM "semifinal_2" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ppl_2004_final_standings" (
"team" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: How many total losses have teams that played more than 30 games?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What is the number of the rank when the time is 2:15.98, in a lane larger than 7?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What is the number of the rank for the name of Chen Yan in a lane less than 2?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What is the smallest lane for rank 6?
<|assistant|>
SELECT MIN("lane") FROM "semifinal_2" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goals" (
"name" text,
"league" real,
"play_offs" real,
"fa_cup" real,
"league_cup" real,
"total" real
);
Question: What's the total for a league cup less than 1?
<|assistant|>
SELECT COUNT("l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goals" (
"name" text,
"league" real,
"play_offs" real,
"fa_cup" real,
"league_cup" real,
"total" real
);
Question: What's the FA Cup that has a league less than 1?
<|assistant|>
SELECT SUM("f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "administrative_divisions" (
"name" text,
"hanzi" text,
"area_km" real,
"population" real,
"villages" real
);
Question: Which town has the most villages with the hanzi εζ΅δΉ‘ and a population large... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text
);
Question: What position did lap 296 come in?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
);
Question:... |
<|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,
"decision" text,
"attendance" real,
"record" text
);
Question: Name the most attendance for october 11
<|assistant|... |
<|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,
"decision" text,
"attendance" real,
"record" text
);
Question: Name the visitor for october 19
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dragon_laws_television_films" (
"year" real,
"series_title" text,
"chinese_title" text,
"role" text,
"channel" text
);
Question: The highest year for the series titled dragon laws ii: kidnapped... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dragon_laws_television_films" (
"year" real,
"series_title" text,
"chinese_title" text,
"role" text,
"channel" text
);
Question: The series titled dragon laws i: the undercover has what role?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "paralympic_women" (
"classification" text,
"fastest_time_s" real,
"athlete" text,
"country" text,
"date" text,
"location" text
);
Question: Which athlete has the fastest time of 15.82?
<|assi... |
<|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: What is the total number of years that an entrant had more tha... |
<|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 brm straight-4
<|assistant|... |
<|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 points for chassis of bmw t269 (f2)
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_through_the_2011_12_season" (
"seasons" real,
"team" text,
"ch_wins" real,
"promotions" real,
"relegations" real
);
Question: Whats the highest Promotions that has a Team of Pallaca... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
"points" real
);
Question: What are the lowest points with a Chassis of zakspeed 841, and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
"points" real
);
Question: What is the lowest year with tyres in g and less than 0 points... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
"points" real
);
Question: Which year has an Engine(s) of yamaha v8?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
"points" real
);
Question: What are the average points with a Chassis of zakspeed 881?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "minor_sports_teams" (
"club" text,
"sport" text,
"league" text,
"venue" text,
"championships_years" text
);
Question: Which League has a Venue of martin luther king, jr. recreation center?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "minor_sports_teams" (
"club" text,
"sport" text,
"league" text,
"venue" text,
"championships_years" text
);
Question: Which Championships (Years) have a League of milb, florida state league, an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "minor_sports_teams" (
"club" text,
"sport" text,
"league" text,
"venue" text,
"championships_years" text
);
Question: Which Sport has a League of continental basketball league, and a Venue of a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "minor_sports_teams" (
"club" text,
"sport" text,
"league" text,
"venue" text,
"championships_years" text
);
Question: Which Venue has a Sport of baseball, Championships (Years) of 0, a League o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "minor_sports_teams" (
"club" text,
"sport" text,
"league" text,
"venue" text,
"championships_years" text
);
Question: Which club has a League of american basketball association, and a Venue of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hurunui_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Which area has Years of 1β8, a Decile smaller than 7, an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hurunui_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: What is the average decile with Years of 1β8, and an Are... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hurunui_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Which area has Years of 1β8, and a Name of broomfield sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hurunui_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: What is the smallest roll with a Decile larger than 6, a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hurunui_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Which name has a Roll of 270?
<|assistant|>
SELECT "name... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1_2007_2009" (
"prod_no" text,
"title" text,
"written_by" text,
"directed_by" text,
"original_airdate" text
);
Question: Who directed the episode written by Dan Serafin and aired on July... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1_2007_2009" (
"prod_no" text,
"title" text,
"written_by" text,
"directed_by" text,
"original_airdate" text
);
Question: What is the title of the episode originally aired on February 2, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_3" (
"episode" text,
"first_aired" text,
"entrepreneur_s" text,
"company_or_product_name" text,
"money_requested" text,
"investing_dragon_s" text
);
Question: How much money did James ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_3" (
"episode" text,
"first_aired" text,
"entrepreneur_s" text,
"company_or_product_name" text,
"money_requested" text,
"investing_dragon_s" text
);
Question: Which Entrepreneur(s) fir... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_3" (
"episode" text,
"first_aired" text,
"entrepreneur_s" text,
"company_or_product_name" text,
"money_requested" text,
"investing_dragon_s" text
);
Question: Which Entrepreneur(s) hav... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_3" (
"episode" text,
"first_aired" text,
"entrepreneur_s" text,
"company_or_product_name" text,
"money_requested" text,
"investing_dragon_s" text
);
Question: How much money did Ian Ch... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_3" (
"episode" text,
"first_aired" text,
"entrepreneur_s" text,
"company_or_product_name" text,
"money_requested" text,
"investing_dragon_s" text
);
Question: Which Investing Dragon(s)... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "completed" (
"name" text,
"height_of_bridge_structure" text,
"longest_span" text,
"type" text,
"opened" real,
"location" text
);
Question: How tall is the Anqing Bridge which opened prior to ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "completed" (
"name" text,
"height_of_bridge_structure" text,
"longest_span" text,
"type" text,
"opened" real,
"location" text
);
Question: Where did the cable-stayed Badong Bridge open in 20... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_silpathorn_award_winners" (
"year" real,
"literature" text,
"music" text,
"film" text,
"performing_arts" text
);
Question: Name the average year for janaprakal chandruang
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_silpathorn_award_winners" (
"year" real,
"literature" text,
"music" text,
"film" text,
"performing_arts" text
);
Question: Name the literature for pradit prasarttong
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_event_winners" (
"year" real,
"winner" text,
"winning_hand" text,
"prize_money" text,
"entrants" real,
"runner_up" text,
"losing_hand" text
);
Question: What was the first year Fabrice... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_event_winners" (
"year" real,
"winner" text,
"winning_hand" text,
"prize_money" text,
"entrants" real,
"runner_up" text,
"losing_hand" text
);
Question: How many entrants were there in... |
<|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 rank of Bobby Grim when he finished 1059 laps?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_boxing_record" (
"res" text,
"record" text,
"opponent" text,
"type" text,
"rd_time" text,
"date" text
);
Question: What is the rd., time of the match with a win result, a tko typ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_boxing_record" (
"res" text,
"record" text,
"opponent" text,
"type" text,
"rd_time" text,
"date" text
);
Question: What is the record of the match on 2009-07-18?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_boxing_record" (
"res" text,
"record" text,
"opponent" text,
"type" text,
"rd_time" text,
"date" text
);
Question: What is the type of the match with a win result and Michael Gom... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "internationally_capped_players" (
"player" text,
"country" text,
"caps" real,
"goals" text,
"years_active" text
);
Question: What were the goals when the caps were set at 48?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "internationally_capped_players" (
"player" text,
"country" text,
"caps" real,
"goals" text,
"years_active" text
);
Question: How many caps did the player Mile Sterjovski have?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "internationally_capped_players" (
"player" text,
"country" text,
"caps" real,
"goals" text,
"years_active" text
);
Question: What are the goals of Mile Sterjovski as a player?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "internationally_capped_players" (
"player" text,
"country" text,
"caps" real,
"goals" text,
"years_active" text
);
Question: How many caps did Mitchell Duke have overall?
<|assistant|>
SELECT C... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"scorers" text
);
Question: Which opponent has a Date of 16 february 2003?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"scorers" text
);
Question: Which date has an A venue with an Opponent of stoke city?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"scorers" text
);
Question: Which opponent has a Round of r5?
<|assistant|>
SELECT "opp... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"scorers" text
);
Question: Which Scorers have a Venue of A, and an Opponent of arsenal... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"scorers" text
);
Question: Which Opponent has a Round of qf replay?
<|assistant|>
SELE... |
<|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,
"record" text
);
Question: Who took the loss on the April 6 game?
<|assistant|>
SELECT "loss" FROM "game_log" WHERE "date"='... |
<|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,
"record" text
);
Question: What was the record after the April 15 game?
<|assistant|>
SELECT "record" FROM "game_log" WHERE ... |
<|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,
"record" text
);
Question: Who was the opponent that led to a 10-13 record?
<|assistant|>
SELECT "opponent" FROM "game_log" ... |
<|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,
"record" text
);
Question: What is the record after the April 6 game?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "d... |
<|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,
"record" text
);
Question: What was the score for the April 12 game?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "dat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
);
Question: What team has the most wins with at least 18... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
);
Question: How many times has the Cornwall HC team, tha... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.