text
stringlengths 411
1.74k
|
---|
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "hitachi_ips_technology_development" ( "name" text, "nickname" text, "year" real, "advantage" text, "transmittance_contrast_ratio" text );. Question: "What is Ips-provectus transmittance/contrast ratio?". [/INST] SELECT "transmittance_contrast_ratio" FROM "hitachi_ips_technology_development" WHERE "name"='ips-provectus';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sporting_events" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the average silver for a rank less than 8, were there were no more than 4 bronze and 12 in total?". [/INST] SELECT AVG("silver") FROM "sporting_events" WHERE "rank"<8 AND "total"=12 AND "bronze"<4;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sporting_events" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "How many gold did Gabon have when they were ranked no higher than 17, and less than 7 in total?". [/INST] SELECT SUM("gold") FROM "sporting_events" WHERE "total"<7 AND "nation"='gabon' AND "rank"<17;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "Name the opponent for april 24". [/INST] SELECT "opponent" FROM "game_log" WHERE "date"='april 24';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "Name the score for attendance of 13,617". [/INST] SELECT "score" FROM "game_log" WHERE "attendance"='13,617';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "Name the opponent for Score of postponed (rain) not rescheduled". [/INST] SELECT "opponent" FROM "game_log" WHERE "score"='postponed (rain) not rescheduled';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 );. Question: "What is the H.S. Asst. principal with a Glendale principal Joyce Brace during 2002-2003?". [/INST] SELECT "h_s_asst_principal" FROM "district_administration" WHERE "glendale_principal"='joyce brace' AND "year"='2002-2003';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 );. Question: "Who is the h.s. principal with Dave Lovering as w.r. principal and Marty Pizur as m.s. principal?". [/INST] SELECT "h_s_principal" FROM "district_administration" WHERE "w_r_principal"='dave lovering' AND "m_s_principal"='marty pizur';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 );. Question: "Who is the Glendale principal with Greg Smorel as m.s. principal and Joleen Reinholz as H.S. principal during 2006-2007?". [/INST] SELECT "glendale_principal" FROM "district_administration" WHERE "m_s_principal"='greg smorel' AND "h_s_principal"='joleen reinholz' AND "year"='2006-2007';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 );. 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?". [/INST] SELECT "h_h_principal" FROM "district_administration" WHERE "h_s_principal"='jim haught' AND "maplemere_principal"='charlie taylor' AND "w_r_principal"='rich auerbach';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 );. Question: "Who is the h.h. principal with James Finch as the superintendent and Charlie Taylor as the maplemere principal?". [/INST] SELECT "h_h_principal" FROM "district_administration" WHERE "superintendent"='james finch' AND "maplemere_principal"='charlie taylor';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 );. Question: "Who is the h.s. principal during 1973-1974?". [/INST] SELECT "h_s_principal" FROM "district_administration" WHERE "year"='1973-1974';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "what is the engine for year less than 1959 and points more than 4?". [/INST] SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "year"<1959 AND "points">4;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "what is the least year for 4 points?". [/INST] SELECT MIN("year") FROM "complete_formula_one_world_championship_" WHERE "points"=4;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "what is the entrant for the ferrari v8 with points less than 4?". [/INST] SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "engine"='ferrari v8' AND "points"<4;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "what is the average year for 0 points and ferrari v8?". [/INST] SELECT AVG("year") FROM "complete_formula_one_world_championship_" WHERE "points"=0 AND "engine"='ferrari v8';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "broadcast_rights" ( "territory" text, "broadcaster" text, "channel" real, "launched" text, "closed" text );. Question: "When did channel 83 in singapore launch?". [/INST] SELECT "launched" FROM "broadcast_rights" WHERE "territory"='singapore' AND "channel"=83;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "broadcast_rights" ( "territory" text, "broadcaster" text, "channel" real, "launched" text, "closed" text );. Question: "Where is channel 83 broadcasted?". [/INST] SELECT "territory" FROM "broadcast_rights" WHERE "channel"=83;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "broadcast_rights" ( "territory" text, "broadcaster" text, "channel" real, "launched" text, "closed" text );. Question: "Who broadcasts in malaysia?". [/INST] SELECT "broadcaster" FROM "broadcast_rights" WHERE "territory"='malaysia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_results" ( "year" real, "chassis" text, "engine_s" text, "tyres" text, "points" text );. Question: "What are the engines for 1983?". [/INST] SELECT "engine_s" FROM "complete_formula_one_results" WHERE "year"=1983;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_results" ( "year" real, "chassis" text, "engine_s" text, "tyres" text, "points" text );. Question: "Which of the Chassis has Tyres of g, is after 1976, and has 1 point?". [/INST] SELECT "chassis" FROM "complete_formula_one_results" WHERE "tyres"='g' AND "year">1976 AND "points"='1';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_goals" ( "name" text, "nation" text, "career" text, "goals" real, "appearances" real );. Question: "How many appearances did Gary Depalma make when he scored less than 30 goals?". [/INST] SELECT "appearances" FROM "most_goals" WHERE "goals"<30 AND "name"='gary depalma';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 );. Question: "In stage 13, what is the intergiro classification and is on the team of Asics-c.g.a.?". [/INST] SELECT "intergiro_classification" FROM "classification_leadership_by_stage" WHERE "trofeo_fast_team"='asics-c.g.a.' AND "stage"='13';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 );. Question: "Which intergiro classification is there for team Polti at stage 14?". [/INST] SELECT "intergiro_classification" FROM "classification_leadership_by_stage" WHERE "trofeo_fast_team"='team polti' AND "stage"='14';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 );. Question: "Who was the winner in stage 7 with a general classification of Pavel Tonkov?". [/INST] SELECT "winner" FROM "classification_leadership_by_stage" WHERE "general_classification"='pavel tonkov' AND "stage"='7';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 );. Question: "Who was the winner from team Asics-c.g.a. and has a mountains classification of Mariano Piccoli?". [/INST] SELECT "winner" FROM "classification_leadership_by_stage" WHERE "trofeo_fast_team"='asics-c.g.a.' AND "mountains_classification"='mariano piccoli';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 );. Question: "Which points classification was used in stage 15?". [/INST] SELECT "points_classification" FROM "classification_leadership_by_stage" WHERE "stage"='15';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 );. Question: "Which winner of stage 1 was not awarded a mountains classification?". [/INST] SELECT "winner" FROM "classification_leadership_by_stage" WHERE "mountains_classification"='not awarded' AND "stage"='1';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 );. Question: "Name the muzzel device with barrel twist of 1:10". [/INST] SELECT "muzzle_device" FROM "ar_series_models" WHERE "barrel_twist"='1:10';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 );. Question: "Name the bayonet lug with ar-15 lightweight". [/INST] SELECT "bayonet_lug" FROM "ar_series_models" WHERE "name"='ar-15 lightweight';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 );. Question: "Name the hand guards for ar-15a2 government carbine and barrel twist of 1:9". [/INST] SELECT "hand_guards" FROM "ar_series_models" WHERE "name"='ar-15a2 government carbine' AND "barrel_twist"='1:9';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 );. Question: "Name the barrel length for barrel twist of 1:7". [/INST] SELECT "barrel_length" FROM "ar_series_models" WHERE "barrel_twist"='1:7';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "kyoto_osaka_keihan_type" ( "accented_mora" text, "one_mora" text, "two_mora_word" text, "three_mora_word" text, "gloss" text );. Question: "What is the three-mora word with a low tone accented mora and a one mora of 2?". [/INST] SELECT "three_mora_word" FROM "kyoto_osaka_keihan_type" WHERE "accented_mora"='low tone' AND "one_mora"='2';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "kyoto_osaka_keihan_type" ( "accented_mora" text, "one_mora" text, "two_mora_word" text, "three_mora_word" text, "gloss" text );. Question: "What is the one mora for the three-mora word /kaze/ [kázé]?". [/INST] SELECT "one_mora" FROM "kyoto_osaka_keihan_type" WHERE "three_mora_word"='/kaze/ [kázé]';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "kyoto_osaka_keihan_type" ( "accented_mora" text, "one_mora" text, "two_mora_word" text, "three_mora_word" text, "gloss" text );. Question: "What is the one mora for the three-mora word /˩haruꜜ/ [hàɽɯ́ ~ hàɽɯ̂]?". [/INST] SELECT "one_mora" FROM "kyoto_osaka_keihan_type" WHERE "three_mora_word"='/˩haruꜜ/ [hàɽɯ́ ~ hàɽɯ̂]';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "kyoto_osaka_keihan_type" ( "accented_mora" text, "one_mora" text, "two_mora_word" text, "three_mora_word" text, "gloss" text );. Question: "What is the two-mora word with a low tone accented mora and a gloss of /˩kusuꜜri/ [kɯ̀sɯ́ɽì]?". [/INST] SELECT "two_mora_word" FROM "kyoto_osaka_keihan_type" WHERE "accented_mora"='low tone' AND "gloss"='/˩kusuꜜri/ [kɯ̀sɯ́ɽì]';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "kyoto_osaka_keihan_type" ( "accented_mora" text, "one_mora" text, "two_mora_word" text, "three_mora_word" text, "gloss" text );. Question: "What is the one mora for a low tone mora with a gloss of /˩okiru/ [òkìɽɯ́]?". [/INST] SELECT "one_mora" FROM "kyoto_osaka_keihan_type" WHERE "accented_mora"='low tone' AND "gloss"='/˩okiru/ [òkìɽɯ́]';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "percussion_independent_a_class" ( "ensemble" text, "gold_medals" real, "silver_medals" real, "bronze_medals" real, "total_medals" real );. Question: "What is the highest Total Medals that has 0 Gold Medal and a Ensemble of east 80 indoor percussion?". [/INST] SELECT MAX("total_medals") FROM "percussion_independent_a_class" WHERE "gold_medals"=0 AND "ensemble"='east 80 indoor percussion';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "percussion_independent_a_class" ( "ensemble" text, "gold_medals" real, "silver_medals" real, "bronze_medals" real, "total_medals" real );. Question: "What is the lowest Total Medals that has madison independent and Bronze Medals larger than 0". [/INST] SELECT MIN("total_medals") FROM "percussion_independent_a_class" WHERE "ensemble"='madison independent' AND "bronze_medals">0;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "percussion_independent_a_class" ( "ensemble" text, "gold_medals" real, "silver_medals" real, "bronze_medals" real, "total_medals" real );. Question: "what is Gold Medals that has salem blue devils and a Silver Medals less than 1?". [/INST] SELECT MIN("gold_medals") FROM "percussion_independent_a_class" WHERE "ensemble"='salem blue devils' AND "silver_medals"<1;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );. Question: "What is the location of the match where the method was submission (armbar) and Mayra Conde was the opponent?". [/INST] SELECT "location" FROM "mixed_martial_arts_record" WHERE "method"='submission (armbar)' AND "opponent"='mayra conde';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );. Question: "Who is the opponent of the match with a method of submission (armbar) and a 9-3-1 record?". [/INST] SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "method"='submission (armbar)' AND "record"='9-3-1';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text );. Question: "What is the Time (EEST), when the Stage is ss8?". [/INST] SELECT "time_eest" FROM "special_stages" WHERE "stage"='ss8';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text );. Question: "What is the Stage, when the Rally leader is C. Atkinson?". [/INST] SELECT "stage" FROM "special_stages" WHERE "rally_leader"='c. atkinson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text );. Question: "Who is the Winner, when the Name is Ouninpohja 1?". [/INST] SELECT "winner" FROM "special_stages" WHERE "name"='ouninpohja 1';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text );. Question: "What is the Length, when the Name is Himos?". [/INST] SELECT "length" FROM "special_stages" WHERE "name"='himos';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text );. Question: "Who is the Winner when the Length is 21.27km?". [/INST] SELECT "winner" FROM "special_stages" WHERE "length"='21.27km';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text );. Question: "What is the Name, when the Time is 8:10.1?". [/INST] SELECT "name" FROM "special_stages" WHERE "time"='8:10.1';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "In the Formula One World Championships, which entrant had 0 points with a Ferrari 156 Chassis after 1961?". [/INST] SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "points"=0 AND "year">1961 AND "chassis"='ferrari 156';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "During the Formula One World Championships, which engine was used in 1965?". [/INST] SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "year"=1965;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "How many points were earned with a Chassis of a Ferrari 156?". [/INST] SELECT COUNT("points") FROM "complete_formula_one_world_championship_" WHERE "chassis"='ferrari 156';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "Where did the driver who started 9 with a qualifing speed of 152.672 and finished fewer than 197 laps finish?". [/INST] SELECT "finish" FROM "indy_500_results" WHERE "laps"<197 AND "start"='9' AND "qual"='152.672';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "series_statistics" ( "game" real, "date" text, "location" text, "time" text, "attendance" real );. Question: "What is the location of game 7?". [/INST] SELECT "location" FROM "series_statistics" WHERE "game"=7;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "series_statistics" ( "game" real, "date" text, "location" text, "time" text, "attendance" real );. Question: "what is the location of game 4?". [/INST] SELECT "location" FROM "series_statistics" WHERE "game"=4;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "Which of the two teams has 1st leg of 2-0?". [/INST] SELECT "team_2" FROM "first_round" WHERE "1st_leg"='2-0';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "Which team has an agg., that has a 1st leg of 1-2?". [/INST] SELECT "agg" FROM "first_round" WHERE "1st_leg"='1-2';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "Which team of the team 1 column, has a 2nd leg of 1-0?". [/INST] SELECT "team_1" FROM "first_round" WHERE "2nd_leg"='1-0';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "group_stage" ( "date" text, "opponents" text, "result_f_a" text, "scorers" text, "attendance" real, "group_position" text );. Question: "Who were the 2nd group scorers that were opponents of olympiacos?". [/INST] SELECT "scorers" FROM "group_stage" WHERE "group_position"='2nd' AND "opponents"='olympiacos';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "group_stage" ( "date" text, "opponents" text, "result_f_a" text, "scorers" text, "attendance" real, "group_position" text );. Question: "Who were F–A of 1–0 scorers?". [/INST] SELECT "scorers" FROM "group_stage" WHERE "result_f_a"='1–0';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2002" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "What was the final score of the game on November 17?". [/INST] SELECT "final_score" FROM "2002" WHERE "date"='november 17';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2002" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "What was the final score of the game on November 24 with the visiting team the Indianapolis Colts?". [/INST] SELECT "final_score" FROM "2002" WHERE "visiting_team"='indianapolis colts' AND "date"='november 24';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2002" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "When was the game at Gillette Stadium that ended in a final score of 30-17?". [/INST] SELECT "date" FROM "2002" WHERE "final_score"='30-17' AND "stadium"='gillette stadium';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2002" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "Who was the visiting team that played on September 15?". [/INST] SELECT "visiting_team" FROM "2002" WHERE "date"='september 15';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" text, "playoffs" text, "open_cup" text );. Question: "What year did the Nashville Metros have the Regular Season 2nd, central?". [/INST] SELECT "year" FROM "year_by_year" WHERE "regular_season"='2nd, central';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" text, "playoffs" text, "open_cup" text );. 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?". [/INST] SELECT "division" FROM "year_by_year" WHERE "playoffs"='did not qualify' AND "league"='usl pdl' AND "regular_season"='7th, southeast';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" text, "playoffs" text, "open_cup" text );. 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?". [/INST] SELECT AVG("year") FROM "year_by_year" WHERE "playoffs"='did not qualify' AND "open_cup"='did not qualify' AND "regular_season"='7th, southeast';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "cart" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" real );. Question: "Which chassis scored 52 points?". [/INST] SELECT "chassis" FROM "cart" WHERE "points"=52;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "cart" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" real );. Question: "Which engine scored 6 points and used the march 88c chassis?". [/INST] SELECT "engine" FROM "cart" WHERE "points"=6 AND "chassis"='march 88c';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 );. Question: "Name the D 43 with D 48 of d 9". [/INST] SELECT "d_43" FROM "senate_composition_before_the_elections" WHERE "d_48"='d 9';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 );. Question: "Name the D 42 with D 43 of d 14". [/INST] SELECT "d_42" FROM "senate_composition_before_the_elections" WHERE "d_43"='d 14';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 );. Question: "Name the D 47 when it has D 48 of d 29". [/INST] SELECT "d_47" FROM "senate_composition_before_the_elections" WHERE "d_48"='d 29';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 );. Question: "Name the D 43 and D 48 of r 28". [/INST] SELECT "d_43" FROM "senate_composition_before_the_elections" WHERE "d_48"='r 28';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 );. Question: "Name the D 47 which has D 42 of d 22". [/INST] SELECT "d_47" FROM "senate_composition_before_the_elections" WHERE "d_42"='d 22';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );. Question: "Which region had a label of Central Station?". [/INST] SELECT "region" FROM "release_history" WHERE "label"='central station';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );. Question: "Which catalog has a format of 12" EP?". [/INST] SELECT "catalog" FROM "release_history" WHERE "format"='12\" ep';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );. Question: "Which label released the album on 12" EP in Germany?". [/INST] SELECT "label" FROM "release_history" WHERE "format"='12\" ep' AND "region"='germany';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_eight" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What NHL team has a centre and pick number of 105?". [/INST] SELECT "nhl_team" FROM "round_eight" WHERE "position"='centre' AND "pick_num"='105';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_eight" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What Pick # does the St. Louis Blues have?". [/INST] SELECT "pick_num" FROM "round_eight" WHERE "nhl_team"='st. louis blues';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_eight" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What is the position of the player with a Pick # of 108?". [/INST] SELECT "position" FROM "round_eight" WHERE "pick_num"='108';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_eight" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What position in the Vancouver Canucks has a Pick # of 101?". [/INST] SELECT "position" FROM "round_eight" WHERE "nhl_team"='vancouver canucks' AND "pick_num"='101';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "What was the team's record at the game attended by 30,452?". [/INST] SELECT "record" FROM "game_log" WHERE "attendance"='30,452';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "What was the attendance at the game that had a loss of Crabtree (0-1)?". [/INST] SELECT "attendance" FROM "game_log" WHERE "loss"='crabtree (0-1)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senior_pga_tour_wins_10" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "What races were Chi-Chi Rodriguez the runner-up in?". [/INST] SELECT "tournament" FROM "senior_pga_tour_wins_10" WHERE "runner_s_up"='chi-chi rodriguez';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senior_pga_tour_wins_10" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "What was the margin of victory for Isao Aoki when he was a runner-up?". [/INST] SELECT "margin_of_victory" FROM "senior_pga_tour_wins_10" WHERE "runner_s_up"='isao aoki';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senior_pga_tour_wins_10" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "What was the winning score in the mazda senior tournament players championship?". [/INST] SELECT "winning_score" FROM "senior_pga_tour_wins_10" WHERE "tournament"='mazda senior tournament players championship';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senior_pga_tour_wins_10" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "Which tournament ended with a winning score of –27 (65-68-64-64=261)?". [/INST] SELECT "tournament" FROM "senior_pga_tour_wins_10" WHERE "winning_score"='–27 (65-68-64-64=261)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senior_pga_tour_wins_10" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "Who was the runner(s)-up for the Feb 18, 1996 tournament?". [/INST] SELECT "runner_s_up" FROM "senior_pga_tour_wins_10" WHERE "date"='feb 18, 1996';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );. Question: "What is Oriol Servia's average Grid on races with more than 43 laps?". [/INST] SELECT AVG("grid") FROM "race" WHERE "laps">43 AND "driver"='oriol servia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );. Question: "How many laps were there in the race that netted the winner 19 points?". [/INST] SELECT "laps" FROM "race" WHERE "points"=19;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "domestic_goals_summary" ( "date" text, "season" text, "playing_for" text, "opponent" text, "final_score" text );. Question: "In what Season is Necaxa an Opponent?". [/INST] SELECT "season" FROM "domestic_goals_summary" WHERE "opponent"='necaxa';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "domestic_goals_summary" ( "date" text, "season" text, "playing_for" text, "opponent" text, "final_score" text );. Question: "In what season is Victoria the Opponent?". [/INST] SELECT "season" FROM "domestic_goals_summary" WHERE "opponent"='victoria';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tararua_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );. Question: "Name the authority when the decile is 6 for pongaroa school". [/INST] SELECT "authority" FROM "tararua_district" WHERE "decile"=6 AND "name"='pongaroa school';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tararua_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );. Question: "Name the years for dannevirke south school". [/INST] SELECT "years" FROM "tararua_district" WHERE "name"='dannevirke south school';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tararua_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );. Question: "Name the least decile for state authority and area of eketahuna with roll more than 44". [/INST] SELECT MIN("decile") FROM "tararua_district" WHERE "authority"='state' AND "area"='eketahuna' AND "roll">44;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tararua_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );. Question: "Tell me the name with area of eketahuna". [/INST] SELECT "name" FROM "tararua_district" WHERE "area"='eketahuna';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "e_class" ( "ship" text, "pennant_number" text, "laid_down" text, "launched" text, "completed" text );. Question: "Name what was completed on 12 april 1934". [/INST] SELECT "completed" FROM "e_class" WHERE "launched"='12 april 1934';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "e_class" ( "ship" text, "pennant_number" text, "laid_down" text, "launched" text, "completed" text );. Question: "Name the launched for 13 september 1934 completion". [/INST] SELECT "launched" FROM "e_class" WHERE "completed"='13 september 1934';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "e_class" ( "ship" text, "pennant_number" text, "laid_down" text, "launched" text, "completed" text );. Question: "Name the ship launched 29 may 1934". [/INST] SELECT "ship" FROM "e_class" WHERE "launched"='29 may 1934';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "e_class" ( "ship" text, "pennant_number" text, "laid_down" text, "launched" text, "completed" text );. Question: "Name the laid down for launched being 16 february 1934". [/INST] SELECT "laid_down" FROM "e_class" WHERE "launched"='16 february 1934';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "e_class" ( "ship" text, "pennant_number" text, "laid_down" text, "launched" text, "completed" text );. Question: "Name the pennant number for completion of 30 october 1934 and launched 29 march 1934". [/INST] SELECT "pennant_number" FROM "e_class" WHERE "launched"='29 march 1934' AND "completed"='30 october 1934';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.