text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text ); Question: How many positions did the car with a final time of +10.8098 finish in? <|assistant|> SELECT COUNT("fin_pos") FROM "classification" WHERE "time_retired"='+10.8098';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text ); Question: Darren Manning finished in what position? <|assistant|> SELECT MIN("fin_pos") FROM "classification" WHERE "driver"='Darren Manning';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); Question: What was the position for the Josef Kaufmann Racing team? <|assistant|> SELECT "position" FROM "career_summary" WHERE "team"='Josef Kaufmann Racing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); Question: How many poles did the player have during the Formula BMW Pacific race? <|assistant|> SELECT MAX("poles") FROM "career_summary" WHERE "series"='Formula BMW Pacific';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); Question: Which season did he have 0 points and 31st position? <|assistant|> SELECT MAX("season") FROM "career_summary" WHERE "points"=0 AND "position"='31st';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); Question: How many wins did the player have in the Formula BMW World Final? <|assistant|> SELECT "wins" FROM "career_summary" WHERE "series"='Formula BMW World Final';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episode_events" ( "episode_number" real, "air_date" text, "event_1" text, "event_2" text, "event_3" text, "event_4" text ); Question: On what date was the episode aired where event 2 was Hang Tough? <|assistant|> SELECT "air_date" FROM "episode_events" WHERE "event_2"='Hang Tough';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episode_events" ( "episode_number" real, "air_date" text, "event_1" text, "event_2" text, "event_3" text, "event_4" text ); Question: When event 4 was Whiplash, what was event 2? <|assistant|> SELECT "event_2" FROM "episode_events" WHERE "event_4"='Whiplash';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episode_events" ( "episode_number" real, "air_date" text, "event_1" text, "event_2" text, "event_3" text, "event_4" text ); Question: On how many different dates was event 1 Suspension Bridge? <|assistant|> SELECT COUNT("air_date") FROM "episode_events" WHERE "event_1"='Suspension Bridge';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episode_events" ( "episode_number" real, "air_date" text, "event_1" text, "event_2" text, "event_3" text, "event_4" text ); Question: On which episode number is event 4 The Wall and event 1 the Pendulum? <|assistant|> SELECT COUNT("episode_number") FROM "episode_events" WHERE "event_4"='The Wall' AND "event_1"='Pendulum';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episode_events" ( "episode_number" real, "air_date" text, "event_1" text, "event_2" text, "event_3" text, "event_4" text ); Question: What was event 2 when event 1 was Atlasphere? <|assistant|> SELECT "event_2" FROM "episode_events" WHERE "event_1"='Atlasphere';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text ); Question: What is the car number driven by Darren Manning? <|assistant|> SELECT "car_no" FROM "classification" WHERE "driver"='Darren Manning';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text ); Question: Which position earned 50 points? <|assistant|> SELECT MAX("fin_pos") FROM "classification" WHERE "points"='50';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text ); Question: How many drivers on the grid are called Vitor Meira? <|assistant|> SELECT COUNT("grid") FROM "classification" WHERE "driver"='Vitor Meira';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "0_728_throw_3_times" ( "1st_throw" real, "2nd_throw" real, "3rd_throw" real, "equation" text, "result" real ); Question: If the equation is 0 × 9² + 3 × 9 + 3, what is the result? <|assistant|> SELECT MIN("result") FROM "0_728_throw_3_times" WHERE "equation"='0 × 9² + 3 × 9 + 3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "0_728_throw_3_times" ( "1st_throw" real, "2nd_throw" real, "3rd_throw" real, "equation" text, "result" real ); Question: If the equation is 6 × 9² + 6 × 9 + 6, what is the 3rd throw? <|assistant|> SELECT MAX("3rd_throw") FROM "0_728_throw_3_times" WHERE "equation"='6 × 9² + 6 × 9 + 6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "0_728_throw_3_times" ( "1st_throw" real, "2nd_throw" real, "3rd_throw" real, "equation" text, "result" real ); Question: If the equation is 8 × 9² + 8 × 9 + 8, what is the 2nd throw? <|assistant|> SELECT MIN("2nd_throw") FROM "0_728_throw_3_times" WHERE "equation"='8 × 9² + 8 × 9 + 8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "0_728_throw_3_times" ( "1st_throw" real, "2nd_throw" real, "3rd_throw" real, "equation" text, "result" real ); Question: If the equation is 1 × 9² + 4 × 9 + 0, what is the 2nd throw? <|assistant|> SELECT "2nd_throw" FROM "0_728_throw_3_times" WHERE "equation"='1 × 9² + 4 × 9 + 0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "0_728_throw_3_times" ( "1st_throw" real, "2nd_throw" real, "3rd_throw" real, "equation" text, "result" real ); Question: If the equation is 6 × 9² + 6 × 9 + 6, what is the 2nd throw? <|assistant|> SELECT MAX("2nd_throw") FROM "0_728_throw_3_times" WHERE "equation"='6 × 9² + 6 × 9 + 6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "team_num1" text, "points" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: When they played San Lorenzo, what was the score of the second leg? <|assistant|> SELECT "2nd_leg" FROM "round_of_16" WHERE "team_num1"='San Lorenzo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "team_num1" text, "points" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: When they played Universidad de Chile, what was the score of the first leg? <|assistant|> SELECT COUNT("1st_leg") FROM "round_of_16" WHERE "team_num2"='Universidad de Chile';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "team_num1" text, "points" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: Who played San Lorenzo? <|assistant|> SELECT "team_num2" FROM "round_of_16" WHERE "team_num1"='San Lorenzo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "team_num1" text, "points" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: Who played River Plate? <|assistant|> SELECT "team_num2" FROM "round_of_16" WHERE "team_num1"='River Plate';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_stage" ( "team_num1" text, "points" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What was the score on the 1st leg if the team 2 is botafogo? <|assistant|> SELECT COUNT("1st_leg") FROM "first_stage" WHERE "team_num2"='Botafogo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_stage" ( "team_num1" text, "points" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: Who played against team 1 Vitória? <|assistant|> SELECT "team_num2" FROM "first_stage" WHERE "team_num1"='Vitória';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_stage" ( "team_num1" text, "points" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: Who played against team 1 Liverpool? <|assistant|> SELECT "team_num2" FROM "first_stage" WHERE "team_num1"='Liverpool';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_stage" ( "team_num1" text, "points" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What was the game's points against Team 2 Deportivo Anzoátegui? <|assistant|> SELECT "points" FROM "first_stage" WHERE "team_num2"='Deportivo Anzoátegui';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: How many different items appear in the high points column when the location attendance was US Airways Center 18,422? <|assistant|> SELECT COUNT("high_points") FROM "game_log" WHERE "location_attendance"='US Airways Center 18,422';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What was the high assists on April 7? <|assistant|> SELECT "high_assists" FROM "game_log" WHERE "date"='April 7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What is the score for the game played on January 25? <|assistant|> SELECT "score" FROM "game_log" WHERE "date"='January 25';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What is the record for the team on January 19? <|assistant|> SELECT "record" FROM "game_log" WHERE "date"='January 19';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: How many times did Ron Artest (24) receive the record for high points? <|assistant|> SELECT COUNT("record") FROM "game_log" WHERE "high_points"='Ron Artest (24)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: At what location and what was the attendance when Rafer Alston (10) achieved high assists? <|assistant|> SELECT "location_attendance" FROM "game_log" WHERE "high_assists"='Rafer Alston (10)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: At what game number was the attendance at Conseco Fieldhouse 14,486? <|assistant|> SELECT MAX("game") FROM "game_log" WHERE "location_attendance"='Conseco Fieldhouse 14,486';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What is the number of the game that was played on January 19? <|assistant|> SELECT MAX("game") FROM "game_log" WHERE "date"='January 19';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Name the record for verizon center 20,173 <|assistant|> SELECT "record" FROM "game_log" WHERE "location_attendance"='Verizon Center 20,173';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Name the date for score l 89–91 (ot) <|assistant|> SELECT "date" FROM "game_log" WHERE "score"='L 89–91 (OT)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What was the team record when the team was Cleveland? <|assistant|> SELECT "record" FROM "game_log" WHERE "team"='Cleveland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Name the high assists for l 93–103 (ot) <|assistant|> SELECT "high_assists" FROM "game_log" WHERE "score"='L 93–103 (OT)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What was the date of game 21? <|assistant|> SELECT "date" FROM "game_log" WHERE "game"=21;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17289604_38" ( "athlete" text, "event" text, "round_of_64" text, "round_of_32" text, "round_of_16" text, "quarterfinals" text ); Question: What were the results for round of 32 for Nicole Vaidišová? <|assistant|> SELECT "round_of_32" FROM "table1_17289604_38" WHERE "athlete"='Nicole Vaidišová';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17289604_38" ( "athlete" text, "event" text, "round_of_64" text, "round_of_32" text, "round_of_16" text, "quarterfinals" text ); Question: How many number of athletes were in round of 64 was llagostera Vives ( esp ) l 6–2, 3–6, 5–7? <|assistant|> SELECT COUNT("athlete") FROM "table1_17289604_38" WHERE "round_of_64"='Llagostera Vives ( ESP ) L 6–2, 3–6, 5–7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17289604_38" ( "athlete" text, "event" text, "round_of_64" text, "round_of_32" text, "round_of_16" text, "quarterfinals" text ); Question: What was round of 16 when in round 32 it was koryttseva ( ukr ) w 2–6, 6–1, 7–5? <|assistant|> SELECT "round_of_16" FROM "table1_17289604_38" WHERE "round_of_32"='Koryttseva ( UKR ) W 2–6, 6–1, 7–5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17289604_38" ( "athlete" text, "event" text, "round_of_64" text, "round_of_32" text, "round_of_16" text, "quarterfinals" text ); Question: What was round of 64 of the singles event when the result of round 16 was did not advance and the athlete was Iveta Benešová? <|assistant|> SELECT "round_of_64" FROM "table1_17289604_38" WHERE "event"='Singles' AND "round_of_16"='Did not advance' AND "athlete"='Iveta Benešová';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17289604_38" ( "athlete" text, "event" text, "round_of_64" text, "round_of_32" text, "round_of_16" text, "quarterfinals" text ); Question: What were the quarterfinals in the round of 32 was S williams / V williams ( usa ) l 6–4, 5–7, 1–6? <|assistant|> SELECT "quarterfinals" FROM "table1_17289604_38" WHERE "round_of_32"='S Williams / V Williams ( USA ) L 6–4, 5–7, 1–6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: On what day did Dirk Nowitzki (14) have a high rebound? <|assistant|> SELECT "date" FROM "game_log" WHERE "high_rebounds"='Dirk Nowitzki (14)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: High points earned by Josh Howard (19) resulted in how many high rebounds? <|assistant|> SELECT COUNT("high_rebounds") FROM "game_log" WHERE "high_points"='Josh Howard (19)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Who had the high assists while Erick Dampier (8) had the high rebounds? <|assistant|> SELECT "high_assists" FROM "game_log" WHERE "high_rebounds"='Erick Dampier (8)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Who had the high points while Dirk Nowitzki (13) had the high rebounds? <|assistant|> SELECT "high_points" FROM "game_log" WHERE "high_rebounds"='Dirk Nowitzki (13)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What was the final record for the game in which Dirk Nowitzki (19) had the high points? <|assistant|> SELECT "record" FROM "game_log" WHERE "high_points"='Dirk Nowitzki (19)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_11_5_6" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Which championship had the final opponents of nathalie dechy andy ram? <|assistant|> SELECT "championship" FROM "mixed_doubles_11_5_6" WHERE "opponents_in_the_final"='Nathalie Dechy Andy Ram';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "turkey" ( "downstream" text, "upstream" text, "bandwidth" text, "price_tl" text, "every_1_gb" text, "max" text ); Question: What is the upstream speed of the network that costs 39 tl? <|assistant|> SELECT "upstream" FROM "turkey" WHERE "price_tl"='39 TL';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "turkey" ( "downstream" text, "upstream" text, "bandwidth" text, "price_tl" text, "every_1_gb" text, "max" text ); Question: How many upstream speeds are there for downstream of 20 mbit/s and bandwidth of 40 gb? <|assistant|> SELECT COUNT("upstream") FROM "turkey" WHERE "downstream"='20 Mbit/s' AND "bandwidth"='40 GB';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "turkey" ( "downstream" text, "upstream" text, "bandwidth" text, "price_tl" text, "every_1_gb" text, "max" text ); Question: What is the upstream speed that you get for 89 tl? <|assistant|> SELECT "upstream" FROM "turkey" WHERE "price_tl"='89 TL';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "turkey" ( "downstream" text, "upstream" text, "bandwidth" text, "price_tl" text, "every_1_gb" text, "max" text ); Question: What is the bandwidth for downstream of 20 mbit/s for 69 tl? <|assistant|> SELECT "bandwidth" FROM "turkey" WHERE "downstream"='20 Mbit/s' AND "price_tl"='69 TL';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17302440_1" ( "year" real, "west_manila" text, "east_manila" text, "consumer_price_index_2005_100" text, "west_manila_as_a_share_of_1996_real_tariff" text, "east_manila_as_a_share_of_1996_real_tariff" text ); Question: What was the year when West Manila has a tariff increase of 6.5? <|assistant|> SELECT "year" FROM "table1_17302440_1" WHERE "west_manila"='6.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17302440_1" ( "year" real, "west_manila" text, "east_manila" text, "consumer_price_index_2005_100" text, "west_manila_as_a_share_of_1996_real_tariff" text, "east_manila_as_a_share_of_1996_real_tariff" text ); Question: What was East Manila's share of 1996 real tariff when its Consumer Price Index is 119.4? <|assistant|> SELECT "east_manila_as_a_share_of_1996_real_tariff" FROM "table1_17302440_1" WHERE "consumer_price_index_2005_100"='119.4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17302440_1" ( "year" real, "west_manila" text, "east_manila" text, "consumer_price_index_2005_100" text, "west_manila_as_a_share_of_1996_real_tariff" text, "east_manila_as_a_share_of_1996_real_tariff" text ); Question: What was West Manila's tariff increase when its CPI is 60.6? <|assistant|> SELECT "west_manila" FROM "table1_17302440_1" WHERE "consumer_price_index_2005_100"='60.6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17302440_1" ( "year" real, "west_manila" text, "east_manila" text, "consumer_price_index_2005_100" text, "west_manila_as_a_share_of_1996_real_tariff" text, "east_manila_as_a_share_of_1996_real_tariff" text ); Question: What was West Manila's tariff increase when its CPI is 119.4? <|assistant|> SELECT "west_manila" FROM "table1_17302440_1" WHERE "consumer_price_index_2005_100"='119.4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17302440_1" ( "year" real, "west_manila" text, "east_manila" text, "consumer_price_index_2005_100" text, "west_manila_as_a_share_of_1996_real_tariff" text, "east_manila_as_a_share_of_1996_real_tariff" text ); Question: What was the CPI of West Manila when its share of 1996 real tariff is 189%? <|assistant|> SELECT "consumer_price_index_2005_100" FROM "table1_17302440_1" WHERE "west_manila_as_a_share_of_1996_real_tariff"='189%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17302440_1" ( "year" real, "west_manila" text, "east_manila" text, "consumer_price_index_2005_100" text, "west_manila_as_a_share_of_1996_real_tariff" text, "east_manila_as_a_share_of_1996_real_tariff" text ); Question: What was West Manila's share of 1996 real tariff when it CPI was 92.9? <|assistant|> SELECT "west_manila_as_a_share_of_1996_real_tariff" FROM "table1_17302440_1" WHERE "consumer_price_index_2005_100"='92.9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); Question: Of the times the Broncos played the Cincinnati Bengals, what was the highest attendance? <|assistant|> SELECT MAX("attendance") FROM "regular_season" WHERE "opponent"='Cincinnati Bengals';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); Question: When did the Broncos play the Miami Dolphins? <|assistant|> SELECT "date" FROM "regular_season" WHERE "opponent"='Miami Dolphins';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); Question: In the game with an attendance of 18304, what was the final score? <|assistant|> SELECT "result" FROM "regular_season" WHERE "attendance"=18304;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "38_comparisons" ( "cartridge" text, "bullet_weight" text, "muzzle_velocity" text, "muzzle_energy" text, "max_pressure" text ); Question: How many pressure figures are given for the .380 acp cartridge? <|assistant|> SELECT COUNT("max_pressure") FROM "38_comparisons" WHERE "cartridge"='.380 ACP';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "38_comparisons" ( "cartridge" text, "bullet_weight" text, "muzzle_velocity" text, "muzzle_energy" text, "max_pressure" text ); Question: What is the max pressure of the cartridge where the muzzle energy is 201ft•lbf (273 j)? <|assistant|> SELECT "max_pressure" FROM "38_comparisons" WHERE "muzzle_energy"='201ft•lbf (273 J)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "38_comparisons" ( "cartridge" text, "bullet_weight" text, "muzzle_velocity" text, "muzzle_energy" text, "max_pressure" text ); Question: What is the max pressure of the .38 long colt cartridge? <|assistant|> SELECT "max_pressure" FROM "38_comparisons" WHERE "cartridge"='.38 Long Colt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "38_comparisons" ( "cartridge" text, "bullet_weight" text, "muzzle_velocity" text, "muzzle_energy" text, "max_pressure" text ); Question: What is the bullet weight when the max pressure is 12,000 cup? <|assistant|> SELECT "bullet_weight" FROM "38_comparisons" WHERE "max_pressure"='12,000 CUP';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What are the scores made by Charlotte team <|assistant|> SELECT "score" FROM "game_log" WHERE "team"='Charlotte';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Who made highest assists when high rebounds was Al Horford (17) <|assistant|> SELECT "high_assists" FROM "game_log" WHERE "high_rebounds"='Al Horford (17)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Give the score when high rebounds was zaza pachulia (8) <|assistant|> SELECT "score" FROM "game_log" WHERE "high_rebounds"='Zaza Pachulia (8)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "season" text, "games" real, "gs" real, "points" text, "rebounds" text, "assists" text, "blocks" text, "steals" text, "turnovers" text ); Question: Name the gs for points being 12.1 <|assistant|> SELECT "gs" FROM "external_links" WHERE "points"='12.1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "season" text, "games" real, "gs" real, "points" text, "rebounds" text, "assists" text, "blocks" text, "steals" text, "turnovers" text ); Question: Name the assists for 157 games <|assistant|> SELECT "assists" FROM "external_links" WHERE "games"=157;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "season" text, "games" real, "gs" real, "points" text, "rebounds" text, "assists" text, "blocks" text, "steals" text, "turnovers" text ); Question: Name the steals for season 2007/2008 <|assistant|> SELECT "steals" FROM "external_links" WHERE "season"='2007/2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "season" text, "games" real, "gs" real, "points" text, "rebounds" text, "assists" text, "blocks" text, "steals" text, "turnovers" text ); Question: Name the total number of assists for 77 blocks <|assistant|> SELECT COUNT("assists") FROM "external_links" WHERE "blocks"='77';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: When mike bibby (8) had the highest amount of assists what is the record? <|assistant|> SELECT "record" FROM "game_log" WHERE "high_assists"='Mike Bibby (8)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: When mike bibby (9) has the highest amount of assists what is the location and attendance? <|assistant|> SELECT "location_attendance" FROM "game_log" WHERE "high_assists"='Mike Bibby (9)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Who was the team played on January 23? <|assistant|> SELECT "team" FROM "game_log" WHERE "date"='January 23';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Where was the game held and what was the attendance when they played Orlando? <|assistant|> SELECT "location_attendance" FROM "game_log" WHERE "team"='Orlando';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: In what game did Miami play Charlotte? <|assistant|> SELECT MAX("game") FROM "game_log" WHERE "team"='Charlotte';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Who had the high points on February 6? <|assistant|> SELECT "high_points" FROM "game_log" WHERE "date"='February 6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text ); Question: What is the highest number of laps led with 16 points? <|assistant|> SELECT MAX("laps_led") FROM "classification" WHERE "points"='16';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text ); Question: How many drivers were there for Samax Motorsport? <|assistant|> SELECT COUNT("driver") FROM "classification" WHERE "team"='SAMAX Motorsport';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text ); Question: What is the team whose driver Jeff Simmons? <|assistant|> SELECT "team" FROM "classification" WHERE "driver"='Jeff Simmons';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text ); Question: How many drivers where there when the time/retired +3 laps and points were 24? <|assistant|> SELECT COUNT("driver") FROM "classification" WHERE "time_retired"='+3 Laps' AND "points"='24';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text ); Question: What is the highest number of laps for Darren Manning? <|assistant|> SELECT MAX("laps") FROM "classification" WHERE "driver"='Darren Manning';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text ); Question: How many car numbers were recorded when the time/retired is +4.0019? <|assistant|> SELECT COUNT("car_no") FROM "classification" WHERE "time_retired"='+4.0019';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What game number was played on January 28? <|assistant|> SELECT "game" FROM "game_log" WHERE "date"='January 28';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What is the high amount of points on February 11? <|assistant|> SELECT "high_points" FROM "game_log" WHERE "date"='February 11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Who has the most assists on Denver? <|assistant|> SELECT "high_assists" FROM "game_log" WHERE "team"='Denver';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17322817_10" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Name the location attendance for april 13 <|assistant|> SELECT "location_attendance" FROM "table1_17322817_10" WHERE "date"='April 13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17322817_10" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Name the location attendance for april 5 <|assistant|> SELECT "location_attendance" FROM "table1_17322817_10" WHERE "date"='April 5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Who had the high points on December 17? <|assistant|> SELECT "high_points" FROM "game_log" WHERE "date"='December 17';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: How many scores are listed for the game against Houston <|assistant|> SELECT COUNT("score") FROM "game_log" WHERE "team"='Houston';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What was the location and attendance of the game when High Assists were Andre Miller (7)? <|assistant|> SELECT "location_attendance" FROM "game_log" WHERE "high_assists"='Andre Miller (7)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Who was the High Assist in game 1? <|assistant|> SELECT "high_assists" FROM "game_log" WHERE "game"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Who was the High Assist when the High Rebounds was andre iguodala (8)? <|assistant|> SELECT "high_assists" FROM "game_log" WHERE "high_rebounds"='Andre Iguodala (8)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What was the W-L record when HIgh Points was andre miller (30)? <|assistant|> SELECT "record" FROM "game_log" WHERE "high_points"='Andre Miller (30)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What was the score and game outcome when High Points was andre miller (17)? <|assistant|> SELECT "score" FROM "game_log" WHERE "high_points"='Andre Miller (17)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: How many games was High Points andre iguodala (29)? <|assistant|> SELECT COUNT("game") FROM "game_log" WHERE "high_points"='Andre Iguodala (29)';<|endoftext|>