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 \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: Name the Qual 2 of a Team of american spirit team johansson and a Best of 59.073?"
},
{
"role": "assistant",
"content": "SELECT \"qual_2\" FROM \"qualifying_results\" WHERE \"team\"='american spirit team johansson' AND \"best\"='59.073';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: Name the Best which has a Qual 2 of 58.700?"
},
{
"role": "assistant",
"content": "SELECT \"best\" FROM \"qualifying_results\" WHERE \"qual_2\"='58.700';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: Which Qual 1 has a Qual 2 of 58.861?"
},
{
"role": "assistant",
"content": "SELECT \"qual_1\" FROM \"qualifying_results\" WHERE \"qual_2\"='58.861';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: Which Qual 1 has a Qual 2 of 59.822?"
},
{
"role": "assistant",
"content": "SELECT \"qual_1\" FROM \"qualifying_results\" WHERE \"qual_2\"='59.822';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: Which Qual 1 has a Team of team player's, and a Best of 58.405?"
},
{
"role": "assistant",
"content": "SELECT \"qual_1\" FROM \"qualifying_results\" WHERE \"team\"='team player''s' AND \"best\"='58.405';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sortable_list_of_competitors_with_s_kipp\" (\n \"nation\" text,\n \"birth_date\" text,\n \"height_m\" text,\n \"weight_kg\" text,\n \"world_rank\" text\n);\n\nQuestion: what is the height (m) when the nation is sweden (swe) and the weight (kg) is 102?"
},
{
"role": "assistant",
"content": "SELECT \"height_m\" FROM \"sortable_list_of_competitors_with_s_kipp\" WHERE \"nation\"='sweden (swe)' AND \"weight_kg\"='102';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sortable_list_of_competitors_with_s_kipp\" (\n \"nation\" text,\n \"birth_date\" text,\n \"height_m\" text,\n \"weight_kg\" text,\n \"world_rank\" text\n);\n\nQuestion: what is the nation when the world rank is 2 and the birth date is 1976-12-20?"
},
{
"role": "assistant",
"content": "SELECT \"nation\" FROM \"sortable_list_of_competitors_with_s_kipp\" WHERE \"world_rank\"='2' AND \"birth_date\"='1976-12-20';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sortable_list_of_competitors_with_s_kipp\" (\n \"nation\" text,\n \"birth_date\" text,\n \"height_m\" text,\n \"weight_kg\" text,\n \"world_rank\" text\n);\n\nQuestion: what is the nation when the world rank is 6 and the birth date is 1971-07-31?"
},
{
"role": "assistant",
"content": "SELECT \"nation\" FROM \"sortable_list_of_competitors_with_s_kipp\" WHERE \"world_rank\"='6' AND \"birth_date\"='1971-07-31';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sortable_list_of_competitors_with_s_kipp\" (\n \"nation\" text,\n \"birth_date\" text,\n \"height_m\" text,\n \"weight_kg\" text,\n \"world_rank\" text\n);\n\nQuestion: what is the birth date when the weight (kg) is 100 and the world rank is 2?"
},
{
"role": "assistant",
"content": "SELECT \"birth_date\" FROM \"sortable_list_of_competitors_with_s_kipp\" WHERE \"weight_kg\"='100' AND \"world_rank\"='2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sortable_list_of_competitors_with_s_kipp\" (\n \"nation\" text,\n \"birth_date\" text,\n \"height_m\" text,\n \"weight_kg\" text,\n \"world_rank\" text\n);\n\nQuestion: what is the nation when the height (m) is 1.91 and the weight (kg) is 99?"
},
{
"role": "assistant",
"content": "SELECT \"nation\" FROM \"sortable_list_of_competitors_with_s_kipp\" WHERE \"height_m\"='1.91' AND \"weight_kg\"='99';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sortable_list_of_competitors_with_s_kipp\" (\n \"nation\" text,\n \"birth_date\" text,\n \"height_m\" text,\n \"weight_kg\" text,\n \"world_rank\" text\n);\n\nQuestion: what is the height (m) when the birth date is 1968-07-01?"
},
{
"role": "assistant",
"content": "SELECT \"height_m\" FROM \"sortable_list_of_competitors_with_s_kipp\" WHERE \"birth_date\"='1968-07-01';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"2002_position\" real,\n \"2003_position\" real,\n \"total_position\" real,\n \"qualification\" text\n);\n\nQuestion: How many Total Positions have a 2002 Position smaller than 3, and a Team of shandong luneng?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"total_position\") FROM \"relegation\" WHERE \"2002_position\"<3 AND \"team\"='shandong luneng';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"2002_position\" real,\n \"2003_position\" real,\n \"total_position\" real,\n \"qualification\" text\n);\n\nQuestion: Which Team has a Qualification of entry to the 2004 chinese super league, and a 2002 Position smaller than 6, and a 2003 Position smaller than 9, and a Total Position larger than 3.5?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"relegation\" WHERE \"qualification\"='entry to the 2004 chinese super league' AND \"2002_position\"<6 AND \"2003_position\"<9 AND \"total_position\">3.5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What is the nationality of the athlete with a time of 2:12.56?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"heats\" WHERE \"time\"='2:12.56';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What time did Sara Nordenstam get?"
},
{
"role": "assistant",
"content": "SELECT \"time\" FROM \"heats\" WHERE \"name\"='sara nordenstam';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What nationality is Jessica Pengelly?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"heats\" WHERE \"name\"='jessica pengelly';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"appearances_and_goals\" (\n \"name\" text,\n \"position\" text,\n \"league_apps\" text,\n \"league_goals\" real,\n \"fa_cup_apps\" text,\n \"fa_cup_goals\" real,\n \"league_cup_apps\" text,\n \"league_cup_goals\" real,\n \"flt_apps\" text,\n \"flt_goals\" real,\n \"total_apps\" text,\n \"total_goals\" real\n);\n\nQuestion: What league apps with 1 flt apps, 0 goals, and more than 1 league goals?"
},
{
"role": "assistant",
"content": "SELECT \"league_apps\" FROM \"appearances_and_goals\" WHERE \"flt_apps\"='1' AND \"total_goals\">0 AND \"league_goals\">1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"appearances_and_goals\" (\n \"name\" text,\n \"position\" text,\n \"league_apps\" text,\n \"league_goals\" real,\n \"fa_cup_apps\" text,\n \"fa_cup_goals\" real,\n \"league_cup_apps\" text,\n \"league_cup_goals\" real,\n \"flt_apps\" text,\n \"flt_goals\" real,\n \"total_apps\" text,\n \"total_goals\" real\n);\n\nQuestion: What is the total number of league goals for Simon Charlton?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"league_goals\") FROM \"appearances_and_goals\" WHERE \"name\"='simon charlton';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What was the place when the score was 65-70-72=207?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"third_round\" WHERE \"score\"='65-70-72=207';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What was the score for place 4?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"third_round\" WHERE \"place\"='4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Who scored 67-73-70=210?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"third_round\" WHERE \"score\"='67-73-70=210';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nascar_nationwide_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" real,\n \"avg_finish\" real,\n \"winnings\" text,\n \"position\" text\n);\n\nQuestion: What is the lowest poles that have 0 as a win, 0 as the top 5, with 66th as the postion?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"poles\") FROM \"nascar_nationwide_series\" WHERE \"wins\"=0 AND \"top_5\"=0 AND \"position\"='66th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"year\" real,\n \"movie_in_kannada\" text,\n \"director\" text,\n \"cast\" text,\n \"music_director\" text\n);\n\nQuestion: Who was the music director in 1971 for the movie Kalyani?"
},
{
"role": "assistant",
"content": "SELECT \"music_director\" FROM \"see_also\" WHERE \"year\"=1971 AND \"movie_in_kannada\"='kalyani';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"year\" real,\n \"movie_in_kannada\" text,\n \"director\" text,\n \"cast\" text,\n \"music_director\" text\n);\n\nQuestion: What movie had the music director G.K. Venkatesh and director B. Dorairaj?"
},
{
"role": "assistant",
"content": "SELECT \"movie_in_kannada\" FROM \"see_also\" WHERE \"music_director\"='g.k. venkatesh' AND \"director\"='b. dorairaj';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"year\" real,\n \"movie_in_kannada\" text,\n \"director\" text,\n \"cast\" text,\n \"music_director\" text\n);\n\nQuestion: What movie had the music director G.K. Venkatesh and director Siddalingaiah?"
},
{
"role": "assistant",
"content": "SELECT \"movie_in_kannada\" FROM \"see_also\" WHERE \"music_director\"='g.k. venkatesh' AND \"director\"='siddalingaiah';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ohio_counties_ranked_by_per_capita_incom\" (\n \"county\" text,\n \"per_capita_income\" text,\n \"median_household_income\" text,\n \"median_family_income\" text,\n \"population\" real,\n \"number_of_households\" real\n);\n\nQuestion: Which county has a median family income of $50,227?"
},
{
"role": "assistant",
"content": "SELECT \"county\" FROM \"ohio_counties_ranked_by_per_capita_incom\" WHERE \"median_family_income\"='$50,227';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"single_performance_statistics\" (\n \"tournament\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the tournament when 2010 is not held?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"single_performance_statistics\" WHERE \"2010\"='not held';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"single_performance_statistics\" (\n \"tournament\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What shows for 2009 when 2008 is A, 2012 is 1r, 2010 is q2, and 2011 is 2r?"
},
{
"role": "assistant",
"content": "SELECT \"2009\" FROM \"single_performance_statistics\" WHERE \"2008\"='a' AND \"2012\"='1r' AND \"2010\"='q2' AND \"2011\"='2r';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"single_performance_statistics\" (\n \"tournament\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the tournament when 2010 is q2, and 2009 is 1r?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"single_performance_statistics\" WHERE \"2010\"='q2' AND \"2009\"='1r';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"single_performance_statistics\" (\n \"tournament\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the tournament when 2007 is WTA Premier 5 tournaments?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"single_performance_statistics\" WHERE \"2007\"='wta premier 5 tournaments';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"single_performance_statistics\" (\n \"tournament\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the tournament when 2012 is q2?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"single_performance_statistics\" WHERE \"2012\"='q2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"single_performance_statistics\" (\n \"tournament\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What shows for 2008 when 2010 is 138?"
},
{
"role": "assistant",
"content": "SELECT \"2008\" FROM \"single_performance_statistics\" WHERE \"2010\"='138';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semifinal_a_b_1\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: Which country timed at 7:03.91?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"semifinal_a_b_1\" WHERE \"time\"='7:03.91';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semifinal_a_b_1\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What did Denmark time at?"
},
{
"role": "assistant",
"content": "SELECT \"time\" FROM \"semifinal_a_b_1\" WHERE \"country\"='denmark';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"global_desktop_and_mobile_stats_combined\" (\n \"date\" text,\n \"internet_explorer\" text,\n \"chrome\" text,\n \"firefox\" text,\n \"safari\" text\n);\n\nQuestion: What was the internet explorer % when firefox was 24.98%?"
},
{
"role": "assistant",
"content": "SELECT \"internet_explorer\" FROM \"global_desktop_and_mobile_stats_combined\" WHERE \"firefox\"='24.98%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"global_desktop_and_mobile_stats_combined\" (\n \"date\" text,\n \"internet_explorer\" text,\n \"chrome\" text,\n \"firefox\" text,\n \"safari\" text\n);\n\nQuestion: What was the percentage of firefox was chrome was 23.90%"
},
{
"role": "assistant",
"content": "SELECT \"firefox\" FROM \"global_desktop_and_mobile_stats_combined\" WHERE \"chrome\"='23.90%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"global_desktop_and_mobile_stats_combined\" (\n \"date\" text,\n \"internet_explorer\" text,\n \"chrome\" text,\n \"firefox\" text,\n \"safari\" text\n);\n\nQuestion: What was the percentage of safari when internet explorer was 20.27%?"
},
{
"role": "assistant",
"content": "SELECT \"safari\" FROM \"global_desktop_and_mobile_stats_combined\" WHERE \"internet_explorer\"='20.27%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"global_desktop_and_mobile_stats_combined\" (\n \"date\" text,\n \"internet_explorer\" text,\n \"chrome\" text,\n \"firefox\" text,\n \"safari\" text\n);\n\nQuestion: What was the firefox % was chrome was 25.08%?"
},
{
"role": "assistant",
"content": "SELECT \"firefox\" FROM \"global_desktop_and_mobile_stats_combined\" WHERE \"chrome\"='25.08%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"global_desktop_and_mobile_stats_combined\" (\n \"date\" text,\n \"internet_explorer\" text,\n \"chrome\" text,\n \"firefox\" text,\n \"safari\" text\n);\n\nQuestion: What was the percentage of safari when firefox was 24.66%"
},
{
"role": "assistant",
"content": "SELECT \"safari\" FROM \"global_desktop_and_mobile_stats_combined\" WHERE \"firefox\"='24.66%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"format\" text,\n \"label\" text,\n \"edition\" text\n);\n\nQuestion: Which label released on February 18, 2009?"
},
{
"role": "assistant",
"content": "SELECT \"label\" FROM \"release_history\" WHERE \"date\"='february 18, 2009';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"format\" text,\n \"label\" text,\n \"edition\" text\n);\n\nQuestion: When did Avex Entertainment release a CD?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"release_history\" WHERE \"format\"='cd' AND \"label\"='avex entertainment';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"format\" text,\n \"label\" text,\n \"edition\" text\n);\n\nQuestion: When did Hollywood Records release a digital download?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"release_history\" WHERE \"label\"='hollywood records' AND \"format\"='digital download';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"format\" text,\n \"label\" text,\n \"edition\" text\n);\n\nQuestion: What kind of edition was released September 23, 2008 from the United States?"
},
{
"role": "assistant",
"content": "SELECT \"edition\" FROM \"release_history\" WHERE \"date\"='september 23, 2008' AND \"region\"='united states';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"format\" text,\n \"label\" text,\n \"edition\" text\n);\n\nQuestion: What format was released April 16, 2009?"
},
{
"role": "assistant",
"content": "SELECT \"format\" FROM \"release_history\" WHERE \"date\"='april 16, 2009';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"febc_stations_in_the_philippines\" (\n \"branding\" text,\n \"call_sign\" text,\n \"frequency\" text,\n \"power_kw\" text,\n \"location\" text\n);\n\nQuestion: What's the call sign if the branding is 1062 DXKI Koronadal?"
},
{
"role": "assistant",
"content": "SELECT \"call_sign\" FROM \"febc_stations_in_the_philippines\" WHERE \"branding\"='1062 dxki koronadal';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"febc_stations_in_the_philippines\" (\n \"branding\" text,\n \"call_sign\" text,\n \"frequency\" text,\n \"power_kw\" text,\n \"location\" text\n);\n\nQuestion: What's the branding for frequency 1233khz?"
},
{
"role": "assistant",
"content": "SELECT \"branding\" FROM \"febc_stations_in_the_philippines\" WHERE \"frequency\"='1233khz';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"febc_stations_in_the_philippines\" (\n \"branding\" text,\n \"call_sign\" text,\n \"frequency\" text,\n \"power_kw\" text,\n \"location\" text\n);\n\nQuestion: What's the call sign that has 20kw of power?"
},
{
"role": "assistant",
"content": "SELECT \"call_sign\" FROM \"febc_stations_in_the_philippines\" WHERE \"power_kw\"='20kw';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"febc_stations_in_the_philippines\" (\n \"branding\" text,\n \"call_sign\" text,\n \"frequency\" text,\n \"power_kw\" text,\n \"location\" text\n);\n\nQuestion: What's the location when the branding is 1116 DXAS Zamboanga?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"febc_stations_in_the_philippines\" WHERE \"branding\"='1116 dxas zamboanga';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"febc_stations_in_the_philippines\" (\n \"branding\" text,\n \"call_sign\" text,\n \"frequency\" text,\n \"power_kw\" text,\n \"location\" text\n);\n\nQuestion: What's the location of the 1197khz frequency?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"febc_stations_in_the_philippines\" WHERE \"frequency\"='1197khz';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"febc_stations_in_the_philippines\" (\n \"branding\" text,\n \"call_sign\" text,\n \"frequency\" text,\n \"power_kw\" text,\n \"location\" text\n);\n\nQuestion: What's the frequency of the call sign DYFR with 10KW of power?"
},
{
"role": "assistant",
"content": "SELECT \"frequency\" FROM \"febc_stations_in_the_philippines\" WHERE \"power_kw\"='10kw' AND \"call_sign\"='dyfr';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heat_3\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What is Hungary's highest Rank?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"rank\") FROM \"heat_3\" WHERE \"country\"='hungary';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heat_3\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What is the Notes of the Country with a Rank of 4?"
},
{
"role": "assistant",
"content": "SELECT \"notes\" FROM \"heat_3\" WHERE \"rank\"=4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heat_3\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What country had a Time of 6:14.84?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"heat_3\" WHERE \"time\"='6:14.84';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"rank\" real,\n \"heat\" real,\n \"lane\" real,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: Which Nationality has a Lane of 5, and a Time of 7:08.04?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"heats\" WHERE \"lane\"=5 AND \"time\"='7:08.04';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"rank\" real,\n \"heat\" real,\n \"lane\" real,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: Which Heat has a Rank of 8?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"heat\") FROM \"heats\" WHERE \"rank\"=8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"season\" text,\n \"1st_round\" text,\n \"2nd_round\" text,\n \"3rd_round\" text,\n \"finals\" text\n);\n\nQuestion: WHICH 2nd round has a 3rd round of involuntary suspension of season.?"
},
{
"role": "assistant",
"content": "SELECT \"2nd_round\" FROM \"playoffs\" WHERE \"3rd_round\"='involuntary suspension of season.';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"season\" text,\n \"1st_round\" text,\n \"2nd_round\" text,\n \"3rd_round\" text,\n \"finals\" text\n);\n\nQuestion: NAME THE Finals which has a 1st round of w, 3\u20131, mis?"
},
{
"role": "assistant",
"content": "SELECT \"finals\" FROM \"playoffs\" WHERE \"1st_round\"='w, 3\u20131, mis';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"season\" text,\n \"1st_round\" text,\n \"2nd_round\" text,\n \"3rd_round\" text,\n \"finals\" text\n);\n\nQuestion: Which Season has Finals of out of playoffs.?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"playoffs\" WHERE \"finals\"='out of playoffs.';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"season\" text,\n \"1st_round\" text,\n \"2nd_round\" text,\n \"3rd_round\" text,\n \"finals\" text\n);\n\nQuestion: Which 3rd round has a 1st round of \u2014?"
},
{
"role": "assistant",
"content": "SELECT \"3rd_round\" FROM \"playoffs\" WHERE \"1st_round\"='\u2014';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"season\" text,\n \"1st_round\" text,\n \"2nd_round\" text,\n \"3rd_round\" text,\n \"finals\" text\n);\n\nQuestion: Which Finals has a 1st round of \u2014?"
},
{
"role": "assistant",
"content": "SELECT \"finals\" FROM \"playoffs\" WHERE \"1st_round\"='\u2014';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"location\" text,\n \"lineup\" text,\n \"assist_pass\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What's Albufeira's assist/pass?"
},
{
"role": "assistant",
"content": "SELECT \"assist_pass\" FROM \"international_goals\" WHERE \"location\"='albufeira';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"location\" text,\n \"lineup\" text,\n \"assist_pass\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What's the lineup when the assist/pass was Unassisted?"
},
{
"role": "assistant",
"content": "SELECT \"lineup\" FROM \"international_goals\" WHERE \"assist_pass\"='unassisted';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"location\" text,\n \"lineup\" text,\n \"assist_pass\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What date was the result 3-1 in Hague?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"international_goals\" WHERE \"result\"='3-1' AND \"location\"='hague';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: what is the total when the rank is total and the silver is less than 10?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"total\") FROM \"medal_table\" WHERE \"rank\"='total' AND \"silver\"<10;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: what is the least silver when gold is 0?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"silver\") FROM \"medal_table\" WHERE \"gold\"<0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: what is the total silver when total is 30 and bronze is more than 10?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"silver\") FROM \"medal_table\" WHERE \"total\"=30 AND \"bronze\">10;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: what is the total when bronze is more than 1, nation is hong kong (hkg) and gold is less than 3?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"total\") FROM \"medal_table\" WHERE \"bronze\">1 AND \"nation\"='hong kong (hkg)' AND \"gold\"<3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"position\" text,\n \"drivers\" text,\n \"entrant\" text,\n \"class\" text,\n \"laps\" real\n);\n\nQuestion: The driver in class A with 125 laps is in what position?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"results\" WHERE \"class\"='a' AND \"laps\"=125;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"position\" text,\n \"drivers\" text,\n \"entrant\" text,\n \"class\" text,\n \"laps\" real\n);\n\nQuestion: Peter Hopwood has how many laps in all?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"laps\") FROM \"results\" WHERE \"entrant\"='peter hopwood';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"position\" text,\n \"drivers\" text,\n \"entrant\" text,\n \"class\" text,\n \"laps\" real\n);\n\nQuestion: For what class is the laps 66?"
},
{
"role": "assistant",
"content": "SELECT \"class\" FROM \"results\" WHERE \"laps\"=66;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season\" (\n \"rank\" real,\n \"player\" text,\n \"county\" text,\n \"tally\" text,\n \"total\" real,\n \"matches\" real,\n \"average\" real\n);\n\nQuestion: What is the number of matches with an average larger than 6.33, with a rank of 1?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"matches\") FROM \"season\" WHERE \"average\">6.33 AND \"rank\"=1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season\" (\n \"rank\" real,\n \"player\" text,\n \"county\" text,\n \"tally\" text,\n \"total\" real,\n \"matches\" real,\n \"average\" real\n);\n\nQuestion: What is the total when matches is less than 3, and rank is smaller than 2?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"total\") FROM \"season\" WHERE \"matches\"<3 AND \"rank\"<2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season\" (\n \"rank\" real,\n \"player\" text,\n \"county\" text,\n \"tally\" text,\n \"total\" real,\n \"matches\" real,\n \"average\" real\n);\n\nQuestion: What is the average when the tally is 3\u201311, with more than 4 matches??"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"average\") FROM \"season\" WHERE \"tally\"='3\u201311' AND \"matches\">4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season\" (\n \"rank\" real,\n \"player\" text,\n \"county\" text,\n \"tally\" text,\n \"total\" real,\n \"matches\" real,\n \"average\" real\n);\n\nQuestion: What rank has an average of 6.33?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"rank\") FROM \"season\" WHERE \"average\"=6.33;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"24_hours_of_le_mans_results\" (\n \"year\" real,\n \"team\" text,\n \"co_drivers\" text,\n \"class\" text,\n \"laps\" real,\n \"pos\" text,\n \"class_pos\" text\n);\n\nQuestion: What is the average number of laps with a dnf pos.?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"laps\") FROM \"24_hours_of_le_mans_results\" WHERE \"pos\"='dnf';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heat_3\" (\n \"rank\" real,\n \"athletes\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What is the lowest Rank for a Guam Player?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rank\") FROM \"heat_3\" WHERE \"country\"='guam';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heat_3\" (\n \"rank\" real,\n \"athletes\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What is the Rank of the Guam Player?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"rank\") FROM \"heat_3\" WHERE \"country\"='guam';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: Which Week has a Result of l 20\u201313, and an Attendance larger than 49,598?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"week\") FROM \"schedule\" WHERE \"result\"='l 20\u201313' AND \"attendance\">'49,598';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: How many weeks have an Opponent of at san francisco 49ers, and an Attendance smaller than 34,354?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"week\") FROM \"schedule\" WHERE \"opponent\"='at san francisco 49ers' AND \"attendance\"<'34,354';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: Which Result has an Opponent of washington redskins?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"opponent\"='washington redskins';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What week did the dallas cowboys play?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"week\") FROM \"schedule\" WHERE \"opponent\"='dallas cowboys';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final\" (\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"react\" real,\n \"time\" real\n);\n\nQuestion: Name the average React of the Time smaller than 20.05 in jamaica with a Lane larger than 5?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"react\") FROM \"final\" WHERE \"time\"<20.05 AND \"nationality\"='jamaica' AND \"lane\">5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"athlete\" text,\n \"shooting_score_pts\" text,\n \"fencing_victories_pts\" text,\n \"swimming_time_pts\" text,\n \"equestrian_time_pts\" text,\n \"running_time_pts\" text,\n \"total\" real\n);\n\nQuestion: Which Fencing Victories (pts) has a Shooting Score (pts) of 187 (1180) and a Total smaller than 5640? Question 1"
},
{
"role": "assistant",
"content": "SELECT \"fencing_victories_pts\" FROM \"results\" WHERE \"shooting_score_pts\"='187 (1180)' AND \"total\"<5640;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"athlete\" text,\n \"shooting_score_pts\" text,\n \"fencing_victories_pts\" text,\n \"swimming_time_pts\" text,\n \"equestrian_time_pts\" text,\n \"running_time_pts\" text,\n \"total\" real\n);\n\nQuestion: Which Equestrian Time (pts) has an Athlete of omnia fakhry ( egy )?"
},
{
"role": "assistant",
"content": "SELECT \"equestrian_time_pts\" FROM \"results\" WHERE \"athlete\"='omnia fakhry ( egy )';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"athlete\" text,\n \"shooting_score_pts\" text,\n \"fencing_victories_pts\" text,\n \"swimming_time_pts\" text,\n \"equestrian_time_pts\" text,\n \"running_time_pts\" text,\n \"total\" real\n);\n\nQuestion: Which Shooting Score (pts) has a Total larger than 5464 and a Athlete of heather fell ( gbr )?"
},
{
"role": "assistant",
"content": "SELECT \"shooting_score_pts\" FROM \"results\" WHERE \"total\">5464 AND \"athlete\"='heather fell ( gbr )';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"athlete\" text,\n \"shooting_score_pts\" text,\n \"fencing_victories_pts\" text,\n \"swimming_time_pts\" text,\n \"equestrian_time_pts\" text,\n \"running_time_pts\" text,\n \"total\" real\n);\n\nQuestion: Which Fencing Victories (pts) that has a Equestrian Time (pts) of 67.88 (1144)?"
},
{
"role": "assistant",
"content": "SELECT \"fencing_victories_pts\" FROM \"results\" WHERE \"equestrian_time_pts\"='67.88 (1144)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"athlete\" text,\n \"shooting_score_pts\" text,\n \"fencing_victories_pts\" text,\n \"swimming_time_pts\" text,\n \"equestrian_time_pts\" text,\n \"running_time_pts\" text,\n \"total\" real\n);\n\nQuestion: Which Fencing Victories (pts) has a Total of 5640?"
},
{
"role": "assistant",
"content": "SELECT \"fencing_victories_pts\" FROM \"results\" WHERE \"total\"=5640;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"pick\" real,\n \"team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What position did the player from Rice College play who was picked under 15?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"second_round\" WHERE \"pick\"<15 AND \"college\"='rice';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"pick\" real,\n \"team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What position did pick 14 play?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"second_round\" WHERE \"pick\"=14;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"pick\" real,\n \"team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What pick number did the linebacker from the denver broncos get?"
},
{
"role": "assistant",
"content": "SELECT \"pick\" FROM \"second_round\" WHERE \"position\"='linebacker' AND \"team\"='denver broncos';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"pick\" real,\n \"team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What college was the quarterback from?"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"second_round\" WHERE \"position\"='quarterback';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"pick\" real,\n \"team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the lowest number pick from san diego chargers?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"pick\") FROM \"second_round\" WHERE \"team\"='san diego chargers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"model\" text,\n \"years\" text,\n \"type_code\" text,\n \"power_rpm\" text,\n \"torque_rpm\" text\n);\n\nQuestion: Which Type/code has a Torque@rpm of n\u00b7m (lb\u00b7ft) @1900\u20133500? Question 1"
},
{
"role": "assistant",
"content": "SELECT \"type_code\" FROM \"engines\" WHERE \"torque_rpm\"='n\u00b7m (lb\u00b7ft) @1900\u20133500';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"model\" text,\n \"years\" text,\n \"type_code\" text,\n \"power_rpm\" text,\n \"torque_rpm\" text\n);\n\nQuestion: Which Torque@rpm has a Power@rpm of ps (kw; hp)@6100?"
},
{
"role": "assistant",
"content": "SELECT \"torque_rpm\" FROM \"engines\" WHERE \"power_rpm\"='ps (kw; hp)@6100';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"model\" text,\n \"years\" text,\n \"type_code\" text,\n \"power_rpm\" text,\n \"torque_rpm\" text\n);\n\nQuestion: Name Model which has a Years of 2006\u20132008 and a Torque@rpm of n\u00b7m (lb\u00b7ft) @1900\u20133500?"
},
{
"role": "assistant",
"content": "SELECT \"model\" FROM \"engines\" WHERE \"years\"='2006\u20132008' AND \"torque_rpm\"='n\u00b7m (lb\u00b7ft) @1900\u20133500';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"model\" text,\n \"years\" text,\n \"type_code\" text,\n \"power_rpm\" text,\n \"torque_rpm\" text\n);\n\nQuestion: Which Torque@rpm has a Power@rpm of ps (kw; hp)@4800\u20135100?"
},
{
"role": "assistant",
"content": "SELECT \"torque_rpm\" FROM \"engines\" WHERE \"power_rpm\"='ps (kw; hp)@4800\u20135100';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"model\" text,\n \"years\" text,\n \"type_code\" text,\n \"power_rpm\" text,\n \"torque_rpm\" text\n);\n\nQuestion: Which Years has a Type/code of cubic centimetres (cuin) v8 ( m273 )?"
},
{
"role": "assistant",
"content": "SELECT \"years\" FROM \"engines\" WHERE \"type_code\"='cubic centimetres (cuin) v8 ( m273 )';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What is the total heat number of sun yang, who has a lane less than 2?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"heat\") FROM \"heats\" WHERE \"name\"='sun yang' AND \"lane\"<2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: Who has a time of 3:50.90?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"heats\" WHERE \"time\"='3:50.90';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What is the time of lane 3 in heat 5?"
},
{
"role": "assistant",
"content": "SELECT \"time\" FROM \"heats\" WHERE \"heat\"=5 AND \"lane\"=3;"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.