text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "biggest_wins" (
"margin" real,
"score" text,
"opponent" text,
"venue" text,
"year" real
);
Question: Name the sum of year for penrith panthers opponent
<|assistant|>
SELECT SUM("year") FROM "bi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "biggest_wins" (
"margin" real,
"score" text,
"opponent" text,
"venue" text,
"year" real
);
Question: Name the opponent for 1996 at the mt smart stadium venue
<|assistant|>
SELECT "opponent" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "biggest_wins" (
"margin" real,
"score" text,
"opponent" text,
"venue" text,
"year" real
);
Question: Name the average year for 46 margin
<|assistant|>
SELECT AVG("year") FROM "biggest_wins" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "biggest_wins" (
"margin" real,
"score" text,
"opponent" text,
"venue" text,
"year" real
);
Question: Name the margin for 2002
<|assistant|>
SELECT "margin" FROM "biggest_wins" WHERE "year"=2002... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: Who participated in the Mixed Doubles when Tracey Hallam par... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: Who participated in the Mixed Doubles when Simon Santoso par... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "private_schools" (
"school" text,
"grades" text,
"affiliation" text,
"student_body" text,
"enrollment" real
);
Question: Which Affiliation has an Enrollement larger than 502?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "private_schools" (
"school" text,
"grades" text,
"affiliation" text,
"student_body" text,
"enrollment" real
);
Question: What School has an Enrollement smaller than 301?
<|assistant|>
SELECT "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "private_schools" (
"school" text,
"grades" text,
"affiliation" text,
"student_body" text,
"enrollment" real
);
Question: Which Grades has an Enrollment larger htan 443 with a Student body of Co... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "private_schools" (
"school" text,
"grades" text,
"affiliation" text,
"student_body" text,
"enrollment" real
);
Question: What's the Student Body with an Affiliation of Roman Catholic and has an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_tour_finishers" (
"rider" text,
"year" real,
"final_position_giro" real,
"final_position_tour" real,
"final_position_vuelta" real
);
Question: What is the average year that has a final To... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_tour_finishers" (
"rider" text,
"year" real,
"final_position_giro" real,
"final_position_tour" real,
"final_position_vuelta" real
);
Question: What is the final Vuelta position associated... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_tour_finishers" (
"rider" text,
"year" real,
"final_position_giro" real,
"final_position_tour" real,
"final_position_vuelta" real
);
Question: How many Giro positions are associated with ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: How many laps did the rider Alex Baldolini take?
<|assistant|>
SELECT SUM("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: How many laps were completed in the time of +7.213 with a grid number large... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is total number of laps for bikes manufactured by KTM with a time of +... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atp_challenger_tour_and_itf_futures_doub" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What was the surface for the May 10, 20... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"class" text,
"tyres" text,
"team" text,
"co_drivers" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: Which co-driver has fewer th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"class" text,
"tyres" text,
"team" text,
"co_drivers" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: Which class more recent than... |
<|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,
"years_at_club" text
);
Question: What is the greatest number of caps for Bruc... |
<|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,
"years_at_club" text
);
Question: How many goals were scored by Eugene Galekov... |
<|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,
"years_at_club" text
);
Question: How many goals were scored by players with m... |
<|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 highest place of a swimmer from the Netherlands?
<|assistant|>
SELECT MAX("rank") ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "waikato_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" text,
"roll" real
);
Question: Name the authority for te akau with roll less than 254 a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "waikato_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" text,
"roll" real
);
Question: Tell me the name with decile of 6 and roll of 93
<|assis... |
<|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 is the result of the match on January 26, 2006?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "specifications" (
"model" text,
"launch_year" real,
"ram_mi_b" real,
"rom_mi_b" real,
"slots" text,
"wi_fi" text,
"bluetooth" text
);
Question: What was the status of Bluetooth for the mode... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "specifications" (
"model" text,
"launch_year" real,
"ram_mi_b" real,
"rom_mi_b" real,
"slots" text,
"wi_fi" text,
"bluetooth" text
);
Question: What is the RAM (MiB) value for the X30 Mid-R... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"season" text,
"games" real,
"lost" real,
"tied" text,
"points" real,
"goals_for" real,
"goals_against" real,
"standing" text
);
Question: How many points did the team w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "short_course_25_meter_pool" (
"event" text,
"time" text,
"venue" text,
"date" text,
"notes" text
);
Question: Which event had the time 45.74?
<|assistant|>
SELECT "event" FROM "short_course_25_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "short_course_25_meter_pool" (
"event" text,
"time" text,
"venue" text,
"date" text,
"notes" text
);
Question: What was the time of December 15, 2010?
<|assistant|>
SELECT "time" FROM "short_cou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "short_course_25_meter_pool" (
"event" text,
"time" text,
"venue" text,
"date" text,
"notes" text
);
Question: What were the notes for the time 45.74?
<|assistant|>
SELECT "notes" FROM "short_co... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_squad_statistics" (
"player" text,
"position" text,
"previous_club" text,
"apps" real,
"tries" real,
"goals" text,
"points" real
);
Question: What Player has 23 Tries?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_squad_statistics" (
"player" text,
"position" text,
"previous_club" text,
"apps" real,
"tries" real,
"goals" text,
"points" real
);
Question: How many Goals did Matt Cook have?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_squad_statistics" (
"player" text,
"position" text,
"previous_club" text,
"apps" real,
"tries" real,
"goals" text,
"points" real
);
Question: What Full Back Player has 0 Apps?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_squad_statistics" (
"player" text,
"position" text,
"previous_club" text,
"apps" real,
"tries" real,
"goals" text,
"points" real
);
Question: With 0 Goals and less than 1 Tries, what i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january_secondary_phase" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
);
Question: What is the earliest round drafted for a University of Southern California playe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january_secondary_phase" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
);
Question: What round drafted was the 1b and a Signed of no cardinals - 1969 june?
<|assist... |
<|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: Which event has an Opponent o... |
<|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: Which location has an Opponen... |
<|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: Which opponent has a Time of ... |
<|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: Which event resulted in loss ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "changes_in_medal_standings" (
"sport" text,
"event" text,
"nation" text,
"gold" text,
"silver" text,
"bronze" text,
"total" text
);
Question: What is the winner of gold that also has ↓ 1 i... |
<|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,
"pos" text,
"class_pos" text
);
Question: What is the most recent year that Gulf Racing Midd... |
<|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,
"pos" text,
"class_pos" text
);
Question: What is the class of the co-driver emanuele pirro ... |
<|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,
"pos" text,
"class_pos" text
);
Question: What was the final position of Arena Motorsports I... |
<|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,
"pos" text,
"class_pos" text
);
Question: Who was the Co-Driver of the winner of 1992's race... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_3_titles_2_runner_ups" (
"outcome" text,
"date" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: What is the score in the final with runner-u... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Who is team 1 when 2nd leg score is 1-3 and Asec Mimosas is Team 2?
<|assistant|>
SELECT "t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the 1st leg score when 2nd leg score is 3-3?
<|assistant|>
SELECT "1st_leg" FROM "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the 1st leg score when US Mbila Nzambi is team 1?
<|assistant|>
SELECT "1st_leg" FR... |
<|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 was the opponent on May 20?
<|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: Who took the loss on May 25?
<|assistant|>
SELECT "loss" FROM "game_log" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What was the record after the game that ended in a 2-3 loss?
<|assistant|>
S... |
<|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 date of the game that had a loss of Politte (0-2)?
<|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" real,
"record" text
);
Question: Who was the opponent at the game that had a loss of Hendrickson (0-1)?
<|ass... |
<|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 smallest attendance at a game when the record was 7-15?
<|assis... |
<|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 average attendance at a game when the record was 6-13?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "principle" (
"group" real,
"half_life_s" real,
"decay_constant_s_1" real,
"yield_neutrons_per_fission" real,
"fraction" real
);
Question: What is the yield, neutrons per fission of the group wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "principle" (
"group" real,
"half_life_s" real,
"decay_constant_s_1" real,
"yield_neutrons_per_fission" real,
"fraction" real
);
Question: What is the decay constant with a half-life less than 2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "principle" (
"group" real,
"half_life_s" real,
"decay_constant_s_1" real,
"yield_neutrons_per_fission" real,
"fraction" real
);
Question: What is the lowest half-life with a yield, neutrons per... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: With Round 3 and Pick # over 10, what is the highe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the highest round for College of Nebraska ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which college has a Pick # 1, Overall more than on... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_premier_league" (
"date" text,
"opponents" text,
"result_f_a" text,
"attendance" real,
"league_position" text
);
Question: What was the attendance on 21 August 2004?
<|assistant|>
SELECT SUM... |
<|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" real
);
Question: What is the average rank of an athlete that holds a time higher than 53.38?
<|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" real
);
Question: What lane did the swimmer with a time of 52.84 have?
<|assistant|>
SELECT MAX("lane") FROM "se... |
<|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" real
);
Question: What lane did the rank 3 swimmer use?
<|assistant|>
SELECT MAX("lane") FROM "semifinal_2" WHER... |
<|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: Which opponent played on July 15?
<|assistant|>
SELECT "opponent" FROM "game... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What is the record for a game played on July 16 with attendance of more than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: Where has Jimmy Demaret as a player?
<|assistant|>
SELECT "place" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: How much does it cost for United States and Byron nelson?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: Which Country has a Place of t8 and byron nelson?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_japanese_prefectural_capitals" (
"capital" text,
"prefecture" text,
"region" text,
"island" text,
"pop" real
);
Question: Name the average pop for chūgoku and prefecture of okayama
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_japanese_prefectural_capitals" (
"capital" text,
"prefecture" text,
"region" text,
"island" text,
"pop" real
);
Question: Name the highest pop for tottori
<|assistant|>
SELECT MAX("pop"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_japanese_prefectural_capitals" (
"capital" text,
"prefecture" text,
"region" text,
"island" text,
"pop" real
);
Question: Name the sum of pop for shizuoka
<|assistant|>
SELECT SUM("pop"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_japanese_prefectural_capitals" (
"capital" text,
"prefecture" text,
"region" text,
"island" text,
"pop" real
);
Question: Name the total number of pop for ibaraki
<|assistant|>
SELECT C... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"school" text,
"location" text,
"mascot" text,
"county" text,
"enrollment_ihsaa_class" text,
"joined" real,
"previous_conference" text
);
Question: Who is the mascot for ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"school" text,
"location" text,
"mascot" text,
"county" text,
"enrollment_ihsaa_class" text,
"joined" real,
"previous_conference" text
);
Question: Which previous confere... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"school" text,
"location" text,
"mascot" text,
"county" text,
"enrollment_ihsaa_class" text,
"joined" real,
"previous_conference" text
);
Question: Which location is in 7... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"school" text,
"location" text,
"mascot" text,
"county" text,
"enrollment_ihsaa_class" text,
"joined" real,
"previous_conference" text
);
Question: What is the mascot for... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" text,
"architect" text
);
Question: What was the address of the buil... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" text,
"architect" text
);
Question: How many years as tallest buildi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" text,
"architect" text
);
Question: How many years as tallest buildi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" text,
"architect" text
);
Question: What is the height of the Tenth ... |
<|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: For the Loss of Plesac (1-5), what is the Record?
<|assistant|>
SELECT "reco... |
<|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: For the Loss of Plesac (1-5), what is the Record?
<|assistant|>
SELECT "reco... |
<|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 year less than 1990 and chassis of eurobr... |
<|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 engine for years before 1990 and chassis of eurobrun ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"year" text,
"games_played" real,
"games_started" real,
"attempts" real,
"yards" real,
"touchdowns" real,
"receptions" real,
"rec_yards" real,
"rec_touchdowns" real,
"fum... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"year" text,
"games_played" real,
"games_started" real,
"attempts" real,
"yards" real,
"touchdowns" real,
"receptions" real,
"rec_yards" real,
"rec_touchdowns" real,
"fum... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
);
Question: When was the location 15km NW of Pol-E Khomri, the circumstaances IED and t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
);
Question: When was the incident in Pol-E Khomri?
<|assistant|>
SELECT "date" FROM "20... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
);
Question: What was the incident in imam sahib area, kunduz province?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_hostages" (
"romanized_name" text,
"name_in_hangul" text,
"name_in_hanja" text,
"gender" text,
"birth_year" real
);
Question: What gender has Romanized name and kim yoon-yeong?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_statistics" (
"year" real,
"team" text,
"games" real,
"attempts" real,
"yards" real
);
Question: What year did Willis McGahee play fewer than 15 games with the Baltimore Ravens?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_statistics" (
"year" real,
"team" text,
"games" real,
"attempts" real,
"yards" real
);
Question: After the 2013 season, what was the fewest number of games that Willis McGahee played in ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the result when the competition was the 2006 fifa world cup qualifier, and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the name of the venue when the competition was friendly, with a Result of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the name of the venue when the score was 5–0, and a Competition of 2007 ca... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.