text stringlengths 310 1.28k |
|---|
<|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,
"save" text,
"record" text
);
Question: What was the loss on September 2?
<|assistant|>
SELECT "loss" FROM "game_log" WHERE "date"='september 2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"ntfa_div_1" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the total number of byes that are associated with 1 draw, 5 wins, and fewer than 12 losses?
<|assistant|>
SELECT SUM("byes") FROM "2010_ladder" WHERE "draws"=1 AND "wins"=5 AND "losses"<12;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"ntfa_div_1" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the total number of byes associated with fewer than 8 wins and fewer than 1 draw?
<|assistant|>
SELECT COUNT("byes") FROM "2010_ladder" WHERE "draws"<1 AND "wins"<8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"ntfa_div_1" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the NTFA Div 1 team that has 15 wins and less than 1 draw?
<|assistant|>
SELECT "ntfa_div_1" FROM "2010_ladder" WHERE "draws"<1 AND "wins"=15;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"ntfa_div_1" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the average number of losses for teams with 0 draws and 0 byes?
<|assistant|>
SELECT AVG("losses") FROM "2010_ladder" WHERE "draws"=0 AND "byes"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"ntfa_div_1" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the most number of losses for teams with 5 wins and an against value under 1607?
<|assistant|>
SELECT MAX("losses") FROM "2010_ladder" WHERE "wins"=5 AND "against"<1607;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_season" (
"season" text,
"race" real,
"podium" real,
"pole" real,
"f_lap" real
);
Question: Race that has a Podium larger than 1, and a Season of 1982, and a flap smaller than 1 had how many number of races?
<|assistant|>
SELECT COUNT("race") FROM "by_season" WHERE "podium">1 AND "season"='1982' AND "f_lap"<1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_season" (
"season" text,
"race" real,
"podium" real,
"pole" real,
"f_lap" real
);
Question: Pole smaller than 0 had what lowest podium?
<|assistant|>
SELECT MIN("podium") FROM "by_season" WHERE "pole"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_season" (
"season" text,
"race" real,
"podium" real,
"pole" real,
"f_lap" real
);
Question: Flap of 0, and a Race smaller than 2, and a Season of 1989, and a Pole smaller than 0 had what average podium?
<|assistant|>
SELECT AVG("podium") FROM "by_season" WHERE "f_lap"=0 AND "race"<2 AND "season"='1989' AND "pole"<0;<|endoftext|> |
<|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,
"stadium" text,
"attendance" real,
"record" text
);
Question: What was the record on august 24?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "date"='august 24';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "colorado_highway_summits_not_on_a_pass" (
"rank" real,
"highway" text,
"elevation" text,
"surface" text,
"route" real
);
Question: Elevation of 11,158 feet 3401 m had what route?
<|assistant|>
SELECT "route" FROM "colorado_highway_summits_not_on_a_pass" WHERE "elevation"='11,158 feet 3401 m';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "colorado_highway_summits_not_on_a_pass" (
"rank" real,
"highway" text,
"elevation" text,
"surface" text,
"route" real
);
Question: Route larger than 24, and a Highway of trail ridge road had what elevation?
<|assistant|>
SELECT "elevation" FROM "colorado_highway_summits_not_on_a_pass" WHERE "route">24 AND "highway"='trail ridge road';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "colorado_highway_summits_not_on_a_pass" (
"rank" real,
"highway" text,
"elevation" text,
"surface" text,
"route" real
);
Question: Elevation of 12,183 feet 3713 m is what average route?
<|assistant|>
SELECT AVG("route") FROM "colorado_highway_summits_not_on_a_pass" WHERE "elevation"='12,183 feet 3713 m';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1982" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: What Opponent has a Results¹ of 1:3?
<|assistant|>
SELECT "opponent" FROM "1982" WHERE "results"='1:3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1982" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: On what Date was the Results¹ 1:2?
<|assistant|>
SELECT "date" FROM "1982" WHERE "results"='1:2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1982" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: What City had Results¹ of 1:2?
<|assistant|>
SELECT "city" FROM "1982" WHERE "results"='1:2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1982" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: On what Date was Wales the Opponent?
<|assistant|>
SELECT "date" FROM "1982" WHERE "opponent"='wales';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1982" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: In what City was Bulgaria the Opponent with Results¹ of 1:0?
<|assistant|>
SELECT "city" FROM "1982" WHERE "results"='1:0' AND "opponent"='bulgaria';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What Vancouver canucks game was on a date closest to November 4?
<|assistant|>
SELECT MAX("game") FROM "regular_season" WHERE "opponent"='vancouver canucks' AND "november"<4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1990s" (
"year" text,
"flagship_station" text,
"play_by_play" text,
"color_commentator_s" text,
"studio_host" text
);
Question: Name the year for jerry sichting
<|assistant|>
SELECT "year" FROM "1990s" WHERE "color_commentator_s"='jerry sichting';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1990s" (
"year" text,
"flagship_station" text,
"play_by_play" text,
"color_commentator_s" text,
"studio_host" text
);
Question: Name the studio host for glenn ordway and jerry sichting with year of 1993-94
<|assistant|>
SELECT "studio_host" FROM "1990s" WHERE "play_by_play"='glenn ordway' AND "color_commentator_s"='jerry sichting' AND "year"='1993-94';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1990s" (
"year" text,
"flagship_station" text,
"play_by_play" text,
"color_commentator_s" text,
"studio_host" text
);
Question: Name the flagship station for cedric maxwell and year of 1995-96
<|assistant|>
SELECT "flagship_station" FROM "1990s" WHERE "color_commentator_s"='cedric maxwell' AND "year"='1995-96';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "manitoba" (
"building" text,
"height_m" real,
"floors" real,
"built" real,
"city" text,
"architect" text
);
Question: Who was the architect of the 10 floor building with a height of 42 M?
<|assistant|>
SELECT "architect" FROM "manitoba" WHERE "height_m"=42 AND "floors"=10;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "manitoba" (
"building" text,
"height_m" real,
"floors" real,
"built" real,
"city" text,
"architect" text
);
Question: What is the height of the building built by architects Ross and Macfarlane?
<|assistant|>
SELECT "height_m" FROM "manitoba" WHERE "architect"='ross and macfarlane';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "manitoba" (
"building" text,
"height_m" real,
"floors" real,
"built" real,
"city" text,
"architect" text
);
Question: Who was the architect that built the Electric Railway Chambers before 1915?
<|assistant|>
SELECT "architect" FROM "manitoba" WHERE "built"<1915 AND "building"='electric railway chambers';<|endoftext|> |
<|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" real,
"record" text
);
Question: What is the Time on july 18 that has a Loss of lilly (3-3)?
<|assistant|>
SELECT "time" FROM "game_log" WHERE "date"='july 18' AND "loss"='lilly (3-3)';<|endoftext|> |
<|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" real,
"record" text
);
Question: Which Opponent has a Record of 43-56?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "record"='43-56';<|endoftext|> |
<|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" real,
"record" text
);
Question: What is the Score on July 18 that has Record of 41-51?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "date"='july 18' AND "record"='41-51';<|endoftext|> |
<|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" real,
"record" text
);
Question: Which Record is on july 31?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "date"='july 31';<|endoftext|> |
<|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" real,
"record" text
);
Question: Which Opponent has a Loss of weaver (9-9)?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "loss"='weaver (9-9)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_percentage_of_pole_positions_in_" (
"driver" text,
"season" real,
"races" real,
"poles" real,
"percentage" text
);
Question: Which Season was the Poles greater than 14?
<|assistant|>
SELECT "season" FROM "highest_percentage_of_pole_positions_in_" WHERE "poles">14;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_percentage_of_pole_positions_in_" (
"driver" text,
"season" real,
"races" real,
"poles" real,
"percentage" text
);
Question: Which is the highest Season with a Percentage of 67% and Alberto Ascari as a Driver?
<|assistant|>
SELECT MAX("season") FROM "highest_percentage_of_pole_positions_in_" WHERE "percentage"='67%' AND "driver"='alberto ascari';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_percentage_of_pole_positions_in_" (
"driver" text,
"season" real,
"races" real,
"poles" real,
"percentage" text
);
Question: Name the Driver that has Races greater than 16?
<|assistant|>
SELECT "driver" FROM "highest_percentage_of_pole_positions_in_" WHERE "races">16;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"name" text,
"gp_gs" real,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
Question: What is the average Long that has a GP-GS less than 14, a AVg/G less than 0.8 and a Gain less than 3 and a Loss greater than 8?
<|assistant|>
SELECT AVG("long") FROM "rushing" WHERE "gp_gs"<14 AND "avg_g"<0.8 AND "gain"<3 AND "loss">8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"name" text,
"gp_gs" real,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
Question: What is the lowest Avg/G with a Long less than 0?
<|assistant|>
SELECT MIN("avg_g") FROM "rushing" WHERE "long"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"name" text,
"gp_gs" real,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
Question: What is the amount of Avg/G with a Name of blaine gabbert and a Long greater than 30?
<|assistant|>
SELECT SUM("avg_g") FROM "rushing" WHERE "name"='blaine gabbert' AND "long">30;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"name" text,
"gp_gs" real,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
Question: What is the total number of Long with a Av/g of 124.9 but Loss greater than 0?
<|assistant|>
SELECT COUNT("long") FROM "rushing" WHERE "loss">0 AND "avg_g"=124.9;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What date has parlophone as the label, and lp as a format?
<|assistant|>
SELECT "date" FROM "release_history" WHERE "label"='parlophone' AND "format"='lp';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"school" text,
"team" text,
"city" text,
"state" text,
"conference" text
);
Question: What school has oregon as the state, and ashland as the city?
<|assistant|>
SELECT "school" FROM "see_also" WHERE "state"='oregon' AND "city"='ashland';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"school" text,
"team" text,
"city" text,
"state" text,
"conference" text
);
Question: What conference has mayville state as the school?
<|assistant|>
SELECT "conference" FROM "see_also" WHERE "school"='mayville state';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"school" text,
"team" text,
"city" text,
"state" text,
"conference" text
);
Question: What school has belleville as the city?
<|assistant|>
SELECT "school" FROM "see_also" WHERE "city"='belleville';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"school" text,
"team" text,
"city" text,
"state" text,
"conference" text
);
Question: What city has trojans as the team, and taylor as the school?
<|assistant|>
SELECT "city" FROM "see_also" WHERE "team"='trojans' AND "school"='taylor';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"school" text,
"team" text,
"city" text,
"state" text,
"conference" text
);
Question: What team has great plains as the conference, and concordia (ne) as the school?
<|assistant|>
SELECT "team" FROM "see_also" WHERE "conference"='great plains' AND "school"='concordia (ne)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"school" text,
"team" text,
"city" text,
"state" text,
"conference" text
);
Question: What school is in hillsboro city?
<|assistant|>
SELECT "school" FROM "see_also" WHERE "city"='hillsboro';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
Question: How many games have a February larger than 11, and a Record of 23-7-8?
<|assistant|>
SELECT COUNT("game") FROM "schedule_and_results" WHERE "february">11 AND "record"='23-7-8';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
Question: How much February has a Game larger than 37, and an Opponent of chicago black hawks?
<|assistant|>
SELECT COUNT("february") FROM "schedule_and_results" WHERE "game">37 AND "opponent"='chicago black hawks';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
Question: Which February has a Game of 40?
<|assistant|>
SELECT "february" FROM "schedule_and_results" WHERE "game"=40;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
Question: Which Record has a February smaller than 8, and an Opponent of montreal canadiens?
<|assistant|>
SELECT "record" FROM "schedule_and_results" WHERE "february"<8 AND "opponent"='montreal canadiens';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
Question: Which Score has a Game larger than 40, and a Record of 25-10-8?
<|assistant|>
SELECT "score" FROM "schedule_and_results" WHERE "game">40 AND "record"='25-10-8';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_defensive_players_of_the_year" (
"year" real,
"nfl_team" text,
"position" text,
"team_defense_rank" real,
"team_performance" text
);
Question: What was the team performance in 1977?
<|assistant|>
SELECT "team_performance" FROM "nfl_defensive_players_of_the_year" WHERE "year"=1977;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_defensive_players_of_the_year" (
"year" real,
"nfl_team" text,
"position" text,
"team_defense_rank" real,
"team_performance" text
);
Question: What was the position of the player whose team lost super bowl xxv before 1992, with a team defense rank larger than 3?
<|assistant|>
SELECT "position" FROM "nfl_defensive_players_of_the_year" WHERE "team_defense_rank">3 AND "year"<1992 AND "team_performance"='lost super bowl xxv';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school" text
);
Question: What round was Joe Patton selected with a pick over 68?
<|assistant|>
SELECT "round" FROM "nfl_draft" WHERE "pick">68 AND "player"='joe patton';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" real,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
Question: Which Sail number has a Position smaller than 2?
<|assistant|>
SELECT "sail_number" FROM "handicap_results_top_10" WHERE "position"<2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" real,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
Question: WHICH Corrected time d:hh:mm:ss has a Position smaller than 7, and a Yacht type of cookson 50
<|assistant|>
SELECT "corrected_time_d_hh_mm_ss" FROM "handicap_results_top_10" WHERE "position"<7 AND "yacht_type"='cookson 50';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" real,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
Question: WHICH State/country that has ray roberts?
<|assistant|>
SELECT "state_country" FROM "handicap_results_top_10" WHERE "skipper"='ray roberts';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" real,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
Question: WHICH Yacht type has a Corrected time 2:13:04:48?
<|assistant|>
SELECT "yacht_type" FROM "handicap_results_top_10" WHERE "corrected_time_d_hh_mm_ss"='2:13:04:48';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" real,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
Question: WHICH LOA (Metres) has a Corrected time d:hh:mm:ss of 3:12:07:43?
<|assistant|>
SELECT AVG("loa_metres") FROM "handicap_results_top_10" WHERE "corrected_time_d_hh_mm_ss"='3:12:07:43';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_titles_10" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What surface did Smeets play on during the Kuwait tournament?
<|assistant|>
SELECT "surface" FROM "singles_titles_10" WHERE "tournament"='kuwait';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_titles_10" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What tournament did Smeets play against Mark nielsen?
<|assistant|>
SELECT "tournament" FROM "singles_titles_10" WHERE "opponent_in_the_final"='mark nielsen';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_titles_10" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Who was the opponent during the tournament in Kuwait?
<|assistant|>
SELECT "opponent_in_the_final" FROM "singles_titles_10" WHERE "tournament"='kuwait';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_tournament" (
"name_v_t_e" text,
"pos" text,
"height" text,
"weight" text,
"club" text
);
Question: What is the weight of the player from the vk primorac kotor club?
<|assistant|>
SELECT "weight" FROM "men_s_tournament" WHERE "club"='vk primorac kotor';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_tournament" (
"name_v_t_e" text,
"pos" text,
"height" text,
"weight" text,
"club" text
);
Question: What is the weight of the player from pvk jadran club?
<|assistant|>
SELECT "weight" FROM "men_s_tournament" WHERE "club"='pvk jadran';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_tournament" (
"name_v_t_e" text,
"pos" text,
"height" text,
"weight" text,
"club" text
);
Question: What is the name of the player from club pro recco?
<|assistant|>
SELECT "name_v_t_e" FROM "men_s_tournament" WHERE "club"='pro recco';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_tournament" (
"name_v_t_e" text,
"pos" text,
"height" text,
"weight" text,
"club" text
);
Question: What is the height of the player from club vk primorac kotor who plays gk?
<|assistant|>
SELECT "height" FROM "men_s_tournament" WHERE "pos"='gk' AND "club"='vk primorac kotor';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_1_16_finals" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is Team 1 where Team 2 is gombe united f.c.?
<|assistant|>
SELECT "team_1" FROM "first_round_1_16_finals" WHERE "team_2"='gombe united f.c.';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_1_16_finals" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is Team 1 where Team 2 is al tahrir?
<|assistant|>
SELECT "team_1" FROM "first_round_1_16_finals" WHERE "team_2"='al tahrir';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_1_16_finals" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the 2nd leg where Team 2 is fc 105 libreville?
<|assistant|>
SELECT "2nd_leg" FROM "first_round_1_16_finals" WHERE "team_2"='fc 105 libreville';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "future_sites" (
"year" real,
"edition" text,
"course" text,
"location" text,
"dates" text
);
Question: What was the course called that had an Edition of 117th?
<|assistant|>
SELECT "course" FROM "future_sites" WHERE "edition"='117th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "future_sites" (
"year" real,
"edition" text,
"course" text,
"location" text,
"dates" text
);
Question: What was the earliest year that had a location of Brookline, Massachusetts?
<|assistant|>
SELECT MIN("year") FROM "future_sites" WHERE "location"='brookline, massachusetts';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "future_sites" (
"year" real,
"edition" text,
"course" text,
"location" text,
"dates" text
);
Question: What year had an edition of 115th?
<|assistant|>
SELECT AVG("year") FROM "future_sites" WHERE "edition"='115th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: How many points did ginger have when she was ranked 5th on a 350cc class bike?
<|assistant|>
SELECT COUNT("points") FROM "grand_prix_motorcycle_racing_results" WHERE "class"='350cc' AND "rank"='5th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: What year was she ranked 16th with over 12 points?
<|assistant|>
SELECT COUNT("year") FROM "grand_prix_motorcycle_racing_results" WHERE "rank"='16th' AND "points">12;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: What year was she on a 350cc class bike, ranked 16th, with over 0 wins?
<|assistant|>
SELECT SUM("year") FROM "grand_prix_motorcycle_racing_results" WHERE "class"='350cc' AND "rank"='16th' AND "wins">0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: How many points did she have with team bultaco, ranked 6th?
<|assistant|>
SELECT SUM("points") FROM "grand_prix_motorcycle_racing_results" WHERE "team"='bultaco' AND "rank"='6th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "days_of_the_week" (
"arabic" text,
"english" text,
"maltese" text,
"turkish" text,
"somali" text,
"persian" text,
"urdu" text,
"hindi" text,
"punjabi_india" text,
"punjabi_pakistan" text,
"malayalam" text,
"bangla" text,
"hebrew" text,
"indonesian" text,
"malay" text,
"filipino" text,
"pashto" text,
"tamil" text,
"telugu" text,
"kashmiri" text,
"hausa" text,
"yor_b" text,
"kurdish" text
);
Question: What is the Kashmiri word for the Indonesian word senin?
<|assistant|>
SELECT "kashmiri" FROM "days_of_the_week" WHERE "indonesian"='senin';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "days_of_the_week" (
"arabic" text,
"english" text,
"maltese" text,
"turkish" text,
"somali" text,
"persian" text,
"urdu" text,
"hindi" text,
"punjabi_india" text,
"punjabi_pakistan" text,
"malayalam" text,
"bangla" text,
"hebrew" text,
"indonesian" text,
"malay" text,
"filipino" text,
"pashto" text,
"tamil" text,
"telugu" text,
"kashmiri" text,
"hausa" text,
"yor_b" text,
"kurdish" text
);
Question: What is the Turkish word for the Bangla word shombar সোমবার?
<|assistant|>
SELECT "turkish" FROM "days_of_the_week" WHERE "bangla"='shombar সোমবার';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "days_of_the_week" (
"arabic" text,
"english" text,
"maltese" text,
"turkish" text,
"somali" text,
"persian" text,
"urdu" text,
"hindi" text,
"punjabi_india" text,
"punjabi_pakistan" text,
"malayalam" text,
"bangla" text,
"hebrew" text,
"indonesian" text,
"malay" text,
"filipino" text,
"pashto" text,
"tamil" text,
"telugu" text,
"kashmiri" text,
"hausa" text,
"yor_b" text,
"kurdish" text
);
Question: What is the Pashto word for the Somali word talaado?
<|assistant|>
SELECT "pashto" FROM "days_of_the_week" WHERE "somali"='talaado';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "days_of_the_week" (
"arabic" text,
"english" text,
"maltese" text,
"turkish" text,
"somali" text,
"persian" text,
"urdu" text,
"hindi" text,
"punjabi_india" text,
"punjabi_pakistan" text,
"malayalam" text,
"bangla" text,
"hebrew" text,
"indonesian" text,
"malay" text,
"filipino" text,
"pashto" text,
"tamil" text,
"telugu" text,
"kashmiri" text,
"hausa" text,
"yor_b" text,
"kurdish" text
);
Question: What is the Punjabi (Pakistan) word for the Kurdish word یـــەک شـەمـمـە yak sham?
<|assistant|>
SELECT "punjabi_pakistan" FROM "days_of_the_week" WHERE "kurdish"='یـــەک شـەمـمـە yak sham';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "days_of_the_week" (
"arabic" text,
"english" text,
"maltese" text,
"turkish" text,
"somali" text,
"persian" text,
"urdu" text,
"hindi" text,
"punjabi_india" text,
"punjabi_pakistan" text,
"malayalam" text,
"bangla" text,
"hebrew" text,
"indonesian" text,
"malay" text,
"filipino" text,
"pashto" text,
"tamil" text,
"telugu" text,
"kashmiri" text,
"hausa" text,
"yor_b" text,
"kurdish" text
);
Question: What is the Maltese word for the Malay word rabu?
<|assistant|>
SELECT "maltese" FROM "days_of_the_week" WHERE "malay"='rabu';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "days_of_the_week" (
"arabic" text,
"english" text,
"maltese" text,
"turkish" text,
"somali" text,
"persian" text,
"urdu" text,
"hindi" text,
"punjabi_india" text,
"punjabi_pakistan" text,
"malayalam" text,
"bangla" text,
"hebrew" text,
"indonesian" text,
"malay" text,
"filipino" text,
"pashto" text,
"tamil" text,
"telugu" text,
"kashmiri" text,
"hausa" text,
"yor_b" text,
"kurdish" text
);
Question: What is the Pashto word for the Malayalam word വ്യാഴം vyazham?
<|assistant|>
SELECT "pashto" FROM "days_of_the_week" WHERE "malayalam"='വ്യാഴം vyazham';<|endoftext|> |
<|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: Which Score has a Date of june 22?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "date"='june 22';<|endoftext|> |
<|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: How much Attendance has an Opponent of rockies, and a Record of 32-30?
<|assistant|>
SELECT SUM("attendance") FROM "game_log" WHERE "opponent"='rockies' AND "record"='32-30';<|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: Who was the opponent in which the bout ended in round 2?
<|assistant|>
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "round"=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,
"round" real,
"time" text,
"location" text
);
Question: What was the method of the bout lasting 4:15?
<|assistant|>
SELECT "method" FROM "mixed_martial_arts_record" WHERE "time"='4:15';<|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: What was the record after the bout lasting 4:15?
<|assistant|>
SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='4:15';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: How many Pick has a Round smaller than 13, and a Position of fullback?
<|assistant|>
SELECT COUNT("pick") FROM "nfl_draft" WHERE "round"<13 AND "position"='fullback';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: WHo has a Position of end and a School/Club Team of oregon state?
<|assistant|>
SELECT "player" FROM "nfl_draft" WHERE "position"='end' AND "school_club_team"='oregon state';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: Which Round has a Player of brunel christensen and a Pick smaller than 293?
<|assistant|>
SELECT MIN("round") FROM "nfl_draft" WHERE "player"='brunel christensen' AND "pick"<293;<|endoftext|> |
<|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 score was on July 25?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "date"='july 25';<|endoftext|> |
<|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: Who is the opponent on July 2 with more than 39,290 attendance?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "attendance">'39,290' AND "date"='july 2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "partial_kickboxing_record" (
"result" text,
"opponent" text,
"method" text,
"event" text,
"date" text,
"round" text,
"time" text,
"location" text,
"rules" text
);
Question: Which rule has The Event of n/a, The Result of loss, and The Location of winsford england?
<|assistant|>
SELECT "rules" FROM "partial_kickboxing_record" WHERE "event"='n/a' AND "result"='loss' AND "location"='winsford england';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "partial_kickboxing_record" (
"result" text,
"opponent" text,
"method" text,
"event" text,
"date" text,
"round" text,
"time" text,
"location" text,
"rules" text
);
Question: Which Opponent has a Round of 4, and a Rules of thai boxing?
<|assistant|>
SELECT "opponent" FROM "partial_kickboxing_record" WHERE "round"='4' AND "rules"='thai boxing';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "partial_kickboxing_record" (
"result" text,
"opponent" text,
"method" text,
"event" text,
"date" text,
"round" text,
"time" text,
"location" text,
"rules" text
);
Question: Which Opponent has a Round of 3, a Time of n/a, and a Rules of n/a?
<|assistant|>
SELECT "opponent" FROM "partial_kickboxing_record" WHERE "round"='3' AND "time"='n/a' AND "rules"='n/a';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "partial_kickboxing_record" (
"result" text,
"opponent" text,
"method" text,
"event" text,
"date" text,
"round" text,
"time" text,
"location" text,
"rules" text
);
Question: Where has a Rules of thai boxing, and a Round of n/a, and an Opponent of everton crawford?
<|assistant|>
SELECT "location" FROM "partial_kickboxing_record" WHERE "rules"='thai boxing' AND "round"='n/a' AND "opponent"='everton crawford';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "partial_kickboxing_record" (
"result" text,
"opponent" text,
"method" text,
"event" text,
"date" text,
"round" text,
"time" text,
"location" text,
"rules" text
);
Question: WHich Rules has a Method of ko (punch)?
<|assistant|>
SELECT "rules" FROM "partial_kickboxing_record" WHERE "method"='ko (punch)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"name" text,
"capacity" text,
"type" text,
"power" text,
"torque" text
);
Question: What torque does a 1905 cc capacity have?
<|assistant|>
SELECT "torque" FROM "engines" WHERE "capacity"='1905 cc';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"name" text,
"capacity" text,
"type" text,
"power" text,
"torque" text
);
Question: What torque does 1.9 diesel with 1905 cc have?
<|assistant|>
SELECT "torque" FROM "engines" WHERE "name"='1.9 diesel' AND "capacity"='1905 cc';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"name" text,
"capacity" text,
"type" text,
"power" text,
"torque" text
);
Question: What torque does daewoo have?
<|assistant|>
SELECT "torque" FROM "engines" WHERE "type"='daewoo';<|endoftext|> |
<|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: Score of 3–4, and a Attendance larger than 34,609 happened on what date?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "score"='3–4' AND "attendance">'34,609';<|endoftext|> |
<|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: Record of 12–15 happened on what date?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "record"='12–15';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.