text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_singles_tournament_timeline" (
"tournament" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"career_sr" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
Question: What was the result fot the UFC 85 event?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
Question: In which location did the Meca World Vale Tu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
Question: What was his record at the AFC: Brazil 1 eve... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinals" (
"heat" real,
"lane" real,
"name" text,
"country" text,
"mark" text,
"react" real
);
Question: Which country has Anselmo Da Silva in lane 2?
<|assistant|>
SELECT "country" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinals" (
"heat" real,
"lane" real,
"name" text,
"country" text,
"mark" text,
"react" real
);
Question: What is the heat number at 7.63, and a reaction less than 0.229?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "english" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"verb_meaning" text
);
Question: What is the verb meaning when part 2 is band?
<|assistant|>
SELECT "verb_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "english" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"verb_meaning" text
);
Question: What is the verb meaning when the part 2 is blēot?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "english" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"verb_meaning" text
);
Question: What is the Part 2 when the class is 6?
<|assistant|>
SELECT "part_2" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "english" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"verb_meaning" text
);
Question: What is the class when the verb meaning is to nourish, to grow?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "english" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"verb_meaning" text
);
Question: What is the Part 3 when the Verb meaning is to gather?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "english" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"verb_meaning" text
);
Question: What is the Verb meaning when part 1 is alan?
<|assistant|>
SELECT "verb_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
Question: What is the average attendance for matches where the home team was vida?
<|assistant|>
SELECT AVG(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
Question: Who was the home team during the match where there were 2709 in attendance?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
Question: What is the sum of the attendance where the score was 1:1?
<|assistant|>
SELECT SUM("attendance") ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
Question: Where did montreal visit with more than 24 points and 14,995... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: How many ties occurred with a score of 2–2?
<|assistant|>
SELECT "tie_no" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: Who is the home team when Preston North End is the away team?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
);
Question: What school/club did the player who layed shooting guard attend?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
);
Question: What school/club did gerald wilkins attend?
<|assistant|>
SELECT "schoo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
);
Question: What are the years when the grizzlies had a point guard who attended th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
);
Question: What are the years when the grizzles had a player who attended UCLA?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
);
Question: What are the years when the grizzles had a player who attended Villanov... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
);
Question: What position did the person who was with the grizzlies in 1998-1999 pl... |
<|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 date of the game when the opponent is the Cleveland Browns?
<|assistant|>
SELECT... |
<|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 result of the game when the attendance is 62,078?
<|assistant|>
SELECT "result" ... |
<|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 result of the game when the attendance is 75,466?
<|assistant|>
SELECT "result" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pronouns" (
"nominative" text,
"ergative" text,
"dative" text,
"genitive" text,
"instrumental" text,
"adverbial" text
);
Question: What is the genitive for the ergative shen?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pronouns" (
"nominative" text,
"ergative" text,
"dative" text,
"genitive" text,
"instrumental" text,
"adverbial" text
);
Question: What is the instrumental for the dative shen?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pronouns" (
"nominative" text,
"ergative" text,
"dative" text,
"genitive" text,
"instrumental" text,
"adverbial" text
);
Question: What is the adverbial for the nominative me?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pronouns" (
"nominative" text,
"ergative" text,
"dative" text,
"genitive" text,
"instrumental" text,
"adverbial" text
);
Question: What is the ergative for the dative chven?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pronouns" (
"nominative" text,
"ergative" text,
"dative" text,
"genitive" text,
"instrumental" text,
"adverbial" text
);
Question: What is the ergative for the genitive tkven(s)?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pronouns" (
"nominative" text,
"ergative" text,
"dative" text,
"genitive" text,
"instrumental" text,
"adverbial" text
);
Question: What is the ergative for the dative (i)mas?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ezra_ezra_t_130_nm" (
"model_number" text,
"frequency" text,
"l2_cache" text,
"front_side_bus" text,
"multiplier" text,
"voltage" text,
"socket" text
);
Question: What is the Front Side Bus... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ezra_ezra_t_130_nm" (
"model_number" text,
"frequency" text,
"l2_cache" text,
"front_side_bus" text,
"multiplier" text,
"voltage" text,
"socket" text
);
Question: What is the Frequency for ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ezra_ezra_t_130_nm" (
"model_number" text,
"frequency" text,
"l2_cache" text,
"front_side_bus" text,
"multiplier" text,
"voltage" text,
"socket" text
);
Question: Which Model number has a F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ezra_ezra_t_130_nm" (
"model_number" text,
"frequency" text,
"l2_cache" text,
"front_side_bus" text,
"multiplier" text,
"voltage" text,
"socket" text
);
Question: What is the Voltage for Mo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles" (
"tournament" text,
"surface" text,
"week" text,
"winners" text,
"finalists" text,
"semifinalists" text
);
Question: What is Finalists, when Tournament is Miami?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles" (
"tournament" text,
"surface" text,
"week" text,
"winners" text,
"finalists" text,
"semifinalists" text
);
Question: What is Tournament, when Week is November 23?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles" (
"tournament" text,
"surface" text,
"week" text,
"winners" text,
"finalists" text,
"semifinalists" text
);
Question: What is Semifinalists, when Tournament is Rome
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponentnum" text,
"rank_num" text,
"site" text,
"result" text,
"attendance" text
);
Question: What rank were the Buckeyes when there were 68,586 in attendance?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponentnum" text,
"rank_num" text,
"site" text,
"result" text,
"attendance" text
);
Question: What date was the game when 40,000 attended?
<|assistant|>
SELECT "dat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponentnum" text,
"rank_num" text,
"site" text,
"result" text,
"attendance" text
);
Question: What date was the game when 45,943 attended?
<|assistant|>
SELECT "dat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponentnum" text,
"rank_num" text,
"site" text,
"result" text,
"attendance" text
);
Question: Who was the opponent that played against the Buckeyes on October 17?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponentnum" text,
"rank_num" text,
"site" text,
"result" text,
"attendance" text
);
Question: What is the result of the game played when 22,555 were in attendance a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_atlanta_dream" (
"pick" real,
"player" text,
"nationality" text,
"new_wnba_team" text,
"former_wnba_team" text,
"college_country_team" text
);
Question: What Player is from Connecticut?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: What is the highest position of the team having played under 10 matches?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: What is the total number of played values for teams with more than 14 po... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: What is the total number of positions having points over 2, more than 4 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"draw" real,
"song" text,
"performer" text,
"televotes" real,
"rank" real
);
Question: WHich Televotes has a Performer of biljana dodeva, and a Draw larger than 10?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"draw" real,
"song" text,
"performer" text,
"televotes" real,
"rank" real
);
Question: Name the highest Draw which has a Rank of 14, and a Televotes larger than 908?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"draw" real,
"song" text,
"performer" text,
"televotes" real,
"rank" real
);
Question: Name the lowest Televotes which has monika sokolovska and a Rank larger than 15?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"draw" real,
"song" text,
"performer" text,
"televotes" real,
"rank" real
);
Question: Name the lowest Draw which has a Performer of kaliopi and a Televotes larger than 3834?
<|as... |
<|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_s_won" text,
"total" text,
"to_par" text
);
Question: What is Total, when Player is "Hale Irwin"?
<|assistant|>
SELECT "total" FROM "misse... |
<|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_s_won" text,
"total" text,
"to_par" text
);
Question: What is Player, when Country is "United States", and when To Par is "WD"?
<|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_s_won" text,
"total" text,
"to_par" text
);
Question: What is Player, when Total is "154"?
<|assistant|>
SELECT "player" FROM "missed_the_... |
<|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_s_won" text,
"total" text,
"to_par" text
);
Question: What is Player, when Country is "United States", and when Total is "154"?
<|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_s_won" text,
"total" text,
"to_par" text
);
Question: What is Country, when To Par is "+11"?
<|assistant|>
SELECT "country" FROM "missed_t... |
<|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_s_won" text,
"total" text,
"to_par" text
);
Question: What is Country, when Player is "Hale Irwin"?
<|assistant|>
SELECT "country" FROM "m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition_score" (
"country" text,
"preliminary" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: What is the lowest interview score for Misso... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition_score" (
"country" text,
"preliminary" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: What is the sum of Preliminary scores where ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition_score" (
"country" text,
"preliminary" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: What is the sum of Swimsuit scores where the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition_score" (
"country" text,
"preliminary" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: What is the sum of Evening Gown scores where... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition_score" (
"country" text,
"preliminary" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: What is the lowest average score where the e... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_average_1" real,
"points_2" real
);
Question: For a ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_average_1" real,
"points_2" real
);
Question: For a ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"grade" text,
"description" text,
"measurement" text,
"function_pct" text,
"estimated_function_pct" real
);
Question: What is the function percentage when the estimated function p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"grade" text,
"description" text,
"measurement" text,
"function_pct" text,
"estimated_function_pct" real
);
Question: What is the measurement where the estimated function % is les... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"grade" text,
"description" text,
"measurement" text,
"function_pct" text,
"estimated_function_pct" real
);
Question: What is the estimated function % when the measurement is 8/8?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" text
);
Question: What place did jacky cupit take when his To par was under 13?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" text
);
Question: Which united states player had a To par of 12?
<|assistant|>
SELECT "p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" text
);
Question: Which player had a To par of 13?
<|assistant|>
SELECT "player" 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" text,
"money" real
);
Question: What did vijay singh score with a +5 to par?
<|assistant|>
SELECT "score" FR... |
<|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 south africa when they had more than 8 silver med... |
<|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 average number of gold medals the netherlands got when they had mor... |
<|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 gold medals for the nation of Great britain who had more... |
<|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 highest number of bronze medals that israel acheived when they got ... |
<|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 total number of gold medals when the team got 2 bronze and more tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_5_2_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is Partner, when Surface is Hard, and when ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_5_2_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is Opponents, when Partner is Vitalia Diatc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_5_2_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is Partner, when Outcome is Winner, and whe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_5_2_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is Opponents, when Partner is Mervana Jugić... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"minutes_played" real,
"minutes_played_per_game" real,
"rebounds" real,
"rebounds_per_game" real,
"assists" real,
"assists_per_game" rea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"minutes_played" real,
"minutes_played_per_game" real,
"rebounds" real,
"rebounds_per_game" real,
"assists" real,
"assists_per_game" rea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"minutes_played" real,
"minutes_played_per_game" real,
"rebounds" real,
"rebounds_per_game" real,
"assists" real,
"assists_per_game" rea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"minutes_played" real,
"minutes_played_per_game" real,
"rebounds" real,
"rebounds_per_game" real,
"assists" real,
"assists_per_game" rea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"team" text,
"score" text,
"record" text,
"streak" text
);
Question: What is the score on March 17?
<|assistant|>
SELECT "score" FROM "season_sche... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
Question: Which event led to a loss against Josh Diekm... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
Question: Which location led to a decision and a recor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
Question: Which method took place against Chris Herrin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the highest number of laps that max biaggi rode on a grid larger ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the highest grid that tetsuya harada rode in?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the average number of laps that were made when the race took a ti... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the total number of laps during the race that had a time of +9.68... |
<|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: What is the highest Pick, when College is "Syracuse",... |
<|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: What is Position, when College is "Houston"?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "introduction_of_address_classes" (
"class" text,
"leading_bits" real,
"size_of_network_number_bit_field" text,
"size_of_rest_bit_field" text,
"number_of_networks" text,
"addresses_per_network"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "introduction_of_address_classes" (
"class" text,
"leading_bits" real,
"size_of_network_number_bit_field" text,
"size_of_rest_bit_field" text,
"number_of_networks" text,
"addresses_per_network"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "introduction_of_address_classes" (
"class" text,
"leading_bits" real,
"size_of_network_number_bit_field" text,
"size_of_rest_bit_field" text,
"number_of_networks" text,
"addresses_per_network"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "introduction_of_address_classes" (
"class" text,
"leading_bits" real,
"size_of_network_number_bit_field" text,
"size_of_rest_bit_field" text,
"number_of_networks" text,
"addresses_per_network"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.