text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat_rank" real, "lane" real, "swimmer" text, "country" text, "time" real, "overall_rank" text ); Question: Tell me the least time for apostolos tsagkarakis for lane less than 6 <|assistant|> SELECT MIN("time") FROM "heats" WHERE "swimmer"='apostolos tsagkarakis' AND "lane"<6;<|endoftext|>
<|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: Tell me the method for pride 33 <|assistant|> SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='pride 33';<|endoftext|>
<|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: Tell me the lowest round for total combat 15 <|assistant|> SELECT MIN("round") FROM "mixed_martial_arts_record" WHERE "event"='total combat 15';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preseason" ( "week" text, "date" text, "opponent" text, "time" text, "game_site" text, "result_score" text, "record" text ); Question: Tell me the week for pittsburgh steelers opponent <|assistant|> SELECT "week" FROM "preseason" WHERE "opponent"='pittsburgh steelers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preseason" ( "week" text, "date" text, "opponent" text, "time" text, "game_site" text, "result_score" text, "record" text ); Question: Tell me the week for record of 0-1 <|assistant|> SELECT "week" FROM "preseason" WHERE "record"='0-1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preseason" ( "week" text, "date" text, "opponent" text, "time" text, "game_site" text, "result_score" text, "record" text ); Question: Tell me the time for buffalo bills <|assistant|> SELECT "time" FROM "preseason" WHERE "opponent"='buffalo bills';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preseason" ( "week" text, "date" text, "opponent" text, "time" text, "game_site" text, "result_score" text, "record" text ); Question: Tell me thee record for week of hf <|assistant|> SELECT "record" FROM "preseason" WHERE "week"='hf';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preseason" ( "week" text, "date" text, "opponent" text, "time" text, "game_site" text, "result_score" text, "record" text ); Question: Tell me the game site for week of 1 <|assistant|> SELECT "game_site" FROM "preseason" WHERE "week"='1';<|endoftext|>
<|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 result of the 1990 world cup qualifying competition? <|assistant|> SELECT "result" FROM "international_goals" WHERE "competition"='1990 world cup qualifying';<|endoftext|>
<|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 of the match in Torrance, California? <|assistant|> SELECT "score" FROM "international_goals" WHERE "venue"='torrance, california';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_and_fixtures" ( "date" text, "result" text, "score" text, "type" text, "venue" text ); Question: Tell me the score for international friendly 17 august 2013 <|assistant|> SELECT "score" FROM "results_and_fixtures" WHERE "type"='international friendly' AND "date"='17 august 2013';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); Question: What position did the MLS team metrostars pick? <|assistant|> SELECT "position" FROM "round_four" WHERE "mls_team"='metrostars';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); Question: What MLS team is affiliated with yale university? <|assistant|> SELECT "mls_team" FROM "round_four" WHERE "affiliation"='yale university';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); Question: What affiliations have Pick #s under 32? <|assistant|> SELECT "affiliation" FROM "round_four" WHERE "pick_num"<32;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); Question: What players have a position of F? <|assistant|> SELECT "player" FROM "round_four" WHERE "position"='f';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_statistics" ( "name" text, "national_team_career" text, "goals" text, "caps" text, "average" text ); Question: How many goals were scored when there were 73 caps? <|assistant|> SELECT "goals" FROM "player_statistics" WHERE "caps"='73';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "imported" ( "model" text, "build_year" text, "top_speed_in_operation_km_h" real, "power_output_k_w" text, "total_production" real ); Question: Tell me the build year for total production of 150 <|assistant|> SELECT "build_year" FROM "imported" WHERE "total_production"=150;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "imported" ( "model" text, "build_year" text, "top_speed_in_operation_km_h" real, "power_output_k_w" text, "total_production" real ); Question: Tell me the power output for total production of 100 <|assistant|> SELECT "power_output_k_w" FROM "imported" WHERE "total_production"=100;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "imported" ( "model" text, "build_year" text, "transmission" text, "top_speed_in_operation_km_h" real, "power_output_k_w" real, "builder_family" text, "total_production" real ); Question: Name the total production for model nd5 <|assistant|> SELECT "total_production" FROM "imported" WHERE "model"='nd5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_minnesota_timberwolves_players_s" ( "name" text, "nationality" text, "school_club" text, "season_s" text, "position_s" text ); Question: What is the nationality of the player who played guard in 2006? <|assistant|> SELECT "nationality" FROM "list_of_minnesota_timberwolves_players_s" WHERE "position_s"='guard' AND "season_s"='2006';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ternary_azeotropes" ( "2nd_component" text, "b_p_2nd_comp_c" real, "3rd_component" text, "b_p_3rd_comp_c" real, "b_p_azeo_c" real ); Question: Tell me the sum of bp 2nd comp with bp azeo of 57.5 <|assistant|> SELECT SUM("b_p_2nd_comp_c") FROM "ternary_azeotropes" WHERE "b_p_azeo_c"=57.5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: Which rider went 18 laps ending +25.165 behind the leader? <|assistant|> SELECT "rider" FROM "superbike_race_1_classification" WHERE "laps"=18 AND "time"='+25.165';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "place" real, "lane" real, "name" text, "nationality" text, "50m_split" real, "100m_split" text, "150m_split" text, "time" text ); Question: Which nationality has a split in the 50m of 29.51? <|assistant|> SELECT "nationality" FROM "final" WHERE "50m_split"=29.51;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "place" real, "lane" real, "name" text, "nationality" text, "50m_split" real, "100m_split" text, "150m_split" text, "time" text ); Question: Which average 50m split had a 150m split of 1:40.00, with a placing of less than 2? <|assistant|> SELECT AVG("50m_split") FROM "final" WHERE "150m_split"='1:40.00' AND "place"<2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); Question: What is the result for a year later than 2002? <|assistant|> SELECT "result" FROM "achievements" WHERE "year">2002;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); Question: What is the result for the year 1999? <|assistant|> SELECT "result" FROM "achievements" WHERE "year"=1999;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "driver" text, "chassis" text, "engine" text, "rounds" text ); Question: Tell me the engine for dhg tom's racing <|assistant|> SELECT "engine" FROM "teams_and_drivers" WHERE "team"='dhg tom''s racing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "driver" text, "chassis" text, "engine" text, "rounds" text ); Question: Name the team for toshihiro kaneishi <|assistant|> SELECT "team" FROM "teams_and_drivers" WHERE "driver"='toshihiro kaneishi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "television_series" ( "year" real, "chinese_title" text, "english_title" text, "role" text, "character" text ); Question: I want the average year of 敗犬女王 <|assistant|> SELECT AVG("year") FROM "television_series" WHERE "chinese_title"='敗犬女王';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "television_series" ( "year" real, "chinese_title" text, "english_title" text, "role" text, "character" text ); Question: Tell me the role for 2005 <|assistant|> SELECT "role" FROM "television_series" WHERE "year"=2005;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "television_series" ( "year" real, "chinese_title" text, "english_title" text, "role" text, "character" text ); Question: Tell me the average year for my queen <|assistant|> SELECT AVG("year") FROM "television_series" WHERE "english_title"='my queen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_players" ( "player" text, "highest_singles_ranking" text, "highest_doubles_ranking" text, "first_year_played" real, "years_played" real, "ties_played" real, "total_w_l" text, "singles_w_l" text, "doubles_w_l" text ); Question: Tell me singles W-L that has years larger than 1 and highest singles ranking of 1346 <|assistant|> SELECT "singles_w_l" FROM "all_players" WHERE "years_played">1 AND "highest_singles_ranking"='1346';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" text, "scoring_average" real, "scoring_rank" text ); Question: When the Top 10s is larger than 0 and the scoring average 73.04, what is the best finish? <|assistant|> SELECT "best_finish" FROM "lpga_tour_career_summary" WHERE "top_10s">0 AND "scoring_average"=73.04;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" text, "scoring_average" real, "scoring_rank" text ); Question: What is the total of scoring averages with an earnings larger than $117,682 and a best finish of T24? <|assistant|> SELECT COUNT("scoring_average") FROM "lpga_tour_career_summary" WHERE "earnings">'117,682' AND "best_finish"='t24';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" text, "scoring_average" real, "scoring_rank" text ); Question: When the earnings are less than $507,292, the money list rank 183, and more than 3 tournaments are played, what is the sum of wins? <|assistant|> SELECT SUM("wins") FROM "lpga_tour_career_summary" WHERE "earnings"<'507,292' AND "money_list_rank"='183' AND "tournaments_played">3;<|endoftext|>
<|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: Tell me the score of praterstadion, vienna, and competition of euro 1980 qualifier <|assistant|> SELECT "result" FROM "international_goals" WHERE "venue"='praterstadion, vienna' AND "competition"='euro 1980 qualifier';<|endoftext|>
<|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: I want the score for 28 march 1979 <|assistant|> SELECT "score" FROM "international_goals" WHERE "date"='28 march 1979';<|endoftext|>
<|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: I want the score for 30 april 1977 <|assistant|> SELECT "score" FROM "international_goals" WHERE "date"='30 april 1977';<|endoftext|>
<|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 competition was the World Championships before 2011? <|assistant|> SELECT "event" FROM "achievements" WHERE "competition"='world championships' AND "year"<2011;<|endoftext|>
<|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 event took place in Erfurt, Germany? <|assistant|> SELECT "event" FROM "achievements" WHERE "venue"='erfurt, germany';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "school" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text ); Question: Name the team nickname for enrollment more than 42,326 <|assistant|> SELECT "team_nickname" FROM "current_members" WHERE "enrollment">'42,326';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall" ( "played_in" text, "matches" text, "lost" text, "drawn" text, "points_for" text, "points_against" text ); Question: With the lost of 3, how many points? <|assistant|> SELECT "points_against" FROM "overall" WHERE "lost"='3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall" ( "played_in" text, "matches" text, "lost" text, "drawn" text, "points_for" text, "points_against" text ); Question: How many against points for 16 matches? <|assistant|> SELECT "points_against" FROM "overall" WHERE "matches"='16';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall" ( "played_in" text, "matches" text, "lost" text, "drawn" text, "points_for" text, "points_against" text ); Question: The 51 points against, how many are for? <|assistant|> SELECT "points_for" FROM "overall" WHERE "points_against"='51';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall" ( "played_in" text, "matches" text, "lost" text, "drawn" text, "points_for" text, "points_against" text ); Question: For the played in, what are the total points? <|assistant|> SELECT "points_for" FROM "overall" WHERE "played_in"='total';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "club_career_stats" ( "season" text, "team" text, "country" text, "league" text, "level" real, "apps" real ); Question: What country is the Eurasia Astana team from? <|assistant|> SELECT "country" FROM "club_career_stats" WHERE "team"='eurasia astana';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: Tell me the 2008 for 2012 of 4r and 2009 of a <|assistant|> SELECT "2008" FROM "singles_performance_timeline" WHERE "2012"='4r' AND "2009"='a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: Tell me the 2008 of 2001 olympic games <|assistant|> SELECT "2008" FROM "singles_performance_timeline" WHERE "2011"='olympic games';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: Tell me the tournament of 2009 of atp masters series <|assistant|> SELECT "tournament" FROM "singles_performance_timeline" WHERE "2009"='atp masters series';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: Tell me the 2011 tournament of monte carlo masters <|assistant|> SELECT "2011" FROM "singles_performance_timeline" WHERE "tournament"='monte carlo masters';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: Tell me the 2011 with 2012 of 2r <|assistant|> SELECT "2011" FROM "singles_performance_timeline" WHERE "2012"='2r' AND "2010"='2r' AND "2009"='2r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); Question: What was the latest round with a running back from a California college? <|assistant|> SELECT MAX("round") FROM "nfl_draft" WHERE "position"='running back' AND "college"='california';<|endoftext|>
<|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, "venue" text, "attendance" real ); Question: What were the results for november 25, 1973? <|assistant|> SELECT "result" FROM "schedule" WHERE "date"='november 25, 1973';<|endoftext|>
<|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, "venue" text, "attendance" real ); Question: Which Opponent had a week of 14? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "week"=14;<|endoftext|>
<|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: Tell me the date for new orleans saints <|assistant|> SELECT "date" FROM "schedule" WHERE "opponent"='new orleans saints';<|endoftext|>
<|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: Tell me the result for week of 4 <|assistant|> SELECT "result" FROM "schedule" WHERE "week"=4;<|endoftext|>
<|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: Tell me the lowest week for w 10-3 <|assistant|> SELECT MIN("week") FROM "schedule" WHERE "result"='w 10-3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat_rank" real, "lane" real, "swimmer" text, "country" text, "time" real, "overall_rank" real ); Question: Tell me the average heat rank with a lane of 2 and time less than 27.66 <|assistant|> SELECT AVG("heat_rank") FROM "heats" WHERE "lane"=2 AND "time"<27.66;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat_rank" real, "lane" real, "swimmer" text, "country" text, "time" real, "overall_rank" real ); Question: Tell me the highest overall rank for lane less than 8 and time less than 27.16 <|assistant|> SELECT MAX("overall_rank") FROM "heats" WHERE "lane"<8 AND "time"<27.16;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat_rank" real, "lane" real, "swimmer" text, "country" text, "time" real, "overall_rank" real ); Question: Tell me the total number of time for luke hall overall rank being larger than 105 <|assistant|> SELECT COUNT("time") FROM "heats" WHERE "swimmer"='luke hall' AND "overall_rank">105;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "name" text, "nationality" text, "pos" text, "college" text, "season_entered" text, "manner_of_entry" text, "left_team" text ); Question: Tell me the left team for josh vanlandingham <|assistant|> SELECT "left_team" FROM "references" WHERE "name"='josh vanlandingham';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_goalscorers" ( "rank" real, "name" text, "team" text, "goals" real, "appearances" real ); Question: Who had less than 7 goals, was ranked under 7, and had more than 8 appearances? <|assistant|> SELECT "name" FROM "top_goalscorers" WHERE "goals"<7 AND "rank"<7 AND "appearances">8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_goalscorers" ( "rank" real, "name" text, "team" text, "goals" real, "appearances" real ); Question: What was the sum of ranks of those called Fernando Cavenaghi who appeared less than 7. <|assistant|> SELECT SUM("rank") FROM "top_goalscorers" WHERE "name"='fernando cavenaghi' AND "appearances"<7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_goalscorers" ( "rank" real, "name" text, "team" text, "goals" real, "appearances" real ); Question: How many appearances were made by people that had 5 goals and less than 7 rank? <|assistant|> SELECT COUNT("appearances") FROM "top_goalscorers" WHERE "goals"=5 AND "rank"<7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_11_5_titles_6_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What was the surface for the game that had a partner of vania king? <|assistant|> SELECT "surface" FROM "doubles_11_5_titles_6_runners_up" WHERE "partner"='vania king';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_11_5_titles_6_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Who was the partner for the game on October 20, 2013? <|assistant|> SELECT "partner" FROM "doubles_11_5_titles_6_runners_up" WHERE "date"='october 20, 2013';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_mc_intyre_final_six_system" ( "round" text, "match" text, "name" text, "team_1" text, "team_2" text ); Question: Tell me the name for round of e <|assistant|> SELECT "name" FROM "first_mc_intyre_final_six_system" WHERE "round"='e';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_mc_intyre_final_six_system" ( "round" text, "match" text, "name" text, "team_1" text, "team_2" text ); Question: Name the team one for preliminary final <|assistant|> SELECT "team_1" FROM "first_mc_intyre_final_six_system" WHERE "name"='preliminary final';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_mc_intyre_final_six_system" ( "round" text, "match" text, "name" text, "team_1" text, "team_2" text ); Question: Name the team 1 for round 3 <|assistant|> SELECT "team_1" FROM "first_mc_intyre_final_six_system" WHERE "round"='3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_mc_intyre_final_six_system" ( "round" text, "match" text, "name" text, "team_1" text, "team_2" text ); Question: Name the round for 2nd elimination final <|assistant|> SELECT "round" FROM "first_mc_intyre_final_six_system" WHERE "match"='2nd elimination final';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: In less than 58 laps, what is the highest grid for Alexander Wurz? <|assistant|> SELECT MAX("grid") FROM "race" WHERE "driver"='alexander wurz' AND "laps"<58;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the total laps for grid 19? <|assistant|> SELECT COUNT("laps") FROM "race" WHERE "grid"=19;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); Question: Name the winning driver for mobilecast impul and twin ring motegi <|assistant|> SELECT "winning_driver" FROM "race_calendar_and_results" WHERE "winning_team"='mobilecast impul' AND "circuit"='twin ring motegi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); Question: Name the winning driver for round 7 <|assistant|> SELECT "winning_driver" FROM "race_calendar_and_results" WHERE "round"=7;<|endoftext|>
<|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: Name the number of total for 3 gold and rank less than 3 <|assistant|> SELECT COUNT("total") FROM "medal_table" WHERE "gold"=3 AND "rank"<3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indium_111" ( "name" text, "investigation" text, "route_of_administration" text, "in_vitro_in_vivo" text, "imaging_non_imaging" text ); Question: Tell me the naame of Investigation of thrombus imaging <|assistant|> SELECT "name" FROM "indium_111" WHERE "investigation"='thrombus imaging';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indium_111" ( "name" text, "investigation" text, "route_of_administration" text, "in_vitro_in_vivo" text, "imaging_non_imaging" text ); Question: Tell me the name for Investigation of thrombus imaging and Route of administration of iv <|assistant|> SELECT "name" FROM "indium_111" WHERE "route_of_administration"='iv' AND "investigation"='thrombus imaging';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indium_111" ( "name" text, "investigation" text, "route_of_administration" text, "in_vitro_in_vivo" text, "imaging_non_imaging" text ); Question: Tell me the in-vitro for Route of administration of iv and Investigation of somatostatin receptor imaging <|assistant|> SELECT "in_vitro_in_vivo" FROM "indium_111" WHERE "route_of_administration"='iv' AND "investigation"='somatostatin receptor imaging';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); Question: The player is Tim Regan and the pick # is position of d, what's the sum? <|assistant|> SELECT SUM("pick_num") FROM "round_two" WHERE "position"='d' AND "player"='tim regan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); Question: The position that has a pick # of 16 is what? <|assistant|> SELECT "position" FROM "round_two" WHERE "pick_num"=16;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); Question: Damani Ralph is associated with which lowest pick #? <|assistant|> SELECT MIN("pick_num") FROM "round_two" WHERE "player"='damani ralph';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); Question: Chicago fire has a total of a total of how many #s? <|assistant|> SELECT COUNT("pick_num") FROM "round_two" WHERE "mls_team"='chicago fire';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pdc_premier_event_finals_5_1_title_4_run" ( "outcome" text, "year" real, "championship" text, "opponent_in_the_final" text, "score_l_score_in_legs_s_score_in_sets" text ); Question: Tell me the score for score in legs and year less than 2012 <|assistant|> SELECT "score_l_score_in_legs_s_score_in_sets" FROM "pdc_premier_event_finals_5_1_title_4_run" WHERE "year"<2012;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pdc_premier_event_finals_5_1_title_4_run" ( "outcome" text, "year" real, "championship" text, "opponent_in_the_final" text, "score_l_score_in_legs_s_score_in_sets" text ); Question: Tell me the championship for runner-up outcome of 2010 <|assistant|> SELECT "championship" FROM "pdc_premier_event_finals_5_1_title_4_run" WHERE "outcome"='runner-up' AND "year"=2010;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pdc_premier_event_finals_5_1_title_4_run" ( "outcome" text, "year" real, "championship" text, "opponent_in_the_final" text, "score_l_score_in_legs_s_score_in_sets" text ); Question: Tell me the outcome for premier league darts <|assistant|> SELECT "outcome" FROM "pdc_premier_event_finals_5_1_title_4_run" WHERE "championship"='premier league darts';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pdc_premier_event_finals_5_1_title_4_run" ( "outcome" text, "year" real, "championship" text, "opponent_in_the_final" text, "score_l_score_in_legs_s_score_in_sets" text ); Question: Tell me the sum of Year for outcome of runner-up for world darts championship <|assistant|> SELECT SUM("year") FROM "pdc_premier_event_finals_5_1_title_4_run" WHERE "outcome"='runner-up' AND "championship"='world darts championship';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "solheim_cup_record" ( "year" text, "total_matches" real, "total_w_l_h" text, "singles_w_l_h" text, "points_won" real, "points_pct" real ); Question: In 2007, how many points were won when more than 5 matches were played? <|assistant|> SELECT COUNT("points_won") FROM "solheim_cup_record" WHERE "year"='2007' AND "total_matches">5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "solheim_cup_record" ( "year" text, "total_matches" real, "total_w_l_h" text, "singles_w_l_h" text, "points_won" real, "points_pct" real ); Question: In 2007, what is the average total matches with points % larger than 33.3? <|assistant|> SELECT AVG("total_matches") FROM "solheim_cup_record" WHERE "points_pct">33.3 AND "year"='2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "player" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); Question: Which player attended school at Georgia Tech? <|assistant|> SELECT "player" FROM "s" WHERE "school_club_team"='georgia tech';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "player" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); Question: What position does Ed Stokes hold? <|assistant|> SELECT "position" FROM "s" WHERE "player"='ed stokes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "player" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); Question: What is Michael Stewart's school or club team? <|assistant|> SELECT "school_club_team" FROM "s" WHERE "player"='michael stewart';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_8_10" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponent_in_the_final" text, "score" text ); Question: What tournament was played on May 29, 2010? <|assistant|> SELECT "tournament" FROM "doubles_8_10" WHERE "date"='may 29, 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_8_10" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponent_in_the_final" text, "score" text ); Question: What was the surface made of in the contest where Paula Ormaechea was the partner? <|assistant|> SELECT "surface" FROM "doubles_8_10" WHERE "partner"='paula ormaechea';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text ); Question: Tell me the total number of year for class pos of 3rd and laps larger than 353 <|assistant|> SELECT COUNT("year") FROM "24_hours_of_le_mans_results" WHERE "class_pos"='3rd' AND "laps">353;<|endoftext|>
<|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, "location" text ); Question: Tell me the method with a record of 4-2 <|assistant|> SELECT "method" FROM "mixed_martial_arts_record" WHERE "record"='4-2';<|endoftext|>
<|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, "location" text ); Question: Tell me the record for yukiya naito <|assistant|> SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='yukiya naito';<|endoftext|>
<|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, "location" text ); Question: Tell me the record for kazuhiro nakamura <|assistant|> SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='kazuhiro nakamura';<|endoftext|>
<|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, "location" text ); Question: Tell me the method for stanislav nuschik <|assistant|> SELECT "method" FROM "mixed_martial_arts_record" WHERE "opponent"='stanislav nuschik';<|endoftext|>
<|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" text ); Question: What was the Result of IFL: Los Angeles? <|assistant|> SELECT "res" FROM "mixed_martial_arts_record" WHERE "event"='ifl: los angeles';<|endoftext|>
<|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" text ); Question: Which Event resulted in a Win for Opponent, Shane Ott? <|assistant|> SELECT "event" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "opponent"='shane ott';<|endoftext|>