text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "rd" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: What is the rd for the canadian grand prix? <|assistant|> SELECT "rd" FROM "grands_prix" WHERE "grand_prix"='Canadian Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "rd" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: What is the fastest lap for the european grand prix? <|assistant|> SELECT "fastest_lap" FROM "grands_prix" WHERE "grand_prix"='European Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "rd" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: What is the pole position for the ferrari at the austrian grand prix? <|assistant|> SELECT "pole_position" FROM "grands_prix" WHERE "constructor"='Ferrari' AND "grand_prix"='Austrian Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fed_cup_singles_performances_9" ( "edition" real, "zone" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "outcome" text, "result" text ); Question: What was the result of round 2r? <|assistant|> SELECT "outcome" FROM "fed_cup_singles_performances_9" WHERE "round"='2R';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fed_cup_singles_performances_9" ( "edition" real, "zone" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "outcome" text, "result" text ); Question: Who did Tina Pisnik verse? <|assistant|> SELECT "against" FROM "fed_cup_singles_performances_9" WHERE "opponent"='Tina Pisnik';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fed_cup_singles_performances_9" ( "edition" real, "zone" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "outcome" text, "result" text ); Question: How many rounds were 2r? <|assistant|> SELECT COUNT("result") FROM "fed_cup_singles_performances_9" WHERE "round"='2R';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fed_cup_singles_performances_9" ( "edition" real, "zone" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "outcome" text, "result" text ); Question: Name the outcome for round 2r <|assistant|> SELECT "outcome" FROM "fed_cup_singles_performances_9" WHERE "round"='2R';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_m" text, "timeslot_rank" real, "night_rank" text, "overall_rank" real ); Question: what's the night rank with viewers (m) of 6.63 <|assistant|> SELECT "night_rank" FROM "weekly_ratings" WHERE "viewers_m"='6.63';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_m" text, "timeslot_rank" real, "night_rank" text, "overall_rank" real ); Question: what's the overall rank with viewers (m) of 7.44 <|assistant|> SELECT "overall_rank" FROM "weekly_ratings" WHERE "viewers_m"='7.44';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_m" text, "timeslot_rank" real, "night_rank" text, "overall_rank" real ); Question: what's the overall rank with rating/share 18–49 of 2.1/5 <|assistant|> SELECT COUNT("overall_rank") FROM "weekly_ratings" WHERE "rating_share_18_49"='2.1/5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_m" text, "timeslot_rank" real, "night_rank" text, "overall_rank" real ); Question: what's the night rank with rating of 6.2 <|assistant|> SELECT "night_rank" FROM "weekly_ratings" WHERE "rating"='6.2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_m" text, "timeslot_rank" real, "night_rank" text, "overall_rank" real ); Question: what's the viewers (m) with episode of "legacy" <|assistant|> SELECT "viewers_m" FROM "weekly_ratings" WHERE "episode"='\"Legacy\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1137142_1" ( "season" text, "group_a_winner" text, "group_b_winner" text, "group_c_winner" text, "group_d_winner" text ); Question: What is the number of group b winner for francavilla? <|assistant|> SELECT COUNT("group_b_winner") FROM "table1_1137142_1" WHERE "group_c_winner"='Francavilla';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1137142_1" ( "season" text, "group_a_winner" text, "group_b_winner" text, "group_c_winner" text, "group_d_winner" text ); Question: What is the group a winner for modena? <|assistant|> SELECT "group_a_winner" FROM "table1_1137142_1" WHERE "group_b_winner"='Modena';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1137142_1" ( "season" text, "group_a_winner" text, "group_b_winner" text, "group_c_winner" text, "group_d_winner" text ); Question: What is the group a winner for vis pesaro? <|assistant|> SELECT "group_a_winner" FROM "table1_1137142_1" WHERE "group_c_winner"='Vis Pesaro';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1137142_1" ( "season" text, "group_a_winner" text, "group_b_winner" text, "group_c_winner" text, "group_d_winner" text ); Question: What group a winner was for nocerina? <|assistant|> SELECT "group_a_winner" FROM "table1_1137142_1" WHERE "group_d_winner"='Nocerina';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1137142_1" ( "season" text, "group_a_winner" text, "group_b_winner" text, "group_c_winner" text, "group_d_winner" text ); Question: What was the group d winner for modena? <|assistant|> SELECT "group_d_winner" FROM "table1_1137142_1" WHERE "group_b_winner"='Modena';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: Who had the fastest lap at the brazilian grand prix? <|assistant|> SELECT "fastest_lap" FROM "grands_prix" WHERE "grand_prix"='Brazilian Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: Who was on the pole position at the monaco grand prix? <|assistant|> SELECT "pole_position" FROM "grands_prix" WHERE "grand_prix"='Monaco Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: Who was the winning driver when Michael Schumacher had the pole and the fastest lap? <|assistant|> SELECT "winning_driver" FROM "grands_prix" WHERE "fastest_lap"='Michael Schumacher' AND "pole_position"='Michael Schumacher';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: what are all the location where date is 5 april <|assistant|> SELECT "location" FROM "grands_prix" WHERE "date"='5 April';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: what are all the pole position where date is 26 july <|assistant|> SELECT "pole_position" FROM "grands_prix" WHERE "date"='26 July';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: who are all the winning constructors where fastest lap is riccardo patrese and location is interlagos <|assistant|> SELECT "winning_constructor" FROM "grands_prix" WHERE "fastest_lap"='Riccardo Patrese' AND "location"='Interlagos';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: what are all the report where winning constructor is williams - renault and grand prix is south african grand prix <|assistant|> SELECT "report" FROM "grands_prix" WHERE "winning_constructor"='Williams - Renault' AND "grand_prix"='South African Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: whatthe minimum round where grand prix is german grand prix <|assistant|> SELECT MIN("round") FROM "grands_prix" WHERE "grand_prix"='German Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: what of the total number of date where grand prix is portuguese grand prix <|assistant|> SELECT COUNT("date") FROM "grands_prix" WHERE "grand_prix"='Portuguese Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "round" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: What is the number of pole position with a round of 15? <|assistant|> SELECT COUNT("pole_position") FROM "season_review" WHERE "round"=15;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "round" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: What is the date of the circuit gilles villeneuve? <|assistant|> SELECT "date" FROM "season_review" WHERE "location"='Circuit Gilles Villeneuve';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "round" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: What is the location of thierry boutsen? <|assistant|> SELECT "location" FROM "season_review" WHERE "fastest_lap"='Thierry Boutsen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: Who had the pole position at the German Grand Prix? <|assistant|> SELECT "pole_position" FROM "season_review" WHERE "grand_prix"='German Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: Which rd. occurred on 22 October? <|assistant|> SELECT MIN("rd") FROM "season_review" WHERE "date"='22 October';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: Who was the winning driver on 13 August? <|assistant|> SELECT "winning_driver" FROM "season_review" WHERE "date"='13 August';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: What was the fastest lap at the Mexican Grand Prix? <|assistant|> SELECT "fastest_lap" FROM "season_review" WHERE "grand_prix"='Mexican Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: Which rd. took place at Hockenheimring? <|assistant|> SELECT MIN("rd") FROM "season_review" WHERE "location"='Hockenheimring';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: How many drivers had the fastest lap at Silverstone? <|assistant|> SELECT COUNT("fastest_lap") FROM "season_review" WHERE "location"='Silverstone';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11381701_3" ( "source" text, "date" text, "method" text, "i_os" text, "android" text, "black_berry" text, "symbian_series_40" text, "bada" text, "windows" text, "other" text ); Question: What is the percentage of Android use when Windows is 1.15%? <|assistant|> SELECT "android" FROM "table1_11381701_3" WHERE "windows"='1.15%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11381701_3" ( "source" text, "date" text, "method" text, "i_os" text, "android" text, "black_berry" text, "symbian_series_40" text, "bada" text, "windows" text, "other" text ); Question: On which dates was the value of Bada 0.05%? <|assistant|> SELECT "date" FROM "table1_11381701_3" WHERE "bada"='0.05%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11381701_3" ( "source" text, "date" text, "method" text, "i_os" text, "android" text, "black_berry" text, "symbian_series_40" text, "bada" text, "windows" text, "other" text ); Question: When the value of "other" is 0.7%, what is the percentage for Windows? <|assistant|> SELECT "windows" FROM "table1_11381701_3" WHERE "other"='0.7%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11381701_3" ( "source" text, "date" text, "method" text, "i_os" text, "android" text, "black_berry" text, "symbian_series_40" text, "bada" text, "windows" text, "other" text ); Question: When Symbian/Series 40 is 0.40%, what is the percentage of "other"? <|assistant|> SELECT "other" FROM "table1_11381701_3" WHERE "symbian_series_40"='0.40%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11381701_3" ( "source" text, "date" text, "method" text, "i_os" text, "android" text, "black_berry" text, "symbian_series_40" text, "bada" text, "windows" text, "other" text ); Question: Which source shows Blackberry at 2.9%? <|assistant|> SELECT "source" FROM "table1_11381701_3" WHERE "black_berry"='2.9%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administered_by_independent_administrati" ( "english_name" text, "japanese_orthography" text, "pronouciation" text, "abbreviation" text, "provider_iai" text, "foundation" real ); Question: Which colleges have the english abbreviation MTC? <|assistant|> SELECT "english_name" FROM "administered_by_independent_administrati" WHERE "abbreviation"='MTC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administered_by_independent_administrati" ( "english_name" text, "japanese_orthography" text, "pronouciation" text, "abbreviation" text, "provider_iai" text, "foundation" real ); Question: What is the Japanese orthography for the English name National Farmers Academy? <|assistant|> SELECT "japanese_orthography" FROM "administered_by_independent_administrati" WHERE "english_name"='National Farmers Academy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administered_by_independent_administrati" ( "english_name" text, "japanese_orthography" text, "pronouciation" text, "abbreviation" text, "provider_iai" text, "foundation" real ); Question: What is the abbreviation for the college pronounced "kōkū daigakkō"? <|assistant|> SELECT "abbreviation" FROM "administered_by_independent_administrati" WHERE "pronouciation"='Kōkū Daigakkō';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administered_by_independent_administrati" ( "english_name" text, "japanese_orthography" text, "pronouciation" text, "abbreviation" text, "provider_iai" text, "foundation" real ); Question: How many providers were founded in 1964? <|assistant|> SELECT COUNT("provider_iai") FROM "administered_by_independent_administrati" WHERE "foundation"=1964;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administered_by_independent_administrati" ( "english_name" text, "japanese_orthography" text, "pronouciation" text, "abbreviation" text, "provider_iai" text, "foundation" real ); Question: What is the Japanese orthography for National Fisheries University? <|assistant|> SELECT "japanese_orthography" FROM "administered_by_independent_administrati" WHERE "english_name"='National Fisheries University';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_by_country" ( "country" text, "total" real, "marathon_mens" real, "marathon_womens" real, "half_marathon_mens" real, "half_marathon_womens" real ); Question: What is the minimum number for the half marathon (womens)? <|assistant|> SELECT MIN("half_marathon_womens") FROM "winners_by_country";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_by_country" ( "country" text, "total" real, "marathon_mens" real, "marathon_womens" real, "half_marathon_mens" real, "half_marathon_womens" real ); Question: Whatis the total number of half marathon (mens) that represented kazakhstan? <|assistant|> SELECT COUNT("half_marathon_mens") FROM "winners_by_country" WHERE "country"='Kazakhstan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_by_country" ( "country" text, "total" real, "marathon_mens" real, "marathon_womens" real, "half_marathon_mens" real, "half_marathon_womens" real ); Question: What is amount of countries where half marathon (women) is larger than 1.0? <|assistant|> SELECT COUNT("country") FROM "winners_by_country" WHERE "half_marathon_womens">1.0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_by_country" ( "country" text, "total" real, "marathon_mens" real, "marathon_womens" real, "half_marathon_mens" real, "half_marathon_womens" real ); Question: How many times is Moldova the winner of half marathon (womens)? <|assistant|> SELECT COUNT("half_marathon_womens") FROM "winners_by_country" WHERE "country"='Moldova';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_by_country" ( "country" text, "total" real, "marathon_mens" real, "marathon_womens" real, "half_marathon_mens" real, "half_marathon_womens" real ); Question: Which country has half marathon (womens) that is larger than 1.0? <|assistant|> SELECT "country" FROM "winners_by_country" WHERE "half_marathon_womens">1.0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: What is the make of the car that won the brazilian grand prix? <|assistant|> SELECT "constructor" FROM "season_review" WHERE "grand_prix"='Brazilian Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: Who drove the fastest lap for round 8? <|assistant|> SELECT "fastest_lap" FROM "season_review" WHERE "rd"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: What day was the grand prix in jerez? <|assistant|> SELECT "date" FROM "season_review" WHERE "location"='Jerez';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: What event was in detroit? <|assistant|> SELECT "grand_prix" FROM "season_review" WHERE "location"='Detroit';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: How many events did nigel mansell drive the fastest and a mclaren - honda win? <|assistant|> SELECT COUNT("grand_prix") FROM "season_review" WHERE "constructor"='McLaren - Honda' AND "fastest_lap"='Nigel Mansell';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: What day is the french grand prix <|assistant|> SELECT "date" FROM "season_review" WHERE "grand_prix"='French Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "night_series_winners_1977_1987" ( "year" real, "winners" text, "grand_finalist" text, "scores" text, "venue" text, "crowd" real, "margin" real, "season_result" text ); Question: who is the winners where season result is 7th <|assistant|> SELECT "winners" FROM "night_series_winners_1977_1987" WHERE "season_result"='7th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "night_series_winners_1977_1987" ( "year" real, "winners" text, "grand_finalist" text, "scores" text, "venue" text, "crowd" real, "margin" real, "season_result" text ); Question: who is the winners where season result is 9th <|assistant|> SELECT "winners" FROM "night_series_winners_1977_1987" WHERE "season_result"='9th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "night_series_winners_1977_1987" ( "year" real, "winners" text, "grand_finalist" text, "scores" text, "venue" text, "crowd" real, "margin" real, "season_result" text ); Question: what's the grand finalist where winners is collingwood <|assistant|> SELECT "grand_finalist" FROM "night_series_winners_1977_1987" WHERE "winners"='Collingwood';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "night_series_winners_1977_1987" ( "year" real, "winners" text, "grand_finalist" text, "scores" text, "venue" text, "crowd" real, "margin" real, "season_result" text ); Question: who is the season result where margin is 51 <|assistant|> SELECT "season_result" FROM "night_series_winners_1977_1987" WHERE "margin"=51;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "night_series_winners_1977_1987" ( "year" real, "winners" text, "grand_finalist" text, "scores" text, "venue" text, "crowd" real, "margin" real, "season_result" text ); Question: who is the grand finalist where scores is 11.11 (77) – 10.8 (68) <|assistant|> SELECT "grand_finalist" FROM "night_series_winners_1977_1987" WHERE "scores"='11.11 (77) – 10.8 (68)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "night_series_winners_1977_1987" ( "year" real, "winners" text, "grand_finalist" text, "scores" text, "venue" text, "crowd" real, "margin" real, "season_result" text ); Question: who is the grand finalist where scores is 8.9 (57) – 7.12 (54) <|assistant|> SELECT "grand_finalist" FROM "night_series_winners_1977_1987" WHERE "scores"='8.9 (57) – 7.12 (54)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "consolation_night_series_lake_oval_winne" ( "year" real, "winners" text, "grand_finalist" text, "scores" text, "venue" text, "crowd" real, "margin" real, "season_result" text ); Question: what was the crowd when the scores are 10.12 (72) – 8.11 (59)? <|assistant|> SELECT MAX("crowd") FROM "consolation_night_series_lake_oval_winne" WHERE "scores"='10.12 (72) – 8.11 (59)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "consolation_night_series_lake_oval_winne" ( "year" real, "winners" text, "grand_finalist" text, "scores" text, "venue" text, "crowd" real, "margin" real, "season_result" text ); Question: what is the venue where the scores are 15.13 (103) – 8.4 (52)? <|assistant|> SELECT "venue" FROM "consolation_night_series_lake_oval_winne" WHERE "scores"='15.13 (103) – 8.4 (52)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "consolation_night_series_lake_oval_winne" ( "year" real, "winners" text, "grand_finalist" text, "scores" text, "venue" text, "crowd" real, "margin" real, "season_result" text ); Question: what is the venue where the margin is 4? <|assistant|> SELECT "venue" FROM "consolation_night_series_lake_oval_winne" WHERE "margin"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "consolation_night_series_lake_oval_winne" ( "year" real, "winners" text, "grand_finalist" text, "scores" text, "venue" text, "crowd" real, "margin" real, "season_result" text ); Question: what is the crowd when the grand finalist was south melbourne? <|assistant|> SELECT "crowd" FROM "consolation_night_series_lake_oval_winne" WHERE "grand_finalist"='South Melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: What was the date for monaco grand prix? <|assistant|> SELECT "date" FROM "season_review" WHERE "race"='Monaco Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: What was the date for the pole position of alain prost? <|assistant|> SELECT "date" FROM "season_review" WHERE "pole_position"='Alain Prost';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: What is the race winer of the portuguese grand prix? <|assistant|> SELECT "race_winner" FROM "season_review" WHERE "race"='Portuguese Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: what's the race winner with date being 12 june <|assistant|> SELECT "race_winner" FROM "season_review" WHERE "date"='12 June';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: what's the constructor with location being hockenheimring <|assistant|> SELECT "constructor" FROM "season_review" WHERE "location"='Hockenheimring';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: what's the race winner with location being jacarepaguá <|assistant|> SELECT "race_winner" FROM "season_review" WHERE "location"='Jacarepaguá';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: what's the total number of race winner with rnd being 10 <|assistant|> SELECT COUNT("race_winner") FROM "season_review" WHERE "rnd"=10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: what's the pole position with location being hockenheimring <|assistant|> SELECT "pole_position" FROM "season_review" WHERE "location"='Hockenheimring';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: what's the report with rnd being 4 <|assistant|> SELECT "report" FROM "season_review" WHERE "rnd"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "double_premiership_teams" ( "season" real, "premier" text, "runner_up" text, "score" text, "venue" text, "attendance" real, "premiership" text ); Question: What venue has an attendance of 30824 at Essendon in 1984? <|assistant|> SELECT "venue" FROM "double_premiership_teams" WHERE "premier"='Essendon' AND "attendance"=30824;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "double_premiership_teams" ( "season" real, "premier" text, "runner_up" text, "score" text, "venue" text, "attendance" real, "premiership" text ); Question: What other venue was a runner up to Hawthorn? <|assistant|> SELECT "venue" FROM "double_premiership_teams" WHERE "runner_up"='Hawthorn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "double_premiership_teams" ( "season" real, "premier" text, "runner_up" text, "score" text, "venue" text, "attendance" real, "premiership" text ); Question: What is the other premiership when the runner up wis Geelong? <|assistant|> SELECT "premiership" FROM "double_premiership_teams" WHERE "runner_up"='Geelong';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "double_premiership_teams" ( "season" real, "premier" text, "runner_up" text, "score" text, "venue" text, "attendance" real, "premiership" text ); Question: Who are all the runner ups when the score is 9.12 (66) – 5.6 (36)? <|assistant|> SELECT "runner_up" FROM "double_premiership_teams" WHERE "score"='9.12 (66) – 5.6 (36)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: Who had the fastest lap in the race where Patrick Tambay was on the pole? <|assistant|> SELECT "fastest_lap" FROM "season_review" WHERE "pole_position"='Patrick Tambay';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: What race had Nelson Piquet on the pole and was in Nürburgring? <|assistant|> SELECT "race" FROM "season_review" WHERE "pole_position"='Nelson Piquet' AND "location"='Nürburgring';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: How many rounds did Patrick Tambay record the fastest lap? <|assistant|> SELECT COUNT("rnd") FROM "season_review" WHERE "fastest_lap"='Patrick Tambay';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: Which race is located in kyalami? <|assistant|> SELECT "race" FROM "season_review" WHERE "location"='Kyalami';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: What is the fastest lap with pole position of gilles villeneuve? <|assistant|> SELECT "fastest_lap" FROM "season_review" WHERE "pole_position"='Gilles Villeneuve';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: Who did the fastest lap in the dutch grand prix? <|assistant|> SELECT "fastest_lap" FROM "season_review" WHERE "race"='Dutch Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: Who did the fastest lap with the race winner john watson? <|assistant|> SELECT "fastest_lap" FROM "season_review" WHERE "race_winner"='John Watson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: What is the constructor for 9 May? <|assistant|> SELECT "constructor" FROM "season_review" WHERE "date"='9 May';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: What is the pole position for the race with the fastest lap by Nelson Piquet and the constructor is Ferrari? <|assistant|> SELECT "pole_position" FROM "season_review" WHERE "fastest_lap"='Nelson Piquet' AND "constructor"='Ferrari';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: What is the report listed for the race in San Marino Grand Prix? <|assistant|> SELECT "report" FROM "season_review" WHERE "race"='San Marino Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: Who was the constructor in the location Monza? <|assistant|> SELECT "constructor" FROM "season_review" WHERE "location"='Monza';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: How many races had the pole position Alain Prost and the race winner Keke Rosberg? <|assistant|> SELECT COUNT("race") FROM "season_review" WHERE "pole_position"='Alain Prost' AND "race_winner"='Keke Rosberg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: what's the report with location  österreichring <|assistant|> SELECT "report" FROM "season_review" WHERE "location"='Österreichring';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: what's the report with race argentine grand prix <|assistant|> SELECT "report" FROM "season_review" WHERE "race"='Argentine Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: what's the minimum rnd with race  italian grand prix <|assistant|> SELECT MIN("rnd") FROM "season_review" WHERE "race"='Italian Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: what's the total number of report with date  29 april <|assistant|> SELECT COUNT("report") FROM "season_review" WHERE "date"='29 April';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: what's the race winner with constructor  renault <|assistant|> SELECT "race_winner" FROM "season_review" WHERE "constructor"='Renault';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: what's the date with rnd  1 <|assistant|> SELECT "date" FROM "season_review" WHERE "rnd"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: How many days is the Monaco Grand Prix? <|assistant|> SELECT COUNT("date") FROM "season_review" WHERE "race"='Monaco Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: How many rounds were won with James Hunt as pole position and John Watson as fastest lap? <|assistant|> SELECT COUNT("rnd") FROM "season_review" WHERE "pole_position"='James Hunt' AND "fastest_lap"='John Watson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: The Dijon-prenois had how many fastest laps? <|assistant|> SELECT COUNT("fastest_lap") FROM "season_review" WHERE "location"='Dijon-Prenois';<|endoftext|>