text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "run_4" text, "final" text ); Question: What is Run 1, when Run 4 is 1:56.59? <|assistant|> SELECT "run_1" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "run_4" text, "final" text ); Question: What is Rank, when Run 2 is 2:06.62? <|assistant|> SELECT "rank" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "run_4" text, "final" text ); Question: What is Run 2, when Run 1 is 2:09.09? <|assistant|> SELECT "run_2" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "run_4" text, "final" text ); Question: What is Final, when Team is United States (USA) USA I? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "run_4" text, "final" text ); Question: What is Final, when Run 3 is 1:57.41? <|assistant|> SELECT "final" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "run_4" text, "final" text ); Question: What is Run 3, when Team is United States (USA) USA I? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season" ( "season" text, "passenger" text, "equipment" text, "position" text, "points" real, "races" real, "wins" text, "second" text, "third" text ); Question: Which position...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season" ( "season" text, "passenger" text, "equipment" text, "position" text, "points" real, "races" real, "wins" text, "second" text, "third" text ); Question: Which passenge...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season" ( "season" text, "passenger" text, "equipment" text, "position" text, "points" real, "races" real, "wins" text, "second" text, "third" text ); Question: What were the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season" ( "season" text, "passenger" text, "equipment" text, "position" text, "points" real, "races" real, "wins" text, "second" text, "third" text ); Question: Who is the pas...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players" ( "name" text, "nationality" text, "position" text, "s_o_paulo_career" text, "appearances" real, "goals" real ); Question: WHAT IS THE POSITION FOR BRAZIL, WITH 27 GOALS, AND FOR NEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players" ( "name" text, "nationality" text, "position" text, "s_o_paulo_career" text, "appearances" real, "goals" real ); Question: WHAT SAN PAULO CAREER HAD SMALLER THAN 201 APPEARANCES, SMA...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_models" ( "model" text, "released" real, "sensor_size" text, "resolution" text, "active_pixels" text, "iso_range" text, "dynamic_range_f_stops" real, "seconds_frame" real, "lens_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "religious_group_breakdown" ( "religion" text, "chester" text, "congleton" text, "crewe_and_nantwich" text, "ellesmere_port_and_neston" text, "macclesfield" text, "vale_royal" text, "total"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "launch_history" ( "date" text, "time_gmt" text, "serial" text, "apogee" text, "outcome" text ); Question: On 1959-01-27 when outcome was failure, what is the serial? <|assistant|> SELECT "seria...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "launch_history" ( "date" text, "time_gmt" text, "serial" text, "apogee" text, "outcome" text ); Question: Which date has serial of 11c? <|assistant|> SELECT "date" FROM "launch_history" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "launch_history" ( "date" text, "time_gmt" text, "serial" text, "apogee" text, "outcome" text ); Question: Which Apogee was on 1959-02-20? <|assistant|> SELECT "apogee" FROM "launch_history" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "launch_history" ( "date" text, "time_gmt" text, "serial" text, "apogee" text, "outcome" text ); Question: Which date has time (GMT) of 23:34? <|assistant|> SELECT "date" FROM "launch_history" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "girls_league_championships" ( "school_year" text, "volleyball" text, "cross_country" text, "soccer" text, "tennis" text, "golf" text ); Question: What is Cross Country, when Soccer is Ashland...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "girls_league_championships" ( "school_year" text, "volleyball" text, "cross_country" text, "soccer" text, "tennis" text, "golf" text ); Question: What is School Year, when Cross Country is Wo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "girls_league_championships" ( "school_year" text, "volleyball" text, "cross_country" text, "soccer" text, "tennis" text, "golf" text ); Question: What is Tennis, when School Year is 2004-05? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "girls_league_championships" ( "school_year" text, "volleyball" text, "cross_country" text, "soccer" text, "tennis" text, "golf" text ); Question: What is Cross Country, when School Year is 20...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "girls_league_championships" ( "school_year" text, "volleyball" text, "cross_country" text, "soccer" text, "tennis" text, "golf" text ); Question: What is School Year, when Cross Country is Le...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "girls_league_championships" ( "school_year" text, "volleyball" text, "cross_country" text, "soccer" text, "tennis" text, "golf" text ); Question: What is Soccer, when Cross Country is Lexingt...
<|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: What is the highest Attendance, when Result is l 26-16, and when Week is less than 12? <|ass...
<|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: What is the highest Week, when Result is W 34-21? <|assistant|> SELECT MAX("week") FROM "sch...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_to_season" ( "season" real, "level" text, "division" text, "administration" text, "position" text ); Question: What is the most recent year with a finish in 2nd position? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_to_season" ( "season" real, "level" text, "division" text, "administration" text, "position" text ); Question: What is the position in the 2004 season? <|assistant|> SELECT "position" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_to_season" ( "season" real, "level" text, "division" text, "administration" text, "position" text ); Question: What is the division for the season earlier than 2004? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: What is Team, when Qual 1 is 1:16.417? <|assistant|> SELECT "team" FROM "qualifying_result...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: What is Team, when Qual 1 is 1:16.417? <|assistant|> SELECT "team" FROM "qualifying_result...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: What is Team when Qual 1 is 1:20.139? <|assistant|> SELECT "team" FROM "qualifying_results...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: What is Name when Qual 2 is 1:15.582? <|assistant|> SELECT "name" FROM "qualifying_results...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: What is Name, when Best is 1:15.673? <|assistant|> SELECT "name" FROM "qualifying_results"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_titles_28" ( "date" real, "tournament" text, "surface" text, "partnering" text, "opponent_in_the_final" text, "score" text ); Question: Where was the tournament that happened in 1987 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_titles_28" ( "date" real, "tournament" text, "surface" text, "partnering" text, "opponent_in_the_final" text, "score" text ); Question: Who was the opponent before 1990 that had a sco...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "political_parties" ( "name_english" text, "name_german" text, "abbr" text, "ideology" text, "position" text, "votes_2011" text, "seats_in_hamburgische_b_rgerschaft" real ); Question: WHAT I...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "political_parties" ( "name_english" text, "name_german" text, "abbr" text, "ideology" text, "position" text, "votes_2011" text, "seats_in_hamburgische_b_rgerschaft" real ); Question: WHAT I...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "political_parties" ( "name_english" text, "name_german" text, "abbr" text, "ideology" text, "position" text, "votes_2011" text, "seats_in_hamburgische_b_rgerschaft" real ); Question: WHAT I...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "political_parties" ( "name_english" text, "name_german" text, "abbr" text, "ideology" text, "position" text, "votes_2011" text, "seats_in_hamburgische_b_rgerschaft" real ); Question: WHAT I...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "political_parties" ( "name_english" text, "name_german" text, "abbr" text, "ideology" text, "position" text, "votes_2011" text, "seats_in_hamburgische_b_rgerschaft" real ); Question: WHAT A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: What is the earliest game played at the TD Waterhouse Centre? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: Who was the opponent on April 2? <|assistant|> SELECT "opponent" FROM "game_lo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: What was the highest game number when the opponent was the Miami Heat? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_information" ( "source_version" text, "target_version" text, "last_release" text, "license" text, "website" text ); Question: What is Website, when License is Apache License 2.0? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_information" ( "source_version" text, "target_version" text, "last_release" text, "license" text, "website" text ); Question: What is Source Version, when Target Version is Java 7, 6, 5? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_information" ( "source_version" text, "target_version" text, "last_release" text, "license" text, "website" text ); Question: What is Source Version, when License is LGPL or MPL? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_information" ( "source_version" text, "target_version" text, "last_release" text, "license" text, "website" text ); Question: What is Target Version, when Last Release is 2009-08-09, 1.2.9...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_information" ( "source_version" text, "target_version" text, "last_release" text, "license" text, "website" text ); Question: What is Website, when Last Release is 2009-08-09, 1.2.9? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_information" ( "source_version" text, "target_version" text, "last_release" text, "license" text, "website" text ); Question: What is Target Version, when License is LGPL or MPL? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "broadcast_translators_of_kjjj" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: What is the class for the ERP W of 5...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "broadcast_translators_of_kjjj" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: What is the ERP W for the station wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "broadcast_translators_of_kjjj" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: In which city is the station license...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "broadcast_translators_of_kjjj" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: In which city is the station license...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "dates" text, "champion" text, "country" text, "score" real, "to_par" text, "margin_of_victory" text, "purse_us" real, "winner_s_share" text ); Question: What wa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "dates" text, "champion" text, "country" text, "score" real, "to_par" text, "margin_of_victory" text, "purse_us" real, "winner_s_share" text ); Question: What wa...
<|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: What is the highest laps for the grid of 7? <|assistant|> SELECT MAX("laps") FROM...
<|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: What are the average Laps for the time/retired of +16.874 secs, and a grid less t...
<|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: What are the greatest points for a time/retired of +32.256 secs, and a a grid lar...
<|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: What is biggest grid when the laps are 65? <|assistant|> SELECT MAX("grid") FROM ...
<|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: What team has a grid of 15? <|assistant|> SELECT "team" FROM "race" WHERE "grid"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "council_composition" ( "party" text, "previous_council" real, "staying_councillors" real, "seats_up_for_election" real, "election_result" real, "new_council" real ); Question: What is the ave...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "council_composition" ( "party" text, "previous_council" real, "staying_councillors" real, "seats_up_for_election" real, "election_result" real, "new_council" real ); Question: How many seats ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "council_composition" ( "party" text, "previous_council" real, "staying_councillors" real, "seats_up_for_election" real, "election_result" real, "new_council" real ); Question: How many stayin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "game_site" text, "record" text ); Question: What opponent did the Broncos play on November 16? <|assistant|> SELECT "opp...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "game_site" text, "record" text ); Question: What was the Bronco's record when they played the Detroit Lions at Mile High...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "game_site" text, "record" text ); Question: What was the score of the game on November 22? <|assistant|> SELECT "result"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" text, "record" text, "points" real ); Question: What is the lowest number of points...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "financial_data_in_millions_of_euro" ( "year" text, "2001" real, "2002" real, "2003" real, "2004" real, "2005" real, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "financial_data_in_millions_of_euro" ( "year" text, "2001" real, "2002" real, "2003" real, "2004" real, "2005" real, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "financial_data_in_millions_of_euro" ( "year" text, "2001" real, "2002" real, "2003" real, "2004" real, "2005" real, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "odyssey_award_winners_and_honor_audioboo" ( "year" real, "title" text, "producer" text, "narrator" text, "author" text, "citation" text ); Question: who is the author for harry potter and the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "odyssey_award_winners_and_honor_audioboo" ( "year" real, "title" text, "producer" text, "narrator" text, "author" text, "citation" text ); Question: what is the title when the citation is hon...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "odyssey_award_winners_and_honor_audioboo" ( "year" real, "title" text, "producer" text, "narrator" text, "author" text, "citation" text ); Question: who is the producer when the narrator is k...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "odyssey_award_winners_and_honor_audioboo" ( "year" real, "title" text, "producer" text, "narrator" text, "author" text, "citation" text ); Question: what is the year when the citation is hono...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pro_slam" ( "outcome" text, "year" real, "pro_slam_championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What is Opponent In The Final, when...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pro_slam" ( "outcome" text, "year" real, "pro_slam_championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What is the average Year, when Outc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_10_7_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: What tournament did Pemra Özgen play against julia ki...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Which Home has a Visitor of nashville? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Which Visitor has a Decision of osgood, and a Date of febr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Which Date has a Record of 36–11–7? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Which Date has a Visitor of edmonton? <|assistant|> SELECT...
<|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 sum of Bronze, when Gold is less than 1, when Total is greater than...
<|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 Bronze, when Rank is greater than 6, when Nation is Italy (...
<|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 sum of Total, when Silver is greater than 1, when Rank is 9, and wh...
<|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, when Total is 2, when Silver is less than 1, and when...
<|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 sum of Rank, when Bronze is less than 1, when Nation is Switzerland...
<|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 sum of Total, when Silver is greater than 1, when Nation is Germany...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real ); Question: What is Player, when To Par is "7", and when Score is "73-72-67-75=287"? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real ); Question: What is the average To Par, when Player is "Billy Casper"? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real ); Question: What is the highest Money ( $ ), when To Par is less than 2? <|assistant|> S...
<|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, "location" text ); Question: What event in guam did Tetsuji Kato win agai...
<|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, "location" text ); Question: What was the result of the fight when Tetsuj...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "receiving" ( "player" text, "games" real, "reception" real, "yards" real, "long" real ); Question: How many receptions were smaller than 7? <|assistant|> SELECT COUNT("reception") FROM "receivi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "receiving" ( "player" text, "games" real, "reception" real, "yards" real, "long" real ); Question: What is the average yards for Jimmie Giles in a game larger than 15 and reception larger than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "domestic_records" ( "year" text, "league_position" text, "league" text, "domestic_cup" text, "cup_position" text ); Question: What year had a league position of 8/12? <|assistant|> SELECT "year...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "domestic_records" ( "year" text, "league_position" text, "league" text, "domestic_cup" text, "cup_position" text ); Question: What league has a position of 8/13? <|assistant|> SELECT "league" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "domestic_records" ( "year" text, "league_position" text, "league" text, "domestic_cup" text, "cup_position" text ); Question: What year did the malaysia premier league get a position of 8/12? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "domestic_records" ( "year" text, "league_position" text, "league" text, "domestic_cup" text, "cup_position" text ); Question: What year had a cup position of round 1 and a league position of 5/...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "domestic_records" ( "year" text, "league_position" text, "league" text, "domestic_cup" text, "cup_position" text ); Question: What year had a domestic cup of singapore cup? <|assistant|> SELECT...