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 \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: Who constructed juan manuel fangio's car with over 76 laps and a grid under 10?" }, { "role": "assistant", "content": "SELECT \"constructor\" FROM \"classification\" WHERE \"grid\"<10 AND \"laps\">76 AND \"driver\"='juan manuel fangio';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: what is the sum of laps when grid is less than 20 and johnny herbert is driving?" }, { "role": "assistant", "content": "SELECT SUM(\"laps\") FROM \"race\" WHERE \"grid\"<20 AND \"driver\"='johnny herbert';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: who is the driver for the car constructed by ferrari with a time/retired of +1:06.683?" }, { "role": "assistant", "content": "SELECT \"driver\" FROM \"race\" WHERE \"constructor\"='ferrari' AND \"time_retired\"='+1:06.683';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: who is the driver when grid is 11?" }, { "role": "assistant", "content": "SELECT \"driver\" FROM \"race\" WHERE \"grid\"=11;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"senior_tries\" (\n \"date\" text,\n \"venue\" text,\n \"opponent\" text,\n \"result\" text,\n \"tournament\" text,\n \"scored\" real\n);\n\nQuestion: Who was the opponent with a score of 30-12?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"senior_tries\" WHERE \"result\"='30-12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"senior_tries\" (\n \"date\" text,\n \"venue\" text,\n \"opponent\" text,\n \"result\" text,\n \"tournament\" text,\n \"scored\" real\n);\n\nQuestion: Who was the opponent with a score of 40-20?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"senior_tries\" WHERE \"result\"='40-20';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_6\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When did Geelong play as the away team?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_6\" WHERE \"away_team\"='geelong';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_notable_onshore_wind_farms\" (\n \"wind_farm\" text,\n \"capacity_mw\" real,\n \"country\" text,\n \"state_province\" text,\n \"notes\" text\n);\n\nQuestion: What is the total capacity (MW) of the farm that is noted as being under construction?" }, { "role": "assistant", "content": "SELECT COUNT(\"capacity_mw\") FROM \"other_notable_onshore_wind_farms\" WHERE \"notes\"='under construction';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_notable_onshore_wind_farms\" (\n \"wind_farm\" text,\n \"capacity_mw\" real,\n \"country\" text,\n \"state_province\" text,\n \"notes\" text\n);\n\nQuestion: Which state is Tehachapi Pass Wind Farm located in?" }, { "role": "assistant", "content": "SELECT \"state_province\" FROM \"other_notable_onshore_wind_farms\" WHERE \"wind_farm\"='tehachapi pass wind farm';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_notable_onshore_wind_farms\" (\n \"wind_farm\" text,\n \"capacity_mw\" real,\n \"country\" text,\n \"state_province\" text,\n \"notes\" text\n);\n\nQuestion: Which wind farm is in the USA and is noted as having multiple farms?" }, { "role": "assistant", "content": "SELECT \"wind_farm\" FROM \"other_notable_onshore_wind_farms\" WHERE \"country\"='usa' AND \"notes\"='multiple farms';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_notable_onshore_wind_farms\" (\n \"wind_farm\" text,\n \"capacity_mw\" real,\n \"country\" text,\n \"state_province\" text,\n \"notes\" text\n);\n\nQuestion: What special notes are included for the windfarm with a capacity (MW) of 343?" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"other_notable_onshore_wind_farms\" WHERE \"capacity_mw\"=343;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_notable_onshore_wind_farms\" (\n \"wind_farm\" text,\n \"capacity_mw\" real,\n \"country\" text,\n \"state_province\" text,\n \"notes\" text\n);\n\nQuestion: What is the total capacity (MW) of the windfarm located in the state/province of Gansu?" }, { "role": "assistant", "content": "SELECT SUM(\"capacity_mw\") FROM \"other_notable_onshore_wind_farms\" WHERE \"state_province\"='gansu';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_20\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: In the game held at Arden Street Oval, what was the score of the home team?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_20\" WHERE \"venue\"='arden street oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_20\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: How many people in total have attended games at Kardinia Park?" }, { "role": "assistant", "content": "SELECT SUM(\"crowd\") FROM \"round_20\" WHERE \"venue\"='kardinia park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_20\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which game at Arden Street Oval had the lowest attendance?" }, { "role": "assistant", "content": "SELECT MIN(\"crowd\") FROM \"round_20\" WHERE \"venue\"='arden street oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_20\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Where was the game against the away team Footscray held?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_20\" WHERE \"away_team\"='footscray';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_table\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: What is the average number of points for clubs that have played more than 42 times?" }, { "role": "assistant", "content": "SELECT AVG(\"points\") FROM \"final_table\" WHERE \"played\">42;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_table\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: What is the total number of goals scored against clubs that have played more than 42 times?" }, { "role": "assistant", "content": "SELECT COUNT(\"goals_against\") FROM \"final_table\" WHERE \"played\">42;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_12\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What team was playing at home when the away team scored 6.18 (54)" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_12\" WHERE \"away_team_score\"='6.18 (54)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_12\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the score when Collingwood was playing away?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_12\" WHERE \"away_team\"='collingwood';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_12\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What team had a score of 18.12 (120) when they played at home?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_12\" WHERE \"home_team_score\"='18.12 (120)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_12\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: On which date did Geelong play at home?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_12\" WHERE \"home_team\"='geelong';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which home team has a venue of windy hill?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_3\" WHERE \"venue\"='windy hill';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: If essendon is the home team, what venue did they play at?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_3\" WHERE \"home_team\"='essendon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When the home team is richmond, what was the away team playing?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_3\" WHERE \"home_team\"='richmond';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: If the home team playing is hawthorn and there are more than 13,000 people in the crowd, what did the away team score?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_3\" WHERE \"crowd\">'13,000' AND \"home_team\"='hawthorn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_rugby_world_cup_squads\" (\n \"player\" text,\n \"position\" text,\n \"date_of_birth_age\" text,\n \"caps\" real,\n \"club_province\" text\n);\n\nQuestion: When was the lock with 10 caps born?" }, { "role": "assistant", "content": "SELECT \"date_of_birth_age\" FROM \"2007_rugby_world_cup_squads\" WHERE \"position\"='lock' AND \"caps\"=10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: What were the laps of driver Jean-Christophe Boullion?" }, { "role": "assistant", "content": "SELECT \"laps\" FROM \"race\" WHERE \"driver\"='jean-christophe boullion';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" text,\n \"league\" text,\n \"reg_season\" text,\n \"playoffs\" text,\n \"attendance_average\" text\n);\n\nQuestion: What Playoffs were held during the years of 2007-08?" }, { "role": "assistant", "content": "SELECT \"playoffs\" FROM \"year_by_year\" WHERE \"year\"='2007-08';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_5\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: On which date did Richmond play as an away team?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_5\" WHERE \"away_team\"='richmond';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_5\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What away team did Melbourne play as the home team?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_5\" WHERE \"home_team\"='melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_5\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which away team has an away team score of 11.16 (82)?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_5\" WHERE \"away_team_score\"='11.16 (82)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_5\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which away team has an away team score of 13.25 (103)?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_5\" WHERE \"away_team_score\"='13.25 (103)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"external_links\" (\n \"chapter\" text,\n \"university\" text,\n \"city\" text,\n \"state\" text,\n \"conference\" text,\n \"founding_date\" real,\n \"status\" text\n);\n\nQuestion: Which chapter was founded later than 2012?" }, { "role": "assistant", "content": "SELECT \"chapter\" FROM \"external_links\" WHERE \"founding_date\">2012;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"external_links\" (\n \"chapter\" text,\n \"university\" text,\n \"city\" text,\n \"state\" text,\n \"conference\" text,\n \"founding_date\" real,\n \"status\" text\n);\n\nQuestion: What is the chapter in Lubbock?" }, { "role": "assistant", "content": "SELECT \"chapter\" FROM \"external_links\" WHERE \"city\"='lubbock';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"member_universities\" (\n \"university\" text,\n \"location\" text,\n \"year_of_foundation\" real,\n \"university_status\" real,\n \"the_world_university_rankings_2012_13\" text,\n \"academic_ranking_of_world_universities_2012\" text,\n \"qs_world_university_rankings_2012\" real\n);\n\nQuestion: Which university has a Year of Foundation before 1908, and a University Status before 1988?" }, { "role": "assistant", "content": "SELECT \"university\" FROM \"member_universities\" WHERE \"year_of_foundation\"<1908 AND \"university_status\"<1988;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_scores\" (\n \"state\" text,\n \"swimsuit\" real,\n \"evening_gown\" real,\n \"interview\" real,\n \"average\" real\n);\n\nQuestion: What was the highest Interview score from a contestant who had a swimsuit score of 8.857 and an Average score over 9.097?" }, { "role": "assistant", "content": "SELECT MAX(\"interview\") FROM \"semifinal_scores\" WHERE \"swimsuit\"=8.857 AND \"average\">9.097;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pga_tour_career_summary\" (\n \"year\" text,\n \"starts\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"top_10\" real,\n \"top_25\" real,\n \"earnings\" real,\n \"money_list_rank\" text\n);\n\nQuestion: What year has a Top 25 of 0, and a Earnings ($) larger than 0?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"pga_tour_career_summary\" WHERE \"top_25\"=0 AND \"earnings\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pga_tour_career_summary\" (\n \"year\" text,\n \"starts\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"top_10\" real,\n \"top_25\" real,\n \"earnings\" real,\n \"money_list_rank\" text\n);\n\nQuestion: What is the highest Top 25 with a Money list rank of 232 and Cuts smaller than 2?" }, { "role": "assistant", "content": "SELECT MAX(\"top_25\") FROM \"pga_tour_career_summary\" WHERE \"money_list_rank\"='232' AND \"cuts_made\"<2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pga_tour_career_summary\" (\n \"year\" text,\n \"starts\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"top_10\" real,\n \"top_25\" real,\n \"earnings\" real,\n \"money_list_rank\" text\n);\n\nQuestion: What is the smallest Earnings that has a Money list rank of 6 and Starts smaller than 22?" }, { "role": "assistant", "content": "SELECT MIN(\"earnings\") FROM \"pga_tour_career_summary\" WHERE \"money_list_rank\"='6' AND \"starts\"<22;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pga_tour_career_summary\" (\n \"year\" text,\n \"starts\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"top_10\" real,\n \"top_25\" real,\n \"earnings\" real,\n \"money_list_rank\" text\n);\n\nQuestion: What is the highest number of Cuts made that has a Top 10 smaller than 8 and Wins larger than 0?" }, { "role": "assistant", "content": "SELECT MAX(\"cuts_made\") FROM \"pga_tour_career_summary\" WHERE \"top_10\"<8 AND \"wins\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pga_tour_career_summary\" (\n \"year\" text,\n \"starts\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"top_10\" real,\n \"top_25\" real,\n \"earnings\" real,\n \"money_list_rank\" text\n);\n\nQuestion: How many Starts that have Cuts made of 2, Top 25 larger than 0, and Earnings ($) smaller than 338,067?" }, { "role": "assistant", "content": "SELECT COUNT(\"starts\") FROM \"pga_tour_career_summary\" WHERE \"cuts_made\"=2 AND \"top_25\">0 AND \"earnings\"<'338,067';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Which event was in round 1, resulted in a win, and a record of 15-4?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"mixed_martial_arts_record\" WHERE \"round\"=1 AND \"res\"='win' AND \"record\"='15-4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What is the result when the time was 5:00 and a record of 14-4?" }, { "role": "assistant", "content": "SELECT \"res\" FROM \"mixed_martial_arts_record\" WHERE \"time\"='5:00' AND \"record\"='14-4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_by_club\" (\n \"club\" text,\n \"wins\" text,\n \"last_win\" text,\n \"runners_up\" text,\n \"last_final_lost\" text\n);\n\nQuestion: How many wins did Ayr United have?" }, { "role": "assistant", "content": "SELECT \"wins\" FROM \"performance_by_club\" WHERE \"club\"='ayr united';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_by_club\" (\n \"club\" text,\n \"wins\" text,\n \"last_win\" text,\n \"runners_up\" text,\n \"last_final_lost\" text\n);\n\nQuestion: When was the final loss of the club last won in 2001 and has a total of 3 wins?" }, { "role": "assistant", "content": "SELECT \"last_final_lost\" FROM \"performance_by_club\" WHERE \"wins\"='3' AND \"last_win\"='2001';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_by_club\" (\n \"club\" text,\n \"wins\" text,\n \"last_win\" text,\n \"runners_up\" text,\n \"last_final_lost\" text\n);\n\nQuestion: When was the last win for the club that had a final loss in 2011?" }, { "role": "assistant", "content": "SELECT \"last_win\" FROM \"performance_by_club\" WHERE \"last_final_lost\"='2011';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_by_club\" (\n \"club\" text,\n \"wins\" text,\n \"last_win\" text,\n \"runners_up\" text,\n \"last_final_lost\" text\n);\n\nQuestion: How many wins did the 8 time runner-up have?" }, { "role": "assistant", "content": "SELECT \"wins\" FROM \"performance_by_club\" WHERE \"runners_up\"='8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_by_club\" (\n \"club\" text,\n \"wins\" text,\n \"last_win\" text,\n \"runners_up\" text,\n \"last_final_lost\" text\n);\n\nQuestion: How many wins did the club have with the last win in 2000?" }, { "role": "assistant", "content": "SELECT \"wins\" FROM \"performance_by_club\" WHERE \"last_win\"='2000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"running_backs\" (\n \"player\" text,\n \"car\" real,\n \"yards\" text,\n \"avg\" text,\n \"td_s\" real,\n \"long\" text\n);\n\nQuestion: Who has the highest TDs, with yards of 9, and carries smaller than 13?" }, { "role": "assistant", "content": "SELECT MAX(\"td_s\") FROM \"running_backs\" WHERE \"yards\"='9' AND \"car\"<13;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"running_backs\" (\n \"player\" text,\n \"car\" real,\n \"yards\" text,\n \"avg\" text,\n \"td_s\" real,\n \"long\" text\n);\n\nQuestion: What are the carries of the player Jeremiah Pope?" }, { "role": "assistant", "content": "SELECT SUM(\"car\") FROM \"running_backs\" WHERE \"player\"='jeremiah pope';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_8\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the largest crowd that was in attendance for fitzroy?" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"round_8\" WHERE \"home_team\"='fitzroy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_picks\" (\n \"round\" text,\n \"player\" text,\n \"position\" text,\n \"team\" text,\n \"college\" text\n);\n\nQuestion: Who plays g position for the st. louis bombers?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"other_picks\" WHERE \"team\"='st. louis bombers' AND \"position\"='g';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_picks\" (\n \"round\" text,\n \"player\" text,\n \"position\" text,\n \"team\" text,\n \"college\" text\n);\n\nQuestion: Who plays f position for depauw?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"other_picks\" WHERE \"position\"='f' AND \"college\"='depauw';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_picks\" (\n \"round\" text,\n \"player\" text,\n \"position\" text,\n \"team\" text,\n \"college\" text\n);\n\nQuestion: What position does the saint louis player play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"other_picks\" WHERE \"college\"='saint louis';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_picks\" (\n \"round\" text,\n \"player\" text,\n \"position\" text,\n \"team\" text,\n \"college\" text\n);\n\nQuestion: Who plays for sam houston state?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"other_picks\" WHERE \"college\"='sam houston state';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_table\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" text,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: How many positions have Points of 30-8 and more than 25 goals?" }, { "role": "assistant", "content": "SELECT COUNT(\"position\") FROM \"final_table\" WHERE \"points\"='30-8' AND \"goals_for\">25;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_table\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" text,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: What is the lowest play with ue figueres club and a goal difference more than 16?" }, { "role": "assistant", "content": "SELECT MIN(\"played\") FROM \"final_table\" WHERE \"club\"='ue figueres' AND \"goal_difference\">16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_table\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" text,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: How many played have 8 wins and more than 58 goals against?" }, { "role": "assistant", "content": "SELECT COUNT(\"played\") FROM \"final_table\" WHERE \"wins\"=8 AND \"goals_against\">58;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"waterford_and_limerick_railway\" (\n \"year\" text,\n \"type\" text,\n \"nos\" text,\n \"gswr_class\" real,\n \"gswr_nos\" text,\n \"gsr_class\" text,\n \"inchicore_class\" text,\n \"withdrawn\" text\n);\n\nQuestion: What is withdrawn with a GSR Class of 296?" }, { "role": "assistant", "content": "SELECT \"withdrawn\" FROM \"waterford_and_limerick_railway\" WHERE \"gsr_class\"='296';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"waterford_and_limerick_railway\" (\n \"year\" text,\n \"type\" text,\n \"nos\" text,\n \"gswr_class\" real,\n \"gswr_nos\" text,\n \"gsr_class\" text,\n \"inchicore_class\" text,\n \"withdrawn\" text\n);\n\nQuestion: What Inchicore Class has a GSR Class of 235?" }, { "role": "assistant", "content": "SELECT \"inchicore_class\" FROM \"waterford_and_limerick_railway\" WHERE \"gsr_class\"='235';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"waterford_and_limerick_railway\" (\n \"year\" text,\n \"type\" text,\n \"nos\" text,\n \"gswr_class\" real,\n \"gswr_nos\" text,\n \"gsr_class\" text,\n \"inchicore_class\" text,\n \"withdrawn\" text\n);\n\nQuestion: What Inchicore Class has a GSWR Class smaller than 268, and a Type of 0-4-2t?" }, { "role": "assistant", "content": "SELECT \"inchicore_class\" FROM \"waterford_and_limerick_railway\" WHERE \"gswr_class\"<268 AND \"type\"='0-4-2t';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"waterford_and_limerick_railway\" (\n \"year\" text,\n \"type\" text,\n \"nos\" text,\n \"gswr_class\" real,\n \"gswr_nos\" text,\n \"gsr_class\" text,\n \"inchicore_class\" text,\n \"withdrawn\" text\n);\n\nQuestion: Which GSWR Class is from 1893?" }, { "role": "assistant", "content": "SELECT \"gswr_class\" FROM \"waterford_and_limerick_railway\" WHERE \"year\"='1893';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_7\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which Crowd has a Home team score of 15.20 (110), and a Home team of carlton?" }, { "role": "assistant", "content": "SELECT MIN(\"crowd\") FROM \"round_7\" WHERE \"home_team_score\"='15.20 (110)' AND \"home_team\"='carlton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_7\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which Home team score has an Away team score of 20.11 (131)?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_7\" WHERE \"away_team_score\"='20.11 (131)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_7\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which number of Crowd has an Away team score of 20.11 (131)?" }, { "role": "assistant", "content": "SELECT COUNT(\"crowd\") FROM \"round_7\" WHERE \"away_team_score\"='20.11 (131)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"serial_details_by_episode\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: On the episode that had a run time of 24:57, how many million viewers were there?" }, { "role": "assistant", "content": "SELECT \"viewers_in_millions\" FROM \"serial_details_by_episode\" WHERE \"run_time\"='24:57';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"hazleton_mountaineers_epbl\" (\n \"year\" text,\n \"league\" text,\n \"record\" text,\n \"reg_season\" text,\n \"playoffs\" text\n);\n\nQuestion: What year had a record of 4-21?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"hazleton_mountaineers_epbl\" WHERE \"record\"='4-21';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"hazleton_mountaineers_epbl\" (\n \"year\" text,\n \"league\" text,\n \"record\" text,\n \"reg_season\" text,\n \"playoffs\" text\n);\n\nQuestion: What regular season had a record of 16-12?" }, { "role": "assistant", "content": "SELECT \"reg_season\" FROM \"hazleton_mountaineers_epbl\" WHERE \"record\"='16-12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"hazleton_mountaineers_epbl\" (\n \"year\" text,\n \"league\" text,\n \"record\" text,\n \"reg_season\" text,\n \"playoffs\" text\n);\n\nQuestion: What is the regular season info that had a record of 20-10?" }, { "role": "assistant", "content": "SELECT \"reg_season\" FROM \"hazleton_mountaineers_epbl\" WHERE \"record\"='20-10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualifying_round\" (\n \"team_num1\" text,\n \"agg\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Tell me the 1st leg for asfa rabat" }, { "role": "assistant", "content": "SELECT \"1st_leg\" FROM \"qualifying_round\" WHERE \"team_num1\"='asfa rabat';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualifying_round\" (\n \"team_num1\" text,\n \"agg\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Tell me the 2nd leg for alemannia aachen" }, { "role": "assistant", "content": "SELECT \"2nd_leg\" FROM \"qualifying_round\" WHERE \"team_num1\"='alemannia aachen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualifying_round\" (\n \"team_num1\" text,\n \"agg\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Tell me the 1st leg for antwerp bc" }, { "role": "assistant", "content": "SELECT \"1st_leg\" FROM \"qualifying_round\" WHERE \"team_num2\"='antwerp bc';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualifying_round\" (\n \"team_num1\" text,\n \"agg\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Tell me the team 2 for handelsministerium vienna" }, { "role": "assistant", "content": "SELECT \"team_num2\" FROM \"qualifying_round\" WHERE \"team_num1\"='handelsministerium vienna';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_20\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: On what date did the away team Melbourne play?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_20\" WHERE \"away_team\"='melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_20\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What home team played the away team South Melbourne?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_20\" WHERE \"away_team\"='south melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_20\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the name of the away team that played a home team who scored 11.16 (82)?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_20\" WHERE \"home_team_score\"='11.16 (82)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_20\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the name of the away team that scored 15.9 (99)?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_20\" WHERE \"away_team_score\"='15.9 (99)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"counties\" (\n \"county\" text,\n \"year_founded\" text,\n \"county_seat\" text,\n \"2010_census_population\" real,\n \"july_1_2012_population_estimate\" real,\n \"area_sq_mi\" real,\n \"land_area_sq_mi\" real\n);\n\nQuestion: Which is the largest area in Greenville County, by square mile?" }, { "role": "assistant", "content": "SELECT MAX(\"area_sq_mi\") FROM \"counties\" WHERE \"county\"='greenville county';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"counties\" (\n \"county\" text,\n \"year_founded\" text,\n \"county_seat\" text,\n \"2010_census_population\" real,\n \"july_1_2012_population_estimate\" real,\n \"area_sq_mi\" real,\n \"land_area_sq_mi\" real\n);\n\nQuestion: Which is the total number in the 2010 Census in Oconee County where the area in square miles was less than 674?" }, { "role": "assistant", "content": "SELECT SUM(\"2010_census_population\") FROM \"counties\" WHERE \"county\"='oconee county' AND \"area_sq_mi\"<674;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"counties\" (\n \"county\" text,\n \"year_founded\" text,\n \"county_seat\" text,\n \"2010_census_population\" real,\n \"july_1_2012_population_estimate\" real,\n \"area_sq_mi\" real,\n \"land_area_sq_mi\" real\n);\n\nQuestion: What is the total number of areas by square mile where the founding year was 1785, the county seat was in Spartanburg, and the land area by square mile was more than 811?" }, { "role": "assistant", "content": "SELECT SUM(\"area_sq_mi\") FROM \"counties\" WHERE \"year_founded\"='1785' AND \"county_seat\"='spartanburg' AND \"land_area_sq_mi\">811;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"hyperons\" (\n \"particle\" text,\n \"symbol\" text,\n \"makeup\" text,\n \"rest_mass_me_v_c_2\" text,\n \"isospin_i\" text,\n \"spin_parity_j_p\" text,\n \"commonly_decays_to\" text\n);\n\nQuestion: Which Particle has a Rest mass MeV/c 2 of 1192.642(24)?" }, { "role": "assistant", "content": "SELECT \"particle\" FROM \"hyperons\" WHERE \"rest_mass_me_v_c_2\"='1192.642(24)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"hyperons\" (\n \"particle\" text,\n \"symbol\" text,\n \"makeup\" text,\n \"rest_mass_me_v_c_2\" text,\n \"isospin_i\" text,\n \"spin_parity_j_p\" text,\n \"commonly_decays_to\" text\n);\n\nQuestion: Which Particle has an Isospin I of 1 and Commonly decays to p + + \u03c0 0 or n 0 + \u03c0 +?" }, { "role": "assistant", "content": "SELECT \"particle\" FROM \"hyperons\" WHERE \"isospin_i\"='1' AND \"commonly_decays_to\"='p + + \u03c0 0 or n 0 + \u03c0 +';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"hyperons\" (\n \"particle\" text,\n \"symbol\" text,\n \"makeup\" text,\n \"rest_mass_me_v_c_2\" text,\n \"isospin_i\" text,\n \"spin_parity_j_p\" text,\n \"commonly_decays_to\" text\n);\n\nQuestion: When the Makeup is u s s and the Spin (Parity) J P of 3\u20442 +, what is the Rest mass MeV/C2?" }, { "role": "assistant", "content": "SELECT \"rest_mass_me_v_c_2\" FROM \"hyperons\" WHERE \"makeup\"='u s s' AND \"spin_parity_j_p\"='3\u20442 +';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"hyperons\" (\n \"particle\" text,\n \"symbol\" text,\n \"makeup\" text,\n \"rest_mass_me_v_c_2\" text,\n \"isospin_i\" text,\n \"spin_parity_j_p\" text,\n \"commonly_decays_to\" text\n);\n\nQuestion: Which Particle has an Isospin I of 1\u20442, and a Symbol of \u03be \u22170 (1530)?" }, { "role": "assistant", "content": "SELECT \"particle\" FROM \"hyperons\" WHERE \"isospin_i\"='1\u20442' AND \"symbol\"='\u03be \u22170 (1530)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"hyperons\" (\n \"particle\" text,\n \"symbol\" text,\n \"makeup\" text,\n \"rest_mass_me_v_c_2\" text,\n \"isospin_i\" text,\n \"spin_parity_j_p\" text,\n \"commonly_decays_to\" text\n);\n\nQuestion: Which Particle has a Makeup of d s s and a Spin (Parity) J P of 3\u20442 +?" }, { "role": "assistant", "content": "SELECT \"particle\" FROM \"hyperons\" WHERE \"makeup\"='d s s' AND \"spin_parity_j_p\"='3\u20442 +';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"hyperons\" (\n \"particle\" text,\n \"symbol\" text,\n \"makeup\" text,\n \"rest_mass_me_v_c_2\" text,\n \"isospin_i\" text,\n \"spin_parity_j_p\" text,\n \"commonly_decays_to\" text\n);\n\nQuestion: Which Particle has a Rest mass MeV/c 2 of 1383.7\u00b11.0?" }, { "role": "assistant", "content": "SELECT \"particle\" FROM \"hyperons\" WHERE \"rest_mass_me_v_c_2\"='1383.7\u00b11.0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grammy_awards_and_nominations\" (\n \"year\" real,\n \"category\" text,\n \"genre\" text,\n \"title\" text,\n \"result\" text\n);\n\nQuestion: What was the title of Ashanti's 2003 rap song?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"grammy_awards_and_nominations\" WHERE \"year\"=2003 AND \"genre\"='rap';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1999_squad_statistics\" (\n \"player\" text,\n \"position\" text,\n \"tries\" real,\n \"goals\" real,\n \"points\" real\n);\n\nQuestion: How many tries did the player Paul Sykes take when he earned 0 points?" }, { "role": "assistant", "content": "SELECT MAX(\"tries\") FROM \"1999_squad_statistics\" WHERE \"player\"='paul sykes' AND \"points\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1999_squad_statistics\" (\n \"player\" text,\n \"position\" text,\n \"tries\" real,\n \"goals\" real,\n \"points\" real\n);\n\nQuestion: Mike Forshaw had 0 goals and 28 points. What is his position?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"1999_squad_statistics\" WHERE \"goals\"=0 AND \"points\"=28 AND \"player\"='mike forshaw';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: How big is the Venue of Brunswick Street Oval?" }, { "role": "assistant", "content": "SELECT SUM(\"crowd\") FROM \"round_3\" WHERE \"venue\"='brunswick street oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the Away Team score of North Melbourne?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_3\" WHERE \"away_team\"='north melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"head_quarters_and_support_regiments\" (\n \"unit\" text,\n \"complement\" text,\n \"killed\" text,\n \"wounded\" text,\n \"missing\" text\n);\n\nQuestion: What was the number of Personal Staff Units Killed?" }, { "role": "assistant", "content": "SELECT \"killed\" FROM \"head_quarters_and_support_regiments\" WHERE \"unit\"='personal staff';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"head_quarters_and_support_regiments\" (\n \"unit\" text,\n \"complement\" text,\n \"killed\" text,\n \"wounded\" text,\n \"missing\" text\n);\n\nQuestion: What was the Complement of Artillery Corps Units that had 0 off 0 men Killed or Wounded?" }, { "role": "assistant", "content": "SELECT \"complement\" FROM \"head_quarters_and_support_regiments\" WHERE \"killed\"='0 off 0 men' AND \"wounded\"='0 off 0 men' AND \"unit\"='artillery corps';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"head_quarters_and_support_regiments\" (\n \"unit\" text,\n \"complement\" text,\n \"killed\" text,\n \"wounded\" text,\n \"missing\" text\n);\n\nQuestion: How many were Wounded while in a Unit with a Complement of 83 off 9 Men?" }, { "role": "assistant", "content": "SELECT \"wounded\" FROM \"head_quarters_and_support_regiments\" WHERE \"complement\"='83 off 9 men';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"head_quarters_and_support_regiments\" (\n \"unit\" text,\n \"complement\" text,\n \"killed\" text,\n \"wounded\" text,\n \"missing\" text\n);\n\nQuestion: How many of the Royal Waggon Train Unit were Missing while having a Killed of 0 off 0 men and a Wounded of 0 off 0 men?" }, { "role": "assistant", "content": "SELECT \"missing\" FROM \"head_quarters_and_support_regiments\" WHERE \"killed\"='0 off 0 men' AND \"wounded\"='0 off 0 men' AND \"unit\"='royal waggon train';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"head_quarters_and_support_regiments\" (\n \"unit\" text,\n \"complement\" text,\n \"killed\" text,\n \"wounded\" text,\n \"missing\" text\n);\n\nQuestion: How many were Wounded in the Artillery Corps unit while having 0 off 0 men Killed?" }, { "role": "assistant", "content": "SELECT \"wounded\" FROM \"head_quarters_and_support_regiments\" WHERE \"killed\"='0 off 0 men' AND \"unit\"='artillery corps';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_27_15_12\" (\n \"outcome\" text,\n \"date\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What suface during the game that had Yevgeny Kafelnikov as an opponent?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"singles_27_15_12\" WHERE \"opponent\"='yevgeny kafelnikov';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_9\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the Home team's score when the Away team's score is 12.10 (82)?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_9\" WHERE \"away_team_score\"='12.10 (82)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"home_away\" text,\n \"result\" text\n);\n\nQuestion: What was the earliest week that the Storm played the San Jose Sabercats?" }, { "role": "assistant", "content": "SELECT MIN(\"week\") FROM \"season_schedule\" WHERE \"opponent\"='san jose sabercats';" } ]