text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_indiana_fever_miami_sol_portland_fi" (
"pick" real,
"player" text,
"nationality" text,
"new_wnba_team" text,
"former_wnba_team" text,
"college_country_team" text
);
Question: Who is the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assists" (
"rank" real,
"player" text,
"years" text,
"games" real,
"ast_avg" real,
"total_assists" real
);
Question: WHAT IS THE AVG AST FOR GAMES LARGER THAN 101, RANK 5, TOTAL ASSISTS SMALL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assists" (
"rank" real,
"player" text,
"years" text,
"games" real,
"ast_avg" real,
"total_assists" real
);
Question: WHAT IS THE SUM OF AST AVG WITH RANK 5 AND GAMES BIGGER THAN 108?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Round has a Name of john goodyear?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Round has a College of appalachian state, and a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Pick has a Round larger than 17, and a Name 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,
"location" text
);
Question: What was the result when the opponent was Ro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "am_stations_radyo_agila" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"location" text
);
Question: Which Branding has a frequency of 1080khz?
<|assistant|>
SELECT "br... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "am_stations_radyo_agila" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"location" text
);
Question: Which frequency is located in Dagupan?
<|assistant|>
SELECT "freque... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "am_stations_radyo_agila" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"location" text
);
Question: What frequency does branding dzec radyo agila 1062 have?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "am_stations_radyo_agila" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"location" text
);
Question: Which frequency has 40kw power?
<|assistant|>
SELECT "frequency" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "am_stations_radyo_agila" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"location" text
);
Question: Which frequency is located in Davao?
<|assistant|>
SELECT "frequenc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cities_formerly_over_100_000_people" (
"city" text,
"state" text,
"2010_population" text,
"peak_population_year" text,
"numeric_decline_from_peak_population" text,
"percent_decline_from_peak_p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cities_formerly_over_100_000_people" (
"city" text,
"state" text,
"2010_population" text,
"peak_population_year" text,
"numeric_decline_from_peak_population" text,
"percent_decline_from_peak_p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cities_formerly_over_100_000_people" (
"city" text,
"state" text,
"2010_population" text,
"peak_population_year" text,
"numeric_decline_from_peak_population" text,
"percent_decline_from_peak_p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cities_formerly_over_100_000_people" (
"city" text,
"state" text,
"2010_population" text,
"peak_population_year" text,
"numeric_decline_from_peak_population" text,
"percent_decline_from_peak_p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cities_formerly_over_100_000_people" (
"city" text,
"state" text,
"2010_population" text,
"peak_population_year" text,
"numeric_decline_from_peak_population" text,
"percent_decline_from_peak_p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_grossing_films_u_s" (
"rank" real,
"title" text,
"studio" text,
"director" text,
"gross" text
);
Question: WHAT IS THE RANK OF UNIVERSAL, AND DIRECTOR JOHN HUGHES?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_grossing_films_u_s" (
"rank" real,
"title" text,
"studio" text,
"director" text,
"gross" text
);
Question: WHAT IS THE TITLE THAT HAS A RANK BIGGER THAN 10, FOR DIRECTOR WALTER HILL?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_grossing_films_u_s" (
"rank" real,
"title" text,
"studio" text,
"director" text,
"gross" text
);
Question: WHAT IS THE STUDIO WITH THE TITLE MASK?
<|assistant|>
SELECT "studio" FROM "hi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_grossing_films_u_s" (
"rank" real,
"title" text,
"studio" text,
"director" text,
"gross" text
);
Question: WHAT IS THE RANK WITH A GROSS OF $96,773,200?
<|assistant|>
SELECT COUNT("rank... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "premier_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "premier_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "premier_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "premier_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing_cd" (
"track" real,
"song" text,
"author" text,
"worship_leader" text,
"lead_supporting_vocal" text,
"time" text
);
Question: Who was the worship leader that had a lead supporti... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing_cd" (
"track" real,
"song" text,
"author" text,
"worship_leader" text,
"lead_supporting_vocal" text,
"time" text
);
Question: Who was the lead supporting vocalist on the song th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing_cd" (
"track" real,
"song" text,
"author" text,
"worship_leader" text,
"lead_supporting_vocal" text,
"time" text
);
Question: Who was the Worship Leader for the song that was 7:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing_cd" (
"track" real,
"song" text,
"author" text,
"worship_leader" text,
"lead_supporting_vocal" text,
"time" text
);
Question: What is the song name that featured Marcus Temu as ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sulci" (
"name" text,
"latitude" text,
"longitude" text,
"diameter" real,
"year_named" real
);
Question: What's the lowest diameter when the longitude is 71.1w?
<|assistant|>
SELECT MIN("diamet... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sulci" (
"name" text,
"latitude" text,
"longitude" text,
"diameter" real,
"year_named" real
);
Question: What's the longitude for philae sulcus in 1997 with a diameter less than 1,575.0?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sulci" (
"name" text,
"latitude" text,
"longitude" text,
"diameter" real,
"year_named" real
);
Question: What is dardanus sulcus' lowest diameter?
<|assistant|>
SELECT MIN("diameter") FROM "sul... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sulci" (
"name" text,
"latitude" text,
"longitude" text,
"diameter" real,
"year_named" real
);
Question: How many years is ur sulcus listed with a diameter less than 1,145.0?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
Question: When the attendance was 3188 what was the score?
<|assistant|>
SELECT "score" FROM "round_6" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
Question: What is the maximum number of people in attendance on 16 August 2008 when the home team was Deport... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
Question: What team was the away team when the Deportes Savio was the home team?
<|assistant|>
SELECT "away"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
Question: What was the away team when the score was 3:1?
<|assistant|>
SELECT "away" FROM "round_6" WHERE "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
Question: When Platense was the away team on 16 August 2008 how many people attended the game?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
Question: What was the score when 2441 people were in attendance?
<|assistant|>
SELECT "score" FROM "round_6... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"fin_pos" text,
"car_no" text,
"driver" text,
"team" text,
"laps" text,
"time_retired" text,
"grid" text,
"laps_led" text,
"points" text
);
Question: Which driver had ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"fin_pos" text,
"car_no" text,
"driver" text,
"team" text,
"laps" text,
"time_retired" text,
"grid" text,
"laps_led" text,
"points" text
);
Question: What was the time... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_division" (
"scorer" text,
"club" text,
"league_goals" text,
"fa_cup_goals" text,
"league_cup_goals" text,
"total" real
);
Question: What is the sum of goals when the league cup goals ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_division" (
"scorer" text,
"club" text,
"league_goals" text,
"fa_cup_goals" text,
"league_cup_goals" text,
"total" real
);
Question: What is the amount of FA cups goals that were made ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_division" (
"scorer" text,
"club" text,
"league_goals" text,
"fa_cup_goals" text,
"league_cup_goals" text,
"total" real
);
Question: What is the number of league goals when Bill Dearde... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players_in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_window" text,
"transfer_fee" text
);
Question: What is the name of the player with a transfer window in s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players_in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_window" text,
"transfer_fee" text
);
Question: What is the type of bulykin, which has a summer transfer w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players_in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_window" text,
"transfer_fee" text
);
Question: What is the country of cordier?
<|assistant|>
SELECT "coun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players_in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_window" text,
"transfer_fee" text
);
Question: What is the country of the player moving from belgrano wit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players_in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_window" text,
"transfer_fee" text
);
Question: What is the transfer window of the player moving from baru... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players_in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_window" text,
"transfer_fee" text
);
Question: What is the type of the player moving from belgrano?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Average round for 22 pick that is overall smaller tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "copper_production_thousands_tonnes" (
"country" text,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "copper_production_thousands_tonnes" (
"country" text,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "copper_production_thousands_tonnes" (
"country" text,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "copper_production_thousands_tonnes" (
"country" text,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "copper_production_thousands_tonnes" (
"country" text,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real... |
<|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: How many Bronze medals did the Nation with 0 Silver receive?
<|assistant|>
SELE... |
<|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: How many Gold medals did the Nation with less than 8 Total medals including 1 B... |
<|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: How many Total medals did the Nation the got 0 Bronze medals receive?
<|assista... |
<|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 Nation had a more than 1 Total medal including less than 3 Silver, less th... |
<|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: How many Silver medals did the Nation ranking 8 with more than 1 Total medal bu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_summary" (
"series" text,
"start" text,
"finish" text,
"winner" text,
"runner_up" text,
"third_place" text,
"winning_mentor" text,
"main_host" text
);
Question: What is the start d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_summary" (
"series" text,
"start" text,
"finish" text,
"winner" text,
"runner_up" text,
"third_place" text,
"winning_mentor" text,
"main_host" text
);
Question: Who was in third pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "municipalities_in_trentino" (
"municipality" text,
"inhabitants" real,
"mayor" text,
"party" text,
"election" real
);
Question: In what Election year was Adalberto Mosaner the Mayor with less t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "municipalities_in_trentino" (
"municipality" text,
"inhabitants" real,
"mayor" text,
"party" text,
"election" real
);
Question: In what Election year were there less than 16,170 Inhabitants?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "municipalities_in_trentino" (
"municipality" text,
"inhabitants" real,
"mayor" text,
"party" text,
"election" real
);
Question: What is the Mayor of Riva del Garda in 2010?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "municipalities_in_trentino" (
"municipality" text,
"inhabitants" real,
"mayor" text,
"party" text,
"election" real
);
Question: How many Inhabitants were there after 2009 in the Municipality wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members" (
"institution" text,
"location" text,
"founded" text,
"joined_conference" real,
"enrollment" real,
"nickname" text
);
Question: What is the lowest enrolled school that was founded i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "boys_league_championships" (
"school_year" text,
"football" text,
"cross_country" text,
"soccer" text,
"golf" text
);
Question: Which foot ball team played soccer at wooster, and Gold in Ashlan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total for the team with fewer than 2 bronze, ranked less than 4 and fewer than 1 silver?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many silver for the team with more than 2 bronze and more than 7 gold?
<|assistant|>
SELECT COUNT(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total for the team with 0 bronze and 3 silver?
<|assistant|>
SELECT SUM("total") FROM "wom... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: What is the total number of R... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: What was the time when his op... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: What was the method when the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "best_economy" (
"player" text,
"team" text,
"matches" real,
"overs" real,
"economy_rate" real,
"wickets" real,
"average" real,
"strike_rate" real,
"best_bowling" text
);
Question: What ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "best_economy" (
"player" text,
"team" text,
"matches" real,
"overs" real,
"economy_rate" real,
"wickets" real,
"average" real,
"strike_rate" real,
"best_bowling" text
);
Question: What ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "best_economy" (
"player" text,
"team" text,
"matches" real,
"overs" real,
"economy_rate" real,
"wickets" real,
"average" real,
"strike_rate" real,
"best_bowling" text
);
Question: What ... |
<|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 race where Lineth Chepkurui placed 4th?
<|assistant|>
SELECT "... |
<|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 team race that was before 2010?
<|assistant|>
SELECT "venue" F... |
<|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 team race that was after 2008?
<|assistant|>
SELECT "venue" FR... |
<|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 competition did Lineth Chepkurui place 5th?
<|assistant|>
SELECT "competition" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "presidential_elections" (
"election" real,
"candidate" text,
"running_mate" text,
"total_votes" real,
"share_of_votes" text,
"outcome" text
);
Question: How many votes did Lee Teng-Hui receiv... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_league" (
"match" real,
"date" text,
"home_away" text,
"opponent_team" text,
"score" text
);
Question: What was the score for a match before 13, and a home game on April 21, 2008?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_league" (
"match" real,
"date" text,
"home_away" text,
"opponent_team" text,
"score" text
);
Question: What home/away game is on February 29, 2008?
<|assistant|>
SELECT "home_away" FROM "s_le... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What team was the home team when Manchester City was the away team?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "riders" (
"position" real,
"equipment" text,
"points" real,
"wins" text,
"second" text,
"third" text
);
Question: What is the sum of Points, when Equipment was "Zabel-BSU", and when Position ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "riders" (
"position" real,
"equipment" text,
"points" real,
"wins" text,
"second" text,
"third" text
);
Question: What is Equipment, when Points is less than 6, and when Position is 53?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "riders" (
"position" real,
"equipment" text,
"points" real,
"wins" text,
"second" text,
"third" text
);
Question: What is Second, when Position is greater than 33, when Points is greater than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "riders" (
"position" real,
"equipment" text,
"points" real,
"wins" text,
"second" text,
"third" text
);
Question: What is Equipment, when Position is greater than 28, and when Points is great... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1st_round" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text
);
Question: When Hawthorn is the away team, what i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1st_round" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text
);
Question: Which ground has a crowd over 41,185?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1st_round" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text
);
Question: When the crowd is larger than 12,314 a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" text
);
Question: What place has a 67-68-78-77=290 score?
<|assistant|>
SELECT "place" FROM "f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" text
);
Question: What is the highest to par of the player from the United States with a t3 pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" text
);
Question: What is the place of player peter oosterhuis, who has $7,500?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" text
);
Question: What country has a 72-70-75-72=289 score?
<|assistant|>
SELECT "country" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" text
);
Question: Who is the player from the United States with a 4 to par and a 74-73-72-69=2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" text
);
Question: How much money does the player with a to par less than 4 and a score of 74-7... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.