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 "wins_18" ( "year" real, "54_holes" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "In which year is the highest for runner-up Steve Stricker?". [/INST] SELECT MAX("year") FROM "wins_18" WHERE "runner_s_up"='steve stricker';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_i" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "Which Played has Draws smaller than 7, and Goals for smaller than 61, and Goals against smaller than 48, and a Position of 5?". [/INST] SELECT MAX("played") FROM "group_i" WHERE "draws"<7 AND "goals_for"<61 AND "goals_against"<48 AND "position"=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 "group_i" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "How many Goals against have Played more than 34?". [/INST] SELECT COUNT("goals_against") FROM "group_i" WHERE "played">34;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_i" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "Which Losses have a Goal Difference of -16, and less than 8 wins?". [/INST] SELECT MIN("losses") FROM "group_i" WHERE "goal_difference"=-16 AND "wins"<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 "group_i" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "Which Wins have a Goal Difference larger than 0, and Goals against larger than 40, and a Position smaller than 6, and a Club of sd indauchu?". [/INST] SELECT MIN("wins") FROM "group_i" WHERE "goal_difference">0 AND "goals_against">40 AND "position"<6 AND "club"='sd indauchu';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "What place did player mark brooks take?". [/INST] SELECT "place" FROM "first_round" WHERE "player"='mark brooks';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "What was the To par of the golfer that placed t5?". [/INST] SELECT "to_par" FROM "first_round" WHERE "place"='t5';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "Which player had a score of 70?". [/INST] SELECT "player" FROM "first_round" WHERE "score"=70;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "What was the highest score of t5 place finisher brandt jobe?". [/INST] SELECT MAX("score") FROM "first_round" WHERE "place"='t5' AND "player"='brandt jobe';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text );. Question: "Which event had a total of defending champion?". [/INST] SELECT "event" FROM "qualification" WHERE "total"='defending champion';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );. Question: "How many weeks was there an attendance of 74,347?". [/INST] SELECT SUM("week") FROM "schedule" WHERE "attendance"='74,347';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );. Question: "What is the latest week with an attendance of 74,162?". [/INST] SELECT MAX("week") FROM "schedule" WHERE "attendance"='74,162';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );. Question: "Who is the opponent when the attendance is 57,331?". [/INST] SELECT "opponent" FROM "schedule" WHERE "attendance"='57,331';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );. Question: "What day was the attendance 74,285?". [/INST] SELECT "date" FROM "schedule" WHERE "attendance"='74,285';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );. Question: "What was the result for week 16?". [/INST] SELECT "result" FROM "schedule" WHERE "week"=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 "doubles_titles_8" ( "outcome" text, "date" real, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );. Question: "Who are the Opponents in the final prior to 1998 in the Bucharest, Romania Tournament?". [/INST] SELECT "opponents_in_the_final" FROM "doubles_titles_8" WHERE "date"<1998 AND "tournament"='bucharest, romania';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Which parish has an area of 750.51?". [/INST] SELECT "official_name" FROM "parishes" WHERE "area_km_2"=750.51;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What is the area of the parish with a population larger than 1,172 and a census ranking of 1,871 of 5,008?". [/INST] SELECT COUNT("area_km_2") FROM "parishes" WHERE "census_ranking"='1,871 of 5,008' AND "population">'1,172';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "year" real, "single" text, "chart" text, "position" real, "appeared_on_album" text );. Question: "When the position is less than 7, what is the appeared on album?". [/INST] SELECT "appeared_on_album" FROM "singles" WHERE "position"<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 "singles" ( "year" real, "single" text, "chart" text, "position" real, "appeared_on_album" text );. Question: "After 1996, what is the average position?". [/INST] SELECT AVG("position") FROM "singles" WHERE "year">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 "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "Which To par has a Place of t4, and wayne grady is in?". [/INST] SELECT "to_par" FROM "first_round" WHERE "place"='t4' AND "player"='wayne grady';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "Name the Place of england with a Score larger than 66?". [/INST] SELECT "place" FROM "first_round" WHERE "country"='england' AND "score">66;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "Name the Score united states of tom watson in united state?". [/INST] SELECT "score" FROM "first_round" WHERE "country"='united states' AND "player"='tom watson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "Who has a To par of –2, and a Country of united states?". [/INST] SELECT "player" FROM "first_round" WHERE "to_par"='–2' AND "country"='united states';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real );. Question: "What is the time of Max Biaggi with more than 2 grids, 20 laps?". [/INST] SELECT "time" FROM "superbike_race_1_classification" WHERE "grid">2 AND "laps"=20 AND "rider"='max biaggi';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real );. Question: "What is the time of Troy Bayliss with less than 8 grids?". [/INST] SELECT "time" FROM "superbike_race_1_classification" WHERE "grid"<8 AND "rider"='troy bayliss';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "engines" ( "model" text, "engine" text, "cyl" text, "power" text, "torque" text );. Question: "Which Torque has a Model of s63 amg ('01)?". [/INST] SELECT "torque" FROM "engines" WHERE "model"='s63 amg (''01)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "engines" ( "model" text, "engine" text, "cyl" text, "power" text, "torque" text );. Question: "Which Engine has a Model of s430?". [/INST] SELECT "engine" FROM "engines" WHERE "model"='s430';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "engines" ( "model" text, "engine" text, "cyl" text, "power" text, "torque" text );. Question: "Which Engine has a Model of s320 cdi?". [/INST] SELECT "engine" FROM "engines" WHERE "model"='s320 cdi';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "season" text, "division_north" text, "division_south" text, "division_east" text, "division_west" text, "division_southwest" text );. Question: "Who won Division Southwest when Madžari Solidarnost won Division North?". [/INST] SELECT "division_southwest" FROM "winners" WHERE "division_north"='madžari solidarnost';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "season" text, "division_north" text, "division_south" text, "division_east" text, "division_west" text, "division_southwest" text );. Question: "Who won Division West when Division North was won by Alumina?". [/INST] SELECT "division_west" FROM "winners" WHERE "division_north"='alumina';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "season" text, "division_north" text, "division_south" text, "division_east" text, "division_west" text, "division_southwest" text );. Question: "Who won Division North when Division Southwest was won by Novaci and Division West by Vrapčište?". [/INST] SELECT "division_north" FROM "winners" WHERE "division_southwest"='novaci' AND "division_west"='vrapčište';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "season" text, "division_north" text, "division_south" text, "division_east" text, "division_west" text, "division_southwest" text );. Question: "Who won Division Southwest when the winner of Division North was Lepenec and Division South was won by 11 Oktomvri?". [/INST] SELECT "division_southwest" FROM "winners" WHERE "division_north"='lepenec' AND "division_south"='11 oktomvri';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "goalkeeping" ( "rank" real, "name" text, "season" text, "club" text, "minutes" real );. Question: "What are the minutes of the Player from Real Madrid Club with a Rank of 7 or larger?". [/INST] SELECT SUM("minutes") FROM "goalkeeping" WHERE "rank">7 AND "club"='real madrid';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "awards_and_nominations" ( "year" text, "award" text, "category" text, "nominated" text, "result" text );. Question: "For what award was there a nomination for Best Actress?". [/INST] SELECT "award" FROM "awards_and_nominations" WHERE "category"='best actress';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "awards_and_nominations" ( "year" text, "award" text, "category" text, "nominated" text, "result" text );. Question: "What year was Teen Angels 2 nominated?". [/INST] SELECT "year" FROM "awards_and_nominations" WHERE "nominated"='teen angels 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 "awards_and_nominations" ( "year" text, "award" text, "category" text, "nominated" text, "result" text );. Question: "What year saw an award in the category of Revelation?". [/INST] SELECT "year" FROM "awards_and_nominations" WHERE "category"='revelation';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "awards_and_nominations" ( "year" text, "award" text, "category" text, "nominated" text, "result" text );. Question: "Name the performance nominated for a Capif Award.". [/INST] SELECT "nominated" FROM "awards_and_nominations" WHERE "award"='capif award';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "awards_and_nominations" ( "year" text, "award" text, "category" text, "nominated" text, "result" text );. Question: "In what category was Herself nominated?". [/INST] SELECT "category" FROM "awards_and_nominations" WHERE "nominated"='herself';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "awards_and_nominations" ( "year" text, "award" text, "category" text, "nominated" text, "result" text );. Question: "What year was there a nomination for Best Actress at the Kids' Choice Awards Argentina?". [/INST] SELECT "year" FROM "awards_and_nominations" WHERE "award"='kids'' choice awards argentina' AND "category"='best actress';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "relegation_playoff" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the average Draws, when Goal Difference is greater than -3, when Goals Against is 30, and when Points is greater than 45?". [/INST] SELECT AVG("draws") FROM "relegation_playoff" WHERE "goal_difference">-3 AND "goals_against"=30 AND "points">45;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "relegation_playoff" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the average Played, when Club is "Burgos CF", and when Draws is less than 7?". [/INST] SELECT AVG("played") FROM "relegation_playoff" WHERE "club"='burgos cf' AND "draws"<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 "relegation_playoff" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the highest Goals Against, when Club is "Pontevedra CF", and when Played is less than 38?". [/INST] SELECT MAX("goals_against") FROM "relegation_playoff" WHERE "club"='pontevedra cf' AND "played"<38;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "What is T2 Place Player Steve Flesch's Score?". [/INST] SELECT MAX("score") FROM "first_round" WHERE "place"='t2' AND "player"='steve flesch';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "What is the Place of the Player with a Score of 67?". [/INST] SELECT "place" FROM "first_round" WHERE "score"=67;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text, "time" real );. Question: "What Venue has a Year smaller than 1991, Time larger than 10.29, Competition of mediterranean games, and Event of 4x100 m relay?". [/INST] SELECT "venue" FROM "achievements" WHERE "year"<1991 AND "time">10.29 AND "competition"='mediterranean games' AND "event"='4x100 m relay';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text, "time" real );. Question: "What Event has a Position of 1st, a Year of 1983, and a Venue of budapest?". [/INST] SELECT "event" FROM "achievements" WHERE "position"='1st' AND "year"=1983 AND "venue"='budapest';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text, "time" real );. Question: "What Position has a Time of 20.66?". [/INST] SELECT "position" FROM "achievements" WHERE "time"=20.66;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text, "time" real );. Question: "What is the greatest Time with a Year of 1991, and Event of 4x100 m relay?". [/INST] SELECT MAX("time") FROM "achievements" WHERE "year"=1991 AND "event"='4x100 m relay';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008_2009" ( "date" text, "venue" text, "winner" text, "runner_up" text, "score" text );. Question: "When was the match that had Shaun Murphy as runner-up?". [/INST] SELECT "date" FROM "2008_2009" WHERE "runner_up"='shaun murphy';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008_2009" ( "date" text, "venue" text, "winner" text, "runner_up" text, "score" text );. Question: "Who was the winner in the match that had John Higgins as runner-up?". [/INST] SELECT "winner" FROM "2008_2009" WHERE "runner_up"='john higgins';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pronunciation_of_checked_and_free_vowels" ( "letter" text, "pronunciation_spelled_free" text, "pronunciation_spelled_checked" text, "example_spelled_free" text, "example_spelled_checked" text );. Question: "What is Pronunciation Spelled Free, when Pronunciation Spelled Checked is "ʏ"?". [/INST] SELECT "pronunciation_spelled_free" FROM "pronunciation_of_checked_and_free_vowels" WHERE "pronunciation_spelled_checked"='ʏ';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pronunciation_of_checked_and_free_vowels" ( "letter" text, "pronunciation_spelled_free" text, "pronunciation_spelled_checked" text, "example_spelled_free" text, "example_spelled_checked" text );. Question: "What is Letter, when Example Spelled Checked is "tin /tɪn/ ("tin")"?". [/INST] SELECT "letter" FROM "pronunciation_of_checked_and_free_vowels" WHERE "example_spelled_checked"='tin /tɪn/ (\"tin\")';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pronunciation_of_checked_and_free_vowels" ( "letter" text, "pronunciation_spelled_free" text, "pronunciation_spelled_checked" text, "example_spelled_free" text, "example_spelled_checked" text );. Question: "What is Pronunciation Spelled Free, when Pronunciation Spelled Checked is "ɛ"?". [/INST] SELECT "pronunciation_spelled_free" FROM "pronunciation_of_checked_and_free_vowels" WHERE "pronunciation_spelled_checked"='ɛ';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pronunciation_of_checked_and_free_vowels" ( "letter" text, "pronunciation_spelled_free" text, "pronunciation_spelled_checked" text, "example_spelled_free" text, "example_spelled_checked" text );. Question: "What is Pronunciation Spelled Checked, when Example Spelled Checked is "tin /tɪn/ ("tin")"". [/INST] SELECT "pronunciation_spelled_checked" FROM "pronunciation_of_checked_and_free_vowels" WHERE "example_spelled_checked"='tin /tɪn/ (\"tin\")';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pronunciation_of_checked_and_free_vowels" ( "letter" text, "pronunciation_spelled_free" text, "pronunciation_spelled_checked" text, "example_spelled_free" text, "example_spelled_checked" text );. Question: "What is Example Spelled Free, when Example Spelled Checked is "op /ɔp/ ("on")"?". [/INST] SELECT "example_spelled_free" FROM "pronunciation_of_checked_and_free_vowels" WHERE "example_spelled_checked"='op /ɔp/ (\"on\")';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pronunciation_of_checked_and_free_vowels" ( "letter" text, "pronunciation_spelled_free" text, "pronunciation_spelled_checked" text, "example_spelled_free" text, "example_spelled_checked" text );. Question: "What is Pronunciation Spelled Free, when Pronunciation Spelled Checked is "ɑ"?". [/INST] SELECT "pronunciation_spelled_free" FROM "pronunciation_of_checked_and_free_vowels" WHERE "pronunciation_spelled_checked"='ɑ';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round_places_1_to_6" ( "pos" real, "team" text, "g_p" real, "wins" real, "ties" real, "losses" real, "goals" text, "goal_diff" text, "pts" text );. Question: "What was the largest tie when the G.P was more than 5?". [/INST] SELECT MAX("ties") FROM "final_round_places_1_to_6" WHERE "g_p">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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "What is the highest number in attendance against the game at Kansas City Chiefs?". [/INST] SELECT MAX("attendance") FROM "schedule" WHERE "opponent"='at kansas city chiefs';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "What is the attendance for the game against the Kansas City Chiefs earlier than week 13?". [/INST] SELECT AVG("attendance") FROM "schedule" WHERE "opponent"='kansas city chiefs' AND "week"<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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "What is the result later than week 13?". [/INST] SELECT "result" FROM "schedule" WHERE "week">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 "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "What is the lowest To par of gary player, with more than 145 total?". [/INST] SELECT MIN("to_par") FROM "missed_the_cut" WHERE "player"='gary player' AND "total">145;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "How many Wins have Goals against smaller than 30, and Goals for larger than 25, and Draws larger than 5?". [/INST] SELECT COUNT("wins") FROM "group_ii" WHERE "goals_against"<30 AND "goals_for">25 AND "draws">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 "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "How many Draws have 30 Points, and less than 33 Goals against?". [/INST] SELECT COUNT("draws") FROM "group_ii" WHERE "points"=30 AND "goals_against"<33;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "Which Wins have a Goal Difference larger than 12, and a Club of granada cf, and Played larger than 30?". [/INST] SELECT AVG("wins") FROM "group_ii" WHERE "goal_difference">12 AND "club"='granada cf' AND "played">30;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "Which Played has a Club of atlético ceuta, and less than 11 Losses?". [/INST] SELECT MAX("played") FROM "group_ii" WHERE "club"='atlético ceuta' AND "losses"<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 "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What is the place number for the player with a To Par score of 'E'?". [/INST] SELECT "place" FROM "third_round" WHERE "to_par"='e';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What is the To Par score for the player from South Africa?". [/INST] SELECT "to_par" FROM "third_round" WHERE "country"='south africa';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "Which player from Scotland has a To Par score of +7?". [/INST] SELECT "player" FROM "third_round" WHERE "to_par"='+7' AND "country"='scotland';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "Player Craig Parry of Australia is in what place number?". [/INST] SELECT "place" FROM "third_round" WHERE "country"='australia' AND "player"='craig parry';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "Which player from the United States is in a place of T2?". [/INST] SELECT "player" FROM "third_round" WHERE "place"='t2' AND "country"='united states';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "For the match in which player David Frost scored a To Par of +7, what was the final score?". [/INST] SELECT "score" FROM "third_round" WHERE "to_par"='+7' AND "player"='david frost';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "What was Tom Watson's lowest To par when the total was larger than 144?". [/INST] SELECT MIN("to_par") FROM "missed_the_cut" WHERE "player"='tom watson' AND "total">144;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "What was England's total?". [/INST] SELECT "total" FROM "missed_the_cut" WHERE "country"='england';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "What player had a To par smaller than 9 and won in 1985?". [/INST] SELECT "player" FROM "missed_the_cut" WHERE "to_par"<9 AND "year_s_won"='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 "results" ( "party" text, "party_list_votes" real, "vote_percentage" text, "total_seats" text, "seat_percentage" text );. Question: "What is the seat percentage when vote percentage is 2.4% (-8.3)?". [/INST] SELECT "seat_percentage" FROM "results" WHERE "vote_percentage"='2.4% (-8.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 "conversions" ( "joule" text, "watt_hour" text, "kilowatt_hour" text, "electronvolt" text, "calorie" text );. Question: "How many calories is 1 watt hour?". [/INST] SELECT "calorie" FROM "conversions" WHERE "watt_hour"='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 "conversions" ( "joule" text, "watt_hour" text, "kilowatt_hour" text, "electronvolt" text, "calorie" text );. Question: "How many electronvolts is 3,600 joules?". [/INST] SELECT "electronvolt" FROM "conversions" WHERE "joule"='3,600';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "male_athlete_of_the_year" ( "year" real, "winner" text, "sport" text, "hometown" text, "college" text );. Question: "What is the total number of Year, when Winner is "Johnathan Gray"?". [/INST] SELECT COUNT("year") FROM "male_athlete_of_the_year" WHERE "winner"='johnathan gray';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "male_athlete_of_the_year" ( "year" real, "winner" text, "sport" text, "hometown" text, "college" text );. Question: "What is Winner, when College is "Kentucky"?". [/INST] SELECT "winner" FROM "male_athlete_of_the_year" WHERE "college"='kentucky';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "male_athlete_of_the_year" ( "year" real, "winner" text, "sport" text, "hometown" text, "college" text );. Question: "What is Hometown, when Sport is "Basketball", and when Winner is "Dwight Howard"?". [/INST] SELECT "hometown" FROM "male_athlete_of_the_year" WHERE "sport"='basketball' AND "winner"='dwight howard';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_consecutive_wins" ( "name" text, "wins" real, "start" text, "duration" text, "defeated_by" text );. Question: "What is the Duration for less than 53 consecutive wins?". [/INST] SELECT "duration" FROM "most_consecutive_wins" WHERE "wins"<53;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_consecutive_wins" ( "name" text, "wins" real, "start" text, "duration" text, "defeated_by" text );. Question: "How many wins were held before being defeated by toda?". [/INST] SELECT COUNT("wins") FROM "most_consecutive_wins" WHERE "defeated_by"='toda';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" real, "app_gs_sub" text, "goals" real, "ends" real, "transfer_fee" text );. Question: "What is the greatest goals for Curtis Davies if ends is greater than 2012?". [/INST] SELECT MAX("goals") FROM "squad_information" WHERE "name"='curtis davies' AND "ends">2012;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" real, "app_gs_sub" text, "goals" real, "ends" real, "transfer_fee" text );. Question: "When the transfer fee is £8.5m, what is the total ends?". [/INST] SELECT SUM("ends") FROM "squad_information" WHERE "transfer_fee"='£8.5m';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "relegation" ( "team" text, "2003_04_pts" text, "2004_05_pts" text, "2001_02_pts" real, "total_pts" real, "total_pld" real );. Question: "Which Team has a Total Pld smaller than 114, and a 2004–05 Pts of 49?". [/INST] SELECT "team" FROM "relegation" WHERE "total_pld"<114 AND "2004_05_pts"='49';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "relegation" ( "team" text, "2003_04_pts" text, "2004_05_pts" text, "2001_02_pts" real, "total_pts" real, "total_pld" real );. Question: "Which Total Pts have a 2001–02 Pts smaller than 38?". [/INST] SELECT MIN("total_pts") FROM "relegation" WHERE "2001_02_pts"<38;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medieval_bulgarian_army" ( "battle" text, "date" text, "bulgarian_commander" text, "latin_commander" text, "result" text );. Question: "On what Date was Henry I Latin Commander of the Battle of Boruy?". [/INST] SELECT "date" FROM "medieval_bulgarian_army" WHERE "latin_commander"='henry i' AND "battle"='battle of boruy';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medieval_bulgarian_army" ( "battle" text, "date" text, "bulgarian_commander" text, "latin_commander" text, "result" text );. Question: "Who is the Latin Commander of the Siege of Constantinople?". [/INST] SELECT "latin_commander" FROM "medieval_bulgarian_army" WHERE "battle"='siege of constantinople';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medieval_bulgarian_army" ( "battle" text, "date" text, "bulgarian_commander" text, "latin_commander" text, "result" text );. Question: "What is the Result of the battle with Latin Commander Boniface of Montferrat?". [/INST] SELECT "result" FROM "medieval_bulgarian_army" WHERE "latin_commander"='boniface of montferrat';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medieval_bulgarian_army" ( "battle" text, "date" text, "bulgarian_commander" text, "latin_commander" text, "result" text );. Question: "What is the Battle with Bulgarian Commander Ivan Asen II?". [/INST] SELECT "battle" FROM "medieval_bulgarian_army" WHERE "bulgarian_commander"='ivan asen ii';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medieval_bulgarian_army" ( "battle" text, "date" text, "bulgarian_commander" text, "latin_commander" text, "result" text );. Question: "What is the Bulgarian Commander of the Battle of Rusion?". [/INST] SELECT "bulgarian_commander" FROM "medieval_bulgarian_army" WHERE "battle"='battle of rusion';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_dioceses" ( "ecclesiastical_jurisdictions" text, "latin_name" text, "type" text, "rite" text, "ecclesiastical_province" text, "area_km_2" real );. Question: "What is Type for Rite Albanian?". [/INST] SELECT "type" FROM "list_of_dioceses" WHERE "rite"='albanian';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_dioceses" ( "ecclesiastical_jurisdictions" text, "latin_name" text, "type" text, "rite" text, "ecclesiastical_province" text, "area_km_2" real );. Question: "What Area (km 2) is lowest with a type being Apostolic Administration?". [/INST] SELECT MIN("area_km_2") FROM "list_of_dioceses" WHERE "type"='apostolic administration';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_dioceses" ( "ecclesiastical_jurisdictions" text, "latin_name" text, "type" text, "rite" text, "ecclesiastical_province" text, "area_km_2" real );. Question: "What Ecclesiastical Province has a type diocese and a latin name alexiensis?". [/INST] SELECT "ecclesiastical_province" FROM "list_of_dioceses" WHERE "type"='diocese' AND "latin_name"='alexiensis';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" text );. Question: "What's the money that Sam Snead won?". [/INST] SELECT "money" FROM "final_round" WHERE "player"='sam snead';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" text );. Question: "What was the total To Par for Craig Wood?". [/INST] SELECT SUM("to_par") FROM "final_round" WHERE "player"='craig wood';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" text );. Question: "What was the score for t9 place for Harold Mcspaden?". [/INST] SELECT "score" FROM "final_round" WHERE "place"='t9' AND "player"='harold mcspaden';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" text );. Question: "What was the country for Sam Snead?". [/INST] SELECT "country" FROM "final_round" WHERE "player"='sam snead';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "individual_ribbon" ( "place" real, "name" text, "all_around" real, "ribbon" real, "total" real );. Question: "What place had a ribbon below 9.8 and a 19.2 total?". [/INST] SELECT MAX("place") FROM "individual_ribbon" WHERE "ribbon"<9.8 AND "total"=19.2;</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.