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