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 "historical_rankings" ( "year" real, "political_rights" real, "civil_liberties" real, "status" text, "president" text );. Question: "What is the year average when not free was the status, and less than 7 was the civil liberties, and less than 6 political rights?". [/INST] SELECT AVG("year") FROM "historical_rankings" WHERE "status"='not free' AND "civil_liberties"<7 AND "political_rights"<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 "historical_rankings" ( "year" real, "political_rights" real, "civil_liberties" real, "status" text, "president" text );. Question: "What is the least political rights rank in 1976?". [/INST] SELECT MIN("political_rights") FROM "historical_rankings" WHERE "year"=1976;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_summer_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text );. Question: "What is average ratings for Japanese title of ホタルノヒカリ, with episodes larger than 9?". [/INST] SELECT "average_ratings" FROM "2007_summer_season" WHERE "episodes">9 AND "japanese_title"='ホタルノヒカリ';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_summer_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text );. Question: "Which episodes has the lowest average ratings of 8.7%?". [/INST] SELECT MIN("episodes") FROM "2007_summer_season" WHERE "average_ratings"='8.7%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_summer_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text );. Question: "Which romaji title, has Japanese title of 菊次郎とさき 3?". [/INST] SELECT "romaji_title" FROM "2007_summer_season" WHERE "japanese_title"='菊次郎とさき 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 "2007_summer_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text );. Question: "Which TV station, has romaji title of tantei gakuen q and episodes larger than 10?". [/INST] SELECT "tv_station" FROM "2007_summer_season" WHERE "episodes">10 AND "romaji_title"='tantei gakuen q';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "records" ( "world_record" text, "snatch" text, "sergey_filimonov_kaz" text, "173kg" text, "almaty_kazakhstan" text );. Question: "What is the snatch for the person holding the Olympic record, and 173kg of 172kg?". [/INST] SELECT "snatch" FROM "records" WHERE "world_record"='olympic record' AND "173kg"='172kg';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "records" ( "world_record" text, "snatch" text, "sergey_filimonov_kaz" text, "173kg" text, "almaty_kazakhstan" text );. Question: "What is the Almaty, Kazakhstan when Sergey Filimonov ( KAZ ) is 210kg?". [/INST] SELECT "almaty_kazakhstan" FROM "records" WHERE "sergey_filimonov_kaz"='210kg';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "records" ( "world_record" text, "snatch" text, "sergey_filimonov_kaz" text, "173kg" text, "almaty_kazakhstan" text );. Question: "What shows for Sergey Filimonov (KAZ) when the Snatch shows snatch?". [/INST] SELECT "sergey_filimonov_kaz" FROM "records" WHERE "snatch"='snatch';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "records" ( "world_record" text, "snatch" text, "sergey_filimonov_kaz" text, "173kg" text, "almaty_kazakhstan" text );. Question: "What is the Almaty, Kazakhstan when the Sergey Filimonov (KAZ) is 210kg?". [/INST] SELECT "almaty_kazakhstan" FROM "records" WHERE "sergey_filimonov_kaz"='210kg';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 total weeks with more 56,134 attendees against the minnesota vikings?". [/INST] SELECT SUM("week") FROM "schedule" WHERE "attendance">'56,134' AND "opponent"='minnesota vikings';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "television_series" ( "year" real, "chinese_title" text, "english" text, "role" text, "character" text );. Question: "What year was the main role a character named Guan Yu (關羽)?". [/INST] SELECT MIN("year") FROM "television_series" WHERE "role"='main' AND "character"='guan yu (關羽)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "television_series" ( "year" real, "chinese_title" text, "english" text, "role" text, "character" text );. Question: "What is the English character for Lin Ming Kuan (林明寬)?". [/INST] SELECT "english" FROM "television_series" WHERE "character"='lin ming kuan (林明寬)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "television_series" ( "year" real, "chinese_title" text, "english" text, "role" text, "character" text );. Question: "What character has a Year larger than 2010 with a lead role, and Chinese Title of 戀夏38℃?". [/INST] SELECT "character" FROM "television_series" WHERE "year">2010 AND "role"='lead role' AND "chinese_title"='戀夏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 "television_series" ( "year" real, "chinese_title" text, "english" text, "role" text, "character" text );. Question: "What is the year that has a character named Wu Ji Wei (無極威)?". [/INST] SELECT AVG("year") FROM "television_series" WHERE "character"='wu ji wei (無極威)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "kickboxing_record" ( "result" text, "opponent" text, "method" text, "event" text, "round" real, "location" text );. Question: "Which Round has an Opponent of aleksandr pitchkounov?". [/INST] SELECT MIN("round") FROM "kickboxing_record" WHERE "opponent"='aleksandr pitchkounov';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "kickboxing_record" ( "result" text, "opponent" text, "method" text, "event" text, "round" real, "location" text );. Question: "Which Result has a Round of 5, and an Event of mt one?". [/INST] SELECT "result" FROM "kickboxing_record" WHERE "round"=5 AND "event"='mt one';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1948_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );. Question: "Mortlake club has more than 924 against, less than 14 losses, and how many total draws?". [/INST] SELECT COUNT("draws") FROM "1948_ladder" WHERE "against">924 AND "club"='mortlake' AND "losses"<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 "1948_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );. Question: "What is the total number of wins for Cobden club when there are more than 2 draws?". [/INST] SELECT SUM("wins") FROM "1948_ladder" WHERE "club"='cobden' AND "draws">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 "1948_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );. Question: "When against is 797 and wins is more than 10, what is the sum of draws?". [/INST] SELECT COUNT("draws") FROM "1948_ladder" WHERE "against"=797 AND "wins">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 "1948_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );. Question: "Club warrnambool has less than 9 wins and what average of draws?". [/INST] SELECT AVG("draws") FROM "1948_ladder" WHERE "wins"<9 AND "club"='warrnambool';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1948_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );. Question: "What is the average number of draws for Mortlake club when they have less than 0 wins?". [/INST] SELECT AVG("draws") FROM "1948_ladder" WHERE "club"='mortlake' AND "wins"<0;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "subdivisions" ( "name" text, "geographic_code" text, "type" text, "households" real, "population_2004" real, "foreign_population" real, "moroccan_population" real );. Question: "Which Foreign population has a Population (2004) larger than 234733?". [/INST] SELECT AVG("foreign_population") FROM "subdivisions" WHERE "population_2004">234733;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "subdivisions" ( "name" text, "geographic_code" text, "type" text, "households" real, "population_2004" real, "foreign_population" real, "moroccan_population" real );. Question: "Which Population (2004) has a Moroccan population larger than 234506?". [/INST] SELECT AVG("population_2004") FROM "subdivisions" WHERE "moroccan_population">234506;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "cup" ( "round" text, "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "report" text );. Question: "What date was the opponent VFL Sindelfingen?". [/INST] SELECT "date" FROM "cup" WHERE "opponent"='vfl sindelfingen';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "cup" ( "round" text, "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "report" text );. Question: "What date was the attendance 1,804?". [/INST] SELECT "date" FROM "cup" WHERE "attendance"='1,804';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "cup" ( "round" text, "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "report" text );. Question: "Who was the opponent with an attendance of 628?". [/INST] SELECT "opponent" FROM "cup" WHERE "attendance"='628';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 bike has a grid greater than 17, laps less than 8, with milos cihak as the rider?". [/INST] SELECT "bike" FROM "superbike_race_1_classification" WHERE "grid">17 AND "laps"<8 AND "rider"='milos cihak';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 highest grid that has gregorio lavilla as the rider?". [/INST] SELECT MAX("grid") FROM "superbike_race_1_classification" WHERE "rider"='gregorio lavilla';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 rider has laps less than 20, a ducati 1098 rs 08 as the bike, with accident as the time, and a grid less than 14?". [/INST] SELECT "rider" FROM "superbike_race_1_classification" WHERE "laps"<20 AND "bike"='ducati 1098 rs 08' AND "time"='accident' AND "grid"<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 "references" ( "name" text, "career" text, "matches" real, "overs" real, "maidens" real, "runs" real, "wickets" real, "average" real, "best" text );. Question: "How many overs when there are 5231 runs and fewer than 37 matches?". [/INST] SELECT SUM("overs") FROM "references" WHERE "runs"=5231 AND "matches"<37;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "name" text, "career" text, "matches" real, "overs" real, "maidens" real, "runs" real, "wickets" real, "average" real, "best" text );. Question: "What are the fewest wickets when player's career spanned 1946-1960 and maidens were more than 419?". [/INST] SELECT MIN("wickets") FROM "references" WHERE "career"='1946-1960' AND "maidens">419;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "name" text, "career" text, "matches" real, "overs" real, "maidens" real, "runs" real, "wickets" real, "average" real, "best" text );. Question: "What is the largest number of wickets when there are more than 630 maidens and a best of 7/72?". [/INST] SELECT MAX("wickets") FROM "references" WHERE "maidens">630 AND "best"='7/72';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "name" text, "career" text, "matches" real, "overs" real, "maidens" real, "runs" real, "wickets" real, "average" real, "best" text );. Question: "Who has fewer than 2047.3 overs, more than 200 wickets and an average of 29.02?". [/INST] SELECT "name" FROM "references" WHERE "overs"<2047.3 AND "wickets">200 AND "average">29.02;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "matches_played" ( "season" text, "date" text, "venue" text, "competition" text, "score" text, "attendance" real, "report" text );. Question: "How many people attended the Scottish Cup on 29.02.2000?". [/INST] SELECT "attendance" FROM "matches_played" WHERE "competition"='scottish cup' AND "date"='29.02.2000';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "matches_played" ( "season" text, "date" text, "venue" text, "competition" text, "score" text, "attendance" real, "report" text );. Question: "What was the score of the league cup in the 2007-08 season?". [/INST] SELECT "score" FROM "matches_played" WHERE "competition"='league cup' AND "season"='2007-08';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "matches_played" ( "season" text, "date" text, "venue" text, "competition" text, "score" text, "attendance" real, "report" text );. Question: "What is the attendance in the game in the 2010-11 season, when the score was 2–0?". [/INST] SELECT MIN("attendance") FROM "matches_played" WHERE "season"='2010-11' AND "score"='2–0';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_softball_league_1951_to_19" ( "year" real, "1st_place_team" text, "2nd_place_team" text, "3rd_place_team" text, "4th_place_team" text, "host_location" text );. Question: "What team was in 1st plate in a year later than 1956?". [/INST] SELECT "1st_place_team" FROM "international_softball_league_1951_to_19" WHERE "year">1956;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_softball_league_1951_to_19" ( "year" real, "1st_place_team" text, "2nd_place_team" text, "3rd_place_team" text, "4th_place_team" text, "host_location" text );. Question: "What location hosted when the National Cash Register, Dayton, Oh was in 4th place in 1957?". [/INST] SELECT "host_location" FROM "international_softball_league_1951_to_19" WHERE "4th_place_team"='national cash register, dayton, oh' AND "year"=1957;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_softball_league_1951_to_19" ( "year" real, "1st_place_team" text, "2nd_place_team" text, "3rd_place_team" text, "4th_place_team" text, "host_location" text );. Question: "What year were the Hoak Packers, Fresno, CA the 4th Place Team?". [/INST] SELECT MIN("year") FROM "international_softball_league_1951_to_19" WHERE "4th_place_team"='hoak packers, fresno, ca';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_softball_league_1951_to_19" ( "year" real, "1st_place_team" text, "2nd_place_team" text, "3rd_place_team" text, "4th_place_team" text, "host_location" text );. Question: "What location hosted when Wells Motors, Greeley, Co was the 4th place team?". [/INST] SELECT "host_location" FROM "international_softball_league_1951_to_19" WHERE "4th_place_team"='wells motors, greeley, co';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_softball_league_1951_to_19" ( "year" real, "1st_place_team" text, "2nd_place_team" text, "3rd_place_team" text, "4th_place_team" text, "host_location" text );. Question: "What year was the 1st Place Team the Hoak Packers, Fresno, CA, and 4th Place was Wells Motors, Greeley, Co?". [/INST] SELECT MAX("year") FROM "international_softball_league_1951_to_19" WHERE "1st_place_team"='hoak packers, fresno, ca' AND "4th_place_team"='wells motors, greeley, co';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_softball_league_1951_to_19" ( "year" real, "1st_place_team" text, "2nd_place_team" text, "3rd_place_team" text, "4th_place_team" text, "host_location" text );. Question: "What year was the 4th Place Team of the Wyoming Angus, Johnstown, Co?". [/INST] SELECT COUNT("year") FROM "international_softball_league_1951_to_19" WHERE "4th_place_team"='wyoming angus, johnstown, co';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text );. Question: "Which base has a company of Theatro Technis Karolos Koun?". [/INST] SELECT "base" FROM "references" WHERE "company"='theatro technis karolos koun';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text );. Question: "Which company has an author of Aristophanes and play of Plutus?". [/INST] SELECT "company" FROM "references" WHERE "author"='aristophanes' AND "play"='plutus';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text );. Question: "Which author has a company of the Semeio Theatre?". [/INST] SELECT "author" FROM "references" WHERE "company"='semeio theatre';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text );. Question: "Which play was done by the Radu Stanca National Theatre company?". [/INST] SELECT "play" FROM "references" WHERE "company"='radu stanca national theatre';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text );. Question: "Which play had a base of Aosta?". [/INST] SELECT "play" FROM "references" WHERE "base"='aosta';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text );. Question: "What is the country of the play based in Athens at the Attis Theatre company?". [/INST] SELECT "country" FROM "references" WHERE "base"='athens' AND "company"='attis theatre';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tank_locomotives" ( "class" text, "railway_number_s" text, "quantity" real, "year_s_of_manufacture" text, "type" text );. Question: "Which Class has a Quantity larger than 96?". [/INST] SELECT "class" FROM "tank_locomotives" WHERE "quantity">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 "tank_locomotives" ( "class" text, "railway_number_s" text, "quantity" real, "year_s_of_manufacture" text, "type" text );. Question: "How much Quantity has a Type of 1′c1′ h2t?". [/INST] SELECT COUNT("quantity") FROM "tank_locomotives" WHERE "type"='1′c1′ h2t';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tank_locomotives" ( "class" text, "railway_number_s" text, "quantity" real, "year_s_of_manufacture" text, "type" text );. Question: "Which Class has a Type of 1′c n2t?". [/INST] SELECT "class" FROM "tank_locomotives" WHERE "type"='1′c n2t';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tank_locomotives" ( "class" text, "railway_number_s" text, "quantity" real, "year_s_of_manufacture" text, "type" text );. Question: "Which Year(s) of manufacture has a Quantity larger than 39, and a Type of 1′c1′ h2t?". [/INST] SELECT "year_s_of_manufacture" FROM "tank_locomotives" WHERE "quantity">39 AND "type"='1′c1′ h2t';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tank_locomotives" ( "class" text, "railway_number_s" text, "quantity" real, "year_s_of_manufacture" text, "type" text );. Question: "Which Year(s) of manufacture has a Quantity of 2, and a Type of b n2t?". [/INST] SELECT "year_s_of_manufacture" FROM "tank_locomotives" WHERE "quantity"=2 AND "type"='b n2t';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "what is the highest place when lost is more than 4, points is less than 18 and team is Team of atlético veragüense?". [/INST] SELECT MAX("place") FROM "standings" WHERE "lost">4 AND "points"<18 AND "team"='atlético veragüense';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "what is the least lost when the place is higher than 4, goals scored is 12 and points is more than 4?". [/INST] SELECT MIN("lost") FROM "standings" WHERE "place">4 AND "goals_scored"=12 AND "points">4;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "how many times is the team tauro and played less than 18?". [/INST] SELECT COUNT("place") FROM "standings" WHERE "team"='tauro' AND "played"<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 "standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "what is the least played when points is 36 and place is more than 2?". [/INST] SELECT MIN("played") FROM "standings" WHERE "points"=36 AND "place">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 "standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "what is the average points when goals conceded is 14 and goals scored is less than 32?". [/INST] SELECT AVG("points") FROM "standings" WHERE "goals_conceded"=14 AND "goals_scored"<32;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Playing against the Seattle Seahawks in a week after week 1 before 69,149 people what was the result of the game?". [/INST] SELECT "result" FROM "schedule" WHERE "week">1 AND "attendance"='69,149' AND "opponent"='seattle seahawks';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 in total has bye as the date?". [/INST] SELECT COUNT("week") FROM "schedule" WHERE "date"='bye';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" text, "money" real );. Question: "What country does Tiger Woods come from?". [/INST] SELECT "country" FROM "final_round" WHERE "player"='tiger woods';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "records" ( "world_record" text, "snatch" text, "ri_song_hui_prk" text, "102kg" text, "busan_south_korea" text );. Question: "What's the Ri Song-Hui when the olympic record is the world record and snatch was snatch?". [/INST] SELECT "ri_song_hui_prk" FROM "records" WHERE "world_record"='olympic record' AND "snatch"='snatch';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "records" ( "world_record" text, "snatch" text, "ri_song_hui_prk" text, "102kg" text, "busan_south_korea" text );. Question: "What's the 102kg when the Ri Song-Hui was 226kg?". [/INST] SELECT "102kg" FROM "records" WHERE "ri_song_hui_prk"='226kg';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "records" ( "world_record" text, "snatch" text, "ri_song_hui_prk" text, "102kg" text, "busan_south_korea" text );. Question: "What's the 102kg when the snatch was snatch and the olympic record was the world record?". [/INST] SELECT "102kg" FROM "records" WHERE "world_record"='olympic record' AND "snatch"='snatch';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_selections" ( "pick" real, "player" text, "team" text, "position" text, "hometown_school" text );. Question: "What was the average pick made by the Texas Rangers?". [/INST] SELECT AVG("pick") FROM "first_round_selections" WHERE "team"='texas rangers';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_selections" ( "pick" real, "player" text, "team" text, "position" text, "hometown_school" text );. Question: "What was the home town of Bob Geren, picked by the San Diego Padres?". [/INST] SELECT "hometown_school" FROM "first_round_selections" WHERE "team"='san diego padres' AND "player"='bob geren';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_selections" ( "pick" real, "player" text, "team" text, "position" text, "hometown_school" text );. Question: "What was the position of Jon Perlman?". [/INST] SELECT "position" FROM "first_round_selections" WHERE "player"='jon perlman';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "eleventh_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text );. Question: "What college has a pick smaller than 87 for the position of tackle?". [/INST] SELECT "college" FROM "eleventh_round" WHERE "position"='tackle' AND "pick"<87;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "eleventh_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text );. Question: "What college had the pick of 85?". [/INST] SELECT "college" FROM "eleventh_round" WHERE "pick"=85;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1934_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );. Question: "What are the least losses of Mortlake having less than 970 against?". [/INST] SELECT MIN("losses") FROM "1934_ladder" WHERE "club"='mortlake' AND "against"<970;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1934_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );. Question: "What's the total against when the draws are more than 0?". [/INST] SELECT COUNT("against") FROM "1934_ladder" WHERE "draws">0;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1934_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );. Question: "What's the total wins when the draws are less than 0?". [/INST] SELECT COUNT("wins") FROM "1934_ladder" WHERE "draws"<0;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1934_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );. Question: "What's the least against number for Cobden with draws more than 0?". [/INST] SELECT MIN("against") FROM "1934_ladder" WHERE "club"='cobden' AND "draws">0;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1934_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );. Question: "What's the most against when the draws are more than 0?". [/INST] SELECT MAX("against") FROM "1934_ladder" WHERE "draws">0;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1934_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );. Question: "What are the total wins when there are 1261 against?". [/INST] SELECT SUM("wins") FROM "1934_ladder" WHERE "against"=1261;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_1" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text );. Question: "What is the notes entry for the row with a Time of 1:42.309?". [/INST] SELECT "notes" FROM "heat_1" WHERE "time"='1:42.309';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_1" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text );. Question: "What is the rank for China?". [/INST] SELECT SUM("rank") FROM "heat_1" WHERE "country"='china';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_1" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text );. Question: "What is the time for Cuba, with a notes entry of QS?". [/INST] SELECT "time" FROM "heat_1" WHERE "notes"='qs' AND "country"='cuba';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 Week number on October 10, 1976?". [/INST] SELECT COUNT("week") FROM "schedule" WHERE "date"='october 10, 1976';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 Date of the game with a Result of L 33–14?". [/INST] SELECT "date" FROM "schedule" WHERE "result"='l 33–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 "augmented_seventh_chord_table" ( "chord" text, "root" text, "major_third" text, "augmented_fifth" text, "minor_seventh" text );. Question: "The Major third of D has what for the Augmented fifth?". [/INST] SELECT "augmented_fifth" FROM "augmented_seventh_chord_table" WHERE "major_third"='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 "augmented_seventh_chord_table" ( "chord" text, "root" text, "major_third" text, "augmented_fifth" text, "minor_seventh" text );. Question: "A major third of C has what listed for the Minor seventh?". [/INST] SELECT "minor_seventh" FROM "augmented_seventh_chord_table" WHERE "major_third"='c';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "augmented_seventh_chord_table" ( "chord" text, "root" text, "major_third" text, "augmented_fifth" text, "minor_seventh" text );. Question: "What is the listed chord for a Minor seventh of F?". [/INST] SELECT "chord" FROM "augmented_seventh_chord_table" WHERE "minor_seventh"='f';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_watched_programmes" ( "rank" real, "show" text, "episode" text, "number_of_viewers" real, "date" text );. Question: "Which Rank has a Show of alcatraz, and a Number of Viewers larger than 1,229,000?". [/INST] SELECT MIN("rank") FROM "most_watched_programmes" WHERE "show"='alcatraz' AND "number_of_viewers">'1,229,000';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_watched_programmes" ( "rank" real, "show" text, "episode" text, "number_of_viewers" real, "date" text );. Question: "Which Episode has a Rank of 1?". [/INST] SELECT "episode" FROM "most_watched_programmes" WHERE "rank"=1;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "calendar" ( "round" real, "dates" text, "rally_name" text, "rally_hq" text, "support_category" text, "surface" text );. Question: "Where was adac rally deutschland's rally HQ?". [/INST] SELECT "rally_hq" FROM "calendar" WHERE "rally_name"='adac rally deutschland';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "calendar" ( "round" real, "dates" text, "rally_name" text, "rally_hq" text, "support_category" text, "surface" text );. Question: "Where was the Rally HQ for Round 1?". [/INST] SELECT "rally_hq" FROM "calendar" WHERE "round"=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 "calendar" ( "round" real, "dates" text, "rally_name" text, "rally_hq" text, "support_category" text, "surface" text );. Question: "Which Support Category had a Round score of 9?". [/INST] SELECT "support_category" FROM "calendar" WHERE "round"=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 "calendar" ( "round" real, "dates" text, "rally_name" text, "rally_hq" text, "support_category" text, "surface" text );. Question: "What Surface had a Rally HQ of salou?". [/INST] SELECT "surface" FROM "calendar" WHERE "rally_hq"='salou';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real );. Question: "What is the lowest lane in the Czech Republic and a time larger than 21.05?". [/INST] SELECT MIN("lane") FROM "heat_1" WHERE "nationality"='czech republic' AND "time">21.05;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real );. Question: "What is the highest lane with a rank larger than 2 in Guyana?". [/INST] SELECT MAX("lane") FROM "heat_1" WHERE "rank">2 AND "nationality"='guyana';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real );. Question: "What is the sum rank of Solomon Bayoh when his time was smaller than 22.16?". [/INST] SELECT SUM("rank") FROM "heat_1" WHERE "athlete"='solomon bayoh' AND "time"<22.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 "top_5_british_albums" ( "rank" real, "artist" text, "album" text, "peak_position" text, "sales" real, "certification" text );. Question: "Who is the artist of the album Soul?". [/INST] SELECT "artist" FROM "top_5_british_albums" WHERE "album"='soul';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2" ( "rank" real, "heat" real, "athlete" text, "country" text, "time" real );. Question: "who is the athlete when the time is less than 11.13 and the country is belgium?". [/INST] SELECT "athlete" FROM "round_2" WHERE "time"<11.13 AND "country"='belgium';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2" ( "rank" real, "heat" real, "athlete" text, "country" text, "time" real );. Question: "who is the athlete when the rank is less than 13, time more than 11.13, country is bahamas and the heat more than 2?". [/INST] SELECT "athlete" FROM "round_2" WHERE "rank"<13 AND "time">11.13 AND "country"='bahamas' AND "heat">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 "round_2" ( "rank" real, "heat" real, "athlete" text, "country" text, "time" real );. Question: "what is the heat when the athlete is anita pistone?". [/INST] SELECT SUM("heat") FROM "round_2" WHERE "athlete"='anita pistone';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2" ( "rank" real, "heat" real, "athlete" text, "country" text, "time" real );. Question: "how many times is the rank more than 29, the athlete is barbara pierre and the heat less than 5?". [/INST] SELECT COUNT("time") FROM "round_2" WHERE "rank">29 AND "athlete"='barbara pierre' AND "heat"<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 "membership" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text, "year_joined" real, "previous_conference" text );. Question: "Which IHSAA Class has a Location of linton?". [/INST] SELECT "ihsaa_class" FROM "membership" WHERE "location"='linton';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What is the sum of matches played for teams with more than 10 losses and under 5 points?". [/INST] SELECT SUM("played") FROM "first_round" WHERE "lost">10 AND "points"<5;</s>