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 "group_stage" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real, "group_position" text );. Question: "What was the final score agains Dynamo Kyiv, when the group position was 1st?". [/INST] SELECT "result_f_a" FROM "group_stage" WHERE "group_position"='1st' AND "opponents"='dynamo kyiv';</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, "h_a" text, "result_f_a" text, "attendance" real, "group_position" text );. Question: "What was the average attendance on 18 October 2000?". [/INST] SELECT AVG("attendance") FROM "group_stage" WHERE "date"='18 october 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 "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "In 2007, what player won player of the year?". [/INST] SELECT "player" FROM "made_the_cut" WHERE "year_s_won"='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 "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What year(s) did Mike Weir win player of the year?". [/INST] SELECT "year_s_won" FROM "made_the_cut" WHERE "player"='mike weir';</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 "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "The To par of +14 was won in what year(s)?". [/INST] SELECT "year_s_won" FROM "made_the_cut" WHERE "to_par"='+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 "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the result when the competition is 1982 president's cup?". [/INST] SELECT "result" FROM "international_goals" WHERE "competition"='1982 president''s cup';</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 "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the score when the date is December 14, 1985?". [/INST] SELECT "score" FROM "international_goals" WHERE "date"='december 14, 1985';</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 "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the venue when the date is September 24, 1980?". [/INST] SELECT "venue" FROM "international_goals" WHERE "date"='september 24, 1980';</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 "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the venue when the result is 2-0, and the score is 1 goal, and the competition is 1980 afc asian cup?". [/INST] SELECT "venue" FROM "international_goals" WHERE "result"='2-0' AND "score"='1 goal' AND "competition"='1980 afc asian cup';</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 "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the venue when the score is 1 goal, and the date is August 27, 1980?". [/INST] SELECT "venue" FROM "international_goals" WHERE "score"='1 goal' AND "date"='august 27, 1980';</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 "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the result when the date is August 27, 1980?". [/INST] SELECT "result" FROM "international_goals" WHERE "date"='august 27, 1980';</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_european_formula_two_championsh" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What year shows the Entrant of bmw motorsport?". [/INST] SELECT SUM("year") FROM "complete_european_formula_two_championsh" WHERE "entrant"='bmw motorsport';</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_european_formula_two_championsh" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "Which Entrant of stp march engineering scored the lowest points?". [/INST] SELECT MIN("points") FROM "complete_european_formula_two_championsh" WHERE "entrant"='stp march engineering';</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_european_formula_two_championsh" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What year had the Chassis of march 762 and more than 0 points?". [/INST] SELECT COUNT("year") FROM "complete_european_formula_two_championsh" WHERE "chassis"='march 762' AND "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_european_formula_two_championsh" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "Which engine of bmw had the lowest points and chassis of march 792 that is newer than 1979?". [/INST] SELECT MIN("points") FROM "complete_european_formula_two_championsh" WHERE "engine"='bmw' AND "chassis"='march 792' AND "year">1979;</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" real, "record" text );. Question: "Name the record when the attendance was more than 20,228 and rockies was the opponent on june 8". [/INST] SELECT "record" FROM "game_log" WHERE "attendance">'20,228' AND "opponent"='rockies' AND "date"='june 8';</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_sports_teams_in_florida" ( "school" text, "nickname" text, "city" text, "affiliation" text, "conference" text, "national_championships" real );. Question: "Which Conference has a City of boca raton, and a School of florida atlantic university?". [/INST] SELECT "conference" FROM "list_of_sports_teams_in_florida" WHERE "city"='boca raton' AND "school"='florida atlantic university';</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_sports_teams_in_florida" ( "school" text, "nickname" text, "city" text, "affiliation" text, "conference" text, "national_championships" real );. Question: "Which School has a National Championships of 2, and a City of orlando?". [/INST] SELECT "school" FROM "list_of_sports_teams_in_florida" WHERE "national_championships"=2 AND "city"='orlando';</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_sports_teams_in_florida" ( "school" text, "nickname" text, "city" text, "affiliation" text, "conference" text, "national_championships" real );. Question: "Which school has National Championships smaller than 2, and a Nickname of lions?". [/INST] SELECT "school" FROM "list_of_sports_teams_in_florida" WHERE "national_championships"<2 AND "nickname"='lions';</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 "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "win_pct" text );. Question: "What is the win percentage when 2011 shows 1r in the Paris tournament?". [/INST] SELECT "win_pct" FROM "singles_performance_timeline" WHERE "2011"='1r' AND "tournament"='paris';</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 "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "win_pct" text );. Question: "What shows for 2009 when 25 shows for 2011?". [/INST] SELECT "2009" FROM "singles_performance_timeline" WHERE "2011"='25';</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 "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "win_pct" text );. Question: "What shows for 2010 when 2011 is 1r at the US Open tournament?". [/INST] SELECT "2010" FROM "singles_performance_timeline" WHERE "2011"='1r' AND "tournament"='us open';</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 "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "win_pct" text );. Question: "What is the win percentage when 2010 was 98?". [/INST] SELECT "win_pct" FROM "singles_performance_timeline" WHERE "2010"='98';</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 "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "win_pct" text );. Question: "What shows for 2008 at the Shanghai tournament?". [/INST] SELECT "2008" FROM "singles_performance_timeline" WHERE "tournament"='shanghai';</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 "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "win_pct" text );. Question: "What is the win percentage for the 2012 of olympic games?". [/INST] SELECT "win_pct" FROM "singles_performance_timeline" WHERE "2012"='olympic games';</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, "round" real, "time" text, "location" text );. Question: "Who was the opponent in the match that lasted 1:22?". [/INST] SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "time"='1: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 "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real, "time" text, "location" text );. Question: "Which round did the bout against Jonatas Novaes end in?". [/INST] SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='jonatas novaes';</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 "sports" ( "club" text, "league" text, "sport" text, "venue" text, "established" real, "championships" real );. Question: "Name the average established for championships less than 1 and club of erie seawolves". [/INST] SELECT AVG("established") FROM "sports" WHERE "championships"<1 AND "club"='erie seawolves';</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 "sports" ( "club" text, "league" text, "sport" text, "venue" text, "established" real, "championships" real );. Question: "Name the most championships for club of erie seawolves". [/INST] SELECT MAX("championships") FROM "sports" WHERE "club"='erie seawolves';</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 "sports" ( "club" text, "league" text, "sport" text, "venue" text, "established" real, "championships" real );. Question: "Name the sport with championships less than 1 and club of erie bayhawks". [/INST] SELECT "sport" FROM "sports" WHERE "championships"<1 AND "club"='erie bayhawks';</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: "what is the date for game 3?". [/INST] SELECT "date" FROM "summary" WHERE "game"=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 "titles_in_the_neo_geo_online_collection_" ( "vol" text, "english_title" text, "japanese_title" text, "release_date_japan" text, "sony_catalog_no" text );. Question: "What is the English title of 餓狼伝説バトルアーカイブズ2?". [/INST] SELECT "english_title" FROM "titles_in_the_neo_geo_online_collection_" WHERE "japanese_title"='餓狼伝説バトルアーカイブズ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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text );. Question: "Who was the opponent when there was a loss of Francisco (1-1)?". [/INST] SELECT "opponent" FROM "game_log" WHERE "loss"='francisco (1-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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text );. Question: "On what date was the attendance 17,136?". [/INST] SELECT "date" FROM "game_log" WHERE "attendance"='17,136';</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 );. Question: "Who was the opponent during the game with a score of 6-5 and a loss of White (2-1)?". [/INST] SELECT "opponent" FROM "game_log" WHERE "score"='6-5' AND "loss"='white (2-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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text );. Question: "What was the score for the game that had an attendance of 41,087?". [/INST] SELECT "score" FROM "game_log" WHERE "attendance"='41,087';</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 );. Question: "When the game had a loss of Koch (0-1) what was the attendance?". [/INST] SELECT "attendance" FROM "game_log" WHERE "loss"='koch (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 "list_of_mexican_municipalities" ( "inegi_code" real, "municipality" text, "municipal_seat" text, "population_2010" real, "area_km2" real );. Question: "What is the inegi code for mexicali with 13,700 km area?". [/INST] SELECT AVG("inegi_code") FROM "list_of_mexican_municipalities" WHERE "municipal_seat"='mexicali' AND "area_km2">'13,700';</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 "premier_league" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real, "league_position" text );. Question: "What is the date of the away game when the team has a league position of 9th?". [/INST] SELECT "date" FROM "premier_league" WHERE "h_a"='a' AND "league_position"='9th';</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" real, "record" text );. Question: "Which Score has an Attendance larger than 13,175 and a Record of 18-16?". [/INST] SELECT "score" FROM "game_log" WHERE "attendance">'13,175' AND "record"='18-16';</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" real, "record" text );. Question: "On May 17, what is the highest Attendance?". [/INST] SELECT MAX("attendance") FROM "game_log" WHERE "date"='may 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 "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What is the highest number of points for the Modena Team Spa after 1991?". [/INST] SELECT MAX("points") FROM "complete_formula_one_results" WHERE "entrant"='modena team spa' AND "year">1991;</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, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What was the earliest year for the Ligier Gitanes?". [/INST] SELECT MIN("year") FROM "complete_formula_one_results" WHERE "entrant"='ligier gitanes';</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_5" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" real, "investing_dragon_s" text );. Question: "Which company or product was invested in by peter jones with more than £35,000 requested ?". [/INST] SELECT "company_or_product_name" FROM "series_5" WHERE "money_requested">'35,000' AND "investing_dragon_s"='peter jones';</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_5" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" real, "investing_dragon_s" text );. Question: "In episode 7 what was the highest amount of money requested by Jerry Mantalvanos & Paul Merker ?". [/INST] SELECT MAX("money_requested") FROM "series_5" WHERE "episode"='episode 7' AND "entrepreneur_s"='jerry mantalvanos & paul merker';</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_5" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" real, "investing_dragon_s" text );. Question: "How much money did reestore request ?". [/INST] SELECT "money_requested" FROM "series_5" WHERE "company_or_product_name"='reestore';</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_5" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" real, "investing_dragon_s" text );. Question: "How much money did gaming alerts ask for?". [/INST] SELECT COUNT("money_requested") FROM "series_5" WHERE "company_or_product_name"='gaming alerts';</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 "european_poker_tour" ( "date" text, "city" text, "event" text, "winner" text, "prize" text );. Question: "Who is the winner of the prize of €93,000?". [/INST] SELECT "winner" FROM "european_poker_tour" WHERE "prize"='€93,000';</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 "european_poker_tour" ( "date" text, "city" text, "event" text, "winner" text, "prize" text );. Question: "Who is the winner of the prize of £200,000 as listed?". [/INST] SELECT "winner" FROM "european_poker_tour" WHERE "prize"='£200,000';</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 "european_poker_tour" ( "date" text, "city" text, "event" text, "winner" text, "prize" text );. Question: "Ram Vaswani was a winner on what date?". [/INST] SELECT "date" FROM "european_poker_tour" WHERE "winner"='ram vaswani';</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_podiums" ( "season" real, "date" text, "location" text, "race" text, "place" text );. Question: "Which race resulted in 2nd place in the 1996 season on 20-Jan-1996?". [/INST] SELECT "race" FROM "race_podiums" WHERE "place"='2nd' AND "season"=1996 AND "date"='20-jan-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_podiums" ( "season" real, "date" text, "location" text, "race" text, "place" text );. Question: "What is the place result of the downhill race before the 1996 season on 11-Mar-1995?". [/INST] SELECT "place" FROM "race_podiums" WHERE "race"='downhill' AND "season"<1996 AND "date"='11-mar-1995';</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_podiums" ( "season" real, "date" text, "location" text, "race" text, "place" text );. Question: "What place result was the 1996 season at Lake Louise, Canada?". [/INST] SELECT "place" FROM "race_podiums" WHERE "season"=1996 AND "location"='lake louise, canada';</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 "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "What is the Record that has a Home of detroit red wings, and a Score of 1–2 on december 29?". [/INST] SELECT "record" FROM "regular_season" WHERE "home"='detroit red wings' AND "score"='1–2' AND "date"='december 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 "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "Whose Visitor has a Record of 10–11–5?". [/INST] SELECT "visitor" FROM "regular_season" WHERE "record"='10–11–5';</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 "season" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real );. Question: "What is the typical match smaller than 2?". [/INST] SELECT AVG("average") FROM "season" WHERE "matches"<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 "season" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real );. Question: "What are the total number of matches smaller than 2 with a tally of 1-19?". [/INST] SELECT COUNT("total") FROM "season" WHERE "tally"='1-19' AND "matches"<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 "season" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real );. Question: "What is the average total in the county of tipperary with a rank less than 1?". [/INST] SELECT COUNT("average") FROM "season" WHERE "county"='tipperary' AND "rank"<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 "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "What is the Qual with less than 68 laps?". [/INST] SELECT "qual" FROM "indy_500_results" WHERE "laps"<68;</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: "The 147.481 Qual, happened in what year?". [/INST] SELECT "year" FROM "indy_500_results" WHERE "qual"='147.481';</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_of_needs" ( "need" text, "being_qualities" text, "having_things" text, "doing_actions" text, "interacting_settings" text );. Question: "Name the being for having things of language, religions, work, customs, values, norms?". [/INST] SELECT "being_qualities" FROM "classification_of_needs" WHERE "having_things"='language, religions, work, customs, values, norms';</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_of_needs" ( "need" text, "being_qualities" text, "having_things" text, "doing_actions" text, "interacting_settings" text );. Question: "Name the having things for privacy, intimate spaces of togetherness". [/INST] SELECT "having_things" FROM "classification_of_needs" WHERE "interacting_settings"='privacy, intimate spaces of togetherness';</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_of_needs" ( "need" text, "being_qualities" text, "having_things" text, "doing_actions" text, "interacting_settings" text );. Question: "Name the interacting for need of protection". [/INST] SELECT "interacting_settings" FROM "classification_of_needs" WHERE "need"='protection';</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_of_needs" ( "need" text, "being_qualities" text, "having_things" text, "doing_actions" text, "interacting_settings" text );. Question: "Name the interacting settings for co-operate, plan, take care of, help". [/INST] SELECT "interacting_settings" FROM "classification_of_needs" WHERE "doing_actions"='co-operate, plan, take care of, help';</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_of_needs" ( "need" text, "being_qualities" text, "having_things" text, "doing_actions" text, "interacting_settings" text );. Question: "Name the being qualities for having things of language, religions, work, customs, values, norms". [/INST] SELECT "being_qualities" FROM "classification_of_needs" WHERE "having_things"='language, religions, work, customs, values, norms';</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_of_needs" ( "need" text, "being_qualities" text, "having_things" text, "doing_actions" text, "interacting_settings" text );. Question: "Name the being qualities for having things of friendships, family, relationships with nature". [/INST] SELECT "being_qualities" FROM "classification_of_needs" WHERE "having_things"='friendships, family, relationships with nature';</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" real, "time" text, "record" text );. Question: "What was the attendance for the game that went 2:42?". [/INST] SELECT MAX("attendance") FROM "game_log" WHERE "time"='2:42';</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" ( "name" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );. Question: "How many laps for sébastien bourdais, and a Grid smaller than 1?". [/INST] SELECT SUM("laps") FROM "race" WHERE "name"='sébastien bourdais' AND "grid"<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 "challenger_and_futures_runner_up_5" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );. Question: "What was the score in the match against Kim Tiilikainen?". [/INST] SELECT "score" FROM "challenger_and_futures_runner_up_5" WHERE "opponent"='kim tiilikainen';</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 "challenger_and_futures_runner_up_5" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );. Question: "What was the date of the match against Jean-Julien Rojer, on a clay surface?". [/INST] SELECT "date" FROM "challenger_and_futures_runner_up_5" WHERE "surface"='clay' AND "opponent"='jean-julien rojer';</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 "challenger_and_futures_runner_up_5" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );. Question: "Which tournament had a hard surface?". [/INST] SELECT "tournament" FROM "challenger_and_futures_runner_up_5" WHERE "surface"='hard';</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 "doubles_5_13" ( "outcome" text, "date" text, "surface" text, "opponent" text, "score" text );. Question: "What is the surface of the match when the outcome was runner-up, and a Score of julia görges polona hercog?". [/INST] SELECT "surface" FROM "doubles_5_13" WHERE "outcome"='runner-up' AND "score"='julia görges polona hercog';</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 "doubles_5_13" ( "outcome" text, "date" text, "surface" text, "opponent" text, "score" text );. Question: "What was the surface of the match when the score was akgul amanmuradova chuang chia-jung?". [/INST] SELECT "surface" FROM "doubles_5_13" WHERE "score"='akgul amanmuradova chuang chia-jung';</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 "doubles_5_13" ( "outcome" text, "date" text, "surface" text, "opponent" text, "score" text );. Question: "What date was the surface hard and Eva Hrdinová was the opponent?". [/INST] SELECT "date" FROM "doubles_5_13" WHERE "surface"='hard' AND "opponent"='eva hrdinová';</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 "doubles_5_13" ( "outcome" text, "date" text, "surface" text, "opponent" text, "score" text );. Question: "What was the surface of the match against bethanie mattek-sands?". [/INST] SELECT "surface" FROM "doubles_5_13" WHERE "opponent"='bethanie mattek-sands';</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 "the_dragons" ( "series_1" text, "series_2" text, "series_3" text, "series_5" text, "series_9" text, "series_11" text );. Question: "What series 1 has a Doug Richards in Series 2?". [/INST] SELECT "series_1" FROM "the_dragons" WHERE "series_2"='doug richards';</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 "the_dragons" ( "series_1" text, "series_2" text, "series_3" text, "series_5" text, "series_9" text, "series_11" text );. Question: "Who in series 1 corresponds with Peter Jones in series 5?". [/INST] SELECT "series_1" FROM "the_dragons" WHERE "series_5"='peter jones';</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 "the_dragons" ( "series_1" text, "series_2" text, "series_3" text, "series_5" text, "series_9" text, "series_11" text );. Question: "Who in series 5 corresponds to Deborah Meaden in series 3?". [/INST] SELECT "series_5" FROM "the_dragons" WHERE "series_3"='deborah meaden';</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 "the_dragons" ( "series_1" text, "series_2" text, "series_3" text, "series_5" text, "series_9" text, "series_11" text );. Question: "Who in series 11 corresponds to Peter Jones in series 1?". [/INST] SELECT "series_11" FROM "the_dragons" WHERE "series_1"='peter jones';</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 "the_dragons" ( "series_1" text, "series_2" text, "series_3" text, "series_5" text, "series_9" text, "series_11" text );. Question: "Who in series 9 corresponds to Peter Jones in series 2?". [/INST] SELECT "series_9" FROM "the_dragons" WHERE "series_2"='peter jones';</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" real, "record" text );. Question: "What was the score of the game when the Blue Jays were 55-39?". [/INST] SELECT "score" FROM "game_log" WHERE "record"='55-39';</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 "world_championships" ( "event" text, "individual" text, "sprint" text, "pursuit" text, "mass_start" text, "relay" text );. Question: "Who was the individual in the event of 1998 Pokljuka?". [/INST] SELECT "individual" FROM "world_championships" WHERE "event"='1998 pokljuka';</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 "west_donegal_railway" ( "class" text, "type" text, "fleet_numbers" text, "quantity_made" real, "manufacturer" text, "date_made" real, "date_withdrawn" text );. Question: "Which locomotive class had 5 items made?". [/INST] SELECT "class" FROM "west_donegal_railway" WHERE "quantity_made"=5;</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 "west_donegal_railway" ( "class" text, "type" text, "fleet_numbers" text, "quantity_made" real, "manufacturer" text, "date_made" real, "date_withdrawn" text );. Question: "Which manufacturer made a locomotive with a type of 4-6-4t?". [/INST] SELECT "manufacturer" FROM "west_donegal_railway" WHERE "type"='4-6-4t';</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 "miscellaneous" ( "aces" real, "player" real, "opponent" text, "round" text, "year" text, "event" real, "surface" text, "sets" text );. Question: "What is the event year radek štěpánek was the round and there were less than 3 aces?". [/INST] SELECT COUNT("event") FROM "miscellaneous" WHERE "round"='radek štěpánek' AND "aces"<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 "miscellaneous" ( "aces" real, "player" real, "opponent" text, "round" text, "year" text, "event" real, "surface" text, "sets" text );. Question: "How many players were in the event after 2011 with less than 9 aces?". [/INST] SELECT COUNT("player") FROM "miscellaneous" WHERE "event">2011 AND "aces"<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 "miscellaneous" ( "aces" real, "player" real, "opponent" text, "round" text, "year" text, "event" real, "surface" text, "sets" text );. Question: "Who was the opponent in the 2011 event with less than 113 players?". [/INST] SELECT "opponent" FROM "miscellaneous" WHERE "player"<113 AND "event"=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 "miscellaneous" ( "aces" real, "player" real, "opponent" text, "round" text, "year" text, "event" real, "surface" text, "sets" text );. Question: "What is the highest number of players during 1r year with a clay set and more than 4 aces?". [/INST] SELECT MAX("player") FROM "miscellaneous" WHERE "year"='1r' AND "sets"='clay' AND "aces">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 "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "Who played as Team 2 against Team 1 SC Gagnoa?". [/INST] SELECT "team_2" FROM "second_round" WHERE "team_1"='sc gagnoa';</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 "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "What was the 1st leg score when Mufulira Wanderers played as Team 2?". [/INST] SELECT "1st_leg" FROM "second_round" WHERE "team_2"='mufulira wanderers';</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 "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "What's the score of the 1st leg when Water Corporation was Team 1?". [/INST] SELECT "1st_leg" FROM "second_round" WHERE "team_1"='water corporation';</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 "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "What's the 1st leg score when Team 1 was Gor Mahia?". [/INST] SELECT "1st_leg" FROM "second_round" WHERE "team_1"='gor mahia';</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 "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "Who played as Team 1 against Lomé i?". [/INST] SELECT "team_1" FROM "second_round" WHERE "team_2"='lomé i';</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: "Name the entrant for year of 1952". [/INST] SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "year"=1952;</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: "Name the total number of points for 1952". [/INST] SELECT COUNT("points") FROM "complete_formula_one_world_championship_" WHERE "year"=1952;</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: "Name the total number of years for talbot-lago t26c and points less than 3". [/INST] SELECT COUNT("year") FROM "complete_formula_one_world_championship_" WHERE "chassis"='talbot-lago t26c' 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 "series_11" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text );. Question: "What episode featured entrepreneur Richard Ernest?". [/INST] SELECT "first_aired" FROM "series_11" WHERE "entrepreneur_s"='richard ernest';</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_11" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text );. Question: "What Investing Dragons had a request of £100,000?". [/INST] SELECT "investing_dragon_s" FROM "series_11" WHERE "money_requested"='100,000';</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_11" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text );. Question: "What Entrepreneurs requested £60,000?". [/INST] SELECT "entrepreneur_s" FROM "series_11" WHERE "money_requested"='60,000';</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_11" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text );. Question: "How much was requested from Investing Dragon Peter Jones request in episode 2?". [/INST] SELECT "money_requested" FROM "series_11" WHERE "investing_dragon_s"='peter jones' AND "episode"='episode 2';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.