text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Who is the second when Mikkel Krause is the third?
<|assistant|>
SELECT "second" FROM "teams" WHERE "third"='mikkel krause';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Who is the Skip when Alasdair Guthrie is the third?
<|assistant|>
SELECT "skip" FROM "teams" WHERE "third"='alasdair guthrie';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Who is the Second when Michel Gribi is the lead?
<|assistant|>
SELECT "second" FROM "teams" WHERE "lead"='michel gribi';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the highest position of the team with an against of 12, less than 11 points, more than 2 drawn, and more than 9 played?
<|assistant|>
SELECT MAX("position") FROM "torneio_rio_s_o_paulo" WHERE "against"=12 AND "points"<11 AND "drawn">2 AND "played">9;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the difference of the team with 12 points?
<|assistant|>
SELECT "difference" FROM "torneio_rio_s_o_paulo" WHERE "points"=12;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the average number of played of the team with 3 losses, more than 9 points, a position of 5, and less than 12 against?
<|assistant|>
SELECT AVG("played") FROM "torneio_rio_s_o_paulo" WHERE "lost"=3 AND "points">9 AND "position"=5 AND "against"<12;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_viewed_channels" (
"position" real,
"channel" text,
"owner" text,
"share_pct" real,
"rating_pct" real
);
Question: Name the rating % for channel of anhui satellite tv
<|assistant|>
SELECT "rating_pct" FROM "most_viewed_channels" WHERE "channel"='anhui satellite tv';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_viewed_channels" (
"position" real,
"channel" text,
"owner" text,
"share_pct" real,
"rating_pct" real
);
Question: Name the most share for anhui satellite tv
<|assistant|>
SELECT MAX("share_pct") FROM "most_viewed_channels" WHERE "channel"='anhui satellite tv';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_viewed_channels" (
"position" real,
"channel" text,
"owner" text,
"share_pct" real,
"rating_pct" real
);
Question: Name the sum of rating % for cctv and position more than 7
<|assistant|>
SELECT SUM("rating_pct") FROM "most_viewed_channels" WHERE "owner"='cctv' AND "position">7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_viewed_channels" (
"position" real,
"channel" text,
"owner" text,
"share_pct" real,
"rating_pct" real
);
Question: Name the average rating % for shandong satellite tv and share % less than 1.74
<|assistant|>
SELECT AVG("rating_pct") FROM "most_viewed_channels" WHERE "channel"='shandong satellite tv' AND "share_pct"<1.74;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_and_ranking_timeline" (
"2004_05" text,
"2005_06" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text,
"2011_12" text
);
Question: what year had a dnq of 11
<|assistant|>
SELECT "2005_06" FROM "performance_and_ranking_timeline" WHERE "2010_11"='dnq';<|endoftext|> |
<|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" real,
"record" text
);
Question: What date was Montreal the visitor?
<|assistant|>
SELECT "date" FROM "regular_season" WHERE "visitor"='montreal';<|endoftext|> |
<|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" real,
"record" text
);
Question: What is the record for the NY Rangers?
<|assistant|>
SELECT "record" FROM "regular_season" WHERE "home"='ny rangers';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nhl_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college_junior_club_team" text
);
Question: Name the sum of round for pick of 169
<|assistant|>
SELECT SUM("round") FROM "nhl_draft" WHERE "pick"=169;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nhl_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college_junior_club_team" text
);
Question: Name the nationality for pick of 16
<|assistant|>
SELECT "nationality" FROM "nhl_draft" WHERE "pick"=16;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Which Lead has a Skip of pavol pitonak?
<|assistant|>
SELECT "lead" FROM "group_b2" WHERE "skip"='pavol pitonak';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: What is the skip in Wales?
<|assistant|>
SELECT "skip" FROM "group_b2" WHERE "nation"='wales';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Which Nation has a Second of tomas pitonak?
<|assistant|>
SELECT "nation" FROM "group_b2" WHERE "second"='tomas pitonak';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Which Second has a Third of athanassios pantios?
<|assistant|>
SELECT "second" FROM "group_b2" WHERE "third"='athanassios pantios';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Where did Croatia lead?
<|assistant|>
SELECT "lead" FROM "group_b2" WHERE "nation"='croatia';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Which Skip has a Third of carlo alessandro zisa?
<|assistant|>
SELECT "skip" FROM "group_b2" WHERE "third"='carlo alessandro zisa';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: What is the nationality of Shaun Sabol?
<|assistant|>
SELECT "nationality" FROM "draft_picks" WHERE "player"='shaun sabol';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: What is the position of United States' player Brett Lawrence?
<|assistant|>
SELECT "position" FROM "draft_picks" WHERE "nationality"='united states' AND "player"='brett lawrence';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s3_tc_format_comparison" (
"fourcc" text,
"dx_10_name" text,
"description" text,
"alpha_premultiplied" text,
"compression_ratio" text,
"texture_type" text
);
Question: Which DX 10 Name that has a No Alpha premultiplied and a Description of explicit alpha?
<|assistant|>
SELECT "dx_10_name" FROM "s3_tc_format_comparison" WHERE "alpha_premultiplied"='no' AND "description"='explicit alpha';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s3_tc_format_comparison" (
"fourcc" text,
"dx_10_name" text,
"description" text,
"alpha_premultiplied" text,
"compression_ratio" text,
"texture_type" text
);
Question: Which Compression ratio has a (none) DX 10 Name and a FOURCC of dxt4?
<|assistant|>
SELECT "compression_ratio" FROM "s3_tc_format_comparison" WHERE "dx_10_name"='(none)' AND "fourcc"='dxt4';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s3_tc_format_comparison" (
"fourcc" text,
"dx_10_name" text,
"description" text,
"alpha_premultiplied" text,
"compression_ratio" text,
"texture_type" text
);
Question: Which Alpha premultiplied has a 4:1 Compression ratio and a dxt3 FOURCC?
<|assistant|>
SELECT "alpha_premultiplied" FROM "s3_tc_format_comparison" WHERE "compression_ratio"='4:1' AND "fourcc"='dxt3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"race" text,
"distance" text,
"venue" text,
"radio" text
);
Question: What is the venue of the napa auto parts 200 race with a mrn radio?
<|assistant|>
SELECT "venue" FROM "schedule" WHERE "radio"='mrn' AND "race"='napa auto parts 200';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"race" text,
"distance" text,
"venue" text,
"radio" text
);
Question: What is the race on 10/10/2008?
<|assistant|>
SELECT "race" FROM "schedule" WHERE "date"='10/10/2008';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"race" text,
"distance" text,
"venue" text,
"radio" text
);
Question: Which race has a distance of 201.44 miles?
<|assistant|>
SELECT "race" FROM "schedule" WHERE "distance"='201.44 miles';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"race" text,
"distance" text,
"venue" text,
"radio" text
);
Question: What is the distance of the race at the Atlanta Motor Speedway?
<|assistant|>
SELECT "distance" FROM "schedule" WHERE "venue"='atlanta motor speedway';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"race" text,
"distance" text,
"venue" text,
"radio" text
);
Question: What is the distance of the Sam's town 250 race?
<|assistant|>
SELECT "distance" FROM "schedule" WHERE "race"='sam''s town 250';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"race" text,
"distance" text,
"venue" text,
"radio" text
);
Question: What is the venue of teh carfax 250 race?
<|assistant|>
SELECT "venue" FROM "schedule" WHERE "race"='carfax 250';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "football_rivalries" (
"teams" text,
"name" text,
"trophy" text,
"first_met" real,
"games_played" text,
"series_record" text
);
Question: What is the name of the event where Cornell-Penn played?
<|assistant|>
SELECT "name" FROM "football_rivalries" WHERE "teams"='cornell-penn';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "football_rivalries" (
"teams" text,
"name" text,
"trophy" text,
"first_met" real,
"games_played" text,
"series_record" text
);
Question: Who many games were played for the series with the Sawhorse Dollar trophy?
<|assistant|>
SELECT "games_played" FROM "football_rivalries" WHERE "trophy"='sawhorse dollar';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: How many games have Points smaller than 4, and an October smaller than 5?
<|assistant|>
SELECT COUNT("game") FROM "regular_season" WHERE "points"<4 AND "october"<5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Game has a Record of 8–2–0, and Points larger than 16?
<|assistant|>
SELECT SUM("game") FROM "regular_season" WHERE "record"='8–2–0' AND "points">16;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Score has an October smaller than 15, and a Record of 2–0–0?
<|assistant|>
SELECT "score" FROM "regular_season" WHERE "october"<15 AND "record"='2–0–0';<|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: How many games have November 7 as the date, and points greater than 17?
<|assistant|>
SELECT COUNT("game") FROM "regular_season" WHERE "november"=7 AND "points">17;<|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: How many points have November of 15?
<|assistant|>
SELECT SUM("points") FROM "regular_season" WHERE "november"=15;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: What is the men's doubles for 2003?
<|assistant|>
SELECT "men_s_doubles" FROM "past_winners" WHERE "year"=2003;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: What is the mixed doubles in the year 2007 when the men's singles is eduards loze?
<|assistant|>
SELECT "mixed_doubles" FROM "past_winners" WHERE "year">2007 AND "men_s_singles"='eduards loze';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_11" (
"year" real,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin" text,
"runner_up" text
);
Question: Name the winning score for 54 holes of 5 shot deficit
<|assistant|>
SELECT "winning_score" FROM "wins_11" WHERE "54_holes"='5 shot deficit';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_11" (
"year" real,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin" text,
"runner_up" text
);
Question: Name the winning score for jim barnes and year of 1924
<|assistant|>
SELECT "winning_score" FROM "wins_11" WHERE "runner_up"='jim barnes' AND "year"=1924;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_race_a_tt_final_standings" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
Question: What was the Rider of the LCR Honda 600CC Team with a Time of 59’ 22.80?
<|assistant|>
SELECT "rider" FROM "2008_race_a_tt_final_standings" WHERE "team"='lcr honda 600cc' AND "time"='59’ 22.80';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_race_a_tt_final_standings" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
Question: What Rider had a Speed of 108.347mph and Time of 1:02.40.93?
<|assistant|>
SELECT "rider" FROM "2008_race_a_tt_final_standings" WHERE "speed"='108.347mph' AND "time"='1:02.40.93';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_race_a_tt_final_standings" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
Question: What Rider had a Time of 1:01.50.57?
<|assistant|>
SELECT "rider" FROM "2008_race_a_tt_final_standings" WHERE "time"='1:01.50.57';<|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,
"time" text,
"record" text
);
Question: What is the average attendance that has june 24 as the date?
<|assistant|>
SELECT AVG("attendance") FROM "game_log" WHERE "date"='june 24';<|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,
"time" text,
"record" text
);
Question: What date has 2:59 as the time?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "time"='2:59';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is the surface when the tournament is manta, ecuador?
<|assistant|>
SELECT "surface" FROM "singles_7" WHERE "tournament"='manta, ecuador';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is the surface for the tournament of manta, ecuador?
<|assistant|>
SELECT "surface" FROM "singles_7" WHERE "tournament"='manta, ecuador';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What tournament is lesley joseph the opponent?
<|assistant|>
SELECT "tournament" FROM "singles_7" WHERE "opponent"='lesley joseph';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What date was marcos daniel the opponent?
<|assistant|>
SELECT "date" FROM "singles_7" WHERE "opponent"='marcos daniel';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1999" text,
"copa_mercosur_1999" text,
"copa_conmebol_1999" text,
"intercontinental_cup_1999" text
);
Question: What is the Copa Libertadores 1999 result for team grêmio, who did not qualify for Copa Conmebol 1999?
<|assistant|>
SELECT "copa_libertadores_1999" FROM "brazilian_clubs_in_international_competi" WHERE "copa_conmebol_1999"='did not qualify' AND "team"='grêmio';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1999" text,
"copa_mercosur_1999" text,
"copa_conmebol_1999" text,
"intercontinental_cup_1999" text
);
Question: What is the copa mercosur 1999 result for team grêmio, who did not qualify for the Copa Libertadores 1999 and Copa Conmebol 1999?
<|assistant|>
SELECT "copa_mercosur_1999" FROM "brazilian_clubs_in_international_competi" WHERE "copa_libertadores_1999"='did not qualify' AND "copa_conmebol_1999"='did not qualify' AND "team"='grêmio';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1999" text,
"copa_mercosur_1999" text,
"copa_conmebol_1999" text,
"intercontinental_cup_1999" text
);
Question: What is the intercontinental cup 1999 result of the team who did not qualify for the Copa Libertadores 1999 and made quarterfinals in the Copa Mercosur 1999?
<|assistant|>
SELECT "intercontinental_cup_1999" FROM "brazilian_clubs_in_international_competi" WHERE "copa_libertadores_1999"='did not qualify' AND "copa_mercosur_1999"='quarterfinals';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1999" text,
"copa_mercosur_1999" text,
"copa_conmebol_1999" text,
"intercontinental_cup_1999" text
);
Question: What is the Copa Libertadores 1999 result for team vasco, which made the group stage in the Copa Mercosur 1999?
<|assistant|>
SELECT "copa_libertadores_1999" FROM "brazilian_clubs_in_international_competi" WHERE "copa_mercosur_1999"='group stage' AND "team"='vasco';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1999" text,
"copa_mercosur_1999" text,
"copa_conmebol_1999" text,
"intercontinental_cup_1999" text
);
Question: What is the Intercontinental Cup 1999 result for the team with a Copa Conmebol 1999 result of runner-up?
<|assistant|>
SELECT "intercontinental_cup_1999" FROM "brazilian_clubs_in_international_competi" WHERE "copa_conmebol_1999"='runner-up';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1999" text,
"copa_mercosur_1999" text,
"copa_conmebol_1999" text,
"intercontinental_cup_1999" text
);
Question: What is the Copa Conmebol 1999 result of team cruzeiro, which did not qualify for the Copa Libertadores 1999?
<|assistant|>
SELECT "copa_conmebol_1999" FROM "brazilian_clubs_in_international_competi" WHERE "copa_libertadores_1999"='did not qualify' AND "team"='cruzeiro';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "september" (
"date" real,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text
);
Question: How many people attended the game that lost 2-4 and the date was higher than 15?
<|assistant|>
SELECT COUNT("attendance") FROM "september" WHERE "result"='lost 2-4' AND "date">15;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "september" (
"date" real,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text
);
Question: What kind of competition had an attendance of more than 914 people and the Wightlink Raiders as an opponent?
<|assistant|>
SELECT "competition" FROM "september" WHERE "attendance">914 AND "opponent"='wightlink raiders';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "september" (
"date" real,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text
);
Question: How many people attended the away league competition with a date of 22?
<|assistant|>
SELECT "attendance" FROM "september" WHERE "competition"='league' AND "venue"='away' AND "date"=22;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"series" text
);
Question: Which Series has a Date of may 2?
<|assistant|>
SELECT "series" FROM "playoffs" WHERE "date"='may 2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"series" text
);
Question: Which Game has a Series of bruins lead 3–1?
<|assistant|>
SELECT SUM("game") FROM "playoffs" WHERE "series"='bruins lead 3–1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"series" text
);
Question: Which Opponent has a Series of bruins lead 2–1?
<|assistant|>
SELECT "opponent" FROM "playoffs" WHERE "series"='bruins lead 2–1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"series" text
);
Question: Which Date has a Game of 4?
<|assistant|>
SELECT "date" FROM "playoffs" WHERE "game"=4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"series" text
);
Question: Which Game has a Score of 3–6?
<|assistant|>
SELECT SUM("game") FROM "playoffs" WHERE "score"='3–6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008" (
"rank" real,
"first_quarter" text,
"second_quarter" text,
"third_quarter" text,
"fourth_quarter" text
);
Question: What is the Rank of industrial and commercial bank of china 277,236?
<|assistant|>
SELECT "rank" FROM "2008" WHERE "first_quarter"='industrial and commercial bank of china 277,236';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
Question: What was result of goal 4?
<|assistant|>
SELECT "result" FROM "international_goals" WHERE "goal"=4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: Who is the player that is part of the team Shawinigan Dynamos (Qmjhl)?
<|assistant|>
SELECT "player" FROM "draft_picks" WHERE "college_junior_club_team_league"='shawinigan dynamos (qmjhl)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: What is the highest round for the Minnesota Junior Stars (Mjhl)?
<|assistant|>
SELECT MAX("round") FROM "draft_picks" WHERE "college_junior_club_team_league"='minnesota junior stars (mjhl)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "setanta_shield" (
"round" text,
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: When did woking compete?
<|assistant|>
SELECT "date" FROM "setanta_shield" WHERE "opponent"='woking';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "setanta_shield" (
"round" text,
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: Which Opponent has an Attendance of 375?
<|assistant|>
SELECT "opponent" FROM "setanta_shield" WHERE "attendance"=375;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "setanta_shield" (
"round" text,
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: How much Attendance has an Opponent of oxford united?
<|assistant|>
SELECT SUM("attendance") FROM "setanta_shield" WHERE "opponent"='oxford united';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "setanta_shield" (
"round" text,
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: Which Attendance has an Opponent of crawley town?
<|assistant|>
SELECT "attendance" FROM "setanta_shield" WHERE "opponent"='crawley town';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"podiums" real
);
Question: How many Podiums where their total for the Series of Macau grand prix, as well as being a season before 2008?
<|assistant|>
SELECT SUM("podiums") FROM "career_summary" WHERE "series"='macau grand prix' AND "season"<2008;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"podiums" real
);
Question: How many wins where there total for Series named formula 3 euro series as well as having more than 2 Podiums?
<|assistant|>
SELECT COUNT("wins") FROM "career_summary" WHERE "series"='formula 3 euro series' AND "podiums">2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"podiums" real
);
Question: What is the largest amount of wins that was before the 2007 season, as well as the Team being silverstone motorsport academy?
<|assistant|>
SELECT MAX("wins") FROM "career_summary" WHERE "season"<2007 AND "team"='silverstone motorsport academy';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"podiums" real
);
Question: What is the newest Season in which had 0 Podiums, and having 1 total of Races, as well as total wins larger than 0?
<|assistant|>
SELECT MAX("season") FROM "career_summary" WHERE "podiums"=0 AND "races"=1 AND "wins">0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_season" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"record" text
);
Question: Name the week for december 4, 2009
<|assistant|>
SELECT "week" FROM "2009_season" WHERE "date"='december 4, 2009';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_season" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"record" text
);
Question: Name the opponent with record of 6-2
<|assistant|>
SELECT "opponent" FROM "2009_season" WHERE "record"='6-2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_season" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"record" text
);
Question: Name the opponent with result of w 35-21
<|assistant|>
SELECT "opponent" FROM "2009_season" WHERE "result"='w 35-21';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_season" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"record" text
);
Question: Name the date with resultof w 35-7
<|assistant|>
SELECT "date" FROM "2009_season" WHERE "result"='w 35-7';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_season" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"record" text
);
Question: Name the date with record of 3-1
<|assistant|>
SELECT "date" FROM "2009_season" WHERE "record"='3-1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_season" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"record" text
);
Question: Name the week for date of bye
<|assistant|>
SELECT "week" FROM "2009_season" WHERE "date"='bye';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"136" real,
"18_february" text,
"friendly" text,
"croatia" text,
"germany" text
);
Question: What is the friendly game for Germany of France?
<|assistant|>
SELECT "friendly" FROM "2004" WHERE "germany"='france';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "acquisition_table" (
"number" real,
"company" text,
"business" text,
"country" text,
"price" text,
"used_as_or_integrated_with" text
);
Question: What company is numbered larger than 5 and priced at $389M?
<|assistant|>
SELECT "company" FROM "acquisition_table" WHERE "number">5 AND "price"='$389m';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "los_angeles_try_out" (
"year" real,
"award_ceremony" text,
"category" text,
"nominee" text,
"result" text
);
Question: Which category was william ivey long a nominee and nominated in?
<|assistant|>
SELECT "category" FROM "los_angeles_try_out" WHERE "result"='nominated' AND "nominee"='william ivey long';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_hassium_isotopes" (
"isotope" text,
"half_life" text,
"decay_mode" text,
"discovery_year" text,
"reaction" text
);
Question: What is the half-life discovered in 2003?
<|assistant|>
SELECT "half_life" FROM "list_of_hassium_isotopes" WHERE "discovery_year"='2003';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_hassium_isotopes" (
"isotope" text,
"half_life" text,
"decay_mode" text,
"discovery_year" text,
"reaction" text
);
Question: What is the decay mode of the 265m hs isotope discovered in 1984?
<|assistant|>
SELECT "decay_mode" FROM "list_of_hassium_isotopes" WHERE "discovery_year"='1984' AND "isotope"='265m hs';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "network" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"height_m_ft" text,
"class" text,
"fcc_info" text
);
Question: What is the Frequency MHz of Trinidad, Colorado?
<|assistant|>
SELECT "frequency_m_hz" FROM "network" WHERE "city_of_license"='trinidad, colorado';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "network" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"height_m_ft" text,
"class" text,
"fcc_info" text
);
Question: What city of license has an ERP W smaller than 500, Class A, and Frequency MHz larger than 89.7?
<|assistant|>
SELECT "city_of_license" FROM "network" WHERE "erp_w"<500 AND "class"='a' AND "frequency_m_hz">89.7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_venues" (
"team" text,
"location" text,
"venue" text,
"capacity" real,
"position_in_1992_93" text
);
Question: Which venue has a capacity larger than 5,000 for Molodechno team?
<|assistant|>
SELECT "venue" FROM "teams_and_venues" WHERE "capacity">'5,000' AND "team"='molodechno';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_venues" (
"team" text,
"location" text,
"venue" text,
"capacity" real,
"position_in_1992_93" text
);
Question: What is the smallest capacity for Fandok?
<|assistant|>
SELECT MIN("capacity") FROM "teams_and_venues" WHERE "team"='fandok';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the highest pick number of a defensive back with less than 136 overall points?
<|assistant|>
SELECT MAX("pick_num") FROM "atlanta_falcons_draft_history" WHERE "overall"<136 AND "position"='defensive back';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the lowest pick number of John Scully?
<|assistant|>
SELECT MIN("pick_num") FROM "atlanta_falcons_draft_history" WHERE "name"='john scully';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "consolation_round_7_12_place" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: What is the total points with less than 5 games?
<|assistant|>
SELECT COUNT("points") FROM "consolation_round_7_12_place" WHERE "games"<5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles" (
"outcome" text,
"event" text,
"year" text,
"venue" text,
"partner" text
);
Question: What was the outcome for the India Open?
<|assistant|>
SELECT "outcome" FROM "doubles" WHERE "venue"='india open';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles" (
"outcome" text,
"event" text,
"year" text,
"venue" text,
"partner" text
);
Question: What was the Outcome at the 1985 India Open?
<|assistant|>
SELECT "outcome" FROM "doubles" WHERE "year"='1985' AND "venue"='india open';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles" (
"outcome" text,
"event" text,
"year" text,
"venue" text,
"partner" text
);
Question: What was the outcome in 1982 with Kang Haeng-Suk as partner?
<|assistant|>
SELECT "outcome" FROM "doubles" WHERE "partner"='kang haeng-suk' AND "year"='1982';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text
);
Question: Which Party has a First elected smaller than 1878, and a District of south carolina 3?
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "first_elected"<1878 AND "district"='south carolina 3';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.