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 \"grands_prix\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the rd for the canadian grand prix?"
},
{
"role": "assistant",
"content": "SELECT \"rd\" FROM \"grands_prix\" WHERE \"grand_prix\"='Canadian Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the fastest lap for the european grand prix?"
},
{
"role": "assistant",
"content": "SELECT \"fastest_lap\" FROM \"grands_prix\" WHERE \"grand_prix\"='European Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the pole position for the ferrari at the austrian grand prix?"
},
{
"role": "assistant",
"content": "SELECT \"pole_position\" FROM \"grands_prix\" WHERE \"constructor\"='Ferrari' AND \"grand_prix\"='Austrian Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fed_cup_singles_performances_9\" (\n \"edition\" real,\n \"zone\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"outcome\" text,\n \"result\" text\n);\n\nQuestion: What was the result of round 2r?"
},
{
"role": "assistant",
"content": "SELECT \"outcome\" FROM \"fed_cup_singles_performances_9\" WHERE \"round\"='2R';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fed_cup_singles_performances_9\" (\n \"edition\" real,\n \"zone\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"outcome\" text,\n \"result\" text\n);\n\nQuestion: Who did Tina Pisnik verse?"
},
{
"role": "assistant",
"content": "SELECT \"against\" FROM \"fed_cup_singles_performances_9\" WHERE \"opponent\"='Tina Pisnik';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fed_cup_singles_performances_9\" (\n \"edition\" real,\n \"zone\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"outcome\" text,\n \"result\" text\n);\n\nQuestion: How many rounds were 2r?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"result\") FROM \"fed_cup_singles_performances_9\" WHERE \"round\"='2R';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fed_cup_singles_performances_9\" (\n \"edition\" real,\n \"zone\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"outcome\" text,\n \"result\" text\n);\n\nQuestion: Name the outcome for round 2r"
},
{
"role": "assistant",
"content": "SELECT \"outcome\" FROM \"fed_cup_singles_performances_9\" WHERE \"round\"='2R';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"weekly_ratings\" (\n \"num\" real,\n \"episode\" text,\n \"air_date\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_m\" text,\n \"timeslot_rank\" real,\n \"night_rank\" text,\n \"overall_rank\" real\n);\n\nQuestion: what's the night rank with viewers (m) of 6.63"
},
{
"role": "assistant",
"content": "SELECT \"night_rank\" FROM \"weekly_ratings\" WHERE \"viewers_m\"='6.63';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"weekly_ratings\" (\n \"num\" real,\n \"episode\" text,\n \"air_date\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_m\" text,\n \"timeslot_rank\" real,\n \"night_rank\" text,\n \"overall_rank\" real\n);\n\nQuestion: what's the overall rank with viewers (m) of 7.44"
},
{
"role": "assistant",
"content": "SELECT \"overall_rank\" FROM \"weekly_ratings\" WHERE \"viewers_m\"='7.44';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"weekly_ratings\" (\n \"num\" real,\n \"episode\" text,\n \"air_date\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_m\" text,\n \"timeslot_rank\" real,\n \"night_rank\" text,\n \"overall_rank\" real\n);\n\nQuestion: what's the overall rank with rating/share 18\u201349 of 2.1/5"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"overall_rank\") FROM \"weekly_ratings\" WHERE \"rating_share_18_49\"='2.1/5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"weekly_ratings\" (\n \"num\" real,\n \"episode\" text,\n \"air_date\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_m\" text,\n \"timeslot_rank\" real,\n \"night_rank\" text,\n \"overall_rank\" real\n);\n\nQuestion: what's the night rank with rating of 6.2"
},
{
"role": "assistant",
"content": "SELECT \"night_rank\" FROM \"weekly_ratings\" WHERE \"rating\"='6.2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"weekly_ratings\" (\n \"num\" real,\n \"episode\" text,\n \"air_date\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_m\" text,\n \"timeslot_rank\" real,\n \"night_rank\" text,\n \"overall_rank\" real\n);\n\nQuestion: what's the viewers (m) with episode of \"legacy\""
},
{
"role": "assistant",
"content": "SELECT \"viewers_m\" FROM \"weekly_ratings\" WHERE \"episode\"='\\\"Legacy\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1137142_1\" (\n \"season\" text,\n \"group_a_winner\" text,\n \"group_b_winner\" text,\n \"group_c_winner\" text,\n \"group_d_winner\" text\n);\n\nQuestion: What is the number of group b winner for francavilla?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"group_b_winner\") FROM \"table1_1137142_1\" WHERE \"group_c_winner\"='Francavilla';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1137142_1\" (\n \"season\" text,\n \"group_a_winner\" text,\n \"group_b_winner\" text,\n \"group_c_winner\" text,\n \"group_d_winner\" text\n);\n\nQuestion: What is the group a winner for modena?"
},
{
"role": "assistant",
"content": "SELECT \"group_a_winner\" FROM \"table1_1137142_1\" WHERE \"group_b_winner\"='Modena';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1137142_1\" (\n \"season\" text,\n \"group_a_winner\" text,\n \"group_b_winner\" text,\n \"group_c_winner\" text,\n \"group_d_winner\" text\n);\n\nQuestion: What is the group a winner for vis pesaro?"
},
{
"role": "assistant",
"content": "SELECT \"group_a_winner\" FROM \"table1_1137142_1\" WHERE \"group_c_winner\"='Vis Pesaro';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1137142_1\" (\n \"season\" text,\n \"group_a_winner\" text,\n \"group_b_winner\" text,\n \"group_c_winner\" text,\n \"group_d_winner\" text\n);\n\nQuestion: What group a winner was for nocerina?"
},
{
"role": "assistant",
"content": "SELECT \"group_a_winner\" FROM \"table1_1137142_1\" WHERE \"group_d_winner\"='Nocerina';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1137142_1\" (\n \"season\" text,\n \"group_a_winner\" text,\n \"group_b_winner\" text,\n \"group_c_winner\" text,\n \"group_d_winner\" text\n);\n\nQuestion: What was the group d winner for modena?"
},
{
"role": "assistant",
"content": "SELECT \"group_d_winner\" FROM \"table1_1137142_1\" WHERE \"group_b_winner\"='Modena';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: Who had the fastest lap at the brazilian grand prix?"
},
{
"role": "assistant",
"content": "SELECT \"fastest_lap\" FROM \"grands_prix\" WHERE \"grand_prix\"='Brazilian Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: Who was on the pole position at the monaco grand prix?"
},
{
"role": "assistant",
"content": "SELECT \"pole_position\" FROM \"grands_prix\" WHERE \"grand_prix\"='Monaco Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: Who was the winning driver when Michael Schumacher had the pole and the fastest lap?"
},
{
"role": "assistant",
"content": "SELECT \"winning_driver\" FROM \"grands_prix\" WHERE \"fastest_lap\"='Michael Schumacher' AND \"pole_position\"='Michael Schumacher';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"grand_prix\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: what are all the\u00a0location\u00a0where\u00a0date\u00a0is 5 april"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"grands_prix\" WHERE \"date\"='5 April';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"grand_prix\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: what are all the\u00a0pole position\u00a0where\u00a0date\u00a0is 26 july"
},
{
"role": "assistant",
"content": "SELECT \"pole_position\" FROM \"grands_prix\" WHERE \"date\"='26 July';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"grand_prix\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: who are all the\u00a0winning constructors\u00a0where\u00a0fastest lap\u00a0is riccardo patrese and\u00a0location\u00a0is interlagos"
},
{
"role": "assistant",
"content": "SELECT \"winning_constructor\" FROM \"grands_prix\" WHERE \"fastest_lap\"='Riccardo Patrese' AND \"location\"='Interlagos';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"grand_prix\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: what are all the\u00a0report\u00a0where\u00a0winning constructor\u00a0is williams - renault and\u00a0grand prix\u00a0is south african grand prix"
},
{
"role": "assistant",
"content": "SELECT \"report\" FROM \"grands_prix\" WHERE \"winning_constructor\"='Williams - Renault' AND \"grand_prix\"='South African Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"grand_prix\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: whatthe minimum\u00a0round\u00a0where\u00a0grand prix\u00a0is german grand prix"
},
{
"role": "assistant",
"content": "SELECT MIN(\"round\") FROM \"grands_prix\" WHERE \"grand_prix\"='German Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"grand_prix\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: what of the total number of\u00a0date\u00a0where\u00a0grand prix\u00a0is portuguese grand prix"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"date\") FROM \"grands_prix\" WHERE \"grand_prix\"='Portuguese Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"round\" real,\n \"grand_prix\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the number of pole position with a round of 15?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"pole_position\") FROM \"season_review\" WHERE \"round\"=15;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"round\" real,\n \"grand_prix\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the date of the circuit gilles villeneuve?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"season_review\" WHERE \"location\"='Circuit Gilles Villeneuve';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"round\" real,\n \"grand_prix\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the location of thierry boutsen?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"season_review\" WHERE \"fastest_lap\"='Thierry Boutsen';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: Who had the pole position at the German Grand Prix?"
},
{
"role": "assistant",
"content": "SELECT \"pole_position\" FROM \"season_review\" WHERE \"grand_prix\"='German Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: Which rd. occurred on 22 October?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rd\") FROM \"season_review\" WHERE \"date\"='22 October';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: Who was the winning driver on 13 August?"
},
{
"role": "assistant",
"content": "SELECT \"winning_driver\" FROM \"season_review\" WHERE \"date\"='13 August';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What was the fastest lap at the Mexican Grand Prix?"
},
{
"role": "assistant",
"content": "SELECT \"fastest_lap\" FROM \"season_review\" WHERE \"grand_prix\"='Mexican Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: Which rd. took place at Hockenheimring?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rd\") FROM \"season_review\" WHERE \"location\"='Hockenheimring';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: How many drivers had the fastest lap at Silverstone?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"fastest_lap\") FROM \"season_review\" WHERE \"location\"='Silverstone';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_11381701_3\" (\n \"source\" text,\n \"date\" text,\n \"method\" text,\n \"i_os\" text,\n \"android\" text,\n \"black_berry\" text,\n \"symbian_series_40\" text,\n \"bada\" text,\n \"windows\" text,\n \"other\" text\n);\n\nQuestion: What is the percentage of Android use when Windows is 1.15%?"
},
{
"role": "assistant",
"content": "SELECT \"android\" FROM \"table1_11381701_3\" WHERE \"windows\"='1.15%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_11381701_3\" (\n \"source\" text,\n \"date\" text,\n \"method\" text,\n \"i_os\" text,\n \"android\" text,\n \"black_berry\" text,\n \"symbian_series_40\" text,\n \"bada\" text,\n \"windows\" text,\n \"other\" text\n);\n\nQuestion: On which dates was the value of Bada 0.05%?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"table1_11381701_3\" WHERE \"bada\"='0.05%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_11381701_3\" (\n \"source\" text,\n \"date\" text,\n \"method\" text,\n \"i_os\" text,\n \"android\" text,\n \"black_berry\" text,\n \"symbian_series_40\" text,\n \"bada\" text,\n \"windows\" text,\n \"other\" text\n);\n\nQuestion: When the value of \"other\" is 0.7%, what is the percentage for Windows?"
},
{
"role": "assistant",
"content": "SELECT \"windows\" FROM \"table1_11381701_3\" WHERE \"other\"='0.7%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_11381701_3\" (\n \"source\" text,\n \"date\" text,\n \"method\" text,\n \"i_os\" text,\n \"android\" text,\n \"black_berry\" text,\n \"symbian_series_40\" text,\n \"bada\" text,\n \"windows\" text,\n \"other\" text\n);\n\nQuestion: When Symbian/Series 40 is 0.40%, what is the percentage of \"other\"?"
},
{
"role": "assistant",
"content": "SELECT \"other\" FROM \"table1_11381701_3\" WHERE \"symbian_series_40\"='0.40%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_11381701_3\" (\n \"source\" text,\n \"date\" text,\n \"method\" text,\n \"i_os\" text,\n \"android\" text,\n \"black_berry\" text,\n \"symbian_series_40\" text,\n \"bada\" text,\n \"windows\" text,\n \"other\" text\n);\n\nQuestion: Which source shows Blackberry at 2.9%?"
},
{
"role": "assistant",
"content": "SELECT \"source\" FROM \"table1_11381701_3\" WHERE \"black_berry\"='2.9%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"administered_by_independent_administrati\" (\n \"english_name\" text,\n \"japanese_orthography\" text,\n \"pronouciation\" text,\n \"abbreviation\" text,\n \"provider_iai\" text,\n \"foundation\" real\n);\n\nQuestion: Which colleges have the english abbreviation MTC?"
},
{
"role": "assistant",
"content": "SELECT \"english_name\" FROM \"administered_by_independent_administrati\" WHERE \"abbreviation\"='MTC';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"administered_by_independent_administrati\" (\n \"english_name\" text,\n \"japanese_orthography\" text,\n \"pronouciation\" text,\n \"abbreviation\" text,\n \"provider_iai\" text,\n \"foundation\" real\n);\n\nQuestion: What is the Japanese orthography for the English name National Farmers Academy?"
},
{
"role": "assistant",
"content": "SELECT \"japanese_orthography\" FROM \"administered_by_independent_administrati\" WHERE \"english_name\"='National Farmers Academy';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"administered_by_independent_administrati\" (\n \"english_name\" text,\n \"japanese_orthography\" text,\n \"pronouciation\" text,\n \"abbreviation\" text,\n \"provider_iai\" text,\n \"foundation\" real\n);\n\nQuestion: What is the abbreviation for the college pronounced \"k\u014dk\u016b daigakk\u014d\"?"
},
{
"role": "assistant",
"content": "SELECT \"abbreviation\" FROM \"administered_by_independent_administrati\" WHERE \"pronouciation\"='K\u014dk\u016b Daigakk\u014d';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"administered_by_independent_administrati\" (\n \"english_name\" text,\n \"japanese_orthography\" text,\n \"pronouciation\" text,\n \"abbreviation\" text,\n \"provider_iai\" text,\n \"foundation\" real\n);\n\nQuestion: How many providers were founded in 1964?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"provider_iai\") FROM \"administered_by_independent_administrati\" WHERE \"foundation\"=1964;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"administered_by_independent_administrati\" (\n \"english_name\" text,\n \"japanese_orthography\" text,\n \"pronouciation\" text,\n \"abbreviation\" text,\n \"provider_iai\" text,\n \"foundation\" real\n);\n\nQuestion: What is the Japanese orthography for National Fisheries University?"
},
{
"role": "assistant",
"content": "SELECT \"japanese_orthography\" FROM \"administered_by_independent_administrati\" WHERE \"english_name\"='National Fisheries University';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners_by_country\" (\n \"country\" text,\n \"total\" real,\n \"marathon_mens\" real,\n \"marathon_womens\" real,\n \"half_marathon_mens\" real,\n \"half_marathon_womens\" real\n);\n\nQuestion: What is the minimum number for the half marathon (womens)?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"half_marathon_womens\") FROM \"winners_by_country\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners_by_country\" (\n \"country\" text,\n \"total\" real,\n \"marathon_mens\" real,\n \"marathon_womens\" real,\n \"half_marathon_mens\" real,\n \"half_marathon_womens\" real\n);\n\nQuestion: Whatis the total number of half marathon (mens) that represented kazakhstan?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"half_marathon_mens\") FROM \"winners_by_country\" WHERE \"country\"='Kazakhstan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners_by_country\" (\n \"country\" text,\n \"total\" real,\n \"marathon_mens\" real,\n \"marathon_womens\" real,\n \"half_marathon_mens\" real,\n \"half_marathon_womens\" real\n);\n\nQuestion: What is amount of countries where half marathon (women) is larger than 1.0?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"country\") FROM \"winners_by_country\" WHERE \"half_marathon_womens\">1.0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners_by_country\" (\n \"country\" text,\n \"total\" real,\n \"marathon_mens\" real,\n \"marathon_womens\" real,\n \"half_marathon_mens\" real,\n \"half_marathon_womens\" real\n);\n\nQuestion: How many times is Moldova the winner of half marathon (womens)?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"half_marathon_womens\") FROM \"winners_by_country\" WHERE \"country\"='Moldova';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners_by_country\" (\n \"country\" text,\n \"total\" real,\n \"marathon_mens\" real,\n \"marathon_womens\" real,\n \"half_marathon_mens\" real,\n \"half_marathon_womens\" real\n);\n\nQuestion: Which country has half marathon (womens) that is larger than 1.0?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"winners_by_country\" WHERE \"half_marathon_womens\">1.0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the make of the car that won the brazilian grand prix?"
},
{
"role": "assistant",
"content": "SELECT \"constructor\" FROM \"season_review\" WHERE \"grand_prix\"='Brazilian Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: Who drove the fastest lap for round 8?"
},
{
"role": "assistant",
"content": "SELECT \"fastest_lap\" FROM \"season_review\" WHERE \"rd\"=8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What day was the grand prix in jerez?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"season_review\" WHERE \"location\"='Jerez';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What event was in detroit?"
},
{
"role": "assistant",
"content": "SELECT \"grand_prix\" FROM \"season_review\" WHERE \"location\"='Detroit';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: How many events did nigel mansell drive the fastest and a mclaren - honda win?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"grand_prix\") FROM \"season_review\" WHERE \"constructor\"='McLaren - Honda' AND \"fastest_lap\"='Nigel Mansell';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What day is the french grand prix"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"season_review\" WHERE \"grand_prix\"='French Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"night_series_winners_1977_1987\" (\n \"year\" real,\n \"winners\" text,\n \"grand_finalist\" text,\n \"scores\" text,\n \"venue\" text,\n \"crowd\" real,\n \"margin\" real,\n \"season_result\" text\n);\n\nQuestion: who is the\u00a0winners\u00a0where\u00a0season result\u00a0is 7th"
},
{
"role": "assistant",
"content": "SELECT \"winners\" FROM \"night_series_winners_1977_1987\" WHERE \"season_result\"='7th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"night_series_winners_1977_1987\" (\n \"year\" real,\n \"winners\" text,\n \"grand_finalist\" text,\n \"scores\" text,\n \"venue\" text,\n \"crowd\" real,\n \"margin\" real,\n \"season_result\" text\n);\n\nQuestion: who is the\u00a0winners\u00a0where\u00a0season result\u00a0is 9th"
},
{
"role": "assistant",
"content": "SELECT \"winners\" FROM \"night_series_winners_1977_1987\" WHERE \"season_result\"='9th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"night_series_winners_1977_1987\" (\n \"year\" real,\n \"winners\" text,\n \"grand_finalist\" text,\n \"scores\" text,\n \"venue\" text,\n \"crowd\" real,\n \"margin\" real,\n \"season_result\" text\n);\n\nQuestion: what's the\u00a0grand finalist\u00a0where\u00a0winners\u00a0is collingwood"
},
{
"role": "assistant",
"content": "SELECT \"grand_finalist\" FROM \"night_series_winners_1977_1987\" WHERE \"winners\"='Collingwood';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"night_series_winners_1977_1987\" (\n \"year\" real,\n \"winners\" text,\n \"grand_finalist\" text,\n \"scores\" text,\n \"venue\" text,\n \"crowd\" real,\n \"margin\" real,\n \"season_result\" text\n);\n\nQuestion: who is the\u00a0season result\u00a0where\u00a0margin\u00a0is 51"
},
{
"role": "assistant",
"content": "SELECT \"season_result\" FROM \"night_series_winners_1977_1987\" WHERE \"margin\"=51;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"night_series_winners_1977_1987\" (\n \"year\" real,\n \"winners\" text,\n \"grand_finalist\" text,\n \"scores\" text,\n \"venue\" text,\n \"crowd\" real,\n \"margin\" real,\n \"season_result\" text\n);\n\nQuestion: who is the\u00a0grand finalist\u00a0where\u00a0scores\u00a0is 11.11 (77) \u2013 10.8 (68)"
},
{
"role": "assistant",
"content": "SELECT \"grand_finalist\" FROM \"night_series_winners_1977_1987\" WHERE \"scores\"='11.11 (77) \u2013 10.8 (68)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"night_series_winners_1977_1987\" (\n \"year\" real,\n \"winners\" text,\n \"grand_finalist\" text,\n \"scores\" text,\n \"venue\" text,\n \"crowd\" real,\n \"margin\" real,\n \"season_result\" text\n);\n\nQuestion: who is the\u00a0grand finalist\u00a0where\u00a0scores\u00a0is 8.9 (57) \u2013 7.12 (54)"
},
{
"role": "assistant",
"content": "SELECT \"grand_finalist\" FROM \"night_series_winners_1977_1987\" WHERE \"scores\"='8.9 (57) \u2013 7.12 (54)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"consolation_night_series_lake_oval_winne\" (\n \"year\" real,\n \"winners\" text,\n \"grand_finalist\" text,\n \"scores\" text,\n \"venue\" text,\n \"crowd\" real,\n \"margin\" real,\n \"season_result\" text\n);\n\nQuestion: what was the crowd when the scores are 10.12 (72) \u2013 8.11 (59)?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"crowd\") FROM \"consolation_night_series_lake_oval_winne\" WHERE \"scores\"='10.12 (72) \u2013 8.11 (59)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"consolation_night_series_lake_oval_winne\" (\n \"year\" real,\n \"winners\" text,\n \"grand_finalist\" text,\n \"scores\" text,\n \"venue\" text,\n \"crowd\" real,\n \"margin\" real,\n \"season_result\" text\n);\n\nQuestion: what is the venue where the scores are 15.13 (103) \u2013 8.4 (52)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"consolation_night_series_lake_oval_winne\" WHERE \"scores\"='15.13 (103) \u2013 8.4 (52)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"consolation_night_series_lake_oval_winne\" (\n \"year\" real,\n \"winners\" text,\n \"grand_finalist\" text,\n \"scores\" text,\n \"venue\" text,\n \"crowd\" real,\n \"margin\" real,\n \"season_result\" text\n);\n\nQuestion: what is the venue where the margin is 4?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"consolation_night_series_lake_oval_winne\" WHERE \"margin\"=4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"consolation_night_series_lake_oval_winne\" (\n \"year\" real,\n \"winners\" text,\n \"grand_finalist\" text,\n \"scores\" text,\n \"venue\" text,\n \"crowd\" real,\n \"margin\" real,\n \"season_result\" text\n);\n\nQuestion: what is the crowd when the grand finalist was south melbourne?"
},
{
"role": "assistant",
"content": "SELECT \"crowd\" FROM \"consolation_night_series_lake_oval_winne\" WHERE \"grand_finalist\"='South Melbourne';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What was the date for monaco grand prix?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"season_review\" WHERE \"race\"='Monaco Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What was the date for the pole position of alain prost?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"season_review\" WHERE \"pole_position\"='Alain Prost';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the race winer of the portuguese grand prix?"
},
{
"role": "assistant",
"content": "SELECT \"race_winner\" FROM \"season_review\" WHERE \"race\"='Portuguese Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: what's the\u00a0race winner\u00a0with\u00a0date\u00a0being 12 june"
},
{
"role": "assistant",
"content": "SELECT \"race_winner\" FROM \"season_review\" WHERE \"date\"='12 June';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: what's the\u00a0constructor\u00a0with\u00a0location\u00a0being hockenheimring"
},
{
"role": "assistant",
"content": "SELECT \"constructor\" FROM \"season_review\" WHERE \"location\"='Hockenheimring';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: what's the\u00a0race winner\u00a0with\u00a0location\u00a0being jacarepagu\u00e1"
},
{
"role": "assistant",
"content": "SELECT \"race_winner\" FROM \"season_review\" WHERE \"location\"='Jacarepagu\u00e1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: what's the total number of\u00a0race winner\u00a0with\u00a0rnd\u00a0being 10"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"race_winner\") FROM \"season_review\" WHERE \"rnd\"=10;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: what's the\u00a0pole position\u00a0with\u00a0location\u00a0being hockenheimring"
},
{
"role": "assistant",
"content": "SELECT \"pole_position\" FROM \"season_review\" WHERE \"location\"='Hockenheimring';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: what's the\u00a0report\u00a0with\u00a0rnd\u00a0being 4"
},
{
"role": "assistant",
"content": "SELECT \"report\" FROM \"season_review\" WHERE \"rnd\"=4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"double_premiership_teams\" (\n \"season\" real,\n \"premier\" text,\n \"runner_up\" text,\n \"score\" text,\n \"venue\" text,\n \"attendance\" real,\n \"premiership\" text\n);\n\nQuestion: What venue has an attendance of 30824 at Essendon in 1984?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"double_premiership_teams\" WHERE \"premier\"='Essendon' AND \"attendance\"=30824;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"double_premiership_teams\" (\n \"season\" real,\n \"premier\" text,\n \"runner_up\" text,\n \"score\" text,\n \"venue\" text,\n \"attendance\" real,\n \"premiership\" text\n);\n\nQuestion: What other venue was a runner up to Hawthorn?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"double_premiership_teams\" WHERE \"runner_up\"='Hawthorn';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"double_premiership_teams\" (\n \"season\" real,\n \"premier\" text,\n \"runner_up\" text,\n \"score\" text,\n \"venue\" text,\n \"attendance\" real,\n \"premiership\" text\n);\n\nQuestion: What is the other premiership when the runner up wis Geelong?"
},
{
"role": "assistant",
"content": "SELECT \"premiership\" FROM \"double_premiership_teams\" WHERE \"runner_up\"='Geelong';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"double_premiership_teams\" (\n \"season\" real,\n \"premier\" text,\n \"runner_up\" text,\n \"score\" text,\n \"venue\" text,\n \"attendance\" real,\n \"premiership\" text\n);\n\nQuestion: Who are all the runner ups when the score is 9.12 (66) \u2013 5.6 (36)?"
},
{
"role": "assistant",
"content": "SELECT \"runner_up\" FROM \"double_premiership_teams\" WHERE \"score\"='9.12 (66) \u2013 5.6 (36)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: Who had the fastest lap in the race where Patrick Tambay was on the pole?"
},
{
"role": "assistant",
"content": "SELECT \"fastest_lap\" FROM \"season_review\" WHERE \"pole_position\"='Patrick Tambay';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What race had Nelson Piquet on the pole and was in N\u00fcrburgring?"
},
{
"role": "assistant",
"content": "SELECT \"race\" FROM \"season_review\" WHERE \"pole_position\"='Nelson Piquet' AND \"location\"='N\u00fcrburgring';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: How many rounds did Patrick Tambay record the fastest lap?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rnd\") FROM \"season_review\" WHERE \"fastest_lap\"='Patrick Tambay';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: Which race is located in kyalami?"
},
{
"role": "assistant",
"content": "SELECT \"race\" FROM \"season_review\" WHERE \"location\"='Kyalami';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the fastest lap with pole position of gilles villeneuve?"
},
{
"role": "assistant",
"content": "SELECT \"fastest_lap\" FROM \"season_review\" WHERE \"pole_position\"='Gilles Villeneuve';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: Who did the fastest lap in the dutch grand prix?"
},
{
"role": "assistant",
"content": "SELECT \"fastest_lap\" FROM \"season_review\" WHERE \"race\"='Dutch Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: Who did the fastest lap with the race winner john watson?"
},
{
"role": "assistant",
"content": "SELECT \"fastest_lap\" FROM \"season_review\" WHERE \"race_winner\"='John Watson';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the constructor for 9 May?"
},
{
"role": "assistant",
"content": "SELECT \"constructor\" FROM \"season_review\" WHERE \"date\"='9 May';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the pole position for the race with the fastest lap by Nelson Piquet and the constructor is Ferrari?"
},
{
"role": "assistant",
"content": "SELECT \"pole_position\" FROM \"season_review\" WHERE \"fastest_lap\"='Nelson Piquet' AND \"constructor\"='Ferrari';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the report listed for the race in San Marino Grand Prix?"
},
{
"role": "assistant",
"content": "SELECT \"report\" FROM \"season_review\" WHERE \"race\"='San Marino Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: Who was the constructor in the location Monza?"
},
{
"role": "assistant",
"content": "SELECT \"constructor\" FROM \"season_review\" WHERE \"location\"='Monza';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: How many races had the pole position Alain Prost and the race winner Keke Rosberg?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"race\") FROM \"season_review\" WHERE \"pole_position\"='Alain Prost' AND \"race_winner\"='Keke Rosberg';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: what's the\u00a0report\u00a0with\u00a0location\u00a0 \u00f6sterreichring"
},
{
"role": "assistant",
"content": "SELECT \"report\" FROM \"season_review\" WHERE \"location\"='\u00d6sterreichring';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: what's the\u00a0report\u00a0with\u00a0race\u00a0argentine grand prix"
},
{
"role": "assistant",
"content": "SELECT \"report\" FROM \"season_review\" WHERE \"race\"='Argentine Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: what's the minimum\u00a0rnd\u00a0with\u00a0race\u00a0 italian grand prix"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rnd\") FROM \"season_review\" WHERE \"race\"='Italian Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: what's the total number of\u00a0report\u00a0with\u00a0date\u00a0 29 april"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"report\") FROM \"season_review\" WHERE \"date\"='29 April';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: what's the\u00a0race winner\u00a0with\u00a0constructor\u00a0 renault"
},
{
"role": "assistant",
"content": "SELECT \"race_winner\" FROM \"season_review\" WHERE \"constructor\"='Renault';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: what's the\u00a0date\u00a0with\u00a0rnd\u00a0 1"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"season_review\" WHERE \"rnd\"=1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: How many days is the Monaco Grand Prix?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"date\") FROM \"season_review\" WHERE \"race\"='Monaco Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: How many rounds were won with James Hunt as pole position and John Watson as fastest lap?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rnd\") FROM \"season_review\" WHERE \"pole_position\"='James Hunt' AND \"fastest_lap\"='John Watson';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: The Dijon-prenois had how many fastest laps?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"fastest_lap\") FROM \"season_review\" WHERE \"location\"='Dijon-Prenois';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.