text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: Which Game has a Team of at phoenix, and a Score of 107-119?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: Which Location Attendance has a Game larger than 5?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: Which Team has a Score of 89-123?
<|assistant|>
SELECT "team" FROM "pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What is the average Game with a Date that is june 14?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What is the Record with a Team that is detroit and a Date that is june ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What is the Location Attendance with a Record that is 1-4?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"country" text,
"area_km" text,
"population_2011_est" text,
"population_density_per_km" text,
"gdp_ppp_m_usd" text
);
Question: How much is the GDP for a population density of 2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"country" text,
"area_km" text,
"population_2011_est" text,
"population_density_per_km" text,
"gdp_ppp_m_usd" text
);
Question: Which country has a population density of 50.3?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"country" text,
"area_km" text,
"population_2011_est" text,
"population_density_per_km" text,
"gdp_ppp_m_usd" text
);
Question: How much is the GDP for an area of 61,395?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"country" text,
"area_km" text,
"population_2011_est" text,
"population_density_per_km" text,
"gdp_ppp_m_usd" text
);
Question: How much is the population density with a GDP at ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"country" text,
"area_km" text,
"population_2011_est" text,
"population_density_per_km" text,
"gdp_ppp_m_usd" text
);
Question: How much is the GDP for an area of 116?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"country" text,
"area_km" text,
"population_2011_est" text,
"population_density_per_km" text,
"gdp_ppp_m_usd" text
);
Question: Which country has a population of 3,221,216?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What was Miller Barber wins with Top-5 less than 2 and 19... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the average number of Wins in a PGA Championship ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the highest Top-5 ranking with Events less than 4... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: Which week's game was attended by 65,272 people?
<|assistant|>
SELECT "week" FROM "schedule"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: How many people attended the game in week 13?
<|assistant|>
SELECT "attendance" FROM "schedu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: During which week was the earliest game with an attendance of 65,904 people?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_roster" (
"nationality" text,
"player" text,
"birth_date" text,
"height" real,
"position" text
);
Question: What height is the tallest for an outside hitter?
<|assistant|>
SELECT MAX("heig... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the highest silver rank with a total of 27?
<|assistant|>
SELECT MAX("s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total number of Silver when Bronze was smaller than 1 with a total ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "operation" (
"maximum_ceiling_temperature" text,
"temperature_rating" text,
"temperature_classification" text,
"color_code_with_fusible_link" text,
"glass_bulb_color" text
);
Question: What is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "operation" (
"maximum_ceiling_temperature" text,
"temperature_rating" text,
"temperature_classification" text,
"color_code_with_fusible_link" text,
"glass_bulb_color" text
);
Question: What is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "operation" (
"maximum_ceiling_temperature" text,
"temperature_rating" text,
"temperature_classification" text,
"color_code_with_fusible_link" text,
"glass_bulb_color" text
);
Question: What is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "club_career_stats" (
"season" text,
"team" text,
"country" text,
"league" text,
"level" real,
"apps" real,
"goals" real
);
Question: What is the average Goals for team Kairat, in the 2002 s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "club_career_stats" (
"season" text,
"team" text,
"country" text,
"league" text,
"level" real,
"apps" real,
"goals" real
);
Question: What is the Country for the 2006-07 season?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "club_career_stats" (
"season" text,
"team" text,
"country" text,
"league" text,
"level" real,
"apps" real,
"goals" real
);
Question: What is the average Apps for the team Kairat with level ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: How many laps did the rider with a grid larger than 11, a Honda cbr1000rr bike, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: Who was teh rider with 18 laps and a grid of 25?
<|assistant|>
SELECT "rider" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: Who was the rider who had an accident time and a kawasaki zx-10r bike?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: What is the time of rider Loic Napoleone, who had less than 18 laps and a grid g... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: How many laps did the rider with a grid larger than 14 and a time of +33.150 hav... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_one" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"ground" text
);
Question: What is Away, when Home is Guelph Gargoyles?
<|assistant|>
SELECT "away" FROM "round_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_one" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"ground" text
);
Question: What is Home, when Ground is Humber College North, and when Time is 15:00?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_one" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"ground" text
);
Question: What is Date, when Away is High Park Demons?
<|assistant|>
SELECT "date" FROM "round_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_one" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"ground" text
);
Question: What is Date, when Away is High Park Demons?
<|assistant|>
SELECT "date" FROM "round_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_one" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"ground" text
);
Question: What is Time, when Away is Central Blues?
<|assistant|>
SELECT "time" FROM "round_one... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "collections" (
"volume" text,
"series" text,
"title" text,
"cover" text,
"published" text,
"isbn" text
);
Question: What cover has a published date of May 27, 2009 (hc) May 20, 2009 (tpb)?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "collections" (
"volume" text,
"series" text,
"title" text,
"cover" text,
"published" text,
"isbn" text
);
Question: What is the number of the volume that has an ISBN of 978-1-59582-712-8 (hc)... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "collections" (
"volume" text,
"series" text,
"title" text,
"cover" text,
"published" text,
"isbn" text
);
Question: What is the name of the series with an ISBN of 978-1-59582-523-0 (tpb)?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "collections" (
"volume" text,
"series" text,
"title" text,
"cover" text,
"published" text,
"isbn" text
);
Question: What volume number has the ISBN of 978-1-59582-712-8 (hc) 978-1-59582-713-5... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "collections" (
"volume" text,
"series" text,
"title" text,
"cover" text,
"published" text,
"isbn" text
);
Question: What is the ISBN of the Conan the Barbarian series that has the title of Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "collections" (
"volume" text,
"series" text,
"title" text,
"cover" text,
"published" text,
"isbn" text
);
Question: What cover has Throne of Aquilonia as the title?
<|assistant|>
SELECT "cove... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assists" (
"rank" real,
"name" text,
"team" text,
"games" real,
"assists" real
);
Question: With a Rank of less than 4, what is Pablo Prigioni's total number of Games?
<|assistant|>
SELECT COUN... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assists" (
"rank" real,
"name" text,
"team" text,
"games" real,
"assists" real
);
Question: How many Assists for the Player with more than 25 Games?
<|assistant|>
SELECT SUM("assists") FROM "as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assists" (
"rank" real,
"name" text,
"team" text,
"games" real,
"assists" real
);
Question: What is the Rank of the Maccabi Tel Aviv Player with 25 Games?
<|assistant|>
SELECT COUNT("rank") FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assists" (
"rank" real,
"name" text,
"team" text,
"games" real,
"assists" real
);
Question: How many Assists for the Player with a Rank greater than 3 in less than 25 Games?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assists" (
"rank" real,
"name" text,
"team" text,
"games" real,
"assists" real
);
Question: How many Games for Rank 2 Terrell McIntyre?
<|assistant|>
SELECT MIN("games") FROM "assists" WHERE "n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
Question: What is the Venue of the Heptathlon after 2006 where Tatyana Chernova comes in Position... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
Question: In what Year did Chernova come in 1st in Götzis, Austria?
<|assistant|>
SELECT SUM("yea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2003" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text
);
Question: Which Cover Model was featured on 8-03?
<|assistant|>
SELECT "cover_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2003" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text
);
Question: Who was the Centerfold model when O.J. Simpson was the Interview Sub... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2003" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text
);
Question: Who was the Cover model when the Centerfold Model was Marketa Janska... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2003" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text
);
Question: Who was the Cover model on 11-03?
<|assistant|>
SELECT "cover_model"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2003" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text
);
Question: Who was the Centerfold Model on 9-03?
<|assistant|>
SELECT "centerfo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2003" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text
);
Question: Who was the Interview Subject when the 20 Questions was William H. M... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_class" (
"round" real,
"selection" real,
"player" text,
"position" text,
"college" text
);
Question: How many rounds had a selection of 165?
<|assistant|>
SELECT SUM("round") FROM "draft_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"height_cm" real,
"weight_kg" real,
"birthdate" text,
"birthplace" text,
"1990_1991_team" text
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"height_cm" real,
"weight_kg" real,
"birthdate" text,
"birthplace" text,
"1990_1991_team" text
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"height_cm" real,
"weight_kg" real,
"birthdate" text,
"birthplace" text,
"1990_1991_team" text
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"height_cm" real,
"weight_kg" real,
"birthdate" text,
"birthplace" text,
"1990_1991_team" text
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"height_cm" real,
"weight_kg" real,
"birthdate" text,
"birthplace" text,
"1990_1991_team" text
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "gp2_series" (
"year" real,
"drivers" text,
"races" real,
"wins" real,
"poles" real,
"f_l" real,
"points" real,
"d_c" text,
"t_c" text
);
Question: Which T.C. has a Year larger than 2007... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "gp2_series" (
"year" real,
"drivers" text,
"races" real,
"wins" real,
"poles" real,
"f_l" real,
"points" real,
"d_c" text,
"t_c" text
);
Question: What kind of D.C. has Races smaller th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "gp2_series" (
"year" real,
"drivers" text,
"races" real,
"wins" real,
"poles" real,
"f_l" real,
"points" real,
"d_c" text,
"t_c" text
);
Question: Which Races has a T.C. of 3rd, and a D... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: What is the 2007 of the Grand Slam Tournaments i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: What is the Tournament with a 3r 2011 and A 2010... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: What is the 2008 of the 2r 2011 and A 2010?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: What is the 2010 of the Grand Slam Tournaments i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_by_club" (
"club" text,
"winners" real,
"runners_up" real,
"winning_years" text,
"runner_up_years" text
);
Question: What is the total number of runners-up for a club with winning y... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_by_club" (
"club" text,
"winners" real,
"runners_up" real,
"winning_years" text,
"runner_up_years" text
);
Question: Who were the runners-up for the FC Viktoria Plzeň club?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"district" text,
"con_gress" text,
"date" text,
"predecessor" text,
"winner" text
);
Question: Which congress was held in 2010?
<|assistant|>
SELECT "con_gress" FROM "list" WHERE "date"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "alloys_for_mechanical_composition" (
"usage" text,
"sn_sb_pct" text,
"liquid_at_c" text,
"casting_at_c" text,
"remelting_at_c" text,
"hardness" text
);
Question: What is the casting temperatu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "alloys_for_mechanical_composition" (
"usage" text,
"sn_sb_pct" text,
"liquid_at_c" text,
"casting_at_c" text,
"remelting_at_c" text,
"hardness" text
);
Question: What is the hardness for the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "alloys_for_mechanical_composition" (
"usage" text,
"sn_sb_pct" text,
"liquid_at_c" text,
"casting_at_c" text,
"remelting_at_c" text,
"hardness" text
);
Question: What is the Sn/Sb percentage ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "alloys_for_mechanical_composition" (
"usage" text,
"sn_sb_pct" text,
"liquid_at_c" text,
"casting_at_c" text,
"remelting_at_c" text,
"hardness" text
);
Question: What is the remelting tempera... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "alloys_for_mechanical_composition" (
"usage" text,
"sn_sb_pct" text,
"liquid_at_c" text,
"casting_at_c" text,
"remelting_at_c" text,
"hardness" text
);
Question: What is the casting temperatu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What's the most laps when grid is 16?
<|assistant|>
SELECT MAX("laps") FROM "race" WHERE "g... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: How many laps were there for a grid of 13?
<|assistant|>
SELECT COUNT("laps") FROM "race" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"giants_points" text,
"opponents_points" text,
"record" text,
"tv_time" text,
"attendance" text
);
Question: How ma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"giants_points" text,
"opponents_points" text,
"record" text,
"tv_time" text,
"attendance" text
);
Question: What w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"giants_points" text,
"opponents_points" text,
"record" text,
"tv_time" text,
"attendance" text
);
Question: What w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: How many weeks had an attendance at 69,149?
<|assistant|>
SELECT COUNT("week") FROM "schedul... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: On what date did week 6 occur?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "week"=6;<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: Who was the opponent on December 18, 2005?
<|assistant|>
SELECT "opponent" FROM "schedule" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tennent_s_scottish_cup" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: What was the date of the game against the Queen of the South attended by more... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"time" text,
"game_site" text,
"result_score" text,
"record" text,
"match_report" text
);
Question: What is the result/score f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"time" text,
"game_site" text,
"result_score" text,
"record" text,
"match_report" text
);
Question: How many weeks have w 51-2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"time" text,
"game_site" text,
"result_score" text,
"record" text,
"match_report" text
);
Question: What is the result/score t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"time" text,
"game_site" text,
"result_score" text,
"record" text,
"match_report" text
);
Question: Which match report has l 7... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"time" text,
"game_site" text,
"result_score" text,
"record" text,
"match_report" text
);
Question: Which game site has a reca... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "steel_challenge_men_s_world_records" (
"stage" text,
"shooter" text,
"time" real,
"avg_run" real,
"year" real
);
Question: Which shooter's time is more than 8.97 and has a year prior to 2013?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races" (
"date" text,
"race" text,
"country" text,
"winner" text,
"team" text,
"world_cup_leader" text,
"leader_s_team" text
);
Question: What country was the race in on April 27?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races" (
"date" text,
"race" text,
"country" text,
"winner" text,
"team" text,
"world_cup_leader" text,
"leader_s_team" text
);
Question: What is the name of the leader's team when the race... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races" (
"date" text,
"race" text,
"country" text,
"winner" text,
"team" text,
"world_cup_leader" text,
"leader_s_team" text
);
Question: What is the name of the team leading on August 17?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races" (
"date" text,
"race" text,
"country" text,
"winner" text,
"team" text,
"world_cup_leader" text,
"leader_s_team" text
);
Question: In the Ronde Van Vlaanderen race what is the leader... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races" (
"date" text,
"race" text,
"country" text,
"winner" text,
"team" text,
"world_cup_leader" text,
"leader_s_team" text
);
Question: What is the name of the race when Quick Step-Davita... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ranking_round" (
"final_rank" real,
"ranking_round_rank" real,
"nation" text,
"ranking_score" real,
"round_of_16" text
);
Question: What is the highest Ranking Round Rank for Russia with a Fina... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "po_prostu_taniec_just_dance" (
"team" text,
"dance" text,
"music" text,
"points_jury" text,
"place" text
);
Question: Which Music has a Points Jury of 18 (5,5,4,4)?
<|assistant|>
SELECT "music"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "po_prostu_taniec_just_dance" (
"team" text,
"dance" text,
"music" text,
"points_jury" text,
"place" text
);
Question: What is the Music if the Dance is Jive?
<|assistant|>
SELECT "music" FROM "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.