text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: Which Points have a Grid larger than 7, and a Driver of alex tagliani, and a Laps...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_country" ( "country" text, "matches" real, "wins" real, "wins_pct" text, "draws" real, "draws_pct" text, "loses" real, "loses_pct" text, "against" real, "for_against_ratio" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_country" ( "country" text, "matches" real, "wins" real, "wins_pct" text, "draws" real, "draws_pct" text, "loses" real, "loses_pct" text, "against" real, "for_against_ratio" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What date has uefa euro 2008 qualification as the competition? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What date has friendly as the competition, with pretoria, South Africa as the venu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_career" ( "year" real, "competition_description" text, "location" text, "apparatus" text, "rank_final" real, "score_final" real ); Question: What is the lowest final score of the Ameri...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What is the result for the game before week 7 against BYE? <|assistant|> SELECT "result" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What was the date for the game after week 16? <|assistant|> SELECT "date" FROM "schedule" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What was the attendance for the game against tampa bay buccaneers? <|assistant|> SELECT "att...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What was the date of the game after week 5 with 62,262 fans attending? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: Which Location has a Record o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: Which Record has an Event of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: Which Opponent has a Record o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: Which Record has a Round larg...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "hometown_school" text ); Question: What was John Jones's pick#? <|assistant|> SELECT SUM("pick") FROM "first...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "hometown_school" text ); Question: What was the pick # of the player who has a hometown/school of Atlanta, G...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "broadcasters" ( "mexico" text, "ma_ana_es_para_siempre" text, "el_canal_de_las_estrellas" text, "october_20_2008" text, "june_14_2009" text, "monday_to_friday" text ); Question: What is the E...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "broadcasters" ( "mexico" text, "ma_ana_es_para_siempre" text, "el_canal_de_las_estrellas" text, "october_20_2008" text, "june_14_2009" text, "monday_to_friday" text ); Question: What is Mañan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "broadcasters" ( "mexico" text, "ma_ana_es_para_siempre" text, "el_canal_de_las_estrellas" text, "october_20_2008" text, "june_14_2009" text, "monday_to_friday" text ); Question: When does the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_ncaa_football_attendance_leaders" ( "rank" real, "team" text, "games" real, "total" real, "avg" real ); Question: What is the highest average for teams ranked higher than 9? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); Question: What is the name of the 2008 club with Nadia Centoni Category:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); Question: What is the name for the 2008 club Despar Sirio Perugia? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); Question: What is the spike for the 2008 club Despar Sirio Perugia? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); Question: What is the spike for 2008 club Yamamay Busto Arsizio? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); Question: Which 2008 club has the name Francesca Piccinini Category:Arti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1933_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What is the least amount of wins when against is 1314? <|assistant|> SELECT MIN("wins") FROM "1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1933_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What is the number of against when the wins were 8, and a Club of South Warrnambool, with less ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1933_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What is the number of wins when the against is larger than 1155, for Warrnambool, with more tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grade_distribution" ( "score" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What score has 15.0% as the 2012? <|assistant|> SELECT "score" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grade_distribution" ( "score" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What 2012 has 2 as the score? <|assistant|> SELECT "2012" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grade_distribution" ( "score" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What 2008 has 14.2% as the 2009? <|assistant|> SELECT "2008" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grade_distribution" ( "score" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What score has 15.0% as the 2012? <|assistant|> SELECT "score" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grade_distribution" ( "score" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What 2009 has 18.5% as the 2007? <|assistant|> SELECT "2009" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grade_distribution" ( "score" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What 2011 has 12.7% as the 2010? <|assistant|> SELECT "2011" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What is the Week of the game with a Result of L 24-0? <|assistant|> SELECT MAX("week") FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What is the Week number on December 18, 1960? <|assistant|> SELECT COUNT("week") FROM "sched...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall" ( "team" text, "matches" real, "wins" real, "wins_pct" text, "draws" real, "draws_pct" text, "loses" real, "loses_pct" text, "against" real ); Question: Which Draws % has Wins ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text ); Question: Which pick played the Defensive End position? <|assistant|> SELECT "pick" FROM "nfl_draft" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text ); Question: How many picks were taken before round 3 and played Linebacker? <|assistant|> SELECT COUNT("pi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average number of silver medals won among nations that won 9 medals tot...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001_ohio_state_buckeyes_football_team" ( "player" text, "round" real, "pick" real, "position" text, "nfl_club" text ); Question: Which Round has a Pick larger than 179? <|assistant|> SELECT MA...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001_ohio_state_buckeyes_football_team" ( "player" text, "round" real, "pick" real, "position" text, "nfl_club" text ); Question: What is jamar martin's highest pick? <|assistant|> SELECT MAX("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_6b_ultra_lightweight_manx_grand_pri" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What teams rank is higher than 4 with a speed of 104.574mph? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_6b_ultra_lightweight_manx_grand_pri" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What team does Anthony Redmond ride for? <|assistant|> SELECT "team" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_6b_ultra_lightweight_manx_grand_pri" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What was the speed with a time of 1:03.41.86 and a rank smaller than 3...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "num_county" text ); Question: What school in 72 Scott county...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "num_county" text ); Question: What's the mascot of Eastern P...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "num_county" text ); Question: What's the most enrolled havin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "num_county" text ); Question: What's the county of Eastern P...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "num_county" text ); Question: What's the location of the sch...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "num_county" text ); Question: What's the IHSAA Class when th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1965" ( "title" text, "series" text, "director" text, "characters" text, "release_date" text ); Question: Who was the director of Chaser on the Rocks? <|assistant|> SELECT "director" FROM "1965...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1965" ( "title" text, "series" text, "director" text, "characters" text, "release_date" text ); Question: What are the characters from the movie Suppressed Duck? <|assistant|> SELECT "character...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ); Question: How many picks on average did Jay Bruchak have before round 6? <|assistant|> SELECT AVG(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ); Question: How many rounds did Pierre Bland have a pick larger than 148? <|assistant|> SELECT COUNT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ); Question: What was the earliest round that Purdue had a pick larger than 10? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ); Question: How many picks did Jay Bruchak have? <|assistant|> SELECT COUNT("pick") FROM "draft_pick...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "attendance" ( "attendance" real, "round" text, "date" text, "home" text, "score" text, "away" text, "venue" text, "weekday" text, "time_of_day" text ); Question: In what round was the A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "attendance" ( "attendance" real, "round" text, "date" text, "home" text, "score" text, "away" text, "venue" text, "weekday" text, "time_of_day" text ); Question: What was the visiting t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: How many weeks have an Attendance of 62,289? <|assistant|> SELECT SUM("week") FROM "schedule...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: Which Week has an Attendance larger than 65,070? <|assistant|> SELECT MAX("week") FROM "sche...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: Which Week has an Opponent of atlanta falcons, and an Attendance smaller than 63,114? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "season" text, "division" text, "tms" text, "pos" text, "pff_nmcc" text, "ufl_cup" text, "afc_pc" text ); Question: which Tms has a Season of 2013? <|assistant|> SELECT "tms" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text ); Question: What's the population with a code more than 90902 and an area less than 1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text ); Question: What's the most area of Bochum Part 2 with a population less than 15,911?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text ); Question: What's the place with an area of less than 2,198.72 and a code more than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notable_undrafted_players" ( "original_nfl_team" text, "player" text, "pos" text, "college" text, "conf" text ); Question: What is the Original NFL team of the CB Player? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notable_undrafted_players" ( "original_nfl_team" text, "player" text, "pos" text, "college" text, "conf" text ); Question: What is the College of the WR Player from SWC Conf? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notable_undrafted_players" ( "original_nfl_team" text, "player" text, "pos" text, "college" text, "conf" text ); Question: What Player is from the College of memphis? <|assistant|> SELECT "play...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notable_undrafted_players" ( "original_nfl_team" text, "player" text, "pos" text, "college" text, "conf" text ); Question: What is the College of the LB Player with Big Ten Conf.? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_ladder" ( "sunrayia_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: How many draws are there when there are 11 wins, and more than 7 losses? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_ladder" ( "sunrayia_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the draws when there are less than 3 losses and more than 16 wins...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_ladder" ( "sunrayia_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the wins when there are 5 losses, and against is more than 1205? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_ladder" ( "sunrayia_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the losses when Sunrayia FL is Red Cliffs, and the against is mor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_ladder" ( "sunrayia_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the number against when losses are smaller than 3, and wins arela...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "format" text, "owner" text, "notes" text ); Question: What is the Notes of the Frequency with Call sign CFUN-FM-1? <|assistant|> SELECT "notes" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "format" text, "owner" text, "notes" text ); Question: What is the Format of FM 100.5 Licensed to Hope? <|assistant|> SELECT "format" FROM "radio" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "format" text, "owner" text, "notes" text ); Question: What is the Notes of the Frequency with a call sign of CBUE-FM? <|assistant|> SELECT "notes" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "head_to_head_record" ( "competition" text, "played" real, "spartak" real, "draw" real, "dynamo" real ); Question: what is the average dynamo when draw is more than 0, played is less than 15 and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "head_to_head_record" ( "competition" text, "played" real, "spartak" real, "draw" real, "dynamo" real ); Question: what is the highest spartak when played is less than 15 and dynamo is less than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "head_to_head_record" ( "competition" text, "played" real, "spartak" real, "draw" real, "dynamo" real ); Question: what is the most draw when the competition is soviet league and dynamo is more ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "head_to_head_record" ( "competition" text, "played" real, "spartak" real, "draw" real, "dynamo" real ); Question: what is the sum of spartak when played is 102 and draw is less than 19? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "head_to_head_record" ( "competition" text, "played" real, "spartak" real, "draw" real, "dynamo" real ); Question: what is the least dynamo when spartak is more than 9, competition is totals and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What's the result when the Washington Redskins were the opponents on a week after 8? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "name" text, "nationality" text, "4_30" text, "4_45" text, "4_55" text, "result" real ); Question: What is the 4.45 for Anna Rogowska from Poland? <|assistant|> SELECT "4_45" FROM "f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "name" text, "nationality" text, "4_30" text, "4_45" text, "4_55" text, "result" real ); Question: What is the 4.45 for Yelena Isinbayeva? <|assistant|> SELECT "4_45" FROM "final" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "name" text, "nationality" text, "4_30" text, "4_45" text, "4_55" text, "result" real ); Question: What is Anna Rogowska's average result? <|assistant|> SELECT AVG("result") FROM "fi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "name" text, "nationality" text, "4_30" text, "4_45" text, "4_55" text, "result" real ); Question: What national has 4.45 for o and 4.55 for xo? <|assistant|> SELECT "nationality" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships_cruising_in_asia" ( "ship_name" text, "year_built" real, "length" text, "crew" real, "guests" real, "staterooms" real, "comments" text ); Question: What is the sum of staterooms in wi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships_cruising_in_asia" ( "ship_name" text, "year_built" real, "length" text, "crew" real, "guests" real, "staterooms" real, "comments" text ); Question: What is the total for guests with a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualification_round" ( "rank" real, "athlete" text, "country" text, "day_1" real, "total" real ); Question: what is the country when the total is 111 and the day 1 is 69? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualification_round" ( "rank" real, "athlete" text, "country" text, "day_1" real, "total" real ); Question: what is the average rank when the day 1 is less than 71 and the country is romania? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualification_round" ( "rank" real, "athlete" text, "country" text, "day_1" real, "total" real ); Question: how many times is the athlete jin di and the total less than 118? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "goals" real, "ends" real ); Question: What is the highest goal for a GEO nat., that ended after 2010? <|assistant|> SELECT MAX("goal...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); Question: what is the venue when the year is 2006, the competition is asian games and the event i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); Question: what is the venue when the event is 4x400 m relay and the competition is asian champion...