text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_goals_in_a_game" (
"rank" text,
"score" text,
"player" text,
"club" text,
"opponent" text,
"year" text,
"round" text,
"venue" text
);
Question: In Round 19, where did Tony Lockett pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_goals_in_a_game" (
"rank" text,
"score" text,
"player" text,
"club" text,
"opponent" text,
"year" text,
"round" text,
"venue" text
);
Question: Who is the opponent in 1992?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_goals_in_a_game" (
"rank" text,
"score" text,
"player" text,
"club" text,
"opponent" text,
"year" text,
"round" text,
"venue" text
);
Question: What club had a score of 18.1?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"br_sr_no" text,
"sr_name" text,
"lswr_no" real,
"builder" text,
"built" real,
"to_io_w" real,
"withdrawn" real
);
Question: What is the number for year built of W27 that was ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"br_sr_no" text,
"sr_name" text,
"lswr_no" real,
"builder" text,
"built" real,
"to_io_w" real,
"withdrawn" real
);
Question: What is the number of the year withdrawn for a LSW... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"br_sr_no" text,
"sr_name" text,
"lswr_no" real,
"builder" text,
"built" real,
"to_io_w" real,
"withdrawn" real
);
Question: What is the BR/SR number of Freshwater which was w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text
);
Question: Name the engine for year less than 1977
<|assistant|>
SELECT "engine" FROM "indy_500_res... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text
);
Question: Name the start for year less than 1977
<|assistant|>
SELECT "start" FROM "indy_500_resul... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text
);
Question: Name the least year for start of 17th
<|assistant|>
SELECT MIN("year") FROM "indy_500_re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text
);
Question: Name the start for finish being 21st
<|assistant|>
SELECT "start" FROM "indy_500_results... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television" (
"digital_channel" text,
"digital_psip" real,
"rogers_cable_ottawa" real,
"vid_otron_gatineau" real,
"call_sign" text,
"network" text
);
Question: What is the Call sign of the Om... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television" (
"digital_channel" text,
"digital_psip" real,
"rogers_cable_ottawa" real,
"vid_otron_gatineau" real,
"call_sign" text,
"network" text
);
Question: What's the total number of Roge... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television" (
"digital_channel" text,
"digital_psip" real,
"rogers_cable_ottawa" real,
"vid_otron_gatineau" real,
"call_sign" text,
"network" text
);
Question: Which Network is on a Vidéotron... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: What was the record after the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: What was the result of the fi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What was the score of the game when the record was 63-59 and the attendance ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Who did they play on August 26?
<|assistant|>
SELECT "opponent" FROM "game_l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What was the attendance for the game on August 16?
<|assistant|>
SELECT SUM(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What team did Johnson (11-7) play for?
<|assistant|>
SELECT "opponent" FROM ... |
<|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,
"pts" real
);
Question: What is the highest number of points the cosworth straight-4 engi... |
<|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,
"pts" real
);
Question: What is the latest year that shadow racing team scored more than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: What round was held in palava... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: Who played in the men's singles ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: Who won the men's doubles in 199... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_of_32" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the second leg that Valencia was on?
<|assistant|>
SELECT "2nd_leg" FROM "round_of_3... |
<|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: Name the loss with record of 14-19
<|assistant|>
SELECT "loss" FROM "game_log" WHERE "record"='14... |
<|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: Name the score with record of 17-27
<|assistant|>
SELECT "score" FROM "game_log" WHERE "record"='... |
<|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: Name the opponent with record of 12-18
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "rec... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" te... |
<|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's the total score of Danny Edwards?
<|assistant|>
SELECT SUM("score") FROM "first_round... |
<|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: Where was the place in Australia that had a score of 70?
<|assistant|>
SELECT "place" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_8" (
"episode" text,
"first_aired" text,
"entrepreneur_s" text,
"company_or_product_name" text,
"money_requested" text,
"investing_dragon_s" text
);
Question: The entrepreneur Adam Wea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_8" (
"episode" text,
"first_aired" text,
"entrepreneur_s" text,
"company_or_product_name" text,
"money_requested" text,
"investing_dragon_s" text
);
Question: The entrepreneur Layla Be... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "with_population_above_10_million" (
"rank" real,
"country_region" text,
"population" real,
"area_km_2" real,
"density_pop_per_km_2" real
);
Question: What is the lowest rank of the region with ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "with_population_above_10_million" (
"rank" real,
"country_region" text,
"population" real,
"area_km_2" real,
"density_pop_per_km_2" real
);
Question: What is the lowest area of the region with ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "with_population_above_10_million" (
"rank" real,
"country_region" text,
"population" real,
"area_km_2" real,
"density_pop_per_km_2" real
);
Question: What is the highest population of the regio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "with_population_above_10_million" (
"rank" real,
"country_region" text,
"population" real,
"area_km_2" real,
"density_pop_per_km_2" real
);
Question: What is the average population of the regio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "with_population_above_10_million" (
"rank" real,
"country_region" text,
"population" real,
"area_km_2" real,
"density_pop_per_km_2" real
);
Question: What is the rank of the region with an area... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a_link_express" (
"model" text,
"codename" text,
"released" text,
"fab_nm" real,
"sata" text,
"usb_2_0_1_1" text,
"usb_3_0" text,
"parallel_ata_1" text,
"raid" real,
"gb_ethernet_mac" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a_link_express" (
"model" text,
"codename" text,
"released" text,
"fab_nm" real,
"sata" text,
"usb_2_0_1_1" text,
"usb_3_0" text,
"parallel_ata_1" text,
"raid" real,
"gb_ethernet_mac" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campus_superstar_2007" (
"round" text,
"name" text,
"song" text,
"score" real,
"status" text
);
Question: Which round is a lower score than 21.5?
<|assistant|>
SELECT "round" FROM "campus_super... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campus_superstar_2007" (
"round" text,
"name" text,
"song" text,
"score" real,
"status" text
);
Question: Which round status is in with this song: 叶良俊 - 爱你不是爱给别人看?
<|assistant|>
SELECT "round" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campus_superstar_2007" (
"round" text,
"name" text,
"song" text,
"score" real,
"status" text
);
Question: Which status accompanies the score 21.5?
<|assistant|>
SELECT "status" FROM "campus_sup... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campus_superstar_2007" (
"round" text,
"name" text,
"song" text,
"score" real,
"status" text
);
Question: Wjat score is greater than 22 with this song: 林俊杰 - 木乃伊?
<|assistant|>
SELECT "name" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campus_superstar_2007" (
"round" text,
"name" text,
"song" text,
"score" real,
"status" text
);
Question: What round has this song: 陶喆、蔡依林 - 今天你要嫁给我/曹格 - 世界唯一的你?
<|assistant|>
SELECT "round" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "melodifestivalen_1959" (
"draw" real,
"artist" text,
"song" text,
"songwriters" text,
"points" real,
"place" text
);
Question: What is the artist with less than a 2 draw?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "twenty_five_cents" (
"year" real,
"theme" text,
"artist" text,
"mintage" text,
"issue_price" real,
"special_notes" text
);
Question: What is the average issue price with from Toronto maple le... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "twenty_five_cents" (
"year" real,
"theme" text,
"artist" text,
"mintage" text,
"issue_price" real,
"special_notes" text
);
Question: What theme has a mintage of 3527?
<|assistant|>
SELECT "th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "twenty_five_cents" (
"year" real,
"theme" text,
"artist" text,
"mintage" text,
"issue_price" real,
"special_notes" text
);
Question: When was a mintage of 1264 with more than 24.95 issued?
<|... |
<|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 most year for team motul brm and chassis of brm p201 ... |
<|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 entrant for 1975 and chassis of hill gh1
<|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 chassis for engine of brm v12
<|assistant|>
SELECT "c... |
<|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 most year for points more than 0
<|assistant|>
SELECT... |
<|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 sum of points for chassis of brm p160e and year more ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What is the chassis after 1991?
<|assistant|>
SELECT "chassis" FROM "compl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What are the average points after 1992?
<|assistant|>
SELECT AVG("points")... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What is the sum of points in 1991, for footwork a11c chassis?
<|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: How many points does an entrant of Martini Racing, the engine ... |
<|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: Which chassis is from 1974 and was an entrant of Goldie Hexago... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What is the average points of a Cosworth v8 engine in 1973.
<|... |
<|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: Which chassis has an Alfa Romeo flat-12 engine.
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: What was the score of the game that had an attendance of 32,036?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: On what date did the result leave the team with a record of 46-34?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
Question: Name the opponent with round ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
Question: Name the record with opponent... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
Question: Name the opponent with decisi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_winners" (
"year" text,
"venue" text,
"winners" text,
"runner_up" text,
"3rd_place" text
);
Question: What was the 3rd place value in 2011?
<|assistant|>
SELECT "3rd_place" FROM "previ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_2010_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_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_2010_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_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_2010_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_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_2010_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_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_2010_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_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_2010_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_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: who won the women's doubles at the s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: what year saw georgy trouerbach nico... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: who won the women's singles in 1992?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: who won the women's singles at the s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: who won the men's doubles in 1933?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What was the 1st leg when Team 2 was Aurora?
<|assistant|>
SELECT "1st_leg" FROM "first_roun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What was the 2nd leg when Team 1 was Chicago Croatian?
<|assistant|>
SELECT "2nd_leg" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Who was Team 2 when Team 1 was América?
<|assistant|>
SELECT "team_2" FROM "first_round" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Which nationality do the Montreal Canadiens bel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What is the pick# for the California Golden Sea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the Goal in Stade Roi Baudouin, Brussels?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What Venue had 2 or more Goals in a Friendly Competition?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_2_data_from_all_known_specimens_of" (
"number_cmnh" real,
"number_pnm" text,
"date" text,
"site" real,
"altitude" text,
"sex_and_other_data" text
);
Question: Which Site that has a Sex ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"sport" text,
"competition_name" text,
"competing_entities" text,
"age_groups" text,
"held_every" text
);
Question: What is the age group for figure skating?
<|assistant|>
SELECT "age_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"sport" text,
"competition_name" text,
"competing_entities" text,
"age_groups" text,
"held_every" text
);
Question: what is the sport when the age group is 21 or younger and the compet... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"sport" text,
"competition_name" text,
"competing_entities" text,
"age_groups" text,
"held_every" text
);
Question: what is the competition name when the age group is 17 or younger for... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"sport" text,
"competition_name" text,
"competing_entities" text,
"age_groups" text,
"held_every" text
);
Question: what is the competing entities when the age group is 18 or younger, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances" (
"episode" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
Question: What result did Janis Ian have in the episode of top 3?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances" (
"episode" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
Question: What was the result of the singer with the top 8?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances" (
"episode" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
Question: What song was chosen for the episode with the top 8?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances" (
"episode" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
Question: Which episode had Hoagy carmichael safe with an order of 5?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances" (
"episode" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
Question: In what order were the Bee Gees as the artist when it was a result of bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"draw" real,
"country" text,
"language" text,
"artist" text,
"song" text,
"english_translation" text,
"result" text
);
Question: Name the total number of drawn for danish and mathi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"draw" real,
"country" text,
"language" text,
"artist" text,
"song" text,
"english_translation" text,
"result" text
);
Question: Name the result for linn nygård
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"draw" real,
"country" text,
"language" text,
"artist" text,
"song" text,
"english_translation" text,
"result" text
);
Question: Name the song for draw less than 7 and artists of m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.