text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "maiden_overs" ( "bowler" text, "over_no" real, "venue" text, "date" text, "wickets" text ); Question: Bowler of shane bond has what lowest overall number? <|assistant|> SELECT MIN("over_no") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "maiden_overs" ( "bowler" text, "over_no" real, "venue" text, "date" text, "wickets" text ); Question: Wickets of chris gayle caught kapali happened on what date? <|assistant|> SELECT "date" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "foundation" ( "member_countries" text, "population" real, "area_km" real, "gdp_billion_us" real, "gdp_per_capita_us" text ); Question: What is the area of a nation has a population under 44,788...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "foundation" ( "member_countries" text, "population" real, "area_km" real, "gdp_billion_us" real, "gdp_per_capita_us" text ); Question: What is the population of the place that has an area (km²)...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "foundation" ( "member_countries" text, "population" real, "area_km" real, "gdp_billion_us" real, "gdp_per_capita_us" text ); Question: What is the GDP of the place with over 54,292,038 people a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "british_under_18_champions" ( "year" real, "venue" text, "winner" text, "runner_up" text, "third" text ); Question: What year did Kyle Newman place third? <|assistant|> SELECT "year" FROM "brit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "british_under_18_champions" ( "year" real, "venue" text, "winner" text, "runner_up" text, "third" text ); Question: What was the venue when Jerran Hart won? <|assistant|> SELECT "venue" FROM "b...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "british_under_18_champions" ( "year" real, "venue" text, "winner" text, "runner_up" text, "third" text ); Question: Who was the runner-up in 2004? <|assistant|> SELECT "runner_up" FROM "british...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "british_under_18_champions" ( "year" real, "venue" text, "winner" text, "runner_up" text, "third" text ); Question: What was the venue when Jack Hargreaves finished third? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "british_under_18_champions" ( "year" real, "venue" text, "winner" text, "runner_up" text, "third" text ); Question: What was the venue when Ben Barker finished third? <|assistant|> SELECT "venu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "thursday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: What is on tv at 10:00 on the same channel that had Infoman on at 7:30? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "thursday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: What is on tv at 10:00 on the same channel that had movies on at 8:00? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "thursday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: What is on tv at 7:00 on the same channel that has Survivor: China on at ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "thursday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: What is on tv at 8:00 on the same channel that had Loft Story on at 7:00?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "thursday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: What is on tv at 9:30 on the same channel that had e2 on at 7:30? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "domestic" ( "city" text, "province_region" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What province/region is RJTQ located? <|assistant|> SELECT "province_reg...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "domestic" ( "city" text, "province_region" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: In what city is RJSN located? <|assistant|> SELECT "city" FROM "domestic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "domestic" ( "city" text, "province_region" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is RJCM's IATA? <|assistant|> SELECT "iata" FROM "domestic" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "domestic" ( "city" text, "province_region" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: In what country is Hokkaidō and New Chitose airport located? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "domestic" ( "city" text, "province_region" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: In what country is Hiroshima Airport located? <|assistant|> SELECT "coun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "domestic" ( "city" text, "province_region" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is the ICAO of Nakashibetsu? <|assistant|> SELECT "icao" FROM "dome...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012_table" ( "club" text, "played" text, "drawn" text, "lost" text, "try_bp" text, "losing_bp" text ); Question: What is the total number of games lost when 22 have been played, the los...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012_table" ( "club" text, "played" text, "drawn" text, "lost" text, "try_bp" text, "losing_bp" text ); Question: What is the number drawn when 3 have been lost? <|assistant|> SELECT "dr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012_table" ( "club" text, "played" text, "drawn" text, "lost" text, "try_bp" text, "losing_bp" text ); Question: What is the number drawn when the try BP is 1? <|assistant|> SELECT "dra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012_table" ( "club" text, "played" text, "drawn" text, "lost" text, "try_bp" text, "losing_bp" text ); Question: What is the try BP when the losing BP is 4 and the club is Bargoed RFC? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012_table" ( "club" text, "played" text, "drawn" text, "lost" text, "try_bp" text, "losing_bp" text ); Question: What is the club that has played 22 rounds, has a drawn score of 0, has ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What average Total has a Rank of 3 and a Bronze award larger than 3? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What average Total has a Gold award of 13 and a Bronze award less than 13? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average Gold award that has a Silver award greater than 2, and a Bronze a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What is the record number of the game where Guardado lost? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What was the lowest attendance recorded at a game on September 28? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average gold that has a total of 2 and more than 1 bronze. <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the 2006 result of the Ca...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the result for 2006 of a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the 2010 result of a tour...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the 2012 result of a tour...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the 2010 result of a tour...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_tournaments_and_friendlies" ( "match" real, "date" text, "tournament" text, "location" text, "opponent_team" text, "score" text ); Question: What match number took place on August ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: What is the 2010 value of t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: What is the 2012 value with...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: What is the 2012 value with...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: What is the 2013 value with...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: What is the 2007 value at t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: Which tournament had a qf i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing_rates" ( "exam" text, "2006_first_time" text, "2006_all" text, "2007_first_time" text, "2007_all" text, "2008_first_time" text, "2008_all" text, "2009_first_time" text, "2009_all...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing_rates" ( "exam" text, "2006_first_time" text, "2006_all" text, "2007_first_time" text, "2007_all" text, "2008_first_time" text, "2008_all" text, "2009_first_time" text, "2009_all...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing_rates" ( "exam" text, "2006_first_time" text, "2006_all" text, "2007_first_time" text, "2007_all" text, "2008_first_time" text, "2008_all" text, "2009_first_time" text, "2009_all...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing_rates" ( "exam" text, "2006_first_time" text, "2006_all" text, "2007_first_time" text, "2007_all" text, "2008_first_time" text, "2008_all" text, "2009_first_time" text, "2009_all...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing_rates" ( "exam" text, "2006_first_time" text, "2006_all" text, "2007_first_time" text, "2007_all" text, "2008_first_time" text, "2008_all" text, "2009_first_time" text, "2009_all...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing_rates" ( "exam" text, "2006_first_time" text, "2006_all" text, "2007_first_time" text, "2007_all" text, "2008_first_time" text, "2008_all" text, "2009_first_time" text, "2009_all...
<|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 was the score for the 2014 FIFA World Cup Qual. competition? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaches" ( "name" text, "period" text, "matches" real, "wins" real, "draws" real, "losses" real, "efficiency_pct" text ); Question: What is the highest number of matches with less than 2 dr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaches" ( "name" text, "period" text, "matches" real, "wins" real, "draws" real, "losses" real, "efficiency_pct" text ); Question: What is the total number of Draws with less than 4 matche...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "analogue_radio_programmes" ( "program" text, "frequency_m_hz" real, "erp_k_w" real, "polarisation" text, "antenna_diagram_around_nd_directional_d" text ); Question: What is the average MHz Freq...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "time" text, "att" text, "record" text ); Question: What date shows a Loss of lilly (2–2)? <|assistant|> SELECT "date" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "time" text, "att" text, "record" text ); Question: What is the loss when the time was 3:16, and a Record of 15–15? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "time" text, "att" text, "record" text ); Question: What team was the opponent when the time was 2:57, and a Score of 7–...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "time" text, "att" text, "record" text ); Question: What date was the loss of ponson (4–3)? <|assistant|> SELECT "date" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "time" text, "att" text, "record" text ); Question: What date was the loss of sparks (0–1)? <|assistant|> SELECT "date" ...
<|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 position of the competition in Tampere, Finland? <|assistant|> SELECT "posi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "montenegro_versus_other_countries" ( "wins" real, "draws" real, "losses" real, "goal_difference" text, "total" real ); Question: What is the lowest total that has draws less than 2 and wins les...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "montenegro_versus_other_countries" ( "wins" real, "draws" real, "losses" real, "goal_difference" text, "total" real ); Question: What is the average number of draws that have a total of 1 and a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "montenegro_versus_other_countries" ( "wins" real, "draws" real, "losses" real, "goal_difference" text, "total" real ); Question: What is the lowest number of draws that have a goal difference o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" text, "league" text, "reg_season" text, "playoffs" text, "avg_attendance" text ); Question: What regular season had an average attendance of 1,242? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" text, "league" text, "reg_season" text, "playoffs" text, "avg_attendance" text ); Question: What league has an average attendance of 244? <|assistant|> SELECT "league" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: On what date was the opponent the White Sox and the record 18-13? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What was the average attendance when the record was 19-13? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What was the Loss when the opponent was the Rangers and the attendance was g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_performance_statistics" ( "tournament" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What was the 2012...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_performance_statistics" ( "tournament" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What was the 2009...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_performance_statistics" ( "tournament" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What was the 2008...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_performance_statistics" ( "tournament" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: In which tourname...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "foreign_players" ( "country" text, "player_name" text, "period" text, "position" text, "matches" text, "goals" text ); Question: Name the player name with matches of 51 <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "foreign_players" ( "country" text, "player_name" text, "period" text, "position" text, "matches" text, "goals" text ); Question: Name the position for brazil 2008 with goals of 0 1 <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "foreign_players" ( "country" text, "player_name" text, "period" text, "position" text, "matches" text, "goals" text ); Question: Name the goals with matches of 21 <|assistant|> SELECT "goals"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "foreign_players" ( "country" text, "player_name" text, "period" text, "position" text, "matches" text, "goals" text ); Question: Name the period with matches of 0 0 of portugal <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fa_cup" ( "date" text, "round" text, "opponents" text, "result_f_a" text, "attendance" real ); Question: Name the opponents for round of round 5 <|assistant|> SELECT "opponents" FROM "fa_cup" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fa_cup" ( "date" text, "round" text, "opponents" text, "result_f_a" text, "attendance" real ); Question: Name the attendance for 4 january 2004 <|assistant|> SELECT "attendance" FROM "fa_cup" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fa_cup" ( "date" text, "round" text, "opponents" text, "result_f_a" text, "attendance" real ); Question: Name the most attendance for 25 january 2004 <|assistant|> SELECT MAX("attendance") FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "knockout_phase" ( "date" text, "round" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real ); Question: What is the average Attendance for the final round? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "knockout_phase" ( "date" text, "round" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real ); Question: What is the smallest number of people to attend a game with an H/A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "number_of_chapters_per_point_of_view_cha" ( "pov_character" text, "game" text, "clash" text, "storm" text, "feast" text, "dance" text ); Question: Which game does the quentyn martell have? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "number_of_chapters_per_point_of_view_cha" ( "pov_character" text, "game" text, "clash" text, "storm" text, "feast" text, "dance" text ); Question: Which storm has a clash of 3 and a dance of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text ); Question: Name the melbourne with perth, adelaide and auckland of no with sydney ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text ); Question: Name the gold coast which has an auckland of no and melbourne of yes <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text ); Question: Name the sydney with perth of no, adelaide of no with melbourne of yes ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text ); Question: Name the Adelaide for Sydney of yes and Perth of yes <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text ); Question: Name the melbourne for adelaide of no with auckland of yes and gold coa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "population_region_total" real, "population_stanthorpe" real, "population_warwick" real, "population_allora" real, "population_glengallan" real, "population_rosent...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "population_region_total" real, "population_stanthorpe" real, "population_warwick" real, "population_allora" real, "population_glengallan" real, "population_rosent...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "population_region_total" real, "population_stanthorpe" real, "population_warwick" real, "population_allora" real, "population_glengallan" real, "population_rosent...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "population_region_total" real, "population_stanthorpe" real, "population_warwick" real, "population_allora" real, "population_glengallan" real, "population_rosent...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "population_region_total" real, "population_stanthorpe" real, "population_warwick" real, "population_allora" real, "population_glengallan" real, "population_rosent...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "population_region_total" real, "population_stanthorpe" real, "population_warwick" real, "population_allora" real, "population_glengallan" real, "population_rosent...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_ministers_for_energy" ( "minister" text, "party" text, "start_date" text, "end_date" text, "prime_minister" text ); Question: Who is the Prime Minister of Antoine Wehenkel? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: What is the least amount of wins earlier than 1964 with more than 7 points? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: What is the least points for class 125cc with 1 win earlier than 1961? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: What is the number of wins when there are 7 points? <|assistant|> SELECT "wins" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: What is the least amount of points when there is 1 win? <|assistant|> SELECT MIN...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ...