text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "400_w_sub_bands" (
"band" real,
"frequency_m_hz" text,
"wavelength" text,
"type" text,
"power_w" real
);
Question: What is the Wavelength of Frequency (MHz) 14.050–14.150?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "satellite_awards" (
"year" real,
"category" text,
"recipients_and_nominees" text,
"role_episode" text,
"result" text
);
Question: Who are the recipients in 1994?
<|assistant|>
SELECT "recipient... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "satellite_awards" (
"year" real,
"category" text,
"recipients_and_nominees" text,
"role_episode" text,
"result" text
);
Question: Who are the recipients that won for David Duchovny role/episode... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "satellite_awards" (
"year" real,
"category" text,
"recipients_and_nominees" text,
"role_episode" text,
"result" text
);
Question: What's the category in 1998 with the role/episode of David Duch... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "digital_channels" (
"channel" real,
"video" text,
"aspect" text,
"psip_short_name" text,
"network" text
);
Question: Which network has more than 31.4 channels with a 4:3 aspect?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "digital_channels" (
"channel" real,
"video" text,
"aspect" text,
"psip_short_name" text,
"network" text
);
Question: Which video is on channel 31.2 with a 4:3 aspect?
<|assistant|>
SELECT "vide... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "digital_channels" (
"channel" real,
"video" text,
"aspect" text,
"psip_short_name" text,
"network" text
);
Question: Which video has a 16:9 aspect?
<|assistant|>
SELECT "video" FROM "digital_ch... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
Question: What's the constituency number of t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
Question: What is the district of Paraswada w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
Question: What's the reserved number for cons... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
Question: What's the name of Constituency num... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the lowest total medals when there were 0 gold medals, 0 silver medals,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the sum of the bronze medals when there were less than 8 total medals, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What nation had a rank higher than 4, a total of 2 medals and more than 0 silve... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What was the average rank for the team that had more than 5 medals and more tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "result_of_national_final" (
"draw" real,
"song" text,
"artist" text,
"points" real,
"place" text
);
Question: Which artist has a draw higher than 4 and fewer than 5 points?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "result_of_national_final" (
"draw" real,
"song" text,
"artist" text,
"points" real,
"place" text
);
Question: Which artist has 13 points?
<|assistant|>
SELECT "artist" FROM "result_of_national_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "floor_event_final_qualifiers" (
"position" text,
"gymnast" text,
"a_score" real,
"b_score" real,
"total" real
);
Question: What is the greatest B score when the A score was less than 6.5?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "repechage_2" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: What is the Time of the Great Britain players with Notes of SA/B?
<|assistant|>
SELECT "time" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "repechage_2" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: What is the Rowers of the race with a Time of 7:41.97 and Notes of FC?
<|assistant|>
SELECT "ro... |
<|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: What is the Week of the game against the Minnesota Vikings?
<|assistant|>
SELECT MIN("week")... |
<|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: What is the Week of the game against Green Bay Packers?
<|assistant|>
SELECT AVG("week") FRO... |
<|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: What is the Attendance of the game with a Result of L 20-14?
<|assistant|>
SELECT "attendanc... |
<|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: What is the Week number on October 5, 2003?
<|assistant|>
SELECT MIN("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: What is the Week number with an Attendance of 62,123?
<|assistant|>
SELECT COUNT("week") FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "oklahoma_counties_ranked_by_per_capita_i" (
"county" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "oklahoma_counties_ranked_by_per_capita_i" (
"county" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school_ihsaa_i_dnum" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text,
"year_joined" real
);
Question: What is the sum of enroll... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school_ihsaa_i_dnum" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text,
"year_joined" real
);
Question: Which year did the school... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "original_broadway_production" (
"year" real,
"award_ceremony" text,
"category" text,
"nominee" text,
"result" text
);
Question: How many years was Reasons to be Pretty nominated for best play?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "original_broadway_production" (
"year" real,
"award_ceremony" text,
"category" text,
"nominee" text,
"result" text
);
Question: What is the first year that Reasons to be Pretty had a nominee fo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_and_fixtures" (
"date" text,
"venue" text,
"opponents" text,
"competition" text,
"match_report" text
);
Question: What is the match report from the game played on 28 february 2009?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_and_fixtures" (
"date" text,
"venue" text,
"opponents" text,
"competition" text,
"match_report" text
);
Question: What is the match report from the game played on 25 april 2009?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_and_fixtures" (
"date" text,
"venue" text,
"opponents" text,
"competition" text,
"match_report" text
);
Question: Where was the game played on 3 january 2009 against east fife?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_and_fixtures" (
"date" text,
"venue" text,
"opponents" text,
"competition" text,
"match_report" text
);
Question: What is the match report for the game that was played on 23 august 2008... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_and_fixtures" (
"date" text,
"venue" text,
"opponents" text,
"competition" text,
"match_report" text
);
Question: What is the match report for the game played at forthbank stadium again... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "narrow_gauge_locomotives" (
"class" text,
"railway_number_s" text,
"drg_number_s" text,
"quantity" real,
"year_s_of_manufacture" text,
"axle_arrangement_uic_bauart" text
);
Question: What is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "narrow_gauge_locomotives" (
"class" text,
"railway_number_s" text,
"drg_number_s" text,
"quantity" real,
"year_s_of_manufacture" text,
"axle_arrangement_uic_bauart" text
);
Question: Which ra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "narrow_gauge_locomotives" (
"class" text,
"railway_number_s" text,
"drg_number_s" text,
"quantity" real,
"year_s_of_manufacture" text,
"axle_arrangement_uic_bauart" text
);
Question: Which DR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "narrow_gauge_locomotives" (
"class" text,
"railway_number_s" text,
"drg_number_s" text,
"quantity" real,
"year_s_of_manufacture" text,
"axle_arrangement_uic_bauart" text
);
Question: Which qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dsds_performances" (
"date" text,
"topic_of_the_show" text,
"song" text,
"original_artist" text,
"place_percentage" text
);
Question: What song came out on March 8, 2008?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dsds_performances" (
"date" text,
"topic_of_the_show" text,
"song" text,
"original_artist" text,
"place_percentage" text
);
Question: What was the topic of the show on March 15, 2008?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1939_ladder" (
"club" text,
"wins" real,
"losses" real,
"draws" real,
"against" real
);
Question: When against is more than 1244 with less than 8 losses, what is the average of wins?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "existing_historic_textile_mills" (
"refnum" real,
"name" text,
"built" real,
"location" text,
"construction" text
);
Question: What is the name of the mill located on Anawan Street with a refer... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "existing_historic_textile_mills" (
"refnum" real,
"name" text,
"built" real,
"location" text,
"construction" text
);
Question: What is the name of the mill constructed of red brick in 1910 with... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "existing_historic_textile_mills" (
"refnum" real,
"name" text,
"built" real,
"location" text,
"construction" text
);
Question: What is the location of the Durfee Mill No. 1, built before 1872 ?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "existing_historic_textile_mills" (
"refnum" real,
"name" text,
"built" real,
"location" text,
"construction" text
);
Question: What is the location of the mill with a reference number of 44?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition" (
"name_pinyin" text,
"name_wade_giles" text,
"characters" text,
"type" text,
"construction" text
);
Question: Which Construction is named of fu-hsing?
<|assistant|>
SELECT "constr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition" (
"name_pinyin" text,
"name_wade_giles" text,
"characters" text,
"type" text,
"construction" text
);
Question: which Construction is named heng-hai?
<|assistant|>
SELECT "construct... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition" (
"name_pinyin" text,
"name_wade_giles" text,
"characters" text,
"type" text,
"construction" text
);
Question: Who has a Construction of 1873, foochow navy yard?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition" (
"name_pinyin" text,
"name_wade_giles" text,
"characters" text,
"type" text,
"construction" text
);
Question: Which Name (pinyin) is named fu-ching?
<|assistant|>
SELECT "name_pin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition" (
"name_pinyin" text,
"name_wade_giles" text,
"characters" text,
"type" text,
"construction" text
);
Question: Who has a Construction of 1870, foochow navy yard, and a Name (Wade G... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "discography" (
"release" text,
"track" text,
"format" text,
"label" text,
"year" real
);
Question: Which Label has a Release of liebesgrüsse aus ost-berlin?
<|assistant|>
SELECT "label" FROM "d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leading_scorers" (
"rank" real,
"player" text,
"games_played" real,
"goals" real,
"assists" real
);
Question: What is the rank of the person with more than 5 games played?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many golds have a bronze greater than 1, a silver greater than 1, with tot... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many golds have a bronze greater than 1, total as the nation, and a silver... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many bronzes have west germany as the nation?
<|assistant|>
SELECT SUM("br... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many golds have denmark as the nation, with a total less than 1?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many totals have 1 for the gold, 12 for the rank, and a sliver greater tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the lowest silver that has 1 for the bronze, 1 as the total, 17 as the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bibliography" (
"japanese_title" text,
"english_title" text,
"year" real,
"first_publisher" text,
"isbn" text
);
Question: What is the First Publisher prior to 1999?
<|assistant|>
SELECT "first... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bibliography" (
"japanese_title" text,
"english_title" text,
"year" real,
"first_publisher" text,
"isbn" text
);
Question: What is the ISBN in 1999?
<|assistant|>
SELECT "isbn" FROM "bibliograp... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bibliography" (
"japanese_title" text,
"english_title" text,
"year" real,
"first_publisher" text,
"isbn" text
);
Question: What is the ISBN of Japanese Title of 霧の訪問者 (kiri no hōmonsha)?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bibliography" (
"japanese_title" text,
"english_title" text,
"year" real,
"first_publisher" text,
"isbn" text
);
Question: What is the First Publisher in 2007?
<|assistant|>
SELECT "first_publi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bibliography" (
"japanese_title" text,
"english_title" text,
"year" real,
"first_publisher" text,
"isbn" text
);
Question: What is the Year of Kodansha Novels' Tokyo Nightmare?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bibliography" (
"japanese_title" text,
"english_title" text,
"year" real,
"first_publisher" text,
"isbn" text
);
Question: What Year has an ISBN OF ISBN 4-06-182042-7?
<|assistant|>
SELECT AVG(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the bronze number for the nation with less than 0 gold?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "climate" (
"city" text,
"region" text,
"july" text,
"january" text,
"annual_precipitation" text,
"plant_hardiness_zone" text
);
Question: What is the January climate figure for Eastman?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "climate" (
"city" text,
"region" text,
"july" text,
"january" text,
"annual_precipitation" text,
"plant_hardiness_zone" text
);
Question: In what city is the July temperature 23/9°c (73/48°f)... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "climate" (
"city" text,
"region" text,
"july" text,
"january" text,
"annual_precipitation" text,
"plant_hardiness_zone" text
);
Question: What is the July temperature where the annual precipi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "climate" (
"city" text,
"region" text,
"july" text,
"january" text,
"annual_precipitation" text,
"plant_hardiness_zone" text
);
Question: What is the July temperature where plant hardiness zo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "climate" (
"city" text,
"region" text,
"july" text,
"january" text,
"annual_precipitation" text,
"plant_hardiness_zone" text
);
Question: What is the plant hardiness zone in the Northern regi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "climate" (
"city" text,
"region" text,
"july" text,
"january" text,
"annual_precipitation" text,
"plant_hardiness_zone" text
);
Question: In what city is the plant hardiness zone 2B and Janua... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "route_and_stages" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
);
Question: Who was the winner at Milan Circuit Race?
<|assistant|>
SELECT "winner" FROM "route_and_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "route_and_stages" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
);
Question: Who was the winner at Rest Day course?
<|assistant|>
SELECT "winner" FROM "route_and_sta... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "route_and_stages" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
);
Question: What's the type on Sestri Levante to Riomaggiore?
<|assistant|>
SELECT "type" FROM "rout... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season_rankings" (
"player" text,
"country" text,
"points" real,
"events" real,
"reset_points" real
);
Question: Which player competed in 12 events?
<|assistant|>
SELECT "player" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "constructors" (
"constructor" text,
"chassis" text,
"starts" real,
"finishes" real,
"wins" real,
"podiums" real,
"stage_wins" real,
"points" real
);
Question: what is the highest finishes... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "constructors" (
"constructor" text,
"chassis" text,
"starts" real,
"finishes" real,
"wins" real,
"podiums" real,
"stage_wins" real,
"points" real
);
Question: what is the average starts w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "constructors" (
"constructor" text,
"chassis" text,
"starts" real,
"finishes" real,
"wins" real,
"podiums" real,
"stage_wins" real,
"points" real
);
Question: what is the finishes when po... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "constructors" (
"constructor" text,
"chassis" text,
"starts" real,
"finishes" real,
"wins" real,
"podiums" real,
"stage_wins" real,
"points" real
);
Question: what is the average starts w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_won" real,
"total" real,
"to_par" real
);
Question: With a Total of more than 149, what is Davis Love III's To par?
<|assistant|>
SELECT A... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_won" real,
"total" real,
"to_par" real
);
Question: What is the Total of the Player with a To par of 6 and Year won after 1993?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_won" real,
"total" real,
"to_par" real
);
Question: What is the Year won of Davis Love III with a Total of less than 149?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" text,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What is the genre of the Mass Effect game?
<|assistant|>
SELECT "ge... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" text,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What is the genre of the game from 2006?
<|assistant|>
SELECT "genr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" text,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What is the genre of the game developed by Nintendo EAD?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" text,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What is the platform of the game built in 2006?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" text,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What game was developed by Ubisoft Montreal?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ign" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: What is the genre for Portal 2?
<|assistant|>
SELECT "genre" FROM "ign" WHERE "game"='portal 2'... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ign" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
Question: Which platforms can you play Portal 2 on?
<|assistant|>
SELECT "platform_s" FROM "ign" WHERE "g... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men" (
"event" text,
"time" text,
"date" text,
"meet" text,
"location" text
);
Question: What event had the 1500m freestyle?
<|assistant|>
SELECT "meet" FROM "men" WHERE "event"='1500m freestyl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual_records" (
"rank" text,
"name" text,
"country" text,
"maglia_rosa" real,
"giro_wins" real,
"points" real,
"young_rider" real
);
Question: Who is from italy has 0 giro wins, 0 you... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual_records" (
"rank" text,
"name" text,
"country" text,
"maglia_rosa" real,
"giro_wins" real,
"points" real,
"young_rider" real
);
Question: what is the least maglia rosa when the r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many bronze medals for the United Kingdom when the silver was less than 0?... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.