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 \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"black_knights_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Name the record for black knights points 54"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule\" WHERE \"black_knights_points\"=54;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"black_knights_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Name the opponents stanford"
},
{
"role": "assistant",
"content": "SELECT \"opponents\" FROM \"schedule\" WHERE \"opponent\"='Stanford';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"black_knights_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Name the result for ursinus college"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"opponent\"='Ursinus College';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"black_knights_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Name the black knights points for loss result"
},
{
"role": "assistant",
"content": "SELECT MAX(\"black_knights_points\") FROM \"schedule\" WHERE \"result\"='Loss';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"black_knights_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Name the date for 6-2 record"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"record\"='6-2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"black_knights_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Name the opponents for record being 2-0"
},
{
"role": "assistant",
"content": "SELECT MAX(\"opponents\") FROM \"schedule\" WHERE \"record\"='2-0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21100348_10\" (\n \"rank\" real,\n \"average\" text,\n \"player\" text,\n \"runs\" real,\n \"innings\" real,\n \"not_out\" real,\n \"period\" text\n);\n\nQuestion: How man innings were there during the period with a career average of 41.43?"
},
{
"role": "assistant",
"content": "SELECT \"innings\" FROM \"table1_21100348_10\" WHERE \"average\"='41.43';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21100348_10\" (\n \"rank\" real,\n \"average\" text,\n \"player\" text,\n \"runs\" real,\n \"innings\" real,\n \"not_out\" real,\n \"period\" text\n);\n\nQuestion: During what period did Ricky Ponting play?"
},
{
"role": "assistant",
"content": "SELECT \"period\" FROM \"table1_21100348_10\" WHERE \"player\"='Ricky Ponting';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21100348_10\" (\n \"rank\" real,\n \"average\" text,\n \"player\" text,\n \"runs\" real,\n \"innings\" real,\n \"not_out\" real,\n \"period\" text\n);\n\nQuestion: During what period was the career average 44.10?"
},
{
"role": "assistant",
"content": "SELECT \"period\" FROM \"table1_21100348_10\" WHERE \"average\"='44.10';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21100348_10\" (\n \"rank\" real,\n \"average\" text,\n \"player\" text,\n \"runs\" real,\n \"innings\" real,\n \"not_out\" real,\n \"period\" text\n);\n\nQuestion: What was the smallest numbered rank for Michael Bevan?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rank\") FROM \"table1_21100348_10\" WHERE \"player\"='Michael Bevan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21100348_10\" (\n \"rank\" real,\n \"average\" text,\n \"player\" text,\n \"runs\" real,\n \"innings\" real,\n \"not_out\" real,\n \"period\" text\n);\n\nQuestion: What period was there a career average of 48.15?"
},
{
"role": "assistant",
"content": "SELECT \"period\" FROM \"table1_21100348_10\" WHERE \"average\"='48.15';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21109892_1\" (\n \"rank\" real,\n \"commodity\" text,\n \"value_int_1000\" real,\n \"production_mt\" real,\n \"quantity_world_rank\" text,\n \"value_world_rank\" text\n);\n\nQuestion: when the value (int $1000) is 409566, what is the commodity?"
},
{
"role": "assistant",
"content": "SELECT \"commodity\" FROM \"table1_21109892_1\" WHERE \"value_int_1000\"=409566;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21109892_1\" (\n \"rank\" real,\n \"commodity\" text,\n \"value_int_1000\" real,\n \"production_mt\" real,\n \"quantity_world_rank\" text,\n \"value_world_rank\" text\n);\n\nQuestion: When the value rank is 23, what is the value?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"value_int_1000\") FROM \"table1_21109892_1\" WHERE \"value_world_rank\"='23';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21109892_1\" (\n \"rank\" real,\n \"commodity\" text,\n \"value_int_1000\" real,\n \"production_mt\" real,\n \"quantity_world_rank\" text,\n \"value_world_rank\" text\n);\n\nQuestion: When the value world rank is 7, what is the rank?"
},
{
"role": "assistant",
"content": "SELECT \"rank\" FROM \"table1_21109892_1\" WHERE \"value_world_rank\"='7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21109892_1\" (\n \"rank\" real,\n \"commodity\" text,\n \"value_int_1000\" real,\n \"production_mt\" real,\n \"quantity_world_rank\" text,\n \"value_world_rank\" text\n);\n\nQuestion: When the production (mt) is 650000, what is the total number of rank?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rank\") FROM \"table1_21109892_1\" WHERE \"production_mt\"=650000;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21109892_1\" (\n \"rank\" real,\n \"commodity\" text,\n \"value_int_1000\" real,\n \"production_mt\" real,\n \"quantity_world_rank\" text,\n \"value_world_rank\" text\n);\n\nQuestion: When the production (mt) is 446424, what is the value world rank ?"
},
{
"role": "assistant",
"content": "SELECT \"value_world_rank\" FROM \"table1_21109892_1\" WHERE \"production_mt\"=446424;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21109892_1\" (\n \"rank\" real,\n \"commodity\" text,\n \"value_int_1000\" real,\n \"production_mt\" real,\n \"quantity_world_rank\" text,\n \"value_world_rank\" text\n);\n\nQuestion: where value world rank is 12, what is the quantity world rank?"
},
{
"role": "assistant",
"content": "SELECT \"quantity_world_rank\" FROM \"table1_21109892_1\" WHERE \"value_world_rank\"='12';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_dismissals_catches_plus_stumpings_i\" (\n \"rank\" real,\n \"dismissals\" real,\n \"player\" text,\n \"matches\" real,\n \"caught\" real,\n \"stumped\" real\n);\n\nQuestion: What is the rank of Tim Paine?"
},
{
"role": "assistant",
"content": "SELECT \"rank\" FROM \"most_dismissals_catches_plus_stumpings_i\" WHERE \"player\"='Tim Paine';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_dismissals_catches_plus_stumpings_i\" (\n \"rank\" real,\n \"dismissals\" real,\n \"player\" text,\n \"matches\" real,\n \"caught\" real,\n \"stumped\" real\n);\n\nQuestion: What rank does Rodney Marsh have?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"rank\") FROM \"most_dismissals_catches_plus_stumpings_i\" WHERE \"player\"='Rodney Marsh';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_season\" (\n \"season\" text,\n \"1st_place\" text,\n \"2nd_place\" text,\n \"3rd_place\" text,\n \"4th_place\" text\n);\n\nQuestion: Name the 1st place for limoges csp"
},
{
"role": "assistant",
"content": "SELECT \"1st_place\" FROM \"by_season\" WHERE \"3rd_place\"='Limoges CSP';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21100348_11\" (\n \"rank\" real,\n \"strike_rate\" text,\n \"player\" text,\n \"innings\" real,\n \"balls_faced\" real,\n \"runs\" real,\n \"period\" text\n);\n\nQuestion: What is the rank for a strike rate of 91.67?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"rank\") FROM \"table1_21100348_11\" WHERE \"strike_rate\"='91.67';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21100348_11\" (\n \"rank\" real,\n \"strike_rate\" text,\n \"player\" text,\n \"innings\" real,\n \"balls_faced\" real,\n \"runs\" real,\n \"period\" text\n);\n\nQuestion: What player has 477 runs?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"table1_21100348_11\" WHERE \"runs\"=477;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21100348_11\" (\n \"rank\" real,\n \"strike_rate\" text,\n \"player\" text,\n \"innings\" real,\n \"balls_faced\" real,\n \"runs\" real,\n \"period\" text\n);\n\nQuestion: How many innings does rank 3 have?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"innings\") FROM \"table1_21100348_11\" WHERE \"rank\"=3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"yearly_results\" (\n \"season\" text,\n \"games\" real,\n \"won\" real,\n \"lost\" real,\n \"tied\" real,\n \"points\" real,\n \"pct_pct\" text,\n \"goals_for\" real,\n \"goals_against\" real,\n \"standing\" text\n);\n\nQuestion: What was the goals for in the season that the pct % was 0.604?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"goals_for\") FROM \"yearly_results\" WHERE \"pct_pct\"='0.604';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"yearly_results\" (\n \"season\" text,\n \"games\" real,\n \"won\" real,\n \"lost\" real,\n \"tied\" real,\n \"points\" real,\n \"pct_pct\" text,\n \"goals_for\" real,\n \"goals_against\" real,\n \"standing\" text\n);\n\nQuestion: In what season was the pct % 0.552? "
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"yearly_results\" WHERE \"pct_pct\"='0.552';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"yearly_results\" (\n \"season\" text,\n \"games\" real,\n \"won\" real,\n \"lost\" real,\n \"tied\" real,\n \"points\" real,\n \"pct_pct\" text,\n \"goals_for\" real,\n \"goals_against\" real,\n \"standing\" text\n);\n\nQuestion: What was the standing in the season that the pct% was 0.769? "
},
{
"role": "assistant",
"content": "SELECT \"standing\" FROM \"yearly_results\" WHERE \"pct_pct\"='0.769';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"yearly_results\" (\n \"season\" text,\n \"games\" real,\n \"won\" real,\n \"lost\" real,\n \"tied\" real,\n \"points\" real,\n \"pct_pct\" text,\n \"goals_for\" real,\n \"goals_against\" real,\n \"standing\" text\n);\n\nQuestion: What were the points in the 1958-59 season? "
},
{
"role": "assistant",
"content": "SELECT \"points\" FROM \"yearly_results\" WHERE \"season\"='1958-59';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_doubles_8_4_4\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: Who were D\u00fcrr's opponents in the final on year 1968?"
},
{
"role": "assistant",
"content": "SELECT \"opponents_in_the_final\" FROM \"mixed_doubles_8_4_4\" WHERE \"year\"=1968;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_doubles_8_4_4\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What was the court surface on year 1971?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"mixed_doubles_8_4_4\" WHERE \"year\"=1971;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"lpga_tour_career_summary\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"2nd\" real,\n \"3rd\" real,\n \"top_10s\" real,\n \"best_finish\" text,\n \"earnings\" real,\n \"money_list_rank\" real,\n \"scoring_average\" text,\n \"scoring_rank\" real\n);\n\nQuestion: Name the most top 10s for 2 best finish"
},
{
"role": "assistant",
"content": "SELECT MAX(\"top_10s\") FROM \"lpga_tour_career_summary\" WHERE \"best_finish\"='2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"lpga_tour_career_summary\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"2nd\" real,\n \"3rd\" real,\n \"top_10s\" real,\n \"best_finish\" text,\n \"earnings\" real,\n \"money_list_rank\" real,\n \"scoring_average\" text,\n \"scoring_rank\" real\n);\n\nQuestion: Name the tournaments played for 2004"
},
{
"role": "assistant",
"content": "SELECT MIN(\"tournaments_played\") FROM \"lpga_tour_career_summary\" WHERE \"year\"=2004;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fighters_with_the_most_awards\" (\n \"fighter\" text,\n \"fights_of_the_night\" real,\n \"knockouts_of_the_night\" real,\n \"submissions_of_the_night\" real,\n \"awards_total\" real,\n \"status\" text\n);\n\nQuestion: How many submission of the night occurred when the fighter was matt wiman?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"submissions_of_the_night\") FROM \"fighters_with_the_most_awards\" WHERE \"fighter\"='Matt Wiman';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fighters_with_the_most_awards\" (\n \"fighter\" text,\n \"fights_of_the_night\" real,\n \"knockouts_of_the_night\" real,\n \"submissions_of_the_night\" real,\n \"awards_total\" real,\n \"status\" text\n);\n\nQuestion: How many knockout of the night occurred when joe lauzon fought. "
},
{
"role": "assistant",
"content": "SELECT \"knockouts_of_the_night\" FROM \"fighters_with_the_most_awards\" WHERE \"fighter\"='Joe Lauzon';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2113721_7\" (\n \"dvd_name\" text,\n \"episodes\" real,\n \"region_1\" text,\n \"region_2\" text,\n \"region_4\" text\n);\n\nQuestion: What is the smallest number of episodes in a season?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"episodes\") FROM \"table1_2113721_7\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2113721_7\" (\n \"dvd_name\" text,\n \"episodes\" real,\n \"region_1\" text,\n \"region_2\" text,\n \"region_4\" text\n);\n\nQuestion: When was Season Three premiered in region 2?"
},
{
"role": "assistant",
"content": "SELECT \"region_2\" FROM \"table1_2113721_7\" WHERE \"dvd_name\"='Season Three';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"public_universities\" (\n \"university\" text,\n \"nick\" text,\n \"university_status\" real,\n \"founded\" real,\n \"location\" text,\n \"division\" text,\n \"specialization\" text,\n \"website\" text\n);\n\nQuestion: Where is every location with specialization of textile engineering?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"public_universities\" WHERE \"specialization\"='Textile engineering';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"public_universities\" (\n \"university\" text,\n \"nick\" text,\n \"university_status\" real,\n \"founded\" real,\n \"location\" text,\n \"division\" text,\n \"specialization\" text,\n \"website\" text\n);\n\nQuestion: What is every website with specialization of engineering and division of dhaka division?"
},
{
"role": "assistant",
"content": "SELECT \"website\" FROM \"public_universities\" WHERE \"specialization\"='Engineering' AND \"division\"='Dhaka division';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"public_universities\" (\n \"university\" text,\n \"nick\" text,\n \"university_status\" real,\n \"founded\" real,\n \"location\" text,\n \"division\" text,\n \"specialization\" text,\n \"website\" text\n);\n\nQuestion: Where is every location where Nick is Bru?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"public_universities\" WHERE \"nick\"='BRU';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"public_universities\" (\n \"university\" text,\n \"nick\" text,\n \"university_status\" real,\n \"founded\" real,\n \"location\" text,\n \"division\" text,\n \"specialization\" text,\n \"website\" text\n);\n\nQuestion: What is every specialization with the website Jstu.edu.bd"
},
{
"role": "assistant",
"content": "SELECT \"specialization\" FROM \"public_universities\" WHERE \"website\"='jstu.edu.bd';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"impact\" (\n \"member_countries\" text,\n \"population\" real,\n \"area_km\" real,\n \"gdp_billion_us\" text,\n \"gdp_per_capita_us\" real,\n \"languages\" text\n);\n\nQuestion: Name the languages for cyprus"
},
{
"role": "assistant",
"content": "SELECT \"languages\" FROM \"impact\" WHERE \"member_countries\"='Cyprus';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"impact\" (\n \"member_countries\" text,\n \"population\" real,\n \"area_km\" real,\n \"gdp_billion_us\" text,\n \"gdp_per_capita_us\" real,\n \"languages\" text\n);\n\nQuestion: Name the languages for estonia"
},
{
"role": "assistant",
"content": "SELECT \"languages\" FROM \"impact\" WHERE \"member_countries\"='Estonia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"impact\" (\n \"member_countries\" text,\n \"population\" real,\n \"area_km\" real,\n \"gdp_billion_us\" text,\n \"gdp_per_capita_us\" real,\n \"languages\" text\n);\n\nQuestion: Name the most gdp per capita latvian"
},
{
"role": "assistant",
"content": "SELECT MAX(\"gdp_per_capita_us\") FROM \"impact\" WHERE \"languages\"='Latvian';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2112766_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: how many archive were when run time is 24:34"
},
{
"role": "assistant",
"content": "SELECT \"archive\" FROM \"table1_2112766_1\" WHERE \"run_time\"='24:34';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2112766_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: what is all the broadcast date when viewers were 8.4 millions"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"broadcast_date\") FROM \"table1_2112766_1\" WHERE \"viewers_in_millions\"='8.4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2112766_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: how many episode have 8.4 millions viewer."
},
{
"role": "assistant",
"content": "SELECT COUNT(\"episode\") FROM \"table1_2112766_1\" WHERE \"viewers_in_millions\"='8.4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21146729_6\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_airdate\" text\n);\n\nQuestion: What was the title in season #8?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_21146729_6\" WHERE \"season_num\"=8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21146729_6\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_airdate\" text\n);\n\nQuestion: Who was the director when the writer(s) was John W. Bloch?"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"table1_21146729_6\" WHERE \"writer_s\"='John W. Bloch';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21146729_6\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_airdate\" text\n);\n\nQuestion: What was the series# with the original airdate of october 23, 1967?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"series_num\") FROM \"table1_21146729_6\" WHERE \"original_airdate\"='October 23, 1967';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21146729_6\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_airdate\" text\n);\n\nQuestion: what is the title when the writer(s) is jack turley?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_21146729_6\" WHERE \"writer_s\"='Jack Turley';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21146729_6\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_airdate\" text\n);\n\nQuestion: How many of the series # when the original airdate is september 25, 1967?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"series_num\") FROM \"table1_21146729_6\" WHERE \"original_airdate\"='September 25, 1967';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2114308_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: Name the episode for run time of 22:50"
},
{
"role": "assistant",
"content": "SELECT \"episode\" FROM \"table1_2114308_1\" WHERE \"run_time\"='22:50';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2114308_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: Name the broadcast date of 6.9 million viewers"
},
{
"role": "assistant",
"content": "SELECT \"broadcast_date\" FROM \"table1_2114308_1\" WHERE \"viewers_in_millions\"='6.9';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2114308_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: Name the broadcast date of run time being 24:14"
},
{
"role": "assistant",
"content": "SELECT \"broadcast_date\" FROM \"table1_2114308_1\" WHERE \"run_time\"='24:14';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2114238_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: Which archive has a run time of 23:48?"
},
{
"role": "assistant",
"content": "SELECT \"archive\" FROM \"table1_2114238_1\" WHERE \"run_time\"='23:48';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2114238_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: Which broadcast date has 6.8 million viewers?"
},
{
"role": "assistant",
"content": "SELECT \"broadcast_date\" FROM \"table1_2114238_1\" WHERE \"viewers_in_millions\"='6.8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"petrol_engines\" (\n \"model\" text,\n \"years\" text,\n \"type_code\" text,\n \"transmission\" text,\n \"max_power\" text,\n \"torque\" text,\n \"0_km_h_mph_sec\" text,\n \"top_speed\" text\n);\n\nQuestion: What Petrol engine has total power of ps (kw; bhp)@5400-6500?"
},
{
"role": "assistant",
"content": "SELECT \"model\" FROM \"petrol_engines\" WHERE \"max_power\"='PS (kW; bhp)@5400-6500';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"petrol_engines\" (\n \"model\" text,\n \"years\" text,\n \"type_code\" text,\n \"transmission\" text,\n \"max_power\" text,\n \"torque\" text,\n \"0_km_h_mph_sec\" text,\n \"top_speed\" text\n);\n\nQuestion: What is top speed of a petrol engine at ps (kw; bhp)@5250-6250?"
},
{
"role": "assistant",
"content": "SELECT \"top_speed\" FROM \"petrol_engines\" WHERE \"max_power\"='PS (kW; bhp)@5250-6250';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"petrol_engines\" (\n \"model\" text,\n \"years\" text,\n \"type_code\" text,\n \"transmission\" text,\n \"max_power\" text,\n \"torque\" text,\n \"0_km_h_mph_sec\" text,\n \"top_speed\" text\n);\n\nQuestion: What is the maximum speed for total power of ps (kw; bhp)?"
},
{
"role": "assistant",
"content": "SELECT \"top_speed\" FROM \"petrol_engines\" WHERE \"max_power\"='PS (kW; bhp)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"petrol_engines\" (\n \"model\" text,\n \"years\" text,\n \"type_code\" text,\n \"transmission\" text,\n \"max_power\" text,\n \"torque\" text,\n \"0_km_h_mph_sec\" text,\n \"top_speed\" text\n);\n\nQuestion: What is the s7 4.0 tfsi quattro engine torque?"
},
{
"role": "assistant",
"content": "SELECT \"torque\" FROM \"petrol_engines\" WHERE \"model\"='S7 4.0 TFSI quattro';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21165255_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Name the number in season for 4300062"
},
{
"role": "assistant",
"content": "SELECT MAX(\"no_in_season\") FROM \"table1_21165255_1\" WHERE \"production_code\"=4300062;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_211615_2\" (\n \"station\" text,\n \"line\" text,\n \"planned\" real,\n \"cancelled\" real,\n \"proposal\" text,\n \"details\" text\n);\n\nQuestion: Name the number of cancelled for turnham green"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"cancelled\") FROM \"table1_211615_2\" WHERE \"station\"='Turnham Green';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_211615_2\" (\n \"station\" text,\n \"line\" text,\n \"planned\" real,\n \"cancelled\" real,\n \"proposal\" text,\n \"details\" text\n);\n\nQuestion: Name the number of details for emlyn road"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"details\") FROM \"table1_211615_2\" WHERE \"station\"='Emlyn Road';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21164557_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What episode number in the series was directed by John Behring?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"no_in_series\") FROM \"table1_21164557_1\" WHERE \"directed_by\"='John Behring';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21164557_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many original air dates were there for episodes with a production code of 4398016?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"original_air_date\") FROM \"table1_21164557_1\" WHERE \"production_code\"=4398016;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21164557_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many dates did the episode \"out of sight\" originally air on?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"original_air_date\") FROM \"table1_21164557_1\" WHERE \"title\"='\\\"Out of Sight\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nielsen_ratings\" (\n \"season\" real,\n \"season_premiere\" text,\n \"season_finale\" text,\n \"tv_season\" text,\n \"rank\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: Name the rank that premiered september 25, 2001"
},
{
"role": "assistant",
"content": "SELECT \"rank\" FROM \"nielsen_ratings\" WHERE \"season_premiere\"='September 25, 2001';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nielsen_ratings\" (\n \"season\" real,\n \"season_premiere\" text,\n \"season_finale\" text,\n \"tv_season\" text,\n \"rank\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: Name the rank for 14.80 viewers"
},
{
"role": "assistant",
"content": "SELECT \"rank\" FROM \"nielsen_ratings\" WHERE \"viewers_in_millions\"='14.80';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nielsen_ratings\" (\n \"season\" real,\n \"season_premiere\" text,\n \"season_finale\" text,\n \"tv_season\" text,\n \"rank\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: Name the number of rank for season 6"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rank\") FROM \"nielsen_ratings\" WHERE \"season\"=6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21172539_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What date did the episode with a production code of 4301085 originally air?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_21172539_1\" WHERE \"production_code\"=4301085;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21172539_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What date did episode 15 of the season originally air?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_21172539_1\" WHERE \"no_in_season\"=15;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21172539_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many items are listed under the column of U.S. viewers for episode \"Bite Me\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"u_s_viewers_millions\") FROM \"table1_21172539_1\" WHERE \"title\"='\\\"Bite Me\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nomenclature\" (\n \"chinese_industrial_designation\" text,\n \"export_type_designation\" text,\n \"nato_reporting_name\" text,\n \"nato_u_s_dod_code\" text,\n \"remarks\" text\n);\n\nQuestion: Name the remarks for sawhouse"
},
{
"role": "assistant",
"content": "SELECT \"remarks\" FROM \"nomenclature\" WHERE \"nato_reporting_name\"='SAWHOUSE';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nomenclature\" (\n \"chinese_industrial_designation\" text,\n \"export_type_designation\" text,\n \"nato_reporting_name\" text,\n \"nato_u_s_dod_code\" text,\n \"remarks\" text\n);\n\nQuestion: Name the nato/ us dod code for sabbot"
},
{
"role": "assistant",
"content": "SELECT \"nato_u_s_dod_code\" FROM \"nomenclature\" WHERE \"nato_reporting_name\"='SABBOT';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"country\" text,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_rider\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: When autodromo nazionale monza is the circuit what is the report?"
},
{
"role": "assistant",
"content": "SELECT \"report\" FROM \"race_calendar_and_results\" WHERE \"circuit\"='Autodromo Nazionale Monza';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"country\" text,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_rider\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: When michele pirro is the pole position what is the date?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"race_calendar_and_results\" WHERE \"pole_position\"='Michele Pirro';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"country\" text,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_rider\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: When Netherlands is the country what is the report? "
},
{
"role": "assistant",
"content": "SELECT \"report\" FROM \"race_calendar_and_results\" WHERE \"country\"='Netherlands';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"country\" text,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_rider\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: When circuit ricardo tormo is the circuit who is the winning team?"
},
{
"role": "assistant",
"content": "SELECT \"winning_team\" FROM \"race_calendar_and_results\" WHERE \"circuit\"='Circuit Ricardo Tormo';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"country\" text,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_rider\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: When circuit ricardo tormo is the circuit what is the round?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"round\") FROM \"race_calendar_and_results\" WHERE \"circuit\"='Circuit Ricardo Tormo';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"cowboys_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: How many opponents were there when the record was 6-0?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"opponent\") FROM \"schedule\" WHERE \"record\"='6-0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"cowboys_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: How many opponents were there when the record was 6-0?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"record\"='6-0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"cowboys_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What was the team record when the team played @ Utah?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule\" WHERE \"opponent\"='@ Utah';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"cowboys_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: How many points did the Cowboys have when they had a 7-0 record?"
},
{
"role": "assistant",
"content": "SELECT \"cowboys_points\" FROM \"schedule\" WHERE \"record\"='7-0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21234111_6\" (\n \"order\" real,\n \"couple\" text,\n \"karen\" text,\n \"nicky\" text,\n \"jason\" text,\n \"ruthie\" text,\n \"robin\" text,\n \"total\" text,\n \"scoreboard\" text,\n \"song\" text,\n \"public_vote_pct\" text,\n \"result\" text\n);\n\nQuestion: Name the scoreboard for total being 23.5"
},
{
"role": "assistant",
"content": "SELECT \"scoreboard\" FROM \"table1_21234111_6\" WHERE \"total\"='23.5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21234111_6\" (\n \"order\" real,\n \"couple\" text,\n \"karen\" text,\n \"nicky\" text,\n \"jason\" text,\n \"ruthie\" text,\n \"robin\" text,\n \"total\" text,\n \"scoreboard\" text,\n \"song\" text,\n \"public_vote_pct\" text,\n \"result\" text\n);\n\nQuestion: Name the jason for public vote being 19.20%"
},
{
"role": "assistant",
"content": "SELECT \"jason\" FROM \"table1_21234111_6\" WHERE \"public_vote_pct\"='19.20%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21234111_6\" (\n \"order\" real,\n \"couple\" text,\n \"karen\" text,\n \"nicky\" text,\n \"jason\" text,\n \"ruthie\" text,\n \"robin\" text,\n \"total\" text,\n \"scoreboard\" text,\n \"song\" text,\n \"public_vote_pct\" text,\n \"result\" text\n);\n\nQuestion: Name the nicky for \" take a chance on me \"\u2013 abba"
},
{
"role": "assistant",
"content": "SELECT \"nicky\" FROM \"table1_21234111_6\" WHERE \"song\"='\\\" Take a Chance on Me \\\"\u2013 ABBA';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21234111_6\" (\n \"order\" real,\n \"couple\" text,\n \"karen\" text,\n \"nicky\" text,\n \"jason\" text,\n \"ruthie\" text,\n \"robin\" text,\n \"total\" text,\n \"scoreboard\" text,\n \"song\" text,\n \"public_vote_pct\" text,\n \"result\" text\n);\n\nQuestion: Name the number of song for scoreboard being 3rd"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"song\") FROM \"table1_21234111_6\" WHERE \"scoreboard\"='3rd';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fixtures_and_results\" (\n \"competition\" text,\n \"round\" text,\n \"opponent\" text,\n \"result\" text,\n \"score\" text,\n \"home_away\" text,\n \"venue\" text,\n \"attendance\" real,\n \"date\" text\n);\n\nQuestion: state the opponent on halliwell jones stadium in super league xiv"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"fixtures_and_results\" WHERE \"venue\"='Halliwell Jones Stadium' AND \"competition\"='Super League XIV';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fixtures_and_results\" (\n \"competition\" text,\n \"round\" text,\n \"opponent\" text,\n \"result\" text,\n \"score\" text,\n \"home_away\" text,\n \"venue\" text,\n \"attendance\" real,\n \"date\" text\n);\n\nQuestion: how many venues were played on in round 1"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"venue\") FROM \"fixtures_and_results\" WHERE \"round\"='1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fixtures_and_results\" (\n \"competition\" text,\n \"round\" text,\n \"opponent\" text,\n \"result\" text,\n \"score\" text,\n \"home_away\" text,\n \"venue\" text,\n \"attendance\" real,\n \"date\" text\n);\n\nQuestion: state the round that had a game score 50-10"
},
{
"role": "assistant",
"content": "SELECT \"round\" FROM \"fixtures_and_results\" WHERE \"score\"='50-10';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fixtures_and_results\" (\n \"competition\" text,\n \"round\" text,\n \"opponent\" text,\n \"result\" text,\n \"score\" text,\n \"home_away\" text,\n \"venue\" text,\n \"attendance\" real,\n \"date\" text\n);\n\nQuestion: state the round that had a game attended attended by 9359 people"
},
{
"role": "assistant",
"content": "SELECT \"round\" FROM \"fixtures_and_results\" WHERE \"attendance\"=9359;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fixtures_and_results\" (\n \"competition\" text,\n \"round\" text,\n \"opponent\" text,\n \"result\" text,\n \"score\" text,\n \"home_away\" text,\n \"venue\" text,\n \"attendance\" real,\n \"date\" text\n);\n\nQuestion: how many rounds had the score 44-22"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"round\") FROM \"fixtures_and_results\" WHERE \"score\"='44-22';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fixtures_and_results\" (\n \"competition\" text,\n \"round\" text,\n \"opponent\" text,\n \"result\" text,\n \"score\" text,\n \"home_away\" text,\n \"venue\" text,\n \"attendance\" real,\n \"date\" text\n);\n\nQuestion: what's the score against crusaders"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"fixtures_and_results\" WHERE \"opponent\"='Crusaders';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"irrigation_infrastructure\" (\n \"department\" text,\n \"micro_10ha\" real,\n \"small_100ha\" real,\n \"medium_500ha\" real,\n \"big_500ha\" real,\n \"total\" real\n);\n\nQuestion: How many Small catagories are there for the department that has a medium of 17101? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"small_100ha\") FROM \"irrigation_infrastructure\" WHERE \"medium_500ha\"=17101;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"irrigation_infrastructure\" (\n \"department\" text,\n \"micro_10ha\" real,\n \"small_100ha\" real,\n \"medium_500ha\" real,\n \"big_500ha\" real,\n \"total\" real\n);\n\nQuestion: What is the total for Chuquisaca?"
},
{
"role": "assistant",
"content": "SELECT \"total\" FROM \"irrigation_infrastructure\" WHERE \"department\"='Chuquisaca';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"irrigation_infrastructure\" (\n \"department\" text,\n \"micro_10ha\" real,\n \"small_100ha\" real,\n \"medium_500ha\" real,\n \"big_500ha\" real,\n \"total\" real\n);\n\nQuestion: Which department has a small of 11370? "
},
{
"role": "assistant",
"content": "SELECT \"department\" FROM \"irrigation_infrastructure\" WHERE \"small_100ha\"=11370;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"irrigation_infrastructure\" (\n \"department\" text,\n \"micro_10ha\" real,\n \"small_100ha\" real,\n \"medium_500ha\" real,\n \"big_500ha\" real,\n \"total\" real\n);\n\nQuestion: How many total catagories are there for La Paz? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"total\") FROM \"irrigation_infrastructure\" WHERE \"department\"='La Paz';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"irrigation_infrastructure\" (\n \"department\" text,\n \"micro_10ha\" real,\n \"small_100ha\" real,\n \"medium_500ha\" real,\n \"big_500ha\" real,\n \"total\" real\n);\n\nQuestion: What is the largest micro when the big is 1080? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"micro_10ha\") FROM \"irrigation_infrastructure\" WHERE \"big_500ha\"=1080;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"jlpga_tour_15\" (\n \"no\" real,\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: How many points under par was the winner of the Miyagi TV Cup Dunlop Ladies Open?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"jlpga_tour_15\" WHERE \"tournament\"='Miyagi TV Cup Dunlop Ladies Open';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"jlpga_tour_15\" (\n \"no\" real,\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What was the winning score of the Vernal Ladies tournament?"
},
{
"role": "assistant",
"content": "SELECT \"winning_score\" FROM \"jlpga_tour_15\" WHERE \"tournament\"='Vernal Ladies';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_standings\" (\n \"place\" real,\n \"athlete\" text,\n \"long_jump\" real,\n \"javelin\" real,\n \"200_m\" real,\n \"discus\" real,\n \"1500_m\" real,\n \"total\" real\n);\n\nQuestion: Name the athlete for 3"
},
{
"role": "assistant",
"content": "SELECT \"athlete\" FROM \"final_standings\" WHERE \"place\"=3;"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.