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 "career_summary" ( "season" text, "series" text, "team_name" text, "races" text, "wins" text, "poles" text, "f_l" text, "podiums" text, "points" text, "position" text );. Question: "What is the number of podiums with 0 wins, 0 F.L. and 35 points?". [/INST] SELECT "podiums" FROM "career_summary" WHERE "wins"='0' AND "f_l"='0' AND "points"='35';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" text, "wins" text, "poles" text, "f_l" text, "podiums" text, "points" text, "position" text );. Question: "What is the number of poles with 4 races?". [/INST] SELECT "poles" FROM "career_summary" WHERE "races"='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 "career_summary" ( "season" text, "series" text, "team_name" text, "races" text, "wins" text, "poles" text, "f_l" text, "podiums" text, "points" text, "position" text );. Question: "What races have gp2 series, 0 F.L. and a 17th position?". [/INST] SELECT "races" FROM "career_summary" WHERE "series"='gp2 series' AND "f_l"='0' AND "position"='17th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" text, "wins" text, "poles" text, "f_l" text, "podiums" text, "points" text, "position" text );. Question: "What is the number of podiums with 0 wins and 6 points?". [/INST] SELECT "podiums" FROM "career_summary" WHERE "wins"='0' AND "points"='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 "career_summary" ( "season" text, "series" text, "team_name" text, "races" text, "wins" text, "poles" text, "f_l" text, "podiums" text, "points" text, "position" text );. Question: "What is the number of wins with a 0 F.L., 0 poles, a position of 7th, and 35 points?". [/INST] SELECT "wins" FROM "career_summary" WHERE "f_l"='0' AND "poles"='0' AND "position"='7th' AND "points"='35';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "round_num" real, "pick" real, "player" text, "position" text, "college" text );. Question: "Which pick came from Pittsburgh?". [/INST] SELECT COUNT("pick") FROM "nfl_draft" WHERE "college"='pittsburgh';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "round_num" real, "pick" real, "player" text, "position" text, "college" text );. Question: "Which pick came from Texas El-Paso?". [/INST] SELECT SUM("pick") FROM "nfl_draft" WHERE "college"='texas el-paso';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "box_office_performance" ( "film" text, "opening" text, "budget" text, "domestic" text, "worldwide" text );. Question: "WHAT IS THE OPENING WITH A WORLDWIDE NUMBER OF $559,852,396?". [/INST] SELECT "opening" FROM "box_office_performance" WHERE "worldwide"='$559,852,396';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "box_office_performance" ( "film" text, "opening" text, "budget" text, "domestic" text, "worldwide" text );. Question: "WHAT IS THE BUDGET WHEN THE WORLDWIDE BOX OFFICE IS $363,398,565?". [/INST] SELECT "budget" FROM "box_office_performance" WHERE "worldwide"='$363,398,565';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "box_office_performance" ( "film" text, "opening" text, "budget" text, "domestic" text, "worldwide" text );. Question: "WHAT IS THE BUDGET FOR THE INCREDIBLES?". [/INST] SELECT "budget" FROM "box_office_performance" WHERE "film"='the incredibles';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "box_office_performance" ( "film" text, "opening" text, "budget" text, "domestic" text, "worldwide" text );. Question: "WHAT IS THE WORLDWIDE BOX OFFICE FOR BRAVE?". [/INST] SELECT "worldwide" FROM "box_office_performance" WHERE "film"='brave';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tac_peter_brock_classic_super_touring" ( "driver" text, "team" text, "race_1" text, "race_2" text, "points" real );. Question: "Which driver for Bob Holden Motors has fewer than 36 points and placed 7 in race 1?". [/INST] SELECT "driver" FROM "tac_peter_brock_classic_super_touring" WHERE "points"<36 AND "team"='bob holden motors' AND "race_1"='7';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tac_peter_brock_classic_super_touring" ( "driver" text, "team" text, "race_1" text, "race_2" text, "points" real );. Question: "Which team received 4 in race 1?". [/INST] SELECT "team" FROM "tac_peter_brock_classic_super_touring" WHERE "race_1"='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 "tac_peter_brock_classic_super_touring" ( "driver" text, "team" text, "race_1" text, "race_2" text, "points" real );. Question: "Which driver for Greenfield Mowers Racing has fewer than 36 points?". [/INST] SELECT "driver" FROM "tac_peter_brock_classic_super_touring" WHERE "points"<36 AND "team"='greenfield mowers racing';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_the_presidents_of_the_general_co" ( "number" text, "d_partment_or_collectivity" text, "pr_sident" text, "party" text, "since" real );. Question: "Who is the president representing the Creuse department?". [/INST] SELECT "pr_sident" FROM "list_of_the_presidents_of_the_general_co" WHERE "d_partment_or_collectivity"='creuse';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_the_presidents_of_the_general_co" ( "number" text, "d_partment_or_collectivity" text, "pr_sident" text, "party" text, "since" real );. Question: "What number corresponds to Presidet Yves Krattinger of the Socialist party?". [/INST] SELECT "number" FROM "list_of_the_presidents_of_the_general_co" WHERE "party"='socialist party' AND "pr_sident"='yves krattinger';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_the_presidents_of_the_general_co" ( "number" text, "d_partment_or_collectivity" text, "pr_sident" text, "party" text, "since" real );. Question: "Which department has Guy-Dominique Kennel as president since 2008?". [/INST] SELECT "d_partment_or_collectivity" FROM "list_of_the_presidents_of_the_general_co" WHERE "since"=2008 AND "pr_sident"='guy-dominique kennel';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_the_presidents_of_the_general_co" ( "number" text, "d_partment_or_collectivity" text, "pr_sident" text, "party" text, "since" real );. Question: "Who is the president from the Union for a Popular Movement party that represents the Hautes-Alpes department?". [/INST] SELECT "pr_sident" FROM "list_of_the_presidents_of_the_general_co" WHERE "party"='union for a popular movement' AND "d_partment_or_collectivity"='hautes-alpes';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "team_overview" ( "club" text, "location" text, "manager" text, "venue" text, "capacity" real );. Question: "What is the highest capacity for the venue, ticha stadium, located in varna?". [/INST] SELECT MAX("capacity") FROM "team_overview" WHERE "location"='varna' AND "venue"='ticha stadium';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "team_overview" ( "club" text, "location" text, "manager" text, "venue" text, "capacity" real );. Question: "What is the highest capacity for the venue of the club, vihren?". [/INST] SELECT MAX("capacity") FROM "team_overview" WHERE "club"='vihren';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "team_overview" ( "club" text, "location" text, "manager" text, "venue" text, "capacity" real );. Question: "What is the total number of capacity for the venue of the club, pirin?". [/INST] SELECT COUNT("capacity") FROM "team_overview" WHERE "club"='pirin';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "u_s_nielsen_ratings" ( "episode_number" real, "episode" text, "rating" real, "share" real, "rating_share_18_49" text, "viewers_millions" real, "rank_overall" text );. Question: "WHAT IS THE RATING THAT HAD A SHARE SMALLER THAN 4, AND 2.47 MILLION VIEWERS?". [/INST] SELECT COUNT("rating") FROM "u_s_nielsen_ratings" WHERE "share"<4 AND "viewers_millions">2.47;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "u_s_nielsen_ratings" ( "episode_number" real, "episode" text, "rating" real, "share" real, "rating_share_18_49" text, "viewers_millions" real, "rank_overall" text );. Question: "WHAT IS THE NUMBER OF VIEWERS WITH EPISODE LARGER THAN 10, RATING SMALLER THAN 2?". [/INST] SELECT MAX("viewers_millions") FROM "u_s_nielsen_ratings" WHERE "episode_number">10 AND "rating"<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 "u_s_nielsen_ratings" ( "episode_number" real, "episode" text, "rating" real, "share" real, "rating_share_18_49" text, "viewers_millions" real, "rank_overall" text );. Question: "WHAT IS THE HIGHEST VIEWERS WITH AN EPISODE LESS THAN 15 AND SHARE LAGER THAN 7?". [/INST] SELECT MAX("viewers_millions") FROM "u_s_nielsen_ratings" WHERE "episode_number"<15 AND "share">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 "schedule_and_results" ( "game" real, "october" real, "opponent" text, "score" text, "record" text );. Question: "What was the score of the game after game 6 on October 28?". [/INST] SELECT "score" FROM "schedule_and_results" WHERE "game">6 AND "october"=28;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule_and_results" ( "game" real, "october" real, "opponent" text, "score" text, "record" text );. Question: "What was the record for the game before game 6 against the chicago black hawks?". [/INST] SELECT "record" FROM "schedule_and_results" WHERE "game"<6 AND "opponent"='chicago black hawks';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_20" ( "full_name" text, "alias" text, "age" real, "from" text, "occupation" text, "specialty" text, "position_eliminated" text );. Question: "What is Position/ Eliminated, when Age¹ is less than 22, and when Full Name is "Muhammad Fairul Azreen Bin Mohd Zahid"?". [/INST] SELECT "position_eliminated" FROM "top_20" WHERE "age"<22 AND "full_name"='muhammad fairul azreen bin mohd zahid';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_20" ( "full_name" text, "alias" text, "age" real, "from" text, "occupation" text, "specialty" text, "position_eliminated" text );. Question: "What is Occupation², when Age¹ is greater than 24, when Alias is "Black"?". [/INST] SELECT "occupation" FROM "top_20" WHERE "age">24 AND "alias"='black';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_20" ( "full_name" text, "alias" text, "age" real, "from" text, "occupation" text, "specialty" text, "position_eliminated" text );. Question: "What is Position/ Eliminated, when From is "Kuala Lumpur", and when Specialty is "Contemporary Lyrical Jazz"?". [/INST] SELECT "position_eliminated" FROM "top_20" WHERE "from"='kuala lumpur' AND "specialty"='contemporary lyrical jazz';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_20" ( "full_name" text, "alias" text, "age" real, "from" text, "occupation" text, "specialty" text, "position_eliminated" text );. Question: "What is Full Name, when Age¹ is "20", and when Occupation² is "Student"?". [/INST] SELECT "full_name" FROM "top_20" WHERE "age"=20 AND "occupation"='student';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "21st_century_comeback" ( "date" text, "time" text, "opponent" text, "score" text, "site" text, "city" text );. Question: "Who is the Opponent when the Score is 2-8?". [/INST] SELECT "opponent" FROM "21st_century_comeback" WHERE "score"='2-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 "21st_century_comeback" ( "date" text, "time" text, "opponent" text, "score" text, "site" text, "city" text );. Question: "What is the Date if the Site is Shriver Field?". [/INST] SELECT "date" FROM "21st_century_comeback" WHERE "site"='shriver field';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "21st_century_comeback" ( "date" text, "time" text, "opponent" text, "score" text, "site" text, "city" text );. Question: "Which Score has a Time of 5:00pm?". [/INST] SELECT "score" FROM "21st_century_comeback" WHERE "time"='5:00pm';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "21st_century_comeback" ( "date" text, "time" text, "opponent" text, "score" text, "site" text, "city" text );. Question: "Which site has a Score of 0-1?". [/INST] SELECT "site" FROM "21st_century_comeback" WHERE "score"='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 "21st_century_comeback" ( "date" text, "time" text, "opponent" text, "score" text, "site" text, "city" text );. Question: "Who was the Opponent at Homewood Field with a Score of 5-8?". [/INST] SELECT "opponent" FROM "21st_century_comeback" WHERE "site"='homewood field' AND "score"='5-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 "other_results" ( "position" text, "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text );. Question: "What is the team #1 with an 11th place position?". [/INST] SELECT "team_num1" FROM "other_results" WHERE "position"='11th place';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "other_results" ( "position" text, "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text );. Question: "What is the 1st leg of bp. honvéd team #2?". [/INST] SELECT "1st_leg" FROM "other_results" WHERE "team_num2"='bp. honvéd';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "other_results" ( "position" text, "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text );. Question: "What is the 1st leg with a 4-3 agg.?". [/INST] SELECT "1st_leg" FROM "other_results" WHERE "agg"='4-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 "other_results" ( "position" text, "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text );. Question: "What position has a 2-6 agg.?". [/INST] SELECT "position" FROM "other_results" WHERE "agg"='2-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 "other_results" ( "position" text, "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text );. Question: "What is the 2nd leg of the 4-9 agg.?". [/INST] SELECT "2nd_leg" FROM "other_results" WHERE "agg"='4-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 "current_semi_professional_teams" ( "club" text, "city" text, "sport" text, "league" text, "venue" text );. Question: "Which sport had the club of the Montgomery Biscuits?". [/INST] SELECT "sport" FROM "current_semi_professional_teams" WHERE "club"='montgomery biscuits';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_semi_professional_teams" ( "club" text, "city" text, "sport" text, "league" text, "venue" text );. Question: "Which venue held a basketball team?". [/INST] SELECT "venue" FROM "current_semi_professional_teams" WHERE "sport"='basketball';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_semi_professional_teams" ( "club" text, "city" text, "sport" text, "league" text, "venue" text );. Question: "Which sport was held in Huntsville at the Von Braun Center as part of the Southern Indoor Football League?". [/INST] SELECT "sport" FROM "current_semi_professional_teams" WHERE "city"='huntsville' AND "venue"='von braun center' AND "league"='southern indoor football league';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_semi_professional_teams" ( "club" text, "city" text, "sport" text, "league" text, "venue" text );. Question: "Which venue hosted the Gridiron Development Football League?". [/INST] SELECT "venue" FROM "current_semi_professional_teams" WHERE "league"='gridiron development football league';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_semi_professional_teams" ( "club" text, "city" text, "sport" text, "league" text, "venue" text );. Question: "Which venue hosted the Dixie Derby Girls?". [/INST] SELECT "venue" FROM "current_semi_professional_teams" WHERE "club"='dixie derby girls';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_semi_professional_teams" ( "club" text, "city" text, "sport" text, "league" text, "venue" text );. Question: "Which city has a club called the Huntsville Stars?". [/INST] SELECT "city" FROM "current_semi_professional_teams" WHERE "club"='huntsville stars';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "other" ( "year" real, "artist" text, "title" text, "label" text, "type" text );. Question: "which Type has a Title of so alive?". [/INST] SELECT "type" FROM "other" WHERE "title"='so alive';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "other" ( "year" real, "artist" text, "title" text, "label" text, "type" text );. Question: "Name the Year which has a Label of atco records and a Type of album? Question 2". [/INST] SELECT "year" FROM "other" WHERE "label"='atco records' AND "type"='album';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "other" ( "year" real, "artist" text, "title" text, "label" text, "type" text );. Question: "Which Title has a Type of album and a Year larger than 1986?". [/INST] SELECT "title" FROM "other" WHERE "type"='album' AND "year">1986;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "other" ( "year" real, "artist" text, "title" text, "label" text, "type" text );. Question: "Which Title has a Type of ep and a Year larger than 2003?". [/INST] SELECT "title" FROM "other" WHERE "type"='ep' AND "year">2003;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "other" ( "year" real, "artist" text, "title" text, "label" text, "type" text );. Question: "Which Title has a Type of album in 1983?". [/INST] SELECT "title" FROM "other" WHERE "type"='album' AND "year"=1983;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "score" text, "result" text, "attendance" text, "record" text );. Question: "What was the date of the game with an attendance of 20,874 fans?". [/INST] SELECT "date" FROM "season_schedule" WHERE "attendance"='20,874';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_schedule" ( "week" real, "date" text, "opponent" text, "score" text, "result" text, "attendance" text, "record" text );. Question: "What was the record the the match against vs. calgary stampeders before week 15?". [/INST] SELECT "record" FROM "season_schedule" WHERE "opponent"='vs. calgary stampeders' AND "week"<15;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performances" ( "week" text, "theme" text, "artist" text, "order_sung" text, "status" text );. Question: "What is the status when the artist is Neil Sedaka?". [/INST] SELECT "status" FROM "performances" WHERE "artist"='neil sedaka';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performances" ( "week" text, "theme" text, "artist" text, "order_sung" text, "status" text );. Question: "What was the theme for the Top 11 week?". [/INST] SELECT "theme" FROM "performances" WHERE "week"='top 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 "performances" ( "week" text, "theme" text, "artist" text, "order_sung" text, "status" text );. Question: "What week did the contestant finish in the bottom 2 with a Celine Dion song?". [/INST] SELECT "week" FROM "performances" WHERE "status"='bottom 2' AND "artist"='celine dion';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performances" ( "week" text, "theme" text, "artist" text, "order_sung" text, "status" text );. Question: "What order was the performance of a Richard Marx song?". [/INST] SELECT "order_sung" FROM "performances" WHERE "artist"='richard marx';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performances" ( "week" text, "theme" text, "artist" text, "order_sung" text, "status" text );. Question: "What artist's song was performed in the week with theme of Billboard #1?". [/INST] SELECT "artist" FROM "performances" WHERE "theme"='billboard #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 "printed_media" ( "newspaper_magazine" text, "type" text, "language" text, "headquarter" text, "status" text );. Question: "What is Headquarter, when Type is Independent Online News Portal?". [/INST] SELECT "headquarter" FROM "printed_media" WHERE "type"='independent online news portal';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "printed_media" ( "newspaper_magazine" text, "type" text, "language" text, "headquarter" text, "status" text );. Question: "What is Status, when Newspaper/Magazine is Al-Thawra?". [/INST] SELECT "status" FROM "printed_media" WHERE "newspaper_magazine"='al-thawra';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "printed_media" ( "newspaper_magazine" text, "type" text, "language" text, "headquarter" text, "status" text );. Question: "What is Headquarter, when Newspaper/Magazine is Al-Ayyam?". [/INST] SELECT "headquarter" FROM "printed_media" WHERE "newspaper_magazine"='al-ayyam';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "printed_media" ( "newspaper_magazine" text, "type" text, "language" text, "headquarter" text, "status" text );. Question: "What is Type, when Newspaper/Magazine is Telecoms & It Magazine?". [/INST] SELECT "type" FROM "printed_media" WHERE "newspaper_magazine"='telecoms & it magazine';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "printed_media" ( "newspaper_magazine" text, "type" text, "language" text, "headquarter" text, "status" text );. Question: "What is Headquarter, when Language is English, and when Type is Independent Online News Portal?". [/INST] SELECT "headquarter" FROM "printed_media" WHERE "language"='english' AND "type"='independent online news portal';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "printed_media" ( "newspaper_magazine" text, "type" text, "language" text, "headquarter" text, "status" text );. Question: "What is Headquarter, when Type is Government-Owned, and when Newspaper/Magazine is Al-Jumhuriya?". [/INST] SELECT "headquarter" FROM "printed_media" WHERE "type"='government-owned' AND "newspaper_magazine"='al-jumhuriya';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parishes" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text );. Question: "For Saint-Paul parish, if it has an area of over 228.65 kilometers how many people live there?". [/INST] SELECT COUNT("population") FROM "parishes" WHERE "official_name"='saint-paul' AND "area_km_2">228.65;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_8" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "box_score" text, "report" text );. Question: "What was the box score during a game that had a score of 86-96?". [/INST] SELECT "box_score" FROM "round_8" WHERE "score"='86-96';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_8" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "box_score" text, "report" text );. Question: "What was the report at State Sports Centre?". [/INST] SELECT "report" FROM "round_8" WHERE "venue"='state sports centre';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_8" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "box_score" text, "report" text );. Question: "Who was the home team at Gold Coast Convention Centre?". [/INST] SELECT "home_team" FROM "round_8" WHERE "venue"='gold coast convention centre';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_8" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "box_score" text, "report" text );. Question: "What was the date that featured a game against Gold Coast Blaze?". [/INST] SELECT "date" FROM "round_8" WHERE "away_team"='gold coast blaze';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_8" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "box_score" text, "report" text );. Question: "What was the box score during a home game of the Adelaide 36ers?". [/INST] SELECT "box_score" FROM "round_8" WHERE "home_team"='adelaide 36ers';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "How many Picks have an Overall smaller than 304, and a Position of g, and a Round smaller than 11?". [/INST] SELECT COUNT("pick") FROM "washington_redskins_draft_history" WHERE "overall"<304 AND "position"='g' AND "round"<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 "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "Which Overall is the highest one that has a Name of raleigh mckenzie, and a Pick larger than 10?". [/INST] SELECT MAX("overall") FROM "washington_redskins_draft_history" WHERE "name"='raleigh mckenzie' AND "pick">10;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "How many Picks have a College of hawaii, and an Overall smaller than 122?". [/INST] SELECT COUNT("pick") FROM "washington_redskins_draft_history" WHERE "college"='hawaii' AND "overall"<122;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "Which Round is the highest one that has a Pick smaller than 10, and a Name of tory nixon?". [/INST] SELECT MAX("round") FROM "washington_redskins_draft_history" WHERE "pick"<10 AND "name"='tory nixon';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "secondary_schools" ( "school" text, "locality" text, "ages" text, "capacity" real, "ofsted" real );. Question: "Which Ofsted has a Capacity of 1677?". [/INST] SELECT "ofsted" FROM "secondary_schools" WHERE "capacity"=1677;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "secondary_schools" ( "school" text, "locality" text, "ages" text, "capacity" real, "ofsted" real );. Question: "Which Ofsted has a School of marple hall school, and a Capacity larger than 1711?". [/INST] SELECT MIN("ofsted") FROM "secondary_schools" WHERE "school"='marple hall school' AND "capacity">1711;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "secondary_schools" ( "school" text, "locality" text, "ages" text, "capacity" real, "ofsted" real );. Question: "Which School has Ages of 11-16, and an Ofsted smaller than 106142, and a Capacity of 1206?". [/INST] SELECT "school" FROM "secondary_schools" WHERE "ages"='11-16' AND "ofsted"<106142 AND "capacity"=1206;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "secondary_schools" ( "school" text, "locality" text, "ages" text, "capacity" real, "ofsted" real );. Question: "What is heaton chapel's capacity?". [/INST] SELECT MAX("capacity") FROM "secondary_schools" WHERE "locality"='heaton chapel';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "secondary_schools" ( "school" text, "locality" text, "ages" text, "capacity" real, "ofsted" real );. Question: "Which School has a Capacity larger than 730, and an Ofsted smaller than 106135, and a Locality of heaton mersey?". [/INST] SELECT "school" FROM "secondary_schools" WHERE "capacity">730 AND "ofsted"<106135 AND "locality"='heaton mersey';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text );. Question: "What is the lowest Game, when Date is March 21?". [/INST] SELECT MIN("game") FROM "season_schedule" WHERE "date"='march 21';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text );. Question: "What is Team, when Game is 77?". [/INST] SELECT "team" FROM "season_schedule" WHERE "game"=77;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text );. Question: "What is Team, when Game is 73?". [/INST] SELECT "team" FROM "season_schedule" WHERE "game"=73;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "known_machines" ( "location" text, "country" text, "type" text, "wheels" real, "configuration" text );. Question: "What location has surveying as the type?". [/INST] SELECT "location" FROM "known_machines" WHERE "type"='surveying';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "known_machines" ( "location" text, "country" text, "type" text, "wheels" real, "configuration" text );. Question: "What average wheels has accounting as the type, with IBM Collection as the location?". [/INST] SELECT AVG("wheels") FROM "known_machines" WHERE "type"='accounting' AND "location"='ibm collection';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "known_machines" ( "location" text, "country" text, "type" text, "wheels" real, "configuration" text );. Question: "What is the configuration for the country France, with accounting as the type, and wheels greater than 6?". [/INST] SELECT "configuration" FROM "known_machines" WHERE "country"='france' AND "type"='accounting' AND "wheels">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 "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "Which NFL team has a pick# less than 200 for Travis Davis?". [/INST] SELECT "nfl_team" FROM "nfl_draft" WHERE "pick_num"<200 AND "player"='travis davis';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "Which player was a running back from San Jose State?". [/INST] SELECT "player" FROM "nfl_draft" WHERE "position"='running back' AND "college"='san jose state';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "What is the pick# from South Dakota college?". [/INST] SELECT "pick_num" FROM "nfl_draft" WHERE "college"='south dakota';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "Which college has a nose tackle position?". [/INST] SELECT "college" FROM "nfl_draft" WHERE "position"='nose tackle';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "welsh_caps" ( "cap_number" real, "date" text, "position" text, "shirt_number" real, "home_or_away" text, "venue" text, "result" text, "score" text );. Question: "Can you tell me the Home or the Away that has the Shirt Number larger than 18?". [/INST] SELECT "home_or_away" FROM "welsh_caps" WHERE "shirt_number">18;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "welsh_caps" ( "cap_number" real, "date" text, "position" text, "shirt_number" real, "home_or_away" text, "venue" text, "result" text, "score" text );. Question: "Can you tell me the Score that has the Result of win, and the Date of 13 november 2009?". [/INST] SELECT "score" FROM "welsh_caps" WHERE "result"='win' AND "date"='13 november 2009';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "welsh_caps" ( "cap_number" real, "date" text, "position" text, "shirt_number" real, "home_or_away" text, "venue" text, "result" text, "score" text );. Question: "Can you tell me the lowest Cap Number that has the Date of 8 february 2009, and the Shirt Number larger than 19?". [/INST] SELECT MIN("cap_number") FROM "welsh_caps" WHERE "date"='8 february 2009' AND "shirt_number">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 "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real );. Question: "Which Points have a Position larger than 6, and a Lost smaller than 13?". [/INST] SELECT AVG("points") FROM "first_round" WHERE "position">6 AND "lost"<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 "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real );. Question: "How much Drawn has a Lost of 2, and Played smaller than 14?". [/INST] SELECT SUM("drawn") FROM "first_round" WHERE "lost"=2 AND "played"<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 "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real );. Question: "Which Points is the highest one that has a Drawn smaller than 2, and a Name of esc holzkirchen, and Played smaller than 14?". [/INST] SELECT MAX("points") FROM "first_round" WHERE "drawn"<2 AND "name"='esc holzkirchen' AND "played"<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 "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real );. Question: "Which Lost is the lowest one that has a Name of esc holzkirchen, and Played smaller than 14?". [/INST] SELECT MIN("lost") FROM "first_round" WHERE "name"='esc holzkirchen' AND "played"<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 "ratings" ( "episode_num" real, "us_air_date" text, "rating" text, "share" text, "rating_share_18_49" text, "viewers_millions" real );. Question: "What is the lowest numbered episode that had a rating/share of 0.9/4 and more than 3.79 million viewers?". [/INST] SELECT MIN("episode_num") FROM "ratings" WHERE "rating_share_18_49"='0.9/4' AND "viewers_millions">3.79;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ratings" ( "episode_num" real, "us_air_date" text, "rating" text, "share" text, "rating_share_18_49" text, "viewers_millions" real );. Question: "What is the average number of million viewers that watched an episode before episode 11 with a share of 4?". [/INST] SELECT AVG("viewers_millions") FROM "ratings" WHERE "episode_num"<11 AND "share"='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 "ratings" ( "episode_num" real, "us_air_date" text, "rating" text, "share" text, "rating_share_18_49" text, "viewers_millions" real );. Question: "What is the rating/share for episode 13?". [/INST] SELECT "rating_share_18_49" FROM "ratings" WHERE "episode_num"=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 "ratings" ( "episode_num" real, "us_air_date" text, "rating" text, "share" text, "rating_share_18_49" text, "viewers_millions" real );. Question: "What is the lowest number of million viewers for an episode before episode 5 with a rating/share of 1.1/3?". [/INST] SELECT MIN("viewers_millions") FROM "ratings" WHERE "rating_share_18_49"='1.1/3' AND "episode_num"<5;</s> |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.