chat_prompt
stringlengths 438
1.53k
|
|---|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"senior_pga_tour_wins_10\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What races were Chi-Chi Rodriguez the runner-up in?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"senior_pga_tour_wins_10\" WHERE \"runner_s_up\"='chi-chi rodriguez';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"senior_pga_tour_wins_10\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What was the margin of victory for Isao Aoki when he was a runner-up?"
},
{
"role": "assistant",
"content": "SELECT \"margin_of_victory\" FROM \"senior_pga_tour_wins_10\" WHERE \"runner_s_up\"='isao aoki';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"senior_pga_tour_wins_10\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What was the winning score in the mazda senior tournament players championship?"
},
{
"role": "assistant",
"content": "SELECT \"winning_score\" FROM \"senior_pga_tour_wins_10\" WHERE \"tournament\"='mazda senior tournament players championship';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"senior_pga_tour_wins_10\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Which tournament ended with a winning score of \u201327 (65-68-64-64=261)?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"senior_pga_tour_wins_10\" WHERE \"winning_score\"='\u201327 (65-68-64-64=261)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"senior_pga_tour_wins_10\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Who was the runner(s)-up for the Feb 18, 1996 tournament?"
},
{
"role": "assistant",
"content": "SELECT \"runner_s_up\" FROM \"senior_pga_tour_wins_10\" WHERE \"date\"='feb 18, 1996';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"points\" real\n);\n\nQuestion: What is Oriol Servia's average Grid on races with more than 43 laps?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"grid\") FROM \"race\" WHERE \"laps\">43 AND \"driver\"='oriol servia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"points\" real\n);\n\nQuestion: How many laps were there in the race that netted the winner 19 points?"
},
{
"role": "assistant",
"content": "SELECT \"laps\" FROM \"race\" WHERE \"points\"=19;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"domestic_goals_summary\" (\n \"date\" text,\n \"season\" text,\n \"playing_for\" text,\n \"opponent\" text,\n \"final_score\" text\n);\n\nQuestion: In what Season is Necaxa an Opponent?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"domestic_goals_summary\" WHERE \"opponent\"='necaxa';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"domestic_goals_summary\" (\n \"date\" text,\n \"season\" text,\n \"playing_for\" text,\n \"opponent\" text,\n \"final_score\" text\n);\n\nQuestion: In what season is Victoria the Opponent?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"domestic_goals_summary\" WHERE \"opponent\"='victoria';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tararua_district\" (\n \"name\" text,\n \"years\" text,\n \"gender\" text,\n \"area\" text,\n \"authority\" text,\n \"decile\" real,\n \"roll\" real\n);\n\nQuestion: Name the authority when the decile is 6 for pongaroa school"
},
{
"role": "assistant",
"content": "SELECT \"authority\" FROM \"tararua_district\" WHERE \"decile\"=6 AND \"name\"='pongaroa school';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tararua_district\" (\n \"name\" text,\n \"years\" text,\n \"gender\" text,\n \"area\" text,\n \"authority\" text,\n \"decile\" real,\n \"roll\" real\n);\n\nQuestion: Name the years for dannevirke south school"
},
{
"role": "assistant",
"content": "SELECT \"years\" FROM \"tararua_district\" WHERE \"name\"='dannevirke south school';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tararua_district\" (\n \"name\" text,\n \"years\" text,\n \"gender\" text,\n \"area\" text,\n \"authority\" text,\n \"decile\" real,\n \"roll\" real\n);\n\nQuestion: Name the least decile for state authority and area of eketahuna with roll more than 44"
},
{
"role": "assistant",
"content": "SELECT MIN(\"decile\") FROM \"tararua_district\" WHERE \"authority\"='state' AND \"area\"='eketahuna' AND \"roll\">44;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tararua_district\" (\n \"name\" text,\n \"years\" text,\n \"gender\" text,\n \"area\" text,\n \"authority\" text,\n \"decile\" real,\n \"roll\" real\n);\n\nQuestion: Tell me the name with area of eketahuna"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"tararua_district\" WHERE \"area\"='eketahuna';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"e_class\" (\n \"ship\" text,\n \"pennant_number\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"completed\" text\n);\n\nQuestion: Name what was completed on 12 april 1934"
},
{
"role": "assistant",
"content": "SELECT \"completed\" FROM \"e_class\" WHERE \"launched\"='12 april 1934';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"e_class\" (\n \"ship\" text,\n \"pennant_number\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"completed\" text\n);\n\nQuestion: Name the launched for 13 september 1934 completion"
},
{
"role": "assistant",
"content": "SELECT \"launched\" FROM \"e_class\" WHERE \"completed\"='13 september 1934';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"e_class\" (\n \"ship\" text,\n \"pennant_number\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"completed\" text\n);\n\nQuestion: Name the ship launched 29 may 1934"
},
{
"role": "assistant",
"content": "SELECT \"ship\" FROM \"e_class\" WHERE \"launched\"='29 may 1934';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"e_class\" (\n \"ship\" text,\n \"pennant_number\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"completed\" text\n);\n\nQuestion: Name the laid down for launched being 16 february 1934"
},
{
"role": "assistant",
"content": "SELECT \"laid_down\" FROM \"e_class\" WHERE \"launched\"='16 february 1934';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"e_class\" (\n \"ship\" text,\n \"pennant_number\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"completed\" text\n);\n\nQuestion: Name the pennant number for completion of 30 october 1934 and launched 29 march 1934"
},
{
"role": "assistant",
"content": "SELECT \"pennant_number\" FROM \"e_class\" WHERE \"launched\"='29 march 1934' AND \"completed\"='30 october 1934';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"e_class\" (\n \"ship\" text,\n \"pennant_number\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"completed\" text\n);\n\nQuestion: Name the laid down for completed of 22 october 1934"
},
{
"role": "assistant",
"content": "SELECT \"laid_down\" FROM \"e_class\" WHERE \"completed\"='22 october 1934';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"36_seats\" (\n \"riding\" text,\n \"candidate_s_name\" text,\n \"gender\" text,\n \"residence\" text,\n \"occupation\" text,\n \"votes\" real,\n \"rank\" text\n);\n\nQuestion: what is the candidates name who is ranked 8th?"
},
{
"role": "assistant",
"content": "SELECT \"candidate_s_name\" FROM \"36_seats\" WHERE \"rank\"='8th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"36_seats\" (\n \"riding\" text,\n \"candidate_s_name\" text,\n \"gender\" text,\n \"residence\" text,\n \"occupation\" text,\n \"votes\" real,\n \"rank\" text\n);\n\nQuestion: where is harold j. ludwig riding when the votes are more than 484?"
},
{
"role": "assistant",
"content": "SELECT \"riding\" FROM \"36_seats\" WHERE \"votes\">484 AND \"candidate_s_name\"='harold j. ludwig';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"36_seats\" (\n \"riding\" text,\n \"candidate_s_name\" text,\n \"gender\" text,\n \"residence\" text,\n \"occupation\" text,\n \"votes\" real,\n \"rank\" text\n);\n\nQuestion: what is the gender of Ron Gray, ranked 5th?"
},
{
"role": "assistant",
"content": "SELECT \"gender\" FROM \"36_seats\" WHERE \"rank\"='5th' AND \"candidate_s_name\"='ron gray';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"36_seats\" (\n \"riding\" text,\n \"candidate_s_name\" text,\n \"gender\" text,\n \"residence\" text,\n \"occupation\" text,\n \"votes\" real,\n \"rank\" text\n);\n\nQuestion: what is the lowest votes of the candidate ranked 5th and riding in victoria?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"votes\") FROM \"36_seats\" WHERE \"rank\"='5th' AND \"riding\"='victoria';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"england_in_australia\" (\n \"date\" text,\n \"home_captain\" text,\n \"away_captain\" text,\n \"venue\" text,\n \"result\" text\n);\n\nQuestion: Which home captian has aus by 295 runs as the result?"
},
{
"role": "assistant",
"content": "SELECT \"home_captain\" FROM \"england_in_australia\" WHERE \"result\"='aus by 295 runs';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"england_in_australia\" (\n \"date\" text,\n \"home_captain\" text,\n \"away_captain\" text,\n \"venue\" text,\n \"result\" text\n);\n\nQuestion: Which result has adelaide oval as the venue?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"england_in_australia\" WHERE \"venue\"='adelaide oval';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"player\" text,\n \"height\" real,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: Born in 1982, this guard has what listed as a height?"
},
{
"role": "assistant",
"content": "SELECT \"height\" FROM \"fiba_euro_basket_2007_squads\" WHERE \"position\"='guard' AND \"year_born\"=1982;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"jersey_progress_chart\" (\n \"stage_winner\" text,\n \"general_classification_yellow_jersey\" text,\n \"mountains_classification_green_jersey\" text,\n \"points_classification_navy_blue_jersey\" text,\n \"intermediate_sprints_classification_red_jersey\" text,\n \"team_classification\" text\n);\n\nQuestion: Which Points Classification Navy Blue Jersey that has a Jersey of Graeme Brown"
},
{
"role": "assistant",
"content": "SELECT \"points_classification_navy_blue_jersey\" FROM \"jersey_progress_chart\" WHERE \"general_classification_yellow_jersey\"='graeme brown';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"jersey_progress_chart\" (\n \"stage_winner\" text,\n \"general_classification_yellow_jersey\" text,\n \"mountains_classification_green_jersey\" text,\n \"points_classification_navy_blue_jersey\" text,\n \"intermediate_sprints_classification_red_jersey\" text,\n \"team_classification\" text\n);\n\nQuestion: What is the Intermediate Sprints Classification Red Jersey that has a Green Jersey of Murilo Antonio Fischer, and Jose Joaquin Rojas Gil?"
},
{
"role": "assistant",
"content": "SELECT \"intermediate_sprints_classification_red_jersey\" FROM \"jersey_progress_chart\" WHERE \"mountains_classification_green_jersey\"='murilo antonio fischer' AND \"points_classification_navy_blue_jersey\"='jose joaquin rojas gil';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"jersey_progress_chart\" (\n \"stage_winner\" text,\n \"general_classification_yellow_jersey\" text,\n \"mountains_classification_green_jersey\" text,\n \"points_classification_navy_blue_jersey\" text,\n \"intermediate_sprints_classification_red_jersey\" text,\n \"team_classification\" text\n);\n\nQuestion: What is General Classification Yellow Jersey that has a Murilo Antonio Fischer, and Lampre-Fondital?"
},
{
"role": "assistant",
"content": "SELECT \"general_classification_yellow_jersey\" FROM \"jersey_progress_chart\" WHERE \"mountains_classification_green_jersey\"='murilo antonio fischer' AND \"team_classification\"='lampre-fondital';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"jersey_progress_chart\" (\n \"stage_winner\" text,\n \"general_classification_yellow_jersey\" text,\n \"mountains_classification_green_jersey\" text,\n \"points_classification_navy_blue_jersey\" text,\n \"intermediate_sprints_classification_red_jersey\" text,\n \"team_classification\" text\n);\n\nQuestion: What is the Points Classification Navy Blue Jersey that has Yoann le Boulanger, and Gerolsteiner?"
},
{
"role": "assistant",
"content": "SELECT \"points_classification_navy_blue_jersey\" FROM \"jersey_progress_chart\" WHERE \"mountains_classification_green_jersey\"='yoann le boulanger' AND \"team_classification\"='gerolsteiner';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the attendance on April 7?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"attendance\") FROM \"game_log\" WHERE \"date\"='april 7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_recent_northumberland_cup_winner\" (\n \"season\" text,\n \"northumberland_senior_cup\" text,\n \"northumberland_senior_benevolent_bowl\" text,\n \"northumberland_minor_cup\" text,\n \"northumberland_women_s_cup\" text\n);\n\nQuestion: Who wins the Northumberland Senior Cup, when the Northumberland Women's Cup is won by Whitley Bay Women, and when the Northumberland Senior Benevolent Bowl is won by Alnwick Town?"
},
{
"role": "assistant",
"content": "SELECT \"northumberland_senior_cup\" FROM \"list_of_recent_northumberland_cup_winner\" WHERE \"northumberland_women_s_cup\"='whitley bay women' AND \"northumberland_senior_benevolent_bowl\"='alnwick town';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_recent_northumberland_cup_winner\" (\n \"season\" text,\n \"northumberland_senior_cup\" text,\n \"northumberland_senior_benevolent_bowl\" text,\n \"northumberland_minor_cup\" text,\n \"northumberland_women_s_cup\" text\n);\n\nQuestion: Who won the Northumberland Senior Benevolent Bowl, when the Northumberland Minor Cup was won by Whitley Bay 'a'?"
},
{
"role": "assistant",
"content": "SELECT \"northumberland_senior_benevolent_bowl\" FROM \"list_of_recent_northumberland_cup_winner\" WHERE \"northumberland_minor_cup\"='whitley bay ''a''';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_recent_northumberland_cup_winner\" (\n \"season\" text,\n \"northumberland_senior_cup\" text,\n \"northumberland_senior_benevolent_bowl\" text,\n \"northumberland_minor_cup\" text,\n \"northumberland_women_s_cup\" text\n);\n\nQuestion: Who won the Northumberland Senior Benevolent Bowl, when the Northumberland Women's Cup was won by Blyth Spartans Ladies?"
},
{
"role": "assistant",
"content": "SELECT \"northumberland_senior_benevolent_bowl\" FROM \"list_of_recent_northumberland_cup_winner\" WHERE \"northumberland_women_s_cup\"='blyth spartans ladies';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_recent_northumberland_cup_winner\" (\n \"season\" text,\n \"northumberland_senior_cup\" text,\n \"northumberland_senior_benevolent_bowl\" text,\n \"northumberland_minor_cup\" text,\n \"northumberland_women_s_cup\" text\n);\n\nQuestion: Who won the Northumberland Women's Cup when the Northumberland Senior Benevolent Bowl was won by Percy Main Amateurs?"
},
{
"role": "assistant",
"content": "SELECT \"northumberland_women_s_cup\" FROM \"list_of_recent_northumberland_cup_winner\" WHERE \"northumberland_senior_benevolent_bowl\"='percy main amateurs';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"country\" text,\n \"film_title_used_in_nomination\" text,\n \"language\" text,\n \"original_title\" text,\n \"director\" text\n);\n\nQuestion: What was the film nomination in the Netherlands?"
},
{
"role": "assistant",
"content": "SELECT \"film_title_used_in_nomination\" FROM \"references\" WHERE \"country\"='netherlands';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"country\" text,\n \"film_title_used_in_nomination\" text,\n \"language\" text,\n \"original_title\" text,\n \"director\" text\n);\n\nQuestion: Who directed Turks Fruit?"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"references\" WHERE \"original_title\"='turks fruit';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"country\" text,\n \"film_title_used_in_nomination\" text,\n \"language\" text,\n \"original_title\" text,\n \"director\" text\n);\n\nQuestion: What director is from Poland?"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"references\" WHERE \"country\"='poland';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"country\" text,\n \"film_title_used_in_nomination\" text,\n \"language\" text,\n \"original_title\" text,\n \"director\" text\n);\n\nQuestion: Who directed the Romanian film?"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"references\" WHERE \"language\"='romanian';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What placement gets more than $400?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"final_leaderboard\" WHERE \"money\">400;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What's the average payout of toney penna with a +2 par?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"money\") FROM \"final_leaderboard\" WHERE \"to_par\"='+2' AND \"player\"='toney penna';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What is the attendance number of the game on April 16?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"attendance\") FROM \"game_log\" WHERE \"date\"='april 16';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1981_kansas_city_chiefs_season\" (\n \"round\" real,\n \"pick\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What was the average pick of northwestern state college under round 3?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"pick\") FROM \"1981_kansas_city_chiefs_season\" WHERE \"round\"<3 AND \"college\"='northwestern state';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1981_kansas_city_chiefs_season\" (\n \"round\" real,\n \"pick\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Rutgers college holds what position?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"1981_kansas_city_chiefs_season\" WHERE \"college\"='rutgers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1981_kansas_city_chiefs_season\" (\n \"round\" real,\n \"pick\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: In what round smaller than 10, was the center les studdard picked in?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"pick\") FROM \"1981_kansas_city_chiefs_season\" WHERE \"position\"='center' AND \"name\"='les studdard' AND \"round\"<10;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1981_kansas_city_chiefs_season\" (\n \"round\" real,\n \"pick\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which college had rounds smaller than 2?"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"1981_kansas_city_chiefs_season\" WHERE \"round\"<2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What record was reached with a score of 7 - 2?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"score\"='7 - 2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_games_for_each_club\" (\n \"rank\" text,\n \"games\" text,\n \"player\" text,\n \"club\" text,\n \"career_span\" text\n);\n\nQuestion: What is the name of the club with a rank of 5?"
},
{
"role": "assistant",
"content": "SELECT \"club\" FROM \"most_games_for_each_club\" WHERE \"rank\"='5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_games_for_each_club\" (\n \"rank\" text,\n \"games\" text,\n \"player\" text,\n \"club\" text,\n \"career_span\" text\n);\n\nQuestion: What is the rank that shows 276 games?"
},
{
"role": "assistant",
"content": "SELECT \"rank\" FROM \"most_games_for_each_club\" WHERE \"games\"='276';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_games_for_each_club\" (\n \"rank\" text,\n \"games\" text,\n \"player\" text,\n \"club\" text,\n \"career_span\" text\n);\n\nQuestion: What is the rank that shows 426 games?"
},
{
"role": "assistant",
"content": "SELECT \"rank\" FROM \"most_games_for_each_club\" WHERE \"games\"='426';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_games_for_each_club\" (\n \"rank\" text,\n \"games\" text,\n \"player\" text,\n \"club\" text,\n \"career_span\" text\n);\n\nQuestion: What is the number of games for Roger Merrett?"
},
{
"role": "assistant",
"content": "SELECT \"games\" FROM \"most_games_for_each_club\" WHERE \"player\"='roger merrett';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indianapolis_500\" (\n \"year\" real,\n \"chassis\" text,\n \"engine\" text,\n \"start\" text,\n \"finish\" text,\n \"entrant\" text\n);\n\nQuestion: What Engine had a Finish of 27?"
},
{
"role": "assistant",
"content": "SELECT \"engine\" FROM \"indianapolis_500\" WHERE \"finish\"='27';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indianapolis_500\" (\n \"year\" real,\n \"chassis\" text,\n \"engine\" text,\n \"start\" text,\n \"finish\" text,\n \"entrant\" text\n);\n\nQuestion: What Engine had a chassis of March 85c?"
},
{
"role": "assistant",
"content": "SELECT \"engine\" FROM \"indianapolis_500\" WHERE \"chassis\"='march 85c';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indianapolis_500\" (\n \"year\" real,\n \"chassis\" text,\n \"engine\" text,\n \"start\" text,\n \"finish\" text,\n \"entrant\" text\n);\n\nQuestion: What Engine has a Finish of 21?"
},
{
"role": "assistant",
"content": "SELECT \"engine\" FROM \"indianapolis_500\" WHERE \"finish\"='21';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cry_engine_2\" (\n \"title\" text,\n \"year\" text,\n \"developer\" text,\n \"publisher\" text,\n \"platform\" text\n);\n\nQuestion: On what platform does Mindark publish?"
},
{
"role": "assistant",
"content": "SELECT \"platform\" FROM \"cry_engine_2\" WHERE \"publisher\"='mindark';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cry_engine_2\" (\n \"title\" text,\n \"year\" text,\n \"developer\" text,\n \"publisher\" text,\n \"platform\" text\n);\n\nQuestion: What year did Avatar Reality release a game?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"cry_engine_2\" WHERE \"developer\"='avatar reality';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cry_engine_2\" (\n \"title\" text,\n \"year\" text,\n \"developer\" text,\n \"publisher\" text,\n \"platform\" text\n);\n\nQuestion: What publisher created Crysis Warhead?"
},
{
"role": "assistant",
"content": "SELECT \"publisher\" FROM \"cry_engine_2\" WHERE \"title\"='crysis warhead';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cry_engine_2\" (\n \"title\" text,\n \"year\" text,\n \"developer\" text,\n \"publisher\" text,\n \"platform\" text\n);\n\nQuestion: For what platform does Mindark publish?"
},
{
"role": "assistant",
"content": "SELECT \"platform\" FROM \"cry_engine_2\" WHERE \"publisher\"='mindark';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cry_engine_2\" (\n \"title\" text,\n \"year\" text,\n \"developer\" text,\n \"publisher\" text,\n \"platform\" text\n);\n\nQuestion: What publisher does Paleo Entertainment develop for?"
},
{
"role": "assistant",
"content": "SELECT \"publisher\" FROM \"cry_engine_2\" WHERE \"developer\"='paleo entertainment';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cry_engine_2\" (\n \"title\" text,\n \"year\" text,\n \"developer\" text,\n \"publisher\" text,\n \"platform\" text\n);\n\nQuestion: Who was the developer for Vigilance?"
},
{
"role": "assistant",
"content": "SELECT \"developer\" FROM \"cry_engine_2\" WHERE \"title\"='vigilance';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_2014_roster\" (\n \"number\" text,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"home_town\" text\n);\n\nQuestion: Which player's home town is Swift Current, AB?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"2013_2014_roster\" WHERE \"home_town\"='swift current, ab';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_2014_roster\" (\n \"number\" text,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"home_town\" text\n);\n\nQuestion: Which position does number 23 play?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"2013_2014_roster\" WHERE \"number\"='23';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_2014_roster\" (\n \"number\" text,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"home_town\" text\n);\n\nQuestion: Which number plays the skaters position?"
},
{
"role": "assistant",
"content": "SELECT \"number\" FROM \"2013_2014_roster\" WHERE \"position\"='skaters';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_2014_roster\" (\n \"number\" text,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"home_town\" text\n);\n\nQuestion: How much does number 26 weigh?"
},
{
"role": "assistant",
"content": "SELECT \"weight\" FROM \"2013_2014_roster\" WHERE \"number\"='26';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cetacea\" (\n \"name\" text,\n \"species_authority\" text,\n \"order\" text,\n \"family\" text,\n \"red_list\" real\n);\n\nQuestion: Which family has a Name of humpback whale?"
},
{
"role": "assistant",
"content": "SELECT \"family\" FROM \"cetacea\" WHERE \"name\"='humpback whale';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cetacea\" (\n \"name\" text,\n \"species_authority\" text,\n \"order\" text,\n \"family\" text,\n \"red_list\" real\n);\n\nQuestion: Which name has a Red List larger than 0, and a Species/Authority of balaenoptera acutorostrata lac\u00e9p\u00e8de, 1804?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"cetacea\" WHERE \"red_list\">0 AND \"species_authority\"='balaenoptera acutorostrata lac\u00e9p\u00e8de, 1804';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cetacea\" (\n \"name\" text,\n \"species_authority\" text,\n \"order\" text,\n \"family\" text,\n \"red_list\" real\n);\n\nQuestion: Which Species/Authority has a Name of true's beaked whale?"
},
{
"role": "assistant",
"content": "SELECT \"species_authority\" FROM \"cetacea\" WHERE \"name\"='true''s beaked whale';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_world_championship_formula_one_\" (\n \"year\" real,\n \"chassis\" text,\n \"engine_s\" text,\n \"tyres\" text,\n \"points\" text\n);\n\nQuestion: What engine has 2 points?"
},
{
"role": "assistant",
"content": "SELECT \"engine_s\" FROM \"complete_world_championship_formula_one_\" WHERE \"points\"='2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_world_championship_formula_one_\" (\n \"year\" real,\n \"chassis\" text,\n \"engine_s\" text,\n \"tyres\" text,\n \"points\" text\n);\n\nQuestion: What tyres are associated with a year after 1974 and 5 points?"
},
{
"role": "assistant",
"content": "SELECT \"tyres\" FROM \"complete_world_championship_formula_one_\" WHERE \"year\">1974 AND \"points\"='5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_world_championship_formula_one_\" (\n \"year\" real,\n \"chassis\" text,\n \"engine_s\" text,\n \"tyres\" text,\n \"points\" text\n);\n\nQuestion: What is the engine(s) on the car before 1978 with ensign n177 chassis?"
},
{
"role": "assistant",
"content": "SELECT \"engine_s\" FROM \"complete_world_championship_formula_one_\" WHERE \"chassis\"='ensign n177' AND \"year\"<1978;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_world_championship_formula_one_\" (\n \"year\" real,\n \"chassis\" text,\n \"engine_s\" text,\n \"tyres\" text,\n \"points\" text\n);\n\nQuestion: What tyres have 1 point and an ensign n177 chassis?"
},
{
"role": "assistant",
"content": "SELECT \"tyres\" FROM \"complete_world_championship_formula_one_\" WHERE \"points\"='1' AND \"chassis\"='ensign n177';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_formula_one_results\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"pts\" real\n);\n\nQuestion: Before 1987, what is the Entrant with bmw straight-4 (t/c) as Engine and a great than 2 Pts?"
},
{
"role": "assistant",
"content": "SELECT \"entrant\" FROM \"complete_formula_one_results\" WHERE \"year\"<1987 AND \"engine\"='bmw straight-4 (t/c)' AND \"pts\">2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What did Ku Hyo-Jin rank?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rank\") FROM \"semifinal_1\" WHERE \"name\"='ku hyo-jin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What was the rank of the person who swam in Lane 7 with a time of 2:25.86?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"rank\") FROM \"semifinal_1\" WHERE \"time\"='2:25.86' AND \"lane\"<7;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"f_class\" (\n \"ship\" text,\n \"pennant_number\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"commissioned\" text\n);\n\nQuestion: Which Laid down has a Ship of fearless?"
},
{
"role": "assistant",
"content": "SELECT \"laid_down\" FROM \"f_class\" WHERE \"ship\"='fearless';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"f_class\" (\n \"ship\" text,\n \"pennant_number\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"commissioned\" text\n);\n\nQuestion: Which ship has a Pennant number of h.69?"
},
{
"role": "assistant",
"content": "SELECT \"ship\" FROM \"f_class\" WHERE \"pennant_number\"='h.69';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"f_class\" (\n \"ship\" text,\n \"pennant_number\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"commissioned\" text\n);\n\nQuestion: Which Launched has Commissioned 6 june 1935?"
},
{
"role": "assistant",
"content": "SELECT \"launched\" FROM \"f_class\" WHERE \"commissioned\"='6 june 1935';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"f_class\" (\n \"ship\" text,\n \"pennant_number\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"commissioned\" text\n);\n\nQuestion: What launch has a Ship of fearless?"
},
{
"role": "assistant",
"content": "SELECT \"launched\" FROM \"f_class\" WHERE \"ship\"='fearless';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"f_class\" (\n \"ship\" text,\n \"pennant_number\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"commissioned\" text\n);\n\nQuestion: Which commission was launched 28 june 1934, and has a Pennant number of h.78?"
},
{
"role": "assistant",
"content": "SELECT \"commissioned\" FROM \"f_class\" WHERE \"launched\"='28 june 1934' AND \"pennant_number\"='h.78';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_scores_for_each_quarter\" (\n \"quarter\" text,\n \"score\" text,\n \"club\" text,\n \"opponent\" text,\n \"year\" text,\n \"round\" text,\n \"venue\" text\n);\n\nQuestion: Which year has a Round of 17?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"highest_scores_for_each_quarter\" WHERE \"round\"='17';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_scores_for_each_quarter\" (\n \"quarter\" text,\n \"score\" text,\n \"club\" text,\n \"opponent\" text,\n \"year\" text,\n \"round\" text,\n \"venue\" text\n);\n\nQuestion: Which opponent has a Club of essendon, and a Score of 13.4.82?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"highest_scores_for_each_quarter\" WHERE \"club\"='essendon' AND \"score\"='13.4.82';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_scores_for_each_quarter\" (\n \"quarter\" text,\n \"score\" text,\n \"club\" text,\n \"opponent\" text,\n \"year\" text,\n \"round\" text,\n \"venue\" text\n);\n\nQuestion: Which opponent has a Score of 15.4.94?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"highest_scores_for_each_quarter\" WHERE \"score\"='15.4.94';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_scores_for_each_quarter\" (\n \"quarter\" text,\n \"score\" text,\n \"club\" text,\n \"opponent\" text,\n \"year\" text,\n \"round\" text,\n \"venue\" text\n);\n\nQuestion: Which opponent has a Round of 12?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"highest_scores_for_each_quarter\" WHERE \"round\"='12';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_scores_for_each_quarter\" (\n \"quarter\" text,\n \"score\" text,\n \"club\" text,\n \"opponent\" text,\n \"year\" text,\n \"round\" text,\n \"venue\" text\n);\n\nQuestion: Which Quarter has a Round of 17?"
},
{
"role": "assistant",
"content": "SELECT \"quarter\" FROM \"highest_scores_for_each_quarter\" WHERE \"round\"='17';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"br_no\" real,\n \"name\" text,\n \"builder\" text,\n \"whenbuilt\" text,\n \"withdrawn\" text\n);\n\nQuestion: When was moray firth built?"
},
{
"role": "assistant",
"content": "SELECT \"whenbuilt\" FROM \"references\" WHERE \"name\"='moray firth';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"br_no\" real,\n \"name\" text,\n \"builder\" text,\n \"whenbuilt\" text,\n \"withdrawn\" text\n);\n\nQuestion: Name the withdrawn for charles dickens"
},
{
"role": "assistant",
"content": "SELECT \"withdrawn\" FROM \"references\" WHERE \"name\"='charles dickens';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Which loss has an Attendance larger than 20,841, and a Date of july 9?"
},
{
"role": "assistant",
"content": "SELECT \"loss\" FROM \"game_log\" WHERE \"attendance\">'20,841' AND \"date\"='july 9';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Which opponent has a Date of july 27?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"date\"='july 27';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"tournament\" text,\n \"venue\" text,\n \"result\" text,\n \"event\" text\n);\n\nQuestion: What Venue held the World Race Walking Cup tourney before 2008?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"achievements\" WHERE \"year\"<2008 AND \"tournament\"='world race walking cup';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"tournament\" text,\n \"venue\" text,\n \"result\" text,\n \"event\" text\n);\n\nQuestion: What tournement was held in Helsinki, Finland in 2005?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"achievements\" WHERE \"venue\"='helsinki, finland';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"tournament\" text,\n \"venue\" text,\n \"result\" text,\n \"event\" text\n);\n\nQuestion: What Venue held the Olympic games in 2012?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"achievements\" WHERE \"tournament\"='olympic games' AND \"year\"=2012;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"asia\" (\n \"name\" text,\n \"est\" real,\n \"city\" text,\n \"country\" text,\n \"website\" text\n);\n\nQuestion: What's the website for the yamagata international documentary film festival?"
},
{
"role": "assistant",
"content": "SELECT \"website\" FROM \"asia\" WHERE \"name\"='yamagata international documentary film festival';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indy_500_results\" (\n \"year\" text,\n \"start\" text,\n \"qual\" text,\n \"rank\" text,\n \"finish\" text,\n \"laps\" real\n);\n\nQuestion: How did Johnnie Parsons finish when his qualifying time was 135.328?"
},
{
"role": "assistant",
"content": "SELECT \"rank\" FROM \"indy_500_results\" WHERE \"qual\"='135.328';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indy_500_results\" (\n \"year\" text,\n \"start\" text,\n \"qual\" text,\n \"rank\" text,\n \"finish\" text,\n \"laps\" real\n);\n\nQuestion: What was Johnnie Parsons rank when he completed over 200 laps?"
},
{
"role": "assistant",
"content": "SELECT \"rank\" FROM \"indy_500_results\" WHERE \"laps\">200;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"wins\" text,\n \"podiums\" text,\n \"position\" text\n);\n\nQuestion: What is the value for Podiums when the value for Wins is 2, and when the Season is 2008?"
},
{
"role": "assistant",
"content": "SELECT \"podiums\" FROM \"career_summary\" WHERE \"wins\"='2' AND \"season\"=2008;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"wins\" text,\n \"podiums\" text,\n \"position\" text\n);\n\nQuestion: What is the value for Position, when the Series is the Macau Grand Prix, and when the Season is before 2007?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"career_summary\" WHERE \"series\"='macau grand prix' AND \"season\"<2007;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"wins\" text,\n \"podiums\" text,\n \"position\" text\n);\n\nQuestion: What is the value for Wins when the Position is 7th?"
},
{
"role": "assistant",
"content": "SELECT \"wins\" FROM \"career_summary\" WHERE \"position\"='7th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"wins\" text,\n \"podiums\" text,\n \"position\" text\n);\n\nQuestion: What is the Series, when the Season is after 2008, when the value for Podiums is 3, and when the Position is 8th?"
},
{
"role": "assistant",
"content": "SELECT \"series\" FROM \"career_summary\" WHERE \"season\">2008 AND \"podiums\"='3' AND \"position\"='8th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"wins\" text,\n \"podiums\" text,\n \"position\" text\n);\n\nQuestion: What is the value for Podiums, when the Season is after 2008, and when the Series is GP2 Asia Series?"
},
{
"role": "assistant",
"content": "SELECT \"podiums\" FROM \"career_summary\" WHERE \"season\">2008 AND \"series\"='gp2 asia series';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"wins\" text,\n \"podiums\" text,\n \"position\" text\n);\n\nQuestion: What is the value for Wins, when the Series is GP2 Series, and when the Season is before 2009?"
},
{
"role": "assistant",
"content": "SELECT \"wins\" FROM \"career_summary\" WHERE \"series\"='gp2 series' AND \"season\"<2009;"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.