output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "catalog" FROM "release_history" WHERE "format"='cd';
## Task Generate a SQL query to answer the following question: `Name the catalog with cd format` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text, "note" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the catalog with cd format`: ```sql
SELECT "label" FROM "release_history" WHERE "catalog"='mhcl-20005';
## Task Generate a SQL query to answer the following question: `Name the label with catalog of mhcl-20005` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text, "note" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the label with catalog of mhcl-20005`: ```sql
SELECT "date" FROM "release_history" WHERE "catalog"='alca-9198';
## Task Generate a SQL query to answer the following question: `Name the date with catalog of alca-9198` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text, "note" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the date with catalog of alca-9198`: ```sql
SELECT "note" FROM "release_history" WHERE "catalog"='32xa-106';
## Task Generate a SQL query to answer the following question: `Name the note for catalog of 32xa-106` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text, "note" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the note for catalog of 32xa-106`: ```sql
SELECT "catalog" FROM "release_history" WHERE "label"='alfa records' AND "format"='cd';
## Task Generate a SQL query to answer the following question: `Name the catalog for alfa records and cd format` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text, "note" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the catalog for alfa records and cd format`: ```sql
SELECT "format" FROM "release_history" WHERE "note"='12cm' AND "catalog"='alca-9198';
## Task Generate a SQL query to answer the following question: `Name the format for 12cm note and catalog of alca-9198` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text, "note" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the format for 12cm note and catalog of alca-9198`: ```sql
SELECT "monday_mona_m_ni" FROM "germanic_tradition" WHERE "thursday_thunor_thor"='tongersdei';
## Task Generate a SQL query to answer the following question: `Which Monday Mona/Mani also had a Thursday Thunor/Thor of Tongersdei?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "germanic_tradition" ( "sunday_sunna_s_l" text, "monday_mona_m_ni" text, "tuesday_tiw_tyr" text, "wednesday_woden_odin" text, "thursday_thunor_thor" text, "friday_frige_or_freya" text, "saturday_saturn" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Monday Mona/Mani also had a Thursday Thunor/Thor of Tongersdei?`: ```sql
SELECT "tuesday_tiw_tyr" FROM "germanic_tradition" WHERE "sunday_sunna_s_l"='sondag';
## Task Generate a SQL query to answer the following question: `Which Tuesday Tiw/Tyr has a Sunday Sunna/Sol of sondag?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "germanic_tradition" ( "sunday_sunna_s_l" text, "monday_mona_m_ni" text, "tuesday_tiw_tyr" text, "wednesday_woden_odin" text, "thursday_thunor_thor" text, "friday_frige_or_freya" text, "saturday_saturn" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Tuesday Tiw/Tyr has a Sunday Sunna/Sol of sondag?`: ```sql
SELECT "album" FROM "christmas_number_ones" WHERE "year"=1995;
## Task Generate a SQL query to answer the following question: `What is the 1995 Album?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "christmas_number_ones" ( "year" real, "artist" text, "album" text, "record_label" text, "weeks_at_number_one" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1995 Album?`: ```sql
SELECT "album" FROM "christmas_number_ones" WHERE "record_label"='rca';
## Task Generate a SQL query to answer the following question: `What album was recorded by the rca label?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "christmas_number_ones" ( "year" real, "artist" text, "album" text, "record_label" text, "weeks_at_number_one" real ); ### SQL Given the database schema, here is the SQL query that answers `What album was recorded by the rca label?`: ```sql
SELECT COUNT("year") FROM "christmas_number_ones" WHERE "artist"='queen' AND "weeks_at_number_one"<1;
## Task Generate a SQL query to answer the following question: `What's the sum of years when the Artist of the queen were less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "christmas_number_ones" ( "year" real, "artist" text, "album" text, "record_label" text, "weeks_at_number_one" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the sum of years when the Artist of the queen were less than 1?`: ```sql
SELECT "album" FROM "christmas_number_ones" WHERE "year"=1990;
## Task Generate a SQL query to answer the following question: `What is the 1990 Album?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "christmas_number_ones" ( "year" real, "artist" text, "album" text, "record_label" text, "weeks_at_number_one" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1990 Album?`: ```sql
SELECT "result" FROM "schedule" WHERE "game_site"='soldier field';
## Task Generate a SQL query to answer the following question: `What is the result of the game that was played at Soldier Field?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the result of the game that was played at Soldier Field?`: ```sql
SELECT "loss" FROM "game_log" WHERE "record"='20-13';
## Task Generate a SQL query to answer the following question: `Who lost the game with a record of 20-13?` ### 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, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who lost the game with a record of 20-13?`: ```sql
SELECT "loss" FROM "game_log" WHERE "date"='may 28';
## Task Generate a SQL query to answer the following question: `Who lost the game on May 28?` ### 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, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who lost the game on May 28?`: ```sql
SELECT "loss" FROM "game_log" WHERE "date"='may 26';
## Task Generate a SQL query to answer the following question: `Who lost the game on May 26?` ### 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, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who lost the game on May 26?`: ```sql
SELECT "record" FROM "game_log" WHERE "time"='3:01';
## Task Generate a SQL query to answer the following question: `Which date has the record time of 3:01?` ### 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, "time" text, "att" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which date has the record time of 3:01?`: ```sql
SELECT "score" FROM "game_log" WHERE "opponent"='devil rays' AND "date"='april 24';
## Task Generate a SQL query to answer the following question: `What is the score of the Devil Rays on April 24?` ### 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, "time" text, "att" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the Devil Rays on April 24?`: ```sql
SELECT "transmittance_contrast_ratio" FROM "hitachi_ips_technology_development" WHERE "name"='ips-provectus';
## Task Generate a SQL query to answer the following question: `What is Ips-provectus transmittance/contrast ratio?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hitachi_ips_technology_development" ( "name" text, "nickname" text, "year" real, "advantage" text, "transmittance_contrast_ratio" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Ips-provectus transmittance/contrast ratio?`: ```sql
SELECT AVG("silver") FROM "sporting_events" WHERE "rank"<8 AND "total"=12 AND "bronze"<4;
## Task Generate a SQL query to answer the following question: `What is the average silver for a rank less than 8, were there were no more than 4 bronze and 12 in total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sporting_events" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average silver for a rank less than 8, were there were no more than 4 bronze and 12 in total?`: ```sql
SELECT SUM("gold") FROM "sporting_events" WHERE "total"<7 AND "nation"='gabon' AND "rank"<17;
## Task Generate a SQL query to answer the following question: `How many gold did Gabon have when they were ranked no higher than 17, and less than 7 in total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sporting_events" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many gold did Gabon have when they were ranked no higher than 17, and less than 7 in total?`: ```sql
SELECT "opponent" FROM "game_log" WHERE "date"='april 24';
## Task Generate a SQL query to answer the following question: `Name the opponent for april 24` ### 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, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the opponent for april 24`: ```sql
SELECT "score" FROM "game_log" WHERE "attendance"='13,617';
## Task Generate a SQL query to answer the following question: `Name the score for attendance of 13,617` ### 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, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the score for attendance of 13,617`: ```sql
SELECT "opponent" FROM "game_log" WHERE "score"='postponed (rain) not rescheduled';
## Task Generate a SQL query to answer the following question: `Name the opponent for Score of postponed (rain) not rescheduled` ### 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, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the opponent for Score of postponed (rain) not rescheduled`: ```sql
SELECT "h_s_asst_principal" FROM "district_administration" WHERE "glendale_principal"='joyce brace' AND "year"='2002-2003';
## Task Generate a SQL query to answer the following question: `What is the H.S. Asst. principal with a Glendale principal Joyce Brace during 2002-2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "district_administration" ( "year" text, "superintendent" text, "glendale_principal" text, "h_h_principal" text, "maplemere_principal" text, "w_r_principal" text, "m_s_principal" text, "h_s_principal" text, "h_s_asst_principal" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the H.S. Asst. principal with a Glendale principal Joyce Brace during 2002-2003?`: ```sql
SELECT "h_s_principal" FROM "district_administration" WHERE "w_r_principal"='dave lovering' AND "m_s_principal"='marty pizur';
## Task Generate a SQL query to answer the following question: `Who is the h.s. principal with Dave Lovering as w.r. principal and Marty Pizur as m.s. principal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "district_administration" ( "year" text, "superintendent" text, "glendale_principal" text, "h_h_principal" text, "maplemere_principal" text, "w_r_principal" text, "m_s_principal" text, "h_s_principal" text, "h_s_asst_principal" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the h.s. principal with Dave Lovering as w.r. principal and Marty Pizur as m.s. principal?`: ```sql
SELECT "glendale_principal" FROM "district_administration" WHERE "m_s_principal"='greg smorel' AND "h_s_principal"='joleen reinholz' AND "year"='2006-2007';
## Task Generate a SQL query to answer the following question: `Who is the Glendale principal with Greg Smorel as m.s. principal and Joleen Reinholz as H.S. principal during 2006-2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "district_administration" ( "year" text, "superintendent" text, "glendale_principal" text, "h_h_principal" text, "maplemere_principal" text, "w_r_principal" text, "m_s_principal" text, "h_s_principal" text, "h_s_asst_principal" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the Glendale principal with Greg Smorel as m.s. principal and Joleen Reinholz as H.S. principal during 2006-2007?`: ```sql
SELECT "h_h_principal" FROM "district_administration" WHERE "h_s_principal"='jim haught' AND "maplemere_principal"='charlie taylor' AND "w_r_principal"='rich auerbach';
## Task Generate a SQL query to answer the following question: `Who is the h.h. principal with Jim Haught as h.s. principal, Charlie Taylor as maplemere principal, and Rich Auerbach as w.r. principal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "district_administration" ( "year" text, "superintendent" text, "glendale_principal" text, "h_h_principal" text, "maplemere_principal" text, "w_r_principal" text, "m_s_principal" text, "h_s_principal" text, "h_s_asst_principal" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the h.h. principal with Jim Haught as h.s. principal, Charlie Taylor as maplemere principal, and Rich Auerbach as w.r. principal?`: ```sql
SELECT "h_h_principal" FROM "district_administration" WHERE "superintendent"='james finch' AND "maplemere_principal"='charlie taylor';
## Task Generate a SQL query to answer the following question: `Who is the h.h. principal with James Finch as the superintendent and Charlie Taylor as the maplemere principal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "district_administration" ( "year" text, "superintendent" text, "glendale_principal" text, "h_h_principal" text, "maplemere_principal" text, "w_r_principal" text, "m_s_principal" text, "h_s_principal" text, "h_s_asst_principal" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the h.h. principal with James Finch as the superintendent and Charlie Taylor as the maplemere principal?`: ```sql
SELECT "h_s_principal" FROM "district_administration" WHERE "year"='1973-1974';
## Task Generate a SQL query to answer the following question: `Who is the h.s. principal during 1973-1974?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "district_administration" ( "year" text, "superintendent" text, "glendale_principal" text, "h_h_principal" text, "maplemere_principal" text, "w_r_principal" text, "m_s_principal" text, "h_s_principal" text, "h_s_asst_principal" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the h.s. principal during 1973-1974?`: ```sql
SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "year"<1959 AND "points">4;
## Task Generate a SQL query to answer the following question: `what is the engine for year less than 1959 and points more than 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 `what is the engine for year less than 1959 and points more than 4?`: ```sql
SELECT MIN("year") FROM "complete_formula_one_world_championship_" WHERE "points"=4;
## Task Generate a SQL query to answer the following question: `what is the least year for 4 points?` ### 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 `what is the least year for 4 points?`: ```sql
SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "engine"='ferrari v8' AND "points"<4;
## Task Generate a SQL query to answer the following question: `what is the entrant for the ferrari v8 with points less than 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 `what is the entrant for the ferrari v8 with points less than 4?`: ```sql
SELECT AVG("year") FROM "complete_formula_one_world_championship_" WHERE "points"=0 AND "engine"='ferrari v8';
## Task Generate a SQL query to answer the following question: `what is the average year for 0 points and ferrari v8?` ### 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 `what is the average year for 0 points and ferrari v8?`: ```sql
SELECT "launched" FROM "broadcast_rights" WHERE "territory"='singapore' AND "channel"=83;
## Task Generate a SQL query to answer the following question: `When did channel 83 in singapore launch?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcast_rights" ( "territory" text, "broadcaster" text, "channel" real, "launched" text, "closed" text ); ### SQL Given the database schema, here is the SQL query that answers `When did channel 83 in singapore launch?`: ```sql
SELECT "territory" FROM "broadcast_rights" WHERE "channel"=83;
## Task Generate a SQL query to answer the following question: `Where is channel 83 broadcasted?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcast_rights" ( "territory" text, "broadcaster" text, "channel" real, "launched" text, "closed" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is channel 83 broadcasted?`: ```sql
SELECT "broadcaster" FROM "broadcast_rights" WHERE "territory"='malaysia';
## Task Generate a SQL query to answer the following question: `Who broadcasts in malaysia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcast_rights" ( "territory" text, "broadcaster" text, "channel" real, "launched" text, "closed" text ); ### SQL Given the database schema, here is the SQL query that answers `Who broadcasts in malaysia?`: ```sql
SELECT "engine_s" FROM "complete_formula_one_results" WHERE "year"=1983;
## Task Generate a SQL query to answer the following question: `What are the engines for 1983?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_results" ( "year" real, "chassis" text, "engine_s" text, "tyres" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the engines for 1983?`: ```sql
SELECT "chassis" FROM "complete_formula_one_results" WHERE "tyres"='g' AND "year">1976 AND "points"='1';
## Task Generate a SQL query to answer the following question: `Which of the Chassis has Tyres of g, is after 1976, and has 1 point?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_results" ( "year" real, "chassis" text, "engine_s" text, "tyres" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `Which of the Chassis has Tyres of g, is after 1976, and has 1 point?`: ```sql
SELECT "appearances" FROM "most_goals" WHERE "goals"<30 AND "name"='gary depalma';
## Task Generate a SQL query to answer the following question: `How many appearances did Gary Depalma make when he scored less than 30 goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_goals" ( "name" text, "nation" text, "career" text, "goals" real, "appearances" real ); ### SQL Given the database schema, here is the SQL query that answers `How many appearances did Gary Depalma make when he scored less than 30 goals?`: ```sql
SELECT "intergiro_classification" FROM "classification_leadership_by_stage" WHERE "trofeo_fast_team"='asics-c.g.a.' AND "stage"='13';
## Task Generate a SQL query to answer the following question: `In stage 13, what is the intergiro classification and is on the team of Asics-c.g.a.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "intergiro_classification" text, "trofeo_fast_team" text ); ### SQL Given the database schema, here is the SQL query that answers `In stage 13, what is the intergiro classification and is on the team of Asics-c.g.a.?`: ```sql
SELECT "intergiro_classification" FROM "classification_leadership_by_stage" WHERE "trofeo_fast_team"='team polti' AND "stage"='14';
## Task Generate a SQL query to answer the following question: `Which intergiro classification is there for team Polti at stage 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "intergiro_classification" text, "trofeo_fast_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which intergiro classification is there for team Polti at stage 14?`: ```sql
SELECT "winner" FROM "classification_leadership_by_stage" WHERE "general_classification"='pavel tonkov' AND "stage"='7';
## Task Generate a SQL query to answer the following question: `Who was the winner in stage 7 with a general classification of Pavel Tonkov?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "intergiro_classification" text, "trofeo_fast_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the winner in stage 7 with a general classification of Pavel Tonkov?`: ```sql
SELECT "winner" FROM "classification_leadership_by_stage" WHERE "trofeo_fast_team"='asics-c.g.a.' AND "mountains_classification"='mariano piccoli';
## Task Generate a SQL query to answer the following question: `Who was the winner from team Asics-c.g.a. and has a mountains classification of Mariano Piccoli?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "intergiro_classification" text, "trofeo_fast_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the winner from team Asics-c.g.a. and has a mountains classification of Mariano Piccoli?`: ```sql
SELECT "points_classification" FROM "classification_leadership_by_stage" WHERE "stage"='15';
## Task Generate a SQL query to answer the following question: `Which points classification was used in stage 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "intergiro_classification" text, "trofeo_fast_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which points classification was used in stage 15?`: ```sql
SELECT "winner" FROM "classification_leadership_by_stage" WHERE "mountains_classification"='not awarded' AND "stage"='1';
## Task Generate a SQL query to answer the following question: `Which winner of stage 1 was not awarded a mountains classification?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "intergiro_classification" text, "trofeo_fast_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which winner of stage 1 was not awarded a mountains classification?`: ```sql
SELECT "muzzle_device" FROM "ar_series_models" WHERE "barrel_twist"='1:10';
## Task Generate a SQL query to answer the following question: `Name the muzzel device with barrel twist of 1:10` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ar_series_models" ( "colt_model_no" text, "name" text, "stock" text, "fire_control" text, "rear_sight" text, "forward_assist" text, "case_deflector" text, "barrel_length" text, "barrel_profile" text, "barrel_twist" text, "hand_guards" text, "bayonet_lug" text, "muzzle_device" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the muzzel device with barrel twist of 1:10`: ```sql
SELECT "bayonet_lug" FROM "ar_series_models" WHERE "name"='ar-15 lightweight';
## Task Generate a SQL query to answer the following question: `Name the bayonet lug with ar-15 lightweight` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ar_series_models" ( "colt_model_no" text, "name" text, "stock" text, "fire_control" text, "rear_sight" text, "forward_assist" text, "case_deflector" text, "barrel_length" text, "barrel_profile" text, "barrel_twist" text, "hand_guards" text, "bayonet_lug" text, "muzzle_device" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the bayonet lug with ar-15 lightweight`: ```sql
SELECT "hand_guards" FROM "ar_series_models" WHERE "name"='ar-15a2 government carbine' AND "barrel_twist"='1:9';
## Task Generate a SQL query to answer the following question: `Name the hand guards for ar-15a2 government carbine and barrel twist of 1:9` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ar_series_models" ( "colt_model_no" text, "name" text, "stock" text, "fire_control" text, "rear_sight" text, "forward_assist" text, "case_deflector" text, "barrel_length" text, "barrel_profile" text, "barrel_twist" text, "hand_guards" text, "bayonet_lug" text, "muzzle_device" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the hand guards for ar-15a2 government carbine and barrel twist of 1:9`: ```sql
SELECT "barrel_length" FROM "ar_series_models" WHERE "barrel_twist"='1:7';
## Task Generate a SQL query to answer the following question: `Name the barrel length for barrel twist of 1:7` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ar_series_models" ( "colt_model_no" text, "name" text, "stock" text, "fire_control" text, "rear_sight" text, "forward_assist" text, "case_deflector" text, "barrel_length" text, "barrel_profile" text, "barrel_twist" text, "hand_guards" text, "bayonet_lug" text, "muzzle_device" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the barrel length for barrel twist of 1:7`: ```sql
SELECT "three_mora_word" FROM "kyoto_osaka_keihan_type" WHERE "accented_mora"='low tone' AND "one_mora"='2';
## Task Generate a SQL query to answer the following question: `What is the three-mora word with a low tone accented mora and a one mora of 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kyoto_osaka_keihan_type" ( "accented_mora" text, "one_mora" text, "two_mora_word" text, "three_mora_word" text, "gloss" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the three-mora word with a low tone accented mora and a one mora of 2?`: ```sql
SELECT "one_mora" FROM "kyoto_osaka_keihan_type" WHERE "three_mora_word"='/kaze/ [kázé]';
## Task Generate a SQL query to answer the following question: `What is the one mora for the three-mora word /kaze/ [kázé]?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kyoto_osaka_keihan_type" ( "accented_mora" text, "one_mora" text, "two_mora_word" text, "three_mora_word" text, "gloss" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the one mora for the three-mora word /kaze/ [kázé]?`: ```sql
SELECT "one_mora" FROM "kyoto_osaka_keihan_type" WHERE "three_mora_word"='/˩haruꜜ/ [hàɽɯ́ ~ hàɽɯ̂]';
## Task Generate a SQL query to answer the following question: `What is the one mora for the three-mora word /˩haruꜜ/ [hàɽɯ́ ~ hàɽɯ̂]?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kyoto_osaka_keihan_type" ( "accented_mora" text, "one_mora" text, "two_mora_word" text, "three_mora_word" text, "gloss" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the one mora for the three-mora word /˩haruꜜ/ [hàɽɯ́ ~ hàɽɯ̂]?`: ```sql
SELECT "two_mora_word" FROM "kyoto_osaka_keihan_type" WHERE "accented_mora"='low tone' AND "gloss"='/˩kusuꜜri/ [kɯ̀sɯ́ɽì]';
## Task Generate a SQL query to answer the following question: `What is the two-mora word with a low tone accented mora and a gloss of /˩kusuꜜri/ [kɯ̀sɯ́ɽì]?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kyoto_osaka_keihan_type" ( "accented_mora" text, "one_mora" text, "two_mora_word" text, "three_mora_word" text, "gloss" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the two-mora word with a low tone accented mora and a gloss of /˩kusuꜜri/ [kɯ̀sɯ́ɽì]?`: ```sql
SELECT "one_mora" FROM "kyoto_osaka_keihan_type" WHERE "accented_mora"='low tone' AND "gloss"='/˩okiru/ [òkìɽɯ́]';
## Task Generate a SQL query to answer the following question: `What is the one mora for a low tone mora with a gloss of /˩okiru/ [òkìɽɯ́]?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kyoto_osaka_keihan_type" ( "accented_mora" text, "one_mora" text, "two_mora_word" text, "three_mora_word" text, "gloss" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the one mora for a low tone mora with a gloss of /˩okiru/ [òkìɽɯ́]?`: ```sql
SELECT MAX("total_medals") FROM "percussion_independent_a_class" WHERE "gold_medals"=0 AND "ensemble"='east 80 indoor percussion';
## Task Generate a SQL query to answer the following question: `What is the highest Total Medals that has 0 Gold Medal and a Ensemble of east 80 indoor percussion?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "percussion_independent_a_class" ( "ensemble" text, "gold_medals" real, "silver_medals" real, "bronze_medals" real, "total_medals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest Total Medals that has 0 Gold Medal and a Ensemble of east 80 indoor percussion?`: ```sql
SELECT MIN("total_medals") FROM "percussion_independent_a_class" WHERE "ensemble"='madison independent' AND "bronze_medals">0;
## Task Generate a SQL query to answer the following question: `What is the lowest Total Medals that has madison independent and Bronze Medals larger than 0` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "percussion_independent_a_class" ( "ensemble" text, "gold_medals" real, "silver_medals" real, "bronze_medals" real, "total_medals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Total Medals that has madison independent and Bronze Medals larger than 0`: ```sql
SELECT MIN("gold_medals") FROM "percussion_independent_a_class" WHERE "ensemble"='salem blue devils' AND "silver_medals"<1;
## Task Generate a SQL query to answer the following question: `what is Gold Medals that has salem blue devils and a Silver Medals less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "percussion_independent_a_class" ( "ensemble" text, "gold_medals" real, "silver_medals" real, "bronze_medals" real, "total_medals" real ); ### SQL Given the database schema, here is the SQL query that answers `what is Gold Medals that has salem blue devils and a Silver Medals less than 1?`: ```sql
SELECT "location" FROM "mixed_martial_arts_record" WHERE "method"='submission (armbar)' AND "opponent"='mayra conde';
## Task Generate a SQL query to answer the following question: `What is the location of the match where the method was submission (armbar) and Mayra Conde was the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the location of the match where the method was submission (armbar) and Mayra Conde was the opponent?`: ```sql
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "method"='submission (armbar)' AND "record"='9-3-1';
## Task Generate a SQL query to answer the following question: `Who is the opponent of the match with a method of submission (armbar) and a 9-3-1 record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the opponent of the match with a method of submission (armbar) and a 9-3-1 record?`: ```sql
SELECT "time_eest" FROM "special_stages" WHERE "stage"='ss8';
## Task Generate a SQL query to answer the following question: `What is the Time (EEST), when the Stage is ss8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Time (EEST), when the Stage is ss8?`: ```sql
SELECT "stage" FROM "special_stages" WHERE "rally_leader"='c. atkinson';
## Task Generate a SQL query to answer the following question: `What is the Stage, when the Rally leader is C. Atkinson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Stage, when the Rally leader is C. Atkinson?`: ```sql
SELECT "winner" FROM "special_stages" WHERE "name"='ouninpohja 1';
## Task Generate a SQL query to answer the following question: `Who is the Winner, when the Name is Ouninpohja 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the Winner, when the Name is Ouninpohja 1?`: ```sql
SELECT "length" FROM "special_stages" WHERE "name"='himos';
## Task Generate a SQL query to answer the following question: `What is the Length, when the Name is Himos?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Length, when the Name is Himos?`: ```sql
SELECT "winner" FROM "special_stages" WHERE "length"='21.27km';
## Task Generate a SQL query to answer the following question: `Who is the Winner when the Length is 21.27km?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the Winner when the Length is 21.27km?`: ```sql
SELECT "name" FROM "special_stages" WHERE "time"='8:10.1';
## Task Generate a SQL query to answer the following question: `What is the Name, when the Time is 8:10.1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Name, when the Time is 8:10.1?`: ```sql
SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "points"=0 AND "year">1961 AND "chassis"='ferrari 156';
## Task Generate a SQL query to answer the following question: `In the Formula One World Championships, which entrant had 0 points with a Ferrari 156 Chassis after 1961?` ### 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 `In the Formula One World Championships, which entrant had 0 points with a Ferrari 156 Chassis after 1961?`: ```sql
SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "year"=1965;
## Task Generate a SQL query to answer the following question: `During the Formula One World Championships, which engine was used in 1965?` ### 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 `During the Formula One World Championships, which engine was used in 1965?`: ```sql
SELECT COUNT("points") FROM "complete_formula_one_world_championship_" WHERE "chassis"='ferrari 156';
## Task Generate a SQL query to answer the following question: `How many points were earned with a Chassis of a Ferrari 156?` ### 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 `How many points were earned with a Chassis of a Ferrari 156?`: ```sql
SELECT "finish" FROM "indy_500_results" WHERE "laps"<197 AND "start"='9' AND "qual"='152.672';
## Task Generate a SQL query to answer the following question: `Where did the driver who started 9 with a qualifing speed of 152.672 and finished fewer than 197 laps finish?` ### 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 `Where did the driver who started 9 with a qualifing speed of 152.672 and finished fewer than 197 laps finish?`: ```sql
SELECT "location" FROM "series_statistics" WHERE "game"=7;
## Task Generate a SQL query to answer the following question: `What is the location of game 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_statistics" ( "game" real, "date" text, "location" text, "time" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the location of game 7?`: ```sql
SELECT "location" FROM "series_statistics" WHERE "game"=4;
## Task Generate a SQL query to answer the following question: `what is the location of game 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_statistics" ( "game" real, "date" text, "location" text, "time" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the location of game 4?`: ```sql
SELECT "team_2" FROM "first_round" WHERE "1st_leg"='2-0';
## Task Generate a SQL query to answer the following question: `Which of the two teams has 1st leg of 2-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `Which of the two teams has 1st leg of 2-0?`: ```sql
SELECT "agg" FROM "first_round" WHERE "1st_leg"='1-2';
## Task Generate a SQL query to answer the following question: `Which team has an agg., that has a 1st leg of 1-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team has an agg., that has a 1st leg of 1-2?`: ```sql
SELECT "team_1" FROM "first_round" WHERE "2nd_leg"='1-0';
## Task Generate a SQL query to answer the following question: `Which team of the team 1 column, has a 2nd leg of 1-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team of the team 1 column, has a 2nd leg of 1-0?`: ```sql
SELECT "scorers" FROM "group_stage" WHERE "group_position"='2nd' AND "opponents"='olympiacos';
## Task Generate a SQL query to answer the following question: `Who were the 2nd group scorers that were opponents of olympiacos?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_stage" ( "date" text, "opponents" text, "result_f_a" text, "scorers" text, "attendance" real, "group_position" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the 2nd group scorers that were opponents of olympiacos?`: ```sql
SELECT "scorers" FROM "group_stage" WHERE "result_f_a"='1–0';
## Task Generate a SQL query to answer the following question: `Who were F–A of 1–0 scorers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_stage" ( "date" text, "opponents" text, "result_f_a" text, "scorers" text, "attendance" real, "group_position" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were F–A of 1–0 scorers?`: ```sql
SELECT "final_score" FROM "2002" WHERE "date"='november 17';
## Task Generate a SQL query to answer the following question: `What was the final score of the game on November 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2002" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the final score of the game on November 17?`: ```sql
SELECT "final_score" FROM "2002" WHERE "visiting_team"='indianapolis colts' AND "date"='november 24';
## Task Generate a SQL query to answer the following question: `What was the final score of the game on November 24 with the visiting team the Indianapolis Colts?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2002" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the final score of the game on November 24 with the visiting team the Indianapolis Colts?`: ```sql
SELECT "date" FROM "2002" WHERE "final_score"='30-17' AND "stadium"='gillette stadium';
## Task Generate a SQL query to answer the following question: `When was the game at Gillette Stadium that ended in a final score of 30-17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2002" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the game at Gillette Stadium that ended in a final score of 30-17?`: ```sql
SELECT "visiting_team" FROM "2002" WHERE "date"='september 15';
## Task Generate a SQL query to answer the following question: `Who was the visiting team that played on September 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2002" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the visiting team that played on September 15?`: ```sql
SELECT "year" FROM "year_by_year" WHERE "regular_season"='2nd, central';
## Task Generate a SQL query to answer the following question: `What year did the Nashville Metros have the Regular Season 2nd, central?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); ### SQL Given the database schema, here is the SQL query that answers `What year did the Nashville Metros have the Regular Season 2nd, central?`: ```sql
SELECT "division" FROM "year_by_year" WHERE "playoffs"='did not qualify' AND "league"='usl pdl' AND "regular_season"='7th, southeast';
## Task Generate a SQL query to answer the following question: `What division did the Nashville Metros play in during the year that they did not qualify for the Playoffs, where in the USL PDL League, and had the Regular Season 7th, Southeast?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); ### SQL Given the database schema, here is the SQL query that answers `What division did the Nashville Metros play in during the year that they did not qualify for the Playoffs, where in the USL PDL League, and had the Regular Season 7th, Southeast?`: ```sql
SELECT AVG("year") FROM "year_by_year" WHERE "playoffs"='did not qualify' AND "open_cup"='did not qualify' AND "regular_season"='7th, southeast';
## Task Generate a SQL query to answer the following question: `What was the average year that the Nashville Metros did not qualify for the Playoffs, did not qualify for the Open Cup, and had the Regular Season 7th, Southeast?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the average year that the Nashville Metros did not qualify for the Playoffs, did not qualify for the Open Cup, and had the Regular Season 7th, Southeast?`: ```sql
SELECT "chassis" FROM "cart" WHERE "points"=52;
## Task Generate a SQL query to answer the following question: `Which chassis scored 52 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cart" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which chassis scored 52 points?`: ```sql
SELECT "engine" FROM "cart" WHERE "points"=6 AND "chassis"='march 88c';
## Task Generate a SQL query to answer the following question: `Which engine scored 6 points and used the march 88c chassis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cart" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which engine scored 6 points and used the march 88c chassis?`: ```sql
SELECT "d_43" FROM "senate_composition_before_the_elections" WHERE "d_48"='d 9';
## Task Generate a SQL query to answer the following question: `Name the D 43 with D 48 of d 9` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate_composition_before_the_elections" ( "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the D 43 with D 48 of d 9`: ```sql
SELECT "d_42" FROM "senate_composition_before_the_elections" WHERE "d_43"='d 14';
## Task Generate a SQL query to answer the following question: `Name the D 42 with D 43 of d 14` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate_composition_before_the_elections" ( "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the D 42 with D 43 of d 14`: ```sql
SELECT "d_47" FROM "senate_composition_before_the_elections" WHERE "d_48"='d 29';
## Task Generate a SQL query to answer the following question: `Name the D 47 when it has D 48 of d 29` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate_composition_before_the_elections" ( "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the D 47 when it has D 48 of d 29`: ```sql
SELECT "d_43" FROM "senate_composition_before_the_elections" WHERE "d_48"='r 28';
## Task Generate a SQL query to answer the following question: `Name the D 43 and D 48 of r 28` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate_composition_before_the_elections" ( "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the D 43 and D 48 of r 28`: ```sql
SELECT "d_47" FROM "senate_composition_before_the_elections" WHERE "d_42"='d 22';
## Task Generate a SQL query to answer the following question: `Name the D 47 which has D 42 of d 22` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate_composition_before_the_elections" ( "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the D 47 which has D 42 of d 22`: ```sql
SELECT "region" FROM "release_history" WHERE "label"='central station';
## Task Generate a SQL query to answer the following question: `Which region had a label of Central Station?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); ### SQL Given the database schema, here is the SQL query that answers `Which region had a label of Central Station?`: ```sql
SELECT "catalog" FROM "release_history" WHERE "format"='12\" ep';
## Task Generate a SQL query to answer the following question: `Which catalog has a format of 12" EP?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); ### SQL Given the database schema, here is the SQL query that answers `Which catalog has a format of 12" EP?`: ```sql
SELECT "label" FROM "release_history" WHERE "format"='12\" ep' AND "region"='germany';
## Task Generate a SQL query to answer the following question: `Which label released the album on 12" EP in Germany?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); ### SQL Given the database schema, here is the SQL query that answers `Which label released the album on 12" EP in Germany?`: ```sql
SELECT "nhl_team" FROM "round_eight" WHERE "position"='centre' AND "pick_num"='105';
## Task Generate a SQL query to answer the following question: `What NHL team has a centre and pick number of 105?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eight" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What NHL team has a centre and pick number of 105?`: ```sql
SELECT "pick_num" FROM "round_eight" WHERE "nhl_team"='st. louis blues';
## Task Generate a SQL query to answer the following question: `What Pick # does the St. Louis Blues have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eight" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What Pick # does the St. Louis Blues have?`: ```sql
SELECT "position" FROM "round_eight" WHERE "pick_num"='108';
## Task Generate a SQL query to answer the following question: `What is the position of the player with a Pick # of 108?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eight" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the position of the player with a Pick # of 108?`: ```sql
SELECT "position" FROM "round_eight" WHERE "nhl_team"='vancouver canucks' AND "pick_num"='101';
## Task Generate a SQL query to answer the following question: `What position in the Vancouver Canucks has a Pick # of 101?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eight" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What position in the Vancouver Canucks has a Pick # of 101?`: ```sql
SELECT "record" FROM "game_log" WHERE "attendance"='30,452';
## Task Generate a SQL query to answer the following question: `What was the team's record at the game attended by 30,452?` ### 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, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the team's record at the game attended by 30,452?`: ```sql
SELECT "attendance" FROM "game_log" WHERE "loss"='crabtree (0-1)';
## Task Generate a SQL query to answer the following question: `What was the attendance at the game that had a loss of Crabtree (0-1)?` ### 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, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance at the game that had a loss of Crabtree (0-1)?`: ```sql