output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "location" FROM "national_team_matches" WHERE "opponenent"='germany';
## Task Generate a SQL query to answer the following question: `Where was the opponent Germany?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_team_matches" ( "date" text, "location" text, "opponenent" text, "result" text, "match_type" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the opponent Germany?`: ```sql
SELECT "opponenent" FROM "national_team_matches" WHERE "result"='2-2 (draw)';
## Task Generate a SQL query to answer the following question: `Who was the opponent when the result was 2-2 (draw)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_team_matches" ( "date" text, "location" text, "opponenent" text, "result" text, "match_type" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent when the result was 2-2 (draw)?`: ```sql
SELECT "match_type" FROM "national_team_matches" WHERE "location"='budapest' AND "opponenent"='luxembourg';
## Task Generate a SQL query to answer the following question: `What was the match type in Budapest where the opponent was Luxembourg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_team_matches" ( "date" text, "location" text, "opponenent" text, "result" text, "match_type" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the match type in Budapest where the opponent was Luxembourg?`: ```sql
SELECT "player" FROM "third_round" WHERE "score"='72-67-69=208';
## Task Generate a SQL query to answer the following question: `Which player has the score 72-67-69=208?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player has the score 72-67-69=208?`: ```sql
SELECT "to_par" FROM "third_round" WHERE "score"='70-76-68-214';
## Task Generate a SQL query to answer the following question: `Who has the par score of 70-76-68-214?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Who has the par score of 70-76-68-214?`: ```sql
SELECT "country" FROM "third_round" WHERE "score"='70-76-68-214';
## Task Generate a SQL query to answer the following question: `Which country has the score 70-76-68-214?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Which country has the score 70-76-68-214?`: ```sql
SELECT "first_performance" FROM "billy_elliot" WHERE "style"='ballet' AND "status"='final cast' AND "name"='peter mazurowski';
## Task Generate a SQL query to answer the following question: `when was the first performance for the ballet with peter mazurowski in the final cast?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "billy_elliot" ( "status" text, "name" text, "first_performance" text, "last_performance" text, "style" text ); ### SQL Given the database schema, here is the SQL query that answers `when was the first performance for the ballet with peter mazurowski in the final cast?`: ```sql
SELECT "name" FROM "billy_elliot" WHERE "first_performance"='3 july 2011';
## Task Generate a SQL query to answer the following question: `who had the first performance on 3 july 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "billy_elliot" ( "status" text, "name" text, "first_performance" text, "last_performance" text, "style" text ); ### SQL Given the database schema, here is the SQL query that answers `who had the first performance on 3 july 2011?`: ```sql
SELECT "name" FROM "billy_elliot" WHERE "last_performance"='3 july 2011';
## Task Generate a SQL query to answer the following question: `who had a last performance of 3 july 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "billy_elliot" ( "status" text, "name" text, "first_performance" text, "last_performance" text, "style" text ); ### SQL Given the database schema, here is the SQL query that answers `who had a last performance of 3 july 2011?`: ```sql
SELECT "status" FROM "billy_elliot" WHERE "style"='ballet/ gymnastics';
## Task Generate a SQL query to answer the following question: `what's the status in the style of ballet/ gymnastics?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "billy_elliot" ( "status" text, "name" text, "first_performance" text, "last_performance" text, "style" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the status in the style of ballet/ gymnastics?`: ```sql
SELECT "name" FROM "billy_elliot" WHERE "status"='final cast' AND "first_performance"='12 november 2011';
## Task Generate a SQL query to answer the following question: `what's the name with final cast status and first performance on 12 november 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "billy_elliot" ( "status" text, "name" text, "first_performance" text, "last_performance" text, "style" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the name with final cast status and first performance on 12 november 2011?`: ```sql
SELECT "last_performance" FROM "billy_elliot" WHERE "status"='past' AND "style"='ballet' AND "name"='tommy batchelor';
## Task Generate a SQL query to answer the following question: `what last performance has past status, ballet as style and tommy batchelor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "billy_elliot" ( "status" text, "name" text, "first_performance" text, "last_performance" text, "style" text ); ### SQL Given the database schema, here is the SQL query that answers `what last performance has past status, ballet as style and tommy batchelor?`: ```sql
SELECT COUNT("goals") FROM "squad_information" WHERE "nat"='eng' AND "transfer_fee"='youth system' AND "since"<2005 AND "name"='rix';
## Task Generate a SQL query to answer the following question: `How many goals was by Rix from Eng who started before 2005 in the youth system?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" real, "goals" real, "ends" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `How many goals was by Rix from Eng who started before 2005 in the youth system?`: ```sql
SELECT "nat" FROM "squad_information" WHERE "name"='rix';
## Task Generate a SQL query to answer the following question: `Where is Rix from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" real, "goals" real, "ends" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is Rix from?`: ```sql
SELECT "specification" FROM "cab_units_fa_fp_series" WHERE "total_produced">19 AND "model"='fb-1';
## Task Generate a SQL query to answer the following question: `What is the specification of the locomotives with a total produced more than 19 and a model of fb-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cab_units_fa_fp_series" ( "model" text, "specification" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the specification of the locomotives with a total produced more than 19 and a model of fb-1?`: ```sql
SELECT "build_date" FROM "cab_units_fa_fp_series" WHERE "total_produced"<45 AND "model"='fb-2';
## Task Generate a SQL query to answer the following question: `What is the build date of the locomotives with a total produced less than 45 and a fb-2 model?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cab_units_fa_fp_series" ( "model" text, "specification" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the build date of the locomotives with a total produced less than 45 and a fb-2 model?`: ```sql
SELECT "prime_mover" FROM "cab_units_fa_fp_series" WHERE "model"='fa-2';
## Task Generate a SQL query to answer the following question: `What is the prime mover of the locomotive with a fa-2 model?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cab_units_fa_fp_series" ( "model" text, "specification" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the prime mover of the locomotive with a fa-2 model?`: ```sql
SELECT "build_date" FROM "cab_units_fa_fp_series" WHERE "model"='fa-2';
## Task Generate a SQL query to answer the following question: `What is the build date of the locomotive with a fa-2 model?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cab_units_fa_fp_series" ( "model" text, "specification" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the build date of the locomotive with a fa-2 model?`: ```sql
SELECT "region_served" FROM "main_transmitters" WHERE "transmitter_location"='mount sugarloaf';
## Task Generate a SQL query to answer the following question: `What region has a transmitter located at Mount Sugarloaf?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_transmitters" ( "region_served" text, "city" text, "channels_analog_digital" text, "first_air_date" text, "erp_analog_digital" text, "haat_analog_digital_1" text, "transmitter_location" text ); ### SQL Given the database schema, here is the SQL query that answers `What region has a transmitter located at Mount Sugarloaf?`: ```sql
SELECT "3rd_round" FROM "playoffs" WHERE "1st_round"='out of playoffs';
## Task Generate a SQL query to answer the following question: `Name the 3rd round for 1st eound of out of playoffs` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "season" text, "prelim" text, "1st_round" text, "2nd_round" text, "3rd_round" text, "finals" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 3rd round for 1st eound of out of playoffs`: ```sql
SELECT "finals" FROM "playoffs" WHERE "prelim"='out of playoffs';
## Task Generate a SQL query to answer the following question: `Name the finals for prelim of out of playoffs` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "season" text, "prelim" text, "1st_round" text, "2nd_round" text, "3rd_round" text, "finals" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the finals for prelim of out of playoffs`: ```sql
SELECT "2nd_round" FROM "playoffs" WHERE "1st_round"='l, 1–3, sjnb';
## Task Generate a SQL query to answer the following question: `Name the 2nd round for 1st round of l, 1–3, sjnb` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "season" text, "prelim" text, "1st_round" text, "2nd_round" text, "3rd_round" text, "finals" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 2nd round for 1st round of l, 1–3, sjnb`: ```sql
SELECT "music_director" FROM "notable_filmography" WHERE "film"='vettaiyaadu vilaiyaadu';
## Task Generate a SQL query to answer the following question: `Who is the musical director of the film Vettaiyaadu vilaiyaadu?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notable_filmography" ( "year" real, "song" text, "film" text, "language" text, "music_director" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the musical director of the film Vettaiyaadu vilaiyaadu?`: ```sql
SELECT "film" FROM "notable_filmography" WHERE "year"=2007 AND "language"='hindi' AND "music_director"='shantanu moitra';
## Task Generate a SQL query to answer the following question: `What is the 2007 film in Hindi with a music director Shantanu moitra?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notable_filmography" ( "year" real, "song" text, "film" text, "language" text, "music_director" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2007 film in Hindi with a music director Shantanu moitra?`: ```sql
SELECT COUNT("loss") FROM "winningest_coaches_by_wins" WHERE "coach"='john kowalski' AND "pts"<9;
## Task Generate a SQL query to answer the following question: `What is the number of losses that coach John Kowalski has with a PTS smaller than 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winningest_coaches_by_wins" ( "coach" text, "team" text, "wins" real, "loss" real, "pct" real, "pts" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of losses that coach John Kowalski has with a PTS smaller than 9?`: ```sql
SELECT AVG("pct") FROM "winningest_coaches_by_wins" WHERE "pts"<9 AND "wins">1;
## Task Generate a SQL query to answer the following question: `What is the average PCT when it has a PTS smaller than 9 a wins larger than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winningest_coaches_by_wins" ( "coach" text, "team" text, "wins" real, "loss" real, "pct" real, "pts" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average PCT when it has a PTS smaller than 9 a wins larger than 1?`: ```sql
SELECT SUM("pts") FROM "winningest_coaches_by_wins" WHERE "pct"<0.1;
## Task Generate a SQL query to answer the following question: `What is the sum of PTS when there is a PCT smaller than 0.1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winningest_coaches_by_wins" ( "coach" text, "team" text, "wins" real, "loss" real, "pct" real, "pts" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of PTS when there is a PCT smaller than 0.1?`: ```sql
SELECT "coach" FROM "winningest_coaches_by_wins" WHERE "pct">0.1 AND "pts">9 AND "loss"=19;
## Task Generate a SQL query to answer the following question: `What coach has a PCT larger than 0.1, PTS larger than 9 and a loss of 19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winningest_coaches_by_wins" ( "coach" text, "team" text, "wins" real, "loss" real, "pct" real, "pts" real ); ### SQL Given the database schema, here is the SQL query that answers `What coach has a PCT larger than 0.1, PTS larger than 9 and a loss of 19?`: ```sql
SELECT "name" FROM "semifinal_2" WHERE "rank">2 AND "nationality"='spain';
## Task Generate a SQL query to answer the following question: `What's the name of spain rank greater than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the name of spain rank greater than 2?`: ```sql
SELECT "time" FROM "semifinal_2" WHERE "lane"<4 AND "nationality"='spain';
## Task Generate a SQL query to answer the following question: `Spain had what time with lanes smaller than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Spain had what time with lanes smaller than 4?`: ```sql
SELECT MIN("rank") FROM "semifinal_2" WHERE "name"='noriko inada';
## Task Generate a SQL query to answer the following question: `What's the smallest rank of noriko inada?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the smallest rank of noriko inada?`: ```sql
SELECT COUNT("lost") FROM "ppl_2004_final_standings" WHERE "played">30;
## Task Generate a SQL query to answer the following question: `How many total losses have teams that played more than 30 games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ppl_2004_final_standings" ( "team" text, "played" real, "drawn" real, "lost" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many total losses have teams that played more than 30 games?`: ```sql
SELECT COUNT("rank") FROM "semifinal_2" WHERE "time"='2:15.98' AND "lane">7;
## Task Generate a SQL query to answer the following question: `What is the number of the rank when the time is 2:15.98, in a lane larger than 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of the rank when the time is 2:15.98, in a lane larger than 7?`: ```sql
SELECT COUNT("rank") FROM "semifinal_2" WHERE "name"='chen yan' AND "lane"<2;
## Task Generate a SQL query to answer the following question: `What is the number of the rank for the name of Chen Yan in a lane less than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of the rank for the name of Chen Yan in a lane less than 2?`: ```sql
SELECT MIN("lane") FROM "semifinal_2" WHERE "rank"=6;
## Task Generate a SQL query to answer the following question: `What is the smallest lane for rank 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest lane for rank 6?`: ```sql
SELECT COUNT("league_cup") FROM "goals" WHERE "total"<1;
## Task Generate a SQL query to answer the following question: `What's the total for a league cup less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "goals" ( "name" text, "league" real, "play_offs" real, "fa_cup" real, "league_cup" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the total for a league cup less than 1?`: ```sql
SELECT SUM("fa_cup") FROM "goals" WHERE "league"<1;
## Task Generate a SQL query to answer the following question: `What's the FA Cup that has a league less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "goals" ( "name" text, "league" real, "play_offs" real, "fa_cup" real, "league_cup" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the FA Cup that has a league less than 1?`: ```sql
SELECT MAX("villages") FROM "administrative_divisions" WHERE "hanzi"='南流乡' AND "population">'24,802';
## Task Generate a SQL query to answer the following question: `Which town has the most villages with the hanzi 南流乡 and a population larger than 24,802?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "administrative_divisions" ( "name" text, "hanzi" text, "area_km" real, "population" real, "villages" real ); ### SQL Given the database schema, here is the SQL query that answers `Which town has the most villages with the hanzi 南流乡 and a population larger than 24,802?`: ```sql
SELECT "pos" FROM "complete_24_hours_of_le_mans_results" WHERE "laps"=296;
## Task Generate a SQL query to answer the following question: `What position did lap 296 come in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text ); ### SQL Given the database schema, here is the SQL query that answers `What position did lap 296 come in?`: ```sql
SELECT "played" FROM "2008_2009_table" WHERE "try_bonus"='4' AND "points_against"='391';
## Task Generate a SQL query to answer the following question: `How many games did the Club that has a try bonus of 4 and 391 points against play ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); ### SQL Given the database schema, here is the SQL query that answers `How many games did the Club that has a try bonus of 4 and 391 points against play ?`: ```sql
SELECT "points_against" FROM "2008_2009_table" WHERE "played"='22' AND "club"='carmarthen athletic rfc';
## Task Generate a SQL query to answer the following question: `How many points against did Carmarthen Athletic RFC have when they played 22 games ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points against did Carmarthen Athletic RFC have when they played 22 games ?`: ```sql
SELECT "club" FROM "2008_2009_table" WHERE "lost"='10';
## Task Generate a SQL query to answer the following question: `Which club lost 10 games ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); ### SQL Given the database schema, here is the SQL query that answers `Which club lost 10 games ?`: ```sql
SELECT "points_for" FROM "2008_2009_table" WHERE "tries_for"='77';
## Task Generate a SQL query to answer the following question: `How many points for did the club that had 77 tries for have ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points for did the club that had 77 tries for have ?`: ```sql
SELECT "club" FROM "2008_2009_table" WHERE "try_bonus"='2';
## Task Generate a SQL query to answer the following question: `Which club has a try bonus of 2 ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); ### SQL Given the database schema, here is the SQL query that answers `Which club has a try bonus of 2 ?`: ```sql
SELECT MAX("attendance") FROM "regular_season" WHERE "date"='october 11';
## Task Generate a SQL query to answer the following question: `Name the most attendance for october 11` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most attendance for october 11`: ```sql
SELECT "visitor" FROM "regular_season" WHERE "date"='october 19';
## Task Generate a SQL query to answer the following question: `Name the visitor for october 19` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the visitor for october 19`: ```sql
SELECT MAX("year") FROM "dragon_laws_television_films" WHERE "series_title"='dragon laws ii: kidnapped';
## Task Generate a SQL query to answer the following question: `The highest year for the series titled dragon laws ii: kidnapped is what?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "dragon_laws_television_films" ( "year" real, "series_title" text, "chinese_title" text, "role" text, "channel" text ); ### SQL Given the database schema, here is the SQL query that answers `The highest year for the series titled dragon laws ii: kidnapped is what?`: ```sql
SELECT "role" FROM "dragon_laws_television_films" WHERE "series_title"='dragon laws i: the undercover';
## Task Generate a SQL query to answer the following question: `The series titled dragon laws i: the undercover has what role?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "dragon_laws_television_films" ( "year" real, "series_title" text, "chinese_title" text, "role" text, "channel" text ); ### SQL Given the database schema, here is the SQL query that answers `The series titled dragon laws i: the undercover has what role?`: ```sql
SELECT "athlete" FROM "paralympic_women" WHERE "fastest_time_s"=15.82;
## Task Generate a SQL query to answer the following question: `Which athlete has the fastest time of 15.82?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "paralympic_women" ( "classification" text, "fastest_time_s" real, "athlete" text, "country" text, "date" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which athlete has the fastest time of 15.82?`: ```sql
SELECT COUNT("year") FROM "complete_world_championship_formula_one_" WHERE "points">0;
## Task Generate a SQL query to answer the following question: `What is the total number of years that an entrant had more than 0 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of years that an entrant had more than 0 points?`: ```sql
SELECT COUNT("year") FROM "complete_formula_one_world_championship_" WHERE "engine"='brm straight-4';
## Task Generate a SQL query to answer the following question: `Name the total number of years for brm straight-4` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of years for brm straight-4`: ```sql
SELECT COUNT("points") FROM "complete_formula_one_world_championship_" WHERE "chassis"='bmw t269 (f2)';
## Task Generate a SQL query to answer the following question: `Name the total number of points for chassis of bmw t269 (f2)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of points for chassis of bmw t269 (f2)`: ```sql
SELECT MAX("promotions") FROM "appearances_through_the_2011_12_season" WHERE "team"='pallacanestro messina' AND "relegations">0;
## Task Generate a SQL query to answer the following question: `Whats the highest Promotions that has a Team of Pallacanestro Messina, along with Relegations larger than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances_through_the_2011_12_season" ( "seasons" real, "team" text, "ch_wins" real, "promotions" real, "relegations" real ); ### SQL Given the database schema, here is the SQL query that answers `Whats the highest Promotions that has a Team of Pallacanestro Messina, along with Relegations larger than 0?`: ```sql
SELECT MIN("points") FROM "complete_world_championship_formula_one_" WHERE "chassis"='zakspeed 841' AND "year"<1985;
## Task Generate a SQL query to answer the following question: `What are the lowest points with a Chassis of zakspeed 841, and a Year smaller than 1985?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "chassis" text, "engine_s" text, "tyres" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the lowest points with a Chassis of zakspeed 841, and a Year smaller than 1985?`: ```sql
SELECT MIN("year") FROM "complete_world_championship_formula_one_" WHERE "tyres"='g' AND "points"<0;
## Task Generate a SQL query to answer the following question: `What is the lowest year with tyres in g and less than 0 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "chassis" text, "engine_s" text, "tyres" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest year with tyres in g and less than 0 points?`: ```sql
SELECT "year" FROM "complete_world_championship_formula_one_" WHERE "engine_s"='yamaha v8';
## Task Generate a SQL query to answer the following question: `Which year has an Engine(s) of yamaha v8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "chassis" text, "engine_s" text, "tyres" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which year has an Engine(s) of yamaha v8?`: ```sql
SELECT AVG("points") FROM "complete_world_championship_formula_one_" WHERE "chassis"='zakspeed 881';
## Task Generate a SQL query to answer the following question: `What are the average points with a Chassis of zakspeed 881?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "chassis" text, "engine_s" text, "tyres" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the average points with a Chassis of zakspeed 881?`: ```sql
SELECT "league" FROM "minor_sports_teams" WHERE "venue"='martin luther king, jr. recreation center';
## Task Generate a SQL query to answer the following question: `Which League has a Venue of martin luther king, jr. recreation center?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "minor_sports_teams" ( "club" text, "sport" text, "league" text, "venue" text, "championships_years" text ); ### SQL Given the database schema, here is the SQL query that answers `Which League has a Venue of martin luther king, jr. recreation center?`: ```sql
SELECT "championships_years" FROM "minor_sports_teams" WHERE "league"='milb, florida state league' AND "venue"='ed smith stadium';
## Task Generate a SQL query to answer the following question: `Which Championships (Years) have a League of milb, florida state league, and a Venue of ed smith stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "minor_sports_teams" ( "club" text, "sport" text, "league" text, "venue" text, "championships_years" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Championships (Years) have a League of milb, florida state league, and a Venue of ed smith stadium?`: ```sql
SELECT "sport" FROM "minor_sports_teams" WHERE "league"='continental basketball league' AND "venue"='avalon middle school';
## Task Generate a SQL query to answer the following question: `Which Sport has a League of continental basketball league, and a Venue of avalon middle school?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "minor_sports_teams" ( "club" text, "sport" text, "league" text, "venue" text, "championships_years" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Sport has a League of continental basketball league, and a Venue of avalon middle school?`: ```sql
SELECT "venue" FROM "minor_sports_teams" WHERE "sport"='baseball' AND "championships_years"='0' AND "league"='milb, florida state league' AND "club"='jupiter hammerheads';
## Task Generate a SQL query to answer the following question: `Which Venue has a Sport of baseball, Championships (Years) of 0, a League of milb, florida state league, and a Club of jupiter hammerheads?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "minor_sports_teams" ( "club" text, "sport" text, "league" text, "venue" text, "championships_years" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Venue has a Sport of baseball, Championships (Years) of 0, a League of milb, florida state league, and a Club of jupiter hammerheads?`: ```sql
SELECT "club" FROM "minor_sports_teams" WHERE "league"='american basketball association' AND "venue"='tba';
## Task Generate a SQL query to answer the following question: `Which club has a League of american basketball association, and a Venue of tba?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "minor_sports_teams" ( "club" text, "sport" text, "league" text, "venue" text, "championships_years" text ); ### SQL Given the database schema, here is the SQL query that answers `Which club has a League of american basketball association, and a Venue of tba?`: ```sql
SELECT "area" FROM "hurunui_district" WHERE "years"='1–8' AND "decile"<7 AND "name"='waikari school';
## Task Generate a SQL query to answer the following question: `Which area has Years of 1–8, a Decile smaller than 7, and a Name of waikari school?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hurunui_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); ### SQL Given the database schema, here is the SQL query that answers `Which area has Years of 1–8, a Decile smaller than 7, and a Name of waikari school?`: ```sql
SELECT AVG("decile") FROM "hurunui_district" WHERE "years"='1–8' AND "area"='waipara';
## Task Generate a SQL query to answer the following question: `What is the average decile with Years of 1–8, and an Area of waipara?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hurunui_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average decile with Years of 1–8, and an Area of waipara?`: ```sql
SELECT "area" FROM "hurunui_district" WHERE "years"='1–8' AND "name"='broomfield school';
## Task Generate a SQL query to answer the following question: `Which area has Years of 1–8, and a Name of broomfield school?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hurunui_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); ### SQL Given the database schema, here is the SQL query that answers `Which area has Years of 1–8, and a Name of broomfield school?`: ```sql
SELECT MIN("roll") FROM "hurunui_district" WHERE "decile">6 AND "name"='broomfield school';
## Task Generate a SQL query to answer the following question: `What is the smallest roll with a Decile larger than 6, and a Name of broomfield school?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hurunui_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest roll with a Decile larger than 6, and a Name of broomfield school?`: ```sql
SELECT "name" FROM "hurunui_district" WHERE "roll"=270;
## Task Generate a SQL query to answer the following question: `Which name has a Roll of 270?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hurunui_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); ### SQL Given the database schema, here is the SQL query that answers `Which name has a Roll of 270?`: ```sql
SELECT "directed_by" FROM "season_1_2007_2009" WHERE "written_by"='dan serafin' AND "original_airdate"='july 23, 2008';
## Task Generate a SQL query to answer the following question: `Who directed the episode written by Dan Serafin and aired on July 23, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1_2007_2009" ( "prod_no" text, "title" text, "written_by" text, "directed_by" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode written by Dan Serafin and aired on July 23, 2008?`: ```sql
SELECT "title" FROM "season_1_2007_2009" WHERE "original_airdate"='february 2, 2008';
## Task Generate a SQL query to answer the following question: `What is the title of the episode originally aired on February 2, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1_2007_2009" ( "prod_no" text, "title" text, "written_by" text, "directed_by" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title of the episode originally aired on February 2, 2008?`: ```sql
SELECT "money_requested" FROM "series_3" WHERE "entrepreneur_s"='james seddon';
## Task Generate a SQL query to answer the following question: `How much money did James Seddon request?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_3" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text ); ### SQL Given the database schema, here is the SQL query that answers `How much money did James Seddon request?`: ```sql
SELECT "entrepreneur_s" FROM "series_3" WHERE "first_aired"='24 august 2006';
## Task Generate a SQL query to answer the following question: `Which Entrepreneur(s) first aired on 24 August 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_3" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Entrepreneur(s) first aired on 24 August 2006?`: ```sql
SELECT "entrepreneur_s" FROM "series_3" WHERE "company_or_product_name"='mixalbum';
## Task Generate a SQL query to answer the following question: `Which Entrepreneur(s) have mixalbum?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_3" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Entrepreneur(s) have mixalbum?`: ```sql
SELECT "money_requested" FROM "series_3" WHERE "entrepreneur_s"='ian chamings';
## Task Generate a SQL query to answer the following question: `How much money did Ian Chamings request?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_3" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text ); ### SQL Given the database schema, here is the SQL query that answers `How much money did Ian Chamings request?`: ```sql
SELECT "investing_dragon_s" FROM "series_3" WHERE "money_requested"='100,000' AND "company_or_product_name"='autosafe';
## Task Generate a SQL query to answer the following question: `Which Investing Dragon(s) requested 100,000 in money and has autosafe?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_3" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Investing Dragon(s) requested 100,000 in money and has autosafe?`: ```sql
SELECT "height_of_bridge_structure" FROM "completed" WHERE "opened"<2011 AND "name"='anqing bridge';
## Task Generate a SQL query to answer the following question: `How tall is the Anqing Bridge which opened prior to 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "completed" ( "name" text, "height_of_bridge_structure" text, "longest_span" text, "type" text, "opened" real, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `How tall is the Anqing Bridge which opened prior to 2011?`: ```sql
SELECT "location" FROM "completed" WHERE "type"='cable-stayed' AND "opened"=2005 AND "name"='badong bridge';
## Task Generate a SQL query to answer the following question: `Where did the cable-stayed Badong Bridge open in 2005?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "completed" ( "name" text, "height_of_bridge_structure" text, "longest_span" text, "type" text, "opened" real, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Where did the cable-stayed Badong Bridge open in 2005?`: ```sql
SELECT AVG("year") FROM "list_of_silpathorn_award_winners" WHERE "performing_arts"='janaprakal chandruang';
## Task Generate a SQL query to answer the following question: `Name the average year for janaprakal chandruang` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_silpathorn_award_winners" ( "year" real, "literature" text, "music" text, "film" text, "performing_arts" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the average year for janaprakal chandruang`: ```sql
SELECT "literature" FROM "list_of_silpathorn_award_winners" WHERE "performing_arts"='pradit prasarttong';
## Task Generate a SQL query to answer the following question: `Name the literature for pradit prasarttong` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_silpathorn_award_winners" ( "year" real, "literature" text, "music" text, "film" text, "performing_arts" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the literature for pradit prasarttong`: ```sql
SELECT MIN("year") FROM "main_event_winners" WHERE "runner_up"='fabrice soulier';
## Task Generate a SQL query to answer the following question: `What was the first year Fabrice Soulier was a runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_event_winners" ( "year" real, "winner" text, "winning_hand" text, "prize_money" text, "entrants" real, "runner_up" text, "losing_hand" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the first year Fabrice Soulier was a runner-up?`: ```sql
SELECT COUNT("entrants") FROM "main_event_winners" WHERE "year"=2011;
## Task Generate a SQL query to answer the following question: `How many entrants were there in 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_event_winners" ( "year" real, "winner" text, "winning_hand" text, "prize_money" text, "entrants" real, "runner_up" text, "losing_hand" text ); ### SQL Given the database schema, here is the SQL query that answers `How many entrants were there in 2011?`: ```sql
SELECT "rank" FROM "indy_500_results" WHERE "laps"=1059;
## Task Generate a SQL query to answer the following question: `What was the rank of Bobby Grim when he finished 1059 laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the rank of Bobby Grim when he finished 1059 laps?`: ```sql
SELECT "rd_time" FROM "professional_boxing_record" WHERE "res"='win' AND "type"='tko' AND "opponent"='carlos molina';
## Task Generate a SQL query to answer the following question: `What is the rd., time of the match with a win result, a tko type, and Carlos Molina as the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_boxing_record" ( "res" text, "record" text, "opponent" text, "type" text, "rd_time" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the rd., time of the match with a win result, a tko type, and Carlos Molina as the opponent?`: ```sql
SELECT "record" FROM "professional_boxing_record" WHERE "date"='2009-07-18';
## Task Generate a SQL query to answer the following question: `What is the record of the match on 2009-07-18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_boxing_record" ( "res" text, "record" text, "opponent" text, "type" text, "rd_time" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the record of the match on 2009-07-18?`: ```sql
SELECT "type" FROM "professional_boxing_record" WHERE "res"='win' AND "opponent"='michael gomez';
## Task Generate a SQL query to answer the following question: `What is the type of the match with a win result and Michael Gomez as the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_boxing_record" ( "res" text, "record" text, "opponent" text, "type" text, "rd_time" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the type of the match with a win result and Michael Gomez as the opponent?`: ```sql
SELECT "goals" FROM "internationally_capped_players" WHERE "caps"=48;
## Task Generate a SQL query to answer the following question: `What were the goals when the caps were set at 48?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "internationally_capped_players" ( "player" text, "country" text, "caps" real, "goals" text, "years_active" text ); ### SQL Given the database schema, here is the SQL query that answers `What were the goals when the caps were set at 48?`: ```sql
SELECT "caps" FROM "internationally_capped_players" WHERE "player"='mile sterjovski';
## Task Generate a SQL query to answer the following question: `How many caps did the player Mile Sterjovski have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "internationally_capped_players" ( "player" text, "country" text, "caps" real, "goals" text, "years_active" text ); ### SQL Given the database schema, here is the SQL query that answers `How many caps did the player Mile Sterjovski have?`: ```sql
SELECT "goals" FROM "internationally_capped_players" WHERE "player"='mile sterjovski';
## Task Generate a SQL query to answer the following question: `What are the goals of Mile Sterjovski as a player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "internationally_capped_players" ( "player" text, "country" text, "caps" real, "goals" text, "years_active" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the goals of Mile Sterjovski as a player?`: ```sql
SELECT COUNT("caps") FROM "internationally_capped_players" WHERE "player"='mitchell duke';
## Task Generate a SQL query to answer the following question: `How many caps did Mitchell Duke have overall?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "internationally_capped_players" ( "player" text, "country" text, "caps" real, "goals" text, "years_active" text ); ### SQL Given the database schema, here is the SQL query that answers `How many caps did Mitchell Duke have overall?`: ```sql
SELECT "opponent" FROM "fa_cup" WHERE "date"='16 february 2003';
## Task Generate a SQL query to answer the following question: `Which opponent has a Date of 16 february 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fa_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text ); ### SQL Given the database schema, here is the SQL query that answers `Which opponent has a Date of 16 february 2003?`: ```sql
SELECT "date" FROM "fa_cup" WHERE "venue"='a' AND "opponent"='stoke city';
## Task Generate a SQL query to answer the following question: `Which date has an A venue with an Opponent of stoke city?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fa_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text ); ### SQL Given the database schema, here is the SQL query that answers `Which date has an A venue with an Opponent of stoke city?`: ```sql
SELECT "opponent" FROM "fa_cup" WHERE "round"='r5';
## Task Generate a SQL query to answer the following question: `Which opponent has a Round of r5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fa_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text ); ### SQL Given the database schema, here is the SQL query that answers `Which opponent has a Round of r5?`: ```sql
SELECT "scorers" FROM "fa_cup" WHERE "venue"='a' AND "opponent"='arsenal';
## Task Generate a SQL query to answer the following question: `Which Scorers have a Venue of A, and an Opponent of arsenal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fa_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Scorers have a Venue of A, and an Opponent of arsenal?`: ```sql
SELECT "opponent" FROM "fa_cup" WHERE "round"='qf replay';
## Task Generate a SQL query to answer the following question: `Which Opponent has a Round of qf replay?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fa_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Opponent has a Round of qf replay?`: ```sql
SELECT "loss" FROM "game_log" WHERE "date"='april 6';
## Task Generate a SQL query to answer the following question: `Who took the loss on the April 6 game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who took the loss on the April 6 game?`: ```sql
SELECT "record" FROM "game_log" WHERE "date"='april 15';
## Task Generate a SQL query to answer the following question: `What was the record after the April 15 game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record after the April 15 game?`: ```sql
SELECT "opponent" FROM "game_log" WHERE "record"='10-13';
## Task Generate a SQL query to answer the following question: `Who was the opponent that led to a 10-13 record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent that led to a 10-13 record?`: ```sql
SELECT "record" FROM "game_log" WHERE "date"='april 6';
## Task Generate a SQL query to answer the following question: `What is the record after the April 6 game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the record after the April 6 game?`: ```sql
SELECT "score" FROM "game_log" WHERE "date"='april 12';
## Task Generate a SQL query to answer the following question: `What was the score for the April 12 game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score for the April 12 game?`: ```sql
SELECT MAX("wins") FROM "final_standing" WHERE "goals_for"=18 AND "losses"<5;
## Task Generate a SQL query to answer the following question: `What team has the most wins with at least 18 goals and less than 5 losses?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real ); ### SQL Given the database schema, here is the SQL query that answers `What team has the most wins with at least 18 goals and less than 5 losses?`: ```sql
SELECT COUNT("losses") FROM "final_standing" WHERE "team"='cornwall hc' AND "goals_for">18;
## Task Generate a SQL query to answer the following question: `How many times has the Cornwall HC team, that has scored more than 18 goals, lost ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real ); ### SQL Given the database schema, here is the SQL query that answers `How many times has the Cornwall HC team, that has scored more than 18 goals, lost ?`: ```sql