text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "time" text ); Question: How many days did Hawthorn play as a home team? <|assistant|> SELECT COUNT("date") FROM "round_of_16" WHERE "home_team"='Hawthorn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "time" text ); Question: What time was it when the home team's score was 10.7 (67)? <|assistant|> SELECT "time" FROM "round_of_16" WHERE "home_team_score"='10.7 (67)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "time" text ); Question: What time was it when the away team's score was 5.4 (34)? <|assistant|> SELECT "time" FROM "round_of_16" WHERE "away_team_score"='5.4 (34)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "time" text ); Question: How many days was the away team's score 11.8 (74)? <|assistant|> SELECT COUNT("date") FROM "round_of_16" WHERE "away_team_score"='11.8 (74)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "time" text ); Question: The away team of Richmond played on what grounds? <|assistant|> SELECT "ground" FROM "round_of_16" WHERE "away_team"='Richmond';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "time" text ); Question: At what venues did the away team score 16.10 (106)? <|assistant|> SELECT "ground" FROM "round_of_14" WHERE "away_team_score"='16.10 (106)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "time" text ); Question: What was the away team's score at the venue football park? <|assistant|> SELECT "away_team_score" FROM "round_of_14" WHERE "ground"='Football Park';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "time" text ); Question: On what date did the home team score 14.12 (96)? <|assistant|> SELECT "date" FROM "round_of_14" WHERE "home_team_score"='14.12 (96)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "time" text ); Question: What are the scores for games where the home team is Adelaide? <|assistant|> SELECT "home_team_score" FROM "round_of_14" WHERE "home_team"='Adelaide';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "time" text ); Question: On what dates where games played at Football Park? <|assistant|> SELECT "date" FROM "round_of_14" WHERE "ground"='Football Park';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1st_round" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: What was the home team score against Collingwood? <|assistant|> SELECT "home_team_score" FROM "1st_round" WHERE "away_team"='Collingwood';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1st_round" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: Who was the away team playing at Carlton? <|assistant|> SELECT "away_team" FROM "1st_round" WHERE "home_team"='Carlton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1st_round" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: What did the home team score against Richmond? <|assistant|> SELECT "home_team_score" FROM "1st_round" WHERE "away_team"='Richmond';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1st_round" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: What was the maximum crowd size against St Kilda? <|assistant|> SELECT MAX("crowd") FROM "1st_round" WHERE "away_team"='St Kilda';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1st_round" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: What to Footscray score at home? <|assistant|> SELECT "home_team_score" FROM "1st_round" WHERE "home_team"='Footscray';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "time" text ); Question: How many crowd sizes were recorded at the game when the home team scored 7.8 (50)? <|assistant|> SELECT COUNT("crowd") FROM "round_of_16" WHERE "home_team_score"='7.8 (50)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "time" text ); Question: When the home team scored 7.8 (50), how many away team scores were recorded? <|assistant|> SELECT COUNT("away_team_score") FROM "round_of_16" WHERE "home_team_score"='7.8 (50)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "time" text ); Question: What did the home team score when the away team scored 18.12 (120)? <|assistant|> SELECT "home_team_score" FROM "round_of_16" WHERE "away_team_score"='18.12 (120)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "date" text, "crowd" real ); Question: Name the date for bundaberg rum stadium <|assistant|> SELECT "date" FROM "group_3" WHERE "ground"='Bundaberg Rum Stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "date" text, "crowd" real ); Question: Name the home team score for brisbane lions <|assistant|> SELECT "home_team_score" FROM "group_3" WHERE "home_team"='Brisbane Lions';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "date" text, "crowd" real ); Question: Name the home team for football park <|assistant|> SELECT "home_team" FROM "group_3" WHERE "ground"='Football Park';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "date" text, "crowd" real ); Question: Name the away team score for carlton <|assistant|> SELECT "away_team_score" FROM "group_3" WHERE "home_team"='Carlton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "date" text, "crowd" real ); Question: Name the date for adelaide for westpac stadium <|assistant|> SELECT "date" FROM "group_3" WHERE "home_team"='Adelaide' AND "ground"='Westpac Stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "date" text, "crowd" real ); Question: Name the total number of ground for essendon <|assistant|> SELECT COUNT("ground") FROM "group_1" WHERE "home_team"='Essendon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "date" text, "crowd" real ); Question: Name the most crowd for essendon <|assistant|> SELECT MAX("crowd") FROM "group_1" WHERE "away_team"='Essendon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "date" text, "crowd" real ); Question: When ground is manuka oval what is the home team score? <|assistant|> SELECT COUNT("home_team_score") FROM "group_2" WHERE "ground"='Manuka Oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "date" text, "crowd" real ); Question: When the crowd was 8642 what was the away team's score? <|assistant|> SELECT "away_team_score" FROM "group_2" WHERE "crowd"=8642;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: Which location had an attendance of 22537? <|assistant|> SELECT "ground" FROM "round_1" WHERE "crowd"=22537;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: When the away team's score was 0.12.5 (77), what was the home team's score? <|assistant|> SELECT "home_team_score" FROM "round_1" WHERE "away_team_score"='0.12.5 (77)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: When the away team's score was 2.10.7 (85), what was the home team's score? <|assistant|> SELECT "home_team_score" FROM "round_1" WHERE "away_team_score"='2.10.7 (85)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: What was the away team's score of at the game of telstra stadium? <|assistant|> SELECT "away_team_score" FROM "round_1" WHERE "ground"='Telstra Stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: When the away team was Carlton, who was the home team? <|assistant|> SELECT "home_team" FROM "round_1" WHERE "away_team"='Carlton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_competition_scores" ( "country" text, "preliminary" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text ); Question: What was the average for contestants with a swimsuit score of 8.266? <|assistant|> SELECT "average" FROM "final_competition_scores" WHERE "swimsuit"='8.266';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_competition_scores" ( "country" text, "preliminary" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text ); Question: What are the interview scores for contestants whose average is 9.090? <|assistant|> SELECT "interview" FROM "final_competition_scores" WHERE "average"='9.090';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_competition_scores" ( "country" text, "preliminary" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text ); Question: What are the average scores of contestants whose home state is Pennsylvania? <|assistant|> SELECT "average" FROM "final_competition_scores" WHERE "country"='Pennsylvania';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_competition_scores" ( "country" text, "preliminary" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text ); Question: What are the evening gown scores of contestants whose average is 9.266? <|assistant|> SELECT "evening_gown" FROM "final_competition_scores" WHERE "average"='9.266';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_competition_scores" ( "country" text, "preliminary" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text ); Question: What are the average scores of contestants whose interview score is 8.011? <|assistant|> SELECT "average" FROM "final_competition_scores" WHERE "interview"='8.011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: What are the home team scores when richmond is the home team? <|assistant|> SELECT "home_team_score" FROM "week_1" WHERE "home_team"='Richmond';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: What are the home team scores when fremantle is the away team? <|assistant|> SELECT "home_team_score" FROM "week_1" WHERE "away_team"='Fremantle';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: What is the largest crowd when essendon is the home team? <|assistant|> SELECT MAX("crowd") FROM "week_1" WHERE "home_team"='Essendon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: Who are the away teams when subiaco oval was the grounds? <|assistant|> SELECT "away_team" FROM "week_1" WHERE "ground"='Subiaco Oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: Who were the away teams when the home team scored 1.8.0.5 (62)? <|assistant|> SELECT "away_team" FROM "week_1" WHERE "home_team_score"='1.8.0.5 (62)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: Who was the home team when the away team is Carlton? <|assistant|> SELECT "home_team" FROM "round_3" WHERE "away_team"='Carlton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: What is the home team score where the home team is Fremantle? <|assistant|> SELECT "home_team_score" FROM "round_3" WHERE "home_team"='Fremantle';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: What was the away team score for the game with a crowd of 5391? <|assistant|> SELECT "away_team_score" FROM "round_3" WHERE "crowd"=5391;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: What date was Adelaide the home team? <|assistant|> SELECT "date" FROM "round_3" WHERE "home_team"='Adelaide';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "member_teams" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text, "home_rink" text ); Question: How many locations does Elon University have? <|assistant|> SELECT COUNT("location") FROM "member_teams" WHERE "institution"='Elon University';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "member_teams" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text, "home_rink" text ); Question: Private/Catholic school's minimum enrollment is? <|assistant|> SELECT MIN("enrollment") FROM "member_teams" WHERE "affiliation"='Private/Catholic';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "member_teams" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text, "home_rink" text ); Question: Which school has the mascot of the Colonials? <|assistant|> SELECT "institution" FROM "member_teams" WHERE "team_nickname"='Colonials';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "l2_cache" text, "fsb" text, "mult" text, "voltage" text, "tdp" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); Question: What is the socket location for sSPEC number sl3f7(kc0)sl3fj(kc0)? <|assistant|> SELECT "socket" FROM "250_nm" WHERE "s_spec_number"='SL3F7(kC0)SL3FJ(kC0)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "l2_cache" text, "fsb" text, "mult" text, "voltage" text, "tdp" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); Question: What is the release date of part 80525py500512bx80525u500512bx80525u500512e? <|assistant|> SELECT "release_date" FROM "250_nm" WHERE "part_number_s"='80525PY500512BX80525U500512BX80525U500512E';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "l2_cache" text, "fsb" text, "mult" text, "voltage" text, "tdp" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); Question: How many release prices are there for the Pentium iii 550? <|assistant|> SELECT COUNT("release_price_usd") FROM "250_nm" WHERE "model_number"='Pentium III 550';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "l2_cache" text, "fsb" text, "mult" text, "voltage" text, "tdp" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); Question: What is the model number with a release price of $496? <|assistant|> SELECT "model_number" FROM "250_nm" WHERE "release_price_usd"='$496';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "l2_cache" text, "fsb" text, "mult" text, "voltage" text, "tdp" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); Question: What is the l2 cache for the model with a release price of $669? <|assistant|> SELECT "l2_cache" FROM "250_nm" WHERE "release_price_usd"='$669';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1639689_2" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); Question: What day(s) did they play on week 2? <|assistant|> SELECT "date" FROM "table1_1639689_2" WHERE "week"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1639689_2" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); Question: What was the kickoff time on monday, may 13? <|assistant|> SELECT "kickoff" FROM "table1_1639689_2" WHERE "date"='Monday, May 13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16390576_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: what is the latest episode in season 2 directed by jamie babbit? <|assistant|> SELECT MAX("no_in_season") FROM "table1_16390576_3" WHERE "directed_by"='Jamie Babbit';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16390576_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: what is the number of the episode titled "magic jordan"? <|assistant|> SELECT MIN("no_in_series") FROM "table1_16390576_3" WHERE "title"='\"Magic Jordan\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16390576_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: what are the air dates for episodes with the production code 08-02-214 <|assistant|> SELECT "original_air_date" FROM "table1_16390576_3" WHERE "production_code"='08-02-214';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16390576_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: what is the title of episode 28 <|assistant|> SELECT "title" FROM "table1_16390576_3" WHERE "no_in_series"=28;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "typical_duplex_scanners" ( "product" text, "dimensions_mm" text, "dpi" real, "pages_per_minute_color" real, "max_page_size" text, "interface" text ); Question: What is the dpi of a scanner with the mm dimensions 280 x 95 x 40? <|assistant|> SELECT "dpi" FROM "typical_duplex_scanners" WHERE "dimensions_mm"='280 x 95 x 40';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "typical_duplex_scanners" ( "product" text, "dimensions_mm" text, "dpi" real, "pages_per_minute_color" real, "max_page_size" text, "interface" text ); Question: What is the maximum pages per minute for the Xerox Travel Scanner 100? <|assistant|> SELECT MAX("pages_per_minute_color") FROM "typical_duplex_scanners" WHERE "product"='Xerox Travel Scanner 100';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "typical_duplex_scanners" ( "product" text, "dimensions_mm" text, "dpi" real, "pages_per_minute_color" real, "max_page_size" text, "interface" text ); Question: What interface is used on the scanner that has a 36 pages per minute? <|assistant|> SELECT "interface" FROM "typical_duplex_scanners" WHERE "pages_per_minute_color"=36;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "typical_duplex_scanners" ( "product" text, "dimensions_mm" text, "dpi" real, "pages_per_minute_color" real, "max_page_size" text, "interface" text ); Question: What are the mm dimensions of the Plustek Mobileoffice D28 Corporate? <|assistant|> SELECT "dimensions_mm" FROM "typical_duplex_scanners" WHERE "product"='Plustek MobileOffice D28 Corporate';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "typical_duplex_scanners" ( "product" text, "dimensions_mm" text, "dpi" real, "pages_per_minute_color" real, "max_page_size" text, "interface" text ); Question: What are the mm dimensions for the Fujitsu fi-6130 a4 Series Scanner? <|assistant|> SELECT "dimensions_mm" FROM "typical_duplex_scanners" WHERE "product"='Fujitsu fi-6130 A4 Series Scanner';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "typical_duplex_scanners" ( "product" text, "dimensions_mm" text, "dpi" real, "pages_per_minute_color" real, "max_page_size" text, "interface" text ); Question: What is the dpi for the scanner with a max page size of 216mm x 355mm? <|assistant|> SELECT "dpi" FROM "typical_duplex_scanners" WHERE "max_page_size"='216mm x 355mm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "girls_league_championships" ( "school_year" text, "volleyball" text, "cross_country" text, "soccer" text, "tennis" text, "golf" text, "basketball" text, "swimming" text, "softball" text, "track_field" text ); Question: which country won swimming track & field when lexington won swimming and madison won volleyball <|assistant|> SELECT "track_field" FROM "girls_league_championships" WHERE "swimming"='Lexington' AND "volleyball"='Madison';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "girls_league_championships" ( "school_year" text, "volleyball" text, "cross_country" text, "soccer" text, "tennis" text, "golf" text, "basketball" text, "swimming" text, "softball" text, "track_field" text ); Question: how many teams won at golf when wooster won soccer <|assistant|> SELECT COUNT("golf") FROM "girls_league_championships" WHERE "soccer"='Wooster';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "girls_league_championships" ( "school_year" text, "volleyball" text, "cross_country" text, "soccer" text, "tennis" text, "golf" text, "basketball" text, "swimming" text, "softball" text, "track_field" text ); Question: Who won soccer when madison won volleyball, lexington won cross country and orrville won softball <|assistant|> SELECT "soccer" FROM "girls_league_championships" WHERE "volleyball"='Madison' AND "cross_country"='Lexington' AND "softball"='Orrville';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "girls_league_championships" ( "school_year" text, "volleyball" text, "cross_country" text, "soccer" text, "tennis" text, "golf" text, "basketball" text, "swimming" text, "softball" text, "track_field" text ); Question: Who won volleyball when west holmes won basketball and wooster won swimming in 2011-12 <|assistant|> SELECT "volleyball" FROM "girls_league_championships" WHERE "basketball"='West Holmes' AND "swimming"='Wooster' AND "school_year"='2011-12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "girls_league_championships" ( "school_year" text, "volleyball" text, "cross_country" text, "soccer" text, "tennis" text, "golf" text, "basketball" text, "swimming" text, "softball" text, "track_field" text ); Question: who won tennis when ashland won softball and wooster won volleybal <|assistant|> SELECT "tennis" FROM "girls_league_championships" WHERE "softball"='Ashland' AND "volleyball"='Wooster';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "girls_league_championships" ( "school_year" text, "volleyball" text, "cross_country" text, "soccer" text, "tennis" text, "golf" text, "basketball" text, "swimming" text, "softball" text, "track_field" text ); Question: who won basketball when ashland won track & field and cross country <|assistant|> SELECT "basketball" FROM "girls_league_championships" WHERE "track_field"='Ashland' AND "cross_country"='Ashland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "american_division" ( "institution" text, "location" text, "nickname" text, "enrollment" real, "established" real ); Question: What is the location of the school established in 1923 <|assistant|> SELECT "location" FROM "american_division" WHERE "established"=1923;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "american_division" ( "institution" text, "location" text, "nickname" text, "enrollment" real, "established" real ); Question: Total enrollment at the school with the nickname Blue Hens <|assistant|> SELECT COUNT("enrollment") FROM "american_division" WHERE "nickname"='Blue Hens';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "american_division" ( "institution" text, "location" text, "nickname" text, "enrollment" real, "established" real ); Question: Nickname of the school established in 1773 <|assistant|> SELECT "nickname" FROM "american_division" WHERE "established"=1773;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "american_division" ( "institution" text, "location" text, "nickname" text, "enrollment" real, "established" real ); Question: What is the year Rowan University was established <|assistant|> SELECT "established" FROM "american_division" WHERE "institution"='Rowan University';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "american_division" ( "institution" text, "location" text, "nickname" text, "enrollment" real, "established" real ); Question: How many nicknames does the school in Newark, DE have <|assistant|> SELECT COUNT("nickname") FROM "american_division" WHERE "location"='Newark, DE';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "american_division" ( "institution" text, "location" text, "nickname" text, "enrollment" real, "established" real ); Question: Location of the school with the nickname Mountaineers <|assistant|> SELECT "location" FROM "american_division" WHERE "nickname"='Mountaineers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16432167_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: What was the original air date of the episode titled "Beaver's Pigeons" <|assistant|> SELECT "original_air_date" FROM "table1_16432167_1" WHERE "title"='\"Beaver''s Pigeons\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16432167_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: Who wrote the episode with the production code of 942A? <|assistant|> SELECT "written_by" FROM "table1_16432167_1" WHERE "production_code"='942A';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16432167_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: What numbered episode of the season was titled "Beaver says Good-Bye"? <|assistant|> SELECT "no_in_season" FROM "table1_16432167_1" WHERE "title"='\"Beaver Says Good-bye\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16432167_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: What number episode in the series was titled "Wally's Pug Nose"? <|assistant|> SELECT "no_in_series" FROM "table1_16432167_1" WHERE "title"='\"Wally''s Pug Nose\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16432167_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: What was the production code of the episode written by Joe Connelly and Bob Mosher titled "Beaver Gets Adopted"? <|assistant|> SELECT "production_code" FROM "table1_16432167_1" WHERE "written_by"='Joe Connelly and Bob Mosher' AND "title"='\"Beaver Gets Adopted\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16425614_3" ( "official_num" real, "tf1_num" real, "french_title" text, "english_title" text, "air_date_france" text, "original_beechwood_bunny_tale_source_material" text ); Question: Who was responsible for original beechwood bunny tale / source material for the episode title "Papa Bramble's Secret"? <|assistant|> SELECT "original_beechwood_bunny_tale_source_material" FROM "table1_16425614_3" WHERE "english_title"='\"Papa Bramble''s Secret\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16425614_3" ( "official_num" real, "tf1_num" real, "french_title" text, "english_title" text, "air_date_france" text, "original_beechwood_bunny_tale_source_material" text ); Question: What is the French title for "Papa Bramble's Secret"? <|assistant|> SELECT "french_title" FROM "table1_16425614_3" WHERE "english_title"='\"Papa Bramble''s Secret\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16425614_3" ( "official_num" real, "tf1_num" real, "french_title" text, "english_title" text, "air_date_france" text, "original_beechwood_bunny_tale_source_material" text ); Question: Who was responsible for original beechwood bunny tale / source material for the episode title "The Monster of Blueberry Lake"? <|assistant|> SELECT "original_beechwood_bunny_tale_source_material" FROM "table1_16425614_3" WHERE "english_title"='\"The Monster of Blueberry Lake\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16425614_3" ( "official_num" real, "tf1_num" real, "french_title" text, "english_title" text, "air_date_france" text, "original_beechwood_bunny_tale_source_material" text ); Question: What is the English title for the official number 22 episode? <|assistant|> SELECT "english_title" FROM "table1_16425614_3" WHERE "official_num"=22;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Which CFL team did the player from British Columbia get drafted to <|assistant|> SELECT "cfl_team" FROM "round_five" WHERE "college"='British Columbia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Which positions had players from Laval college <|assistant|> SELECT "position" FROM "round_five" WHERE "college"='Laval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What position did Gene Stahl play <|assistant|> SELECT "position" FROM "round_five" WHERE "player"='Gene Stahl';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Which player played DB <|assistant|> SELECT "player" FROM "round_five" WHERE "position"='DB';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Who was the lowest picked LB <|assistant|> SELECT MIN("pick_num") FROM "round_five" WHERE "position"='LB';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: How many players named Jeff Brown were drafted <|assistant|> SELECT COUNT("position") FROM "round_five" WHERE "player"='Jeff Brown';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16439764_1" ( "gun" text, "m_v_ft_s" real, "shell_lb" text, "time_to_ft_m_at_25_seconds" text, "time_to_ft_m_at_40_seconds" text, "time_to_ft_m_at_55_seconds" text, "max_height_ft" real ); Question: How many feet per second does a shell move where the height range is 23500? <|assistant|> SELECT MIN("m_v_ft_s") FROM "table1_16439764_1" WHERE "max_height_ft"=23500;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16439764_1" ( "gun" text, "m_v_ft_s" real, "shell_lb" text, "time_to_ft_m_at_25_seconds" text, "time_to_ft_m_at_40_seconds" text, "time_to_ft_m_at_55_seconds" text, "max_height_ft" real ); Question: If the gun used is the qf 12 pdr 12 cwt, what is the shell weight? <|assistant|> SELECT "shell_lb" FROM "table1_16439764_1" WHERE "gun"='QF 12 pdr 12 cwt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16439764_1" ( "gun" text, "m_v_ft_s" real, "shell_lb" text, "time_to_ft_m_at_25_seconds" text, "time_to_ft_m_at_40_seconds" text, "time_to_ft_m_at_55_seconds" text, "max_height_ft" real ); Question: Where the height range is higher than 20000.0 and the shell weight is 12.5, what is the time to feet ratio at 25 degrees? <|assistant|> SELECT "time_to_ft_m_at_25_seconds" FROM "table1_16439764_1" WHERE "shell_lb"='12.5' AND "max_height_ft">20000.0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16439764_1" ( "gun" text, "m_v_ft_s" real, "shell_lb" text, "time_to_ft_m_at_25_seconds" text, "time_to_ft_m_at_40_seconds" text, "time_to_ft_m_at_55_seconds" text, "max_height_ft" real ); Question: What gun has a time to feet ratio of 18.8 at 55 degrees? <|assistant|> SELECT "gun" FROM "table1_16439764_1" WHERE "time_to_ft_m_at_55_seconds"='18.8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16439764_1" ( "gun" text, "m_v_ft_s" real, "shell_lb" text, "time_to_ft_m_at_25_seconds" text, "time_to_ft_m_at_40_seconds" text, "time_to_ft_m_at_55_seconds" text, "max_height_ft" real ); Question: What is the maximum foot per second speed where time to feet ratio is 22.1 at 55 degrees? <|assistant|> SELECT MAX("m_v_ft_s") FROM "table1_16439764_1" WHERE "time_to_ft_m_at_55_seconds"='22.1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16439764_1" ( "gun" text, "m_v_ft_s" real, "shell_lb" text, "time_to_ft_m_at_25_seconds" text, "time_to_ft_m_at_40_seconds" text, "time_to_ft_m_at_55_seconds" text, "max_height_ft" real ); Question: What is the foot per second speed where time to feet ratio is 9.2 at 25 degrees? <|assistant|> SELECT "m_v_ft_s" FROM "table1_16439764_1" WHERE "time_to_ft_m_at_25_seconds"='9.2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin" ( "country" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); Question: Who was skip for the country whose points for (PF) was 73? <|assistant|> SELECT "skip" FROM "round_robin" WHERE "pf"=73;<|endoftext|>