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 "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "How many years had more than 0 points?". [/INST] SELECT SUM("year") FROM "complete_formula_one_world_championship_" WHERE "points">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 "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "Which entrant was present prior to 1953?". [/INST] SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "year"<1953;</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_wickets_for_one_province" ( "matches" real, "wickets" real, "runs" real, "average" real, "10_wm" real, "best_in_innings" text, "best_in_match" text );. Question: "What is the sum of runs that are associated with 10WM values over 13?". [/INST] SELECT SUM("runs") FROM "most_wickets_for_one_province" WHERE "10_wm">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 "most_wickets_for_one_province" ( "matches" real, "wickets" real, "runs" real, "average" real, "10_wm" real, "best_in_innings" text, "best_in_match" text );. Question: "How many wickets have runs under 7531, matches over 44, and an average of 22.17?". [/INST] SELECT "wickets" FROM "most_wickets_for_one_province" WHERE "runs"<7531 AND "matches">44 AND "average"=22.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 "most_wickets_for_one_province" ( "matches" real, "wickets" real, "runs" real, "average" real, "10_wm" real, "best_in_innings" text, "best_in_match" text );. Question: "What is the total number of wickets that have runs under 4600 and matches under 44?". [/INST] SELECT SUM("wickets") FROM "most_wickets_for_one_province" WHERE "runs"<4600 AND "matches"<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 "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );. Question: "Which Label was cataloged as alca-9013?". [/INST] SELECT "label" FROM "release_history" WHERE "catalog"='alca-9013';</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 was formated as a CD under the label Alfa Records?". [/INST] SELECT "catalog" FROM "release_history" WHERE "label"='alfa records' AND "format"='cd';</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 "list_of_douglas_a_26_invader_operators" ( "designation" text, "usaaf_serial" text, "po_af_serial" real, "delivery" text, "retired" real, "in_service" text );. Question: "What is the earliest year retired delivered in 1965 with an in service in November 1971 for the PoAF Serial less than 7103?". [/INST] SELECT MIN("retired") FROM "list_of_douglas_a_26_invader_operators" WHERE "delivery"='1965' AND "in_service"='november 1971' AND "po_af_serial"<7103;</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 "statistics" ( "year" real, "road_opened" text, "road_closed" text, "freight_carried_s_tonne" real, "super_b_capacity_reached_citation_needed" text, "number_of_truck_loads_north" real );. Question: "What is the smallest amount of freight carried on the road that closed on March 31 and reached super B capacity on February 17 after 2011?". [/INST] SELECT MIN("freight_carried_s_tonne") FROM "statistics" WHERE "road_closed"='march 31' AND "super_b_capacity_reached_citation_needed"='february 17' AND "year">2011;</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 "1990s" ( "year" text, "english_title" text, "original_title" text, "country" text, "director" text );. Question: "What's the English title listed that has an Original title of The Crying Game?". [/INST] SELECT "english_title" FROM "1990s" WHERE "original_title"='the crying game';</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 "1990s" ( "year" text, "english_title" text, "original_title" text, "country" text, "director" text );. Question: "Which Year has the Orginal title of La Cérémonie?". [/INST] SELECT "year" FROM "1990s" WHERE "original_title"='la cérémonie';</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 "1990s" ( "year" text, "english_title" text, "original_title" text, "country" text, "director" text );. Question: "What's the Original Title of the English title A Judgement in Stone?". [/INST] SELECT "original_title" FROM "1990s" WHERE "english_title"='a judgement in stone';</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 "1990s" ( "year" text, "english_title" text, "original_title" text, "country" text, "director" text );. Question: "Who is the Director of the Original title of The Crying Game?". [/INST] SELECT "director" FROM "1990s" WHERE "original_title"='the crying game';</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 "1990s" ( "year" text, "english_title" text, "original_title" text, "country" text, "director" text );. Question: "Which Country is listed for the Director Thomas Vinterberg?". [/INST] SELECT "country" FROM "1990s" WHERE "director"='thomas vinterberg';</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 "1990s" ( "year" text, "english_title" text, "original_title" text, "country" text, "director" text );. Question: "Which Country has the Director Chen Kaige?". [/INST] SELECT "country" FROM "1990s" WHERE "director"='chen kaige';</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 score of the game attended by 50,200?". [/INST] SELECT "score" FROM "game_log" WHERE "attendance"='50,200';</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 "new_granada" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text );. Question: "What's the Termination of Mission listed that has a Presentation of Credentials for August 29, 1859?". [/INST] SELECT "termination_of_mission" FROM "new_granada" WHERE "presentation_of_credentials"='august 29, 1859';</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 "new_granada" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text );. Question: "What's the Representative listed that has a Presentation of Credentials of August 25, 1851?". [/INST] SELECT "representative" FROM "new_granada" WHERE "presentation_of_credentials"='august 25, 1851';</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 "new_granada" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text );. Question: "What Title has a Termination of Mission for August 13, 1854?". [/INST] SELECT "title" FROM "new_granada" WHERE "termination_of_mission"='august 13, 1854';</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 "new_granada" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text );. Question: "What Title has a Termination of Mission of November 4, 1861?". [/INST] SELECT "title" FROM "new_granada" WHERE "termination_of_mission"='november 4, 1861';</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 "new_granada" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text );. Question: "What Representative has a Presentation of Credentails of April 10, 1855?". [/INST] SELECT "representative" FROM "new_granada" WHERE "presentation_of_credentials"='april 10, 1855';</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 "new_granada" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text );. Question: "Which Title has an Appointed by of Millard Fillmore?". [/INST] SELECT "title" FROM "new_granada" WHERE "appointed_by"='millard fillmore';</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 "finals_20_12_titles_8_runners_up" ( "outcome" text, "year" real, "tournament" text, "partner" text, "opponent" text );. Question: "Who was Choong Tan Fook's opponent in 1999?". [/INST] SELECT "opponent" FROM "finals_20_12_titles_8_runners_up" WHERE "year"=1999 AND "partner"='choong tan fook';</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 "finals_20_12_titles_8_runners_up" ( "outcome" text, "year" real, "tournament" text, "partner" text, "opponent" text );. Question: "Which opponent played in the Chinese Taipei Open in 2000?". [/INST] SELECT "opponent" FROM "finals_20_12_titles_8_runners_up" WHERE "tournament"='chinese taipei open' AND "year"=2000;</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 "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "How many bronzes have a Nation of jamaica (jam), and a Total smaller than 7?". [/INST] SELECT COUNT("bronze") FROM "medal_table" WHERE "nation"='jamaica (jam)' AND "total"<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 "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the average silver with more than 0 gold, a Rank of 1, and a Total smaller than 30?". [/INST] SELECT AVG("silver") FROM "medal_table" WHERE "gold">0 AND "rank"='1' AND "total"<30;</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 "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the total gold with a total less than 1?". [/INST] SELECT SUM("gold") FROM "medal_table" WHERE "total"<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 "northern_ireland" ( "nir_number" text, "introduced" text, "br_number_s" text, "built" text, "type" text );. Question: "Which NIR number is for the tso (ex-br class 488 unit 488305) type that has a 6082 / 72605 BR number?". [/INST] SELECT "nir_number" FROM "northern_ireland" WHERE "type"='tso (ex-br class 488 unit 488305)' AND "br_number_s"='6082 / 72605';</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 "taupo_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );. Question: "What is the Whakamaru school's authority?". [/INST] SELECT "authority" FROM "taupo_district" WHERE "name"='whakamaru 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 "taupo_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );. Question: "Where is the school with state authority that has a roll of more than 157 students?". [/INST] SELECT "area" FROM "taupo_district" WHERE "authority"='state' AND "roll">157;</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 "contents" ( "chapter" real, "chinese" text, "pinyin" text, "translation" text, "subject" text );. Question: "Name the subject of shiyan". [/INST] SELECT "subject" FROM "contents" WHERE "pinyin"='shiyan';</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 "contents" ( "chapter" real, "chinese" text, "pinyin" text, "translation" text, "subject" text );. Question: "Name the chinese with subject of adjectives, adverbs, mostly with reduplication". [/INST] SELECT "chinese" FROM "contents" WHERE "subject"='adjectives, adverbs, mostly with reduplication';</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 "contents" ( "chapter" real, "chinese" text, "pinyin" text, "translation" text, "subject" text );. Question: "Name the total number of chapter for chinese of 釋宮". [/INST] SELECT COUNT("chapter") FROM "contents" WHERE "chinese"='釋宮';</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 "contents" ( "chapter" real, "chinese" text, "pinyin" text, "translation" text, "subject" text );. Question: "Name the highest chapter with chinese of 釋言". [/INST] SELECT MAX("chapter") FROM "contents" WHERE "chinese"='釋言';</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 "contents" ( "chapter" real, "chinese" text, "pinyin" text, "translation" text, "subject" text );. Question: "Name the chapter with chinese of 釋水". [/INST] SELECT "chapter" FROM "contents" WHERE "chinese"='釋水';</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: "Who used Gordini Straight-6 in 1956?". [/INST] SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "engine"='gordini straight-6' AND "year"=1956;</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: "Who was in 1963?". [/INST] SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "year"=1963;</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, "record" text );. Question: "Name the score for september 11". [/INST] SELECT "score" FROM "game_log" WHERE "date"='september 11';</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, "record" text );. Question: "Name the loss for record of 71-81". [/INST] SELECT "loss" FROM "game_log" WHERE "record"='71-81';</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, "record" text );. Question: "Name the score which has record of 73-83". [/INST] SELECT "score" FROM "game_log" WHERE "record"='73-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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );. Question: "Name the date for record of 74-84". [/INST] SELECT "date" FROM "game_log" WHERE "record"='74-84';</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 "episode_4_preliminary_round_3_11_sept_20" ( "index" text, "name" text, "talent_segment" text, "acting_segment" text, "overall_ranking" real, "status" text );. Question: "For all events with index f10, what is the sum of the overall rankings?". [/INST] SELECT SUM("overall_ranking") FROM "episode_4_preliminary_round_3_11_sept_20" WHERE "index"='f10';</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 "episode_4_preliminary_round_3_11_sept_20" ( "index" text, "name" text, "talent_segment" text, "acting_segment" text, "overall_ranking" real, "status" text );. Question: "For the event with index f7, what is the status?". [/INST] SELECT "status" FROM "episode_4_preliminary_round_3_11_sept_20" WHERE "index"='f7';</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 "episode_4_preliminary_round_3_11_sept_20" ( "index" text, "name" text, "talent_segment" text, "acting_segment" text, "overall_ranking" real, "status" text );. Question: "For the event with index f9, what's the talent segment?". [/INST] SELECT "talent_segment" FROM "episode_4_preliminary_round_3_11_sept_20" WHERE "index"='f9';</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 "episode_4_preliminary_round_3_11_sept_20" ( "index" text, "name" text, "talent_segment" text, "acting_segment" text, "overall_ranking" real, "status" text );. Question: "What's the acting segment of 林佩琪 lin peiqi's events that are eliminated?". [/INST] SELECT "acting_segment" FROM "episode_4_preliminary_round_3_11_sept_20" WHERE "status"='eliminated' AND "name"='林佩琪 lin peiqi';</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 "episode_4_preliminary_round_3_11_sept_20" ( "index" text, "name" text, "talent_segment" text, "acting_segment" text, "overall_ranking" real, "status" text );. Question: "What's the total number of overall rankings of 廖尹宁 jvnne leow's events that are eliminated?". [/INST] SELECT COUNT("overall_ranking") FROM "episode_4_preliminary_round_3_11_sept_20" WHERE "status"='eliminated' AND "name"='廖尹宁 jvnne leow';</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 "2007_08_partick_thistle_f_c_season" ( "round" text, "date" text, "opponent" text, "venue" text, "attendance" real );. Question: "Who was the opponent at the qf(r) round?". [/INST] SELECT "opponent" FROM "2007_08_partick_thistle_f_c_season" WHERE "round"='qf(r)';</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 "2007_08_partick_thistle_f_c_season" ( "round" text, "date" text, "opponent" text, "venue" text, "attendance" real );. Question: "What day was the game held at Firhill against AYR United?". [/INST] SELECT "date" FROM "2007_08_partick_thistle_f_c_season" WHERE "venue"='firhill' AND "opponent"='ayr united';</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 "2007_08_partick_thistle_f_c_season" ( "round" text, "date" text, "opponent" text, "venue" text, "attendance" real );. Question: "What is the average attendance at a game held at Firhill for the 5(r) round?". [/INST] SELECT AVG("attendance") FROM "2007_08_partick_thistle_f_c_season" WHERE "venue"='firhill' AND "round"='5(r)';</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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" text );. Question: "Who was the opponent when the Seattle Seahawks had a record of 0-1?". [/INST] SELECT "opponent" FROM "schedule" WHERE "record"='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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" text );. Question: "Who was the opponent when the Seattle Seahawks had a record of 8-7?". [/INST] SELECT "opponent" FROM "schedule" WHERE "record"='8-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 "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "How many points after 1956?". [/INST] SELECT COUNT("points") FROM "complete_formula_one_world_championship_" WHERE "year">1956;</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: "Before 1956, what Chassis has Gordini Straight-4 engine with 3 points?". [/INST] SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "year"<1956 AND "engine"='gordini straight-4' AND "points"=3;</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 engine was used by Equipe Simca Gordini before 1956 with less than 4 points?". [/INST] SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "year"<1956 AND "points"<4 AND "entrant"='equipe simca gordini';</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 chassis has smaller than 9 points by Equipe Rosier?". [/INST] SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "points"<9 AND "entrant"='equipe rosier';</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 "winners" ( "season" real, "winner" text, "team" text, "position" text, "win_num" real );. Question: "Who was the winner in the 2008 season?". [/INST] SELECT "winner" FROM "winners" WHERE "season"=2008;</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_6" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "description_of_product" text, "investing_dragon_s" text );. Question: "Who is the company Investing Dragons, or tiny box?". [/INST] SELECT "investing_dragon_s" FROM "series_6" WHERE "company_or_product_name"='tiny box';</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_6" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "description_of_product" text, "investing_dragon_s" text );. Question: "When did episode 6 first air with entrepreneur Guy Portelli?". [/INST] SELECT "first_aired" FROM "series_6" WHERE "episode"='episode 6' AND "entrepreneur_s"='guy portelli';</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_6" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "description_of_product" text, "investing_dragon_s" text );. Question: "How much money did the company Neurotica request?". [/INST] SELECT "money_requested" FROM "series_6" WHERE "company_or_product_name"='neurotica';</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 "evolution_of_the_single_season_record_fo" ( "hits" real, "player" text, "team" text, "year" real, "years_record_stood" text );. Question: "Name the least hits for year less than 1920 and player of ed delahanty". [/INST] SELECT MIN("hits") FROM "evolution_of_the_single_season_record_fo" WHERE "year"<1920 AND "player"='ed delahanty';</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 "evolution_of_the_single_season_record_fo" ( "hits" real, "player" text, "team" text, "year" real, "years_record_stood" text );. Question: "Name the player with 238 hits and years after 1885". [/INST] SELECT "player" FROM "evolution_of_the_single_season_record_fo" WHERE "year">1885 AND "hits"=238;</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 "evolution_of_the_single_season_record_fo" ( "hits" real, "player" text, "team" text, "year" real, "years_record_stood" text );. Question: "Name the hits for years before 1883". [/INST] SELECT "hits" FROM "evolution_of_the_single_season_record_fo" WHERE "year"<1883;</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 "summary" ( "game" real, "date" text, "location" text, "time" text, "attendance" real );. Question: "For the game that was played on october 22 in west side grounds, what is the total attendance". [/INST] SELECT COUNT("attendance") FROM "summary" WHERE "location"='west side grounds' AND "date"='october 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 "summary" ( "game" real, "date" text, "location" text, "time" text, "attendance" real );. Question: "Which week was the first game played that had a time of 2:06 and less than 27,374 attendees?". [/INST] SELECT MIN("game") FROM "summary" WHERE "time"='2:06' AND "attendance"<'27,374';</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 "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text );. Question: "Which team finished 3rd in class with 337 laps before 2008?". [/INST] SELECT "team" FROM "24_hours_of_le_mans_results" WHERE "year"<2008 AND "laps">337 AND "class_pos"='3rd';</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 "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text );. Question: "In which class had 252 laps and a position of dnf?". [/INST] SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "pos"='dnf' AND "laps"=252;</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 "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text );. Question: "Which position finished 3rd in class and completed less than 338 laps?". [/INST] SELECT "pos" FROM "24_hours_of_le_mans_results" WHERE "class_pos"='3rd' AND "laps"<338;</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 "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text );. Question: "What was the position in 1997?". [/INST] SELECT "pos" FROM "24_hours_of_le_mans_results" WHERE "year"=1997;</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 "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text );. Question: "Which Kit manufacturer sponsers Arsenal?". [/INST] SELECT "kit_manufacturer" FROM "personnel_and_kits" WHERE "team"='arsenal';</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 "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text );. Question: "Which captain is managed by gianluca vialli?". [/INST] SELECT "captain" FROM "personnel_and_kits" WHERE "manager"='gianluca vialli';</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 "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text );. Question: "Which Kit Manufacturer supports team Everton?". [/INST] SELECT "kit_manufacturer" FROM "personnel_and_kits" WHERE "team"='everton';</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 "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text );. Question: "Which team does David O'leary manage?". [/INST] SELECT "team" FROM "personnel_and_kits" WHERE "manager"='david o''leary';</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 "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text );. Question: "Which shirt sponser has Nike as a kit manufacturer?". [/INST] SELECT "shirt_sponsor" FROM "personnel_and_kits" WHERE "kit_manufacturer"='nike';</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 "cry_engine_1" ( "title" text, "year" real, "developer" text, "publisher" text, "platform" text );. Question: "Which title has a year prior to 2008 and xbox 360 as the platform?". [/INST] SELECT "title" FROM "cry_engine_1" WHERE "year"<2008 AND "platform"='xbox 360';</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 "cry_engine_1" ( "title" text, "year" real, "developer" text, "publisher" text, "platform" text );. Question: "Which publisher has Far Cry as the title?". [/INST] SELECT "publisher" FROM "cry_engine_1" WHERE "title"='far cry';</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 "cry_engine_1" ( "title" text, "year" real, "developer" text, "publisher" text, "platform" text );. Question: "Which title has xbox as the platform with a year prior to 2006?". [/INST] SELECT "title" FROM "cry_engine_1" WHERE "platform"='xbox' AND "year"<2006;</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 "cry_engine_1" ( "title" text, "year" real, "developer" text, "publisher" text, "platform" text );. Question: "Which developer has xbox 360 as the platform?". [/INST] SELECT "developer" FROM "cry_engine_1" WHERE "platform"='xbox 360';</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 "cry_engine_1" ( "title" text, "year" real, "developer" text, "publisher" text, "platform" text );. Question: "What is the average year that has far cry vengeance as the title?". [/INST] SELECT AVG("year") FROM "cry_engine_1" WHERE "title"='far cry vengeance';</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 "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "Which position is the highest to have less than 54 goals, a loss of 7 and a goal difference higher than 23?". [/INST] SELECT MAX("position") FROM "final_table" WHERE "goals_against"<54 AND "losses"=7 AND "goal_difference">23;</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 "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "Which is the lowest played with 28-10 points and goals higher than 29?". [/INST] SELECT MIN("played") FROM "final_table" WHERE "points"='28-10' AND "goals_for">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 "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "How many positions have 14 wins, goals against of 61 and fewer than 19 losses?". [/INST] SELECT COUNT("position") FROM "final_table" WHERE "wins"=14 AND "goals_against"=61 AND "losses"<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 "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the average loss with a goal higher than 51 and wins higher than 14?". [/INST] SELECT AVG("losses") FROM "final_table" WHERE "goals_against">51 AND "wins">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 "squad_information" ( "nat" text, "name" text, "since" real, "goals" real, "ends" real, "transfer_fee" text );. Question: "Name the average ends for weston". [/INST] SELECT AVG("ends") FROM "squad_information" WHERE "name"='weston';</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 "stratford_district" ( "name" text, "years" text, "area" text, "authority" text, "decile" real, "roll" text );. Question: "What is the lowest decile with a state authority and Midhirst school?". [/INST] SELECT MIN("decile") FROM "stratford_district" WHERE "authority"='state' AND "name"='midhirst 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 "previous_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "What is the year when Conrad Hückstädt won Men's Single?". [/INST] SELECT "year" FROM "previous_winners" WHERE "men_s_singles"='conrad hückstädt';</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 "previous_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "Who won the Men's Double the same year as Florentina Petre winning the Women's Singles?". [/INST] SELECT "men_s_doubles" FROM "previous_winners" WHERE "women_s_singles"='florentina petre';</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 "previous_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "In what year was there no competition for women?". [/INST] SELECT "year" FROM "previous_winners" WHERE "women_s_singles"='no competition';</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 "references" ( "name" text, "gender" text, "area" text, "authority" text, "decile" text, "roll" real );. Question: "What area is Central Takaka School in?". [/INST] SELECT "area" FROM "references" WHERE "name"='central takaka 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 "m2_f2_flights" ( "vehicle_flight_num" text, "date" text, "pilot" text, "mach" real, "velocity_km_h" real, "altitude_meters" real, "duration" text );. Question: "What is the Mach with Vehicle Flight # m2-f2 #8 and an Altitude (meters) greater than 13,716?". [/INST] SELECT SUM("mach") FROM "m2_f2_flights" WHERE "vehicle_flight_num"='m2-f2 #8' AND "altitude_meters">'13,716';</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 "m2_f2_flights" ( "vehicle_flight_num" text, "date" text, "pilot" text, "mach" real, "velocity_km_h" real, "altitude_meters" real, "duration" text );. Question: "What Vehicle Flight # has Pilot Peterson and Velocity (km/h) of 649?". [/INST] SELECT "vehicle_flight_num" FROM "m2_f2_flights" WHERE "pilot"='peterson' AND "velocity_km_h"=649;</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 "m2_f2_flights" ( "vehicle_flight_num" text, "date" text, "pilot" text, "mach" real, "velocity_km_h" real, "altitude_meters" real, "duration" text );. Question: "What Date has a Mach of 0.662?". [/INST] SELECT "date" FROM "m2_f2_flights" WHERE "mach"=0.662;</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 "members_of_parliament" ( "year" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text );. Question: "In 1837, who was the 2nd member who's 2nd party was conservative.". [/INST] SELECT "2nd_member" FROM "members_of_parliament" WHERE "2nd_party"='conservative' AND "year"='1837';</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 "members_of_parliament" ( "year" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text );. Question: "In 1865, what was the first party?". [/INST] SELECT "1st_party" FROM "members_of_parliament" WHERE "year"='1865';</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 "diemaco_colt_canada_models" ( "colt_model_no" text, "diemaco_model" text, "stock" text, "fire_control" text, "rear_sight" text, "forward_assist" text, "barrel_length" text, "barrel_profile" text, "barrel_twist" text, "hand_guards" text, "bayonet_lug" text, "muzzle_device" text );. Question: "Which Barrel twist has a Stock of canadian 3rd generation and a Hand guards of short ribbed?". [/INST] SELECT "barrel_twist" FROM "diemaco_colt_canada_models" WHERE "stock"='canadian 3rd generation' AND "hand_guards"='short ribbed';</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 "diemaco_colt_canada_models" ( "colt_model_no" text, "diemaco_model" text, "stock" text, "fire_control" text, "rear_sight" text, "forward_assist" text, "barrel_length" text, "barrel_profile" text, "barrel_twist" text, "hand_guards" text, "bayonet_lug" text, "muzzle_device" text );. Question: "Which Hand guards has a Barrel profile of a2 and a Rear sight of weaver?". [/INST] SELECT "hand_guards" FROM "diemaco_colt_canada_models" WHERE "barrel_profile"='a2' AND "rear_sight"='weaver';</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 "bathurst_1000_results" ( "year" real, "number" real, "team" text, "co_driver" text, "position" text, "laps" real );. Question: "Who was the co-driver for the team with more than 160 laps and the number 6 after 2010?". [/INST] SELECT "co_driver" FROM "bathurst_1000_results" WHERE "laps">160 AND "year">2010 AND "number"=6;</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 "bathurst_1000_results" ( "year" real, "number" real, "team" text, "co_driver" text, "position" text, "laps" real );. Question: "What is the fewest laps for a team with a position of DNF and a number smaller than 25 before 2001?". [/INST] SELECT MIN("laps") FROM "bathurst_1000_results" WHERE "position"='dnf' AND "number"<25 AND "year"<2001;</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 "candidates" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text );. Question: "What gender is Luc Desnoyers?". [/INST] SELECT "gender" FROM "candidates" WHERE "candidate_s_name"='luc desnoyers';</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 "candidates" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text );. Question: "What is the highest number of votes for the French Professor?". [/INST] SELECT MAX("votes") FROM "candidates" WHERE "occupation"='french professor';</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 "transmissions" ( "designation" text, "constellation" text, "date_sent" text, "arrival_date" text, "message" text );. Question: "Where is Hip 4872?". [/INST] SELECT "constellation" FROM "transmissions" WHERE "designation"='hip 4872';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.