text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "college" (
"year" text,
"team" text,
"gp_gs" text,
"goals" text,
"assists" text,
"total_points" text
);
Question: What is the assists for the year 1995?
<|assistant|>
SELECT "assists" FROM "college" WHERE "year"='1995';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "college" (
"year" text,
"team" text,
"gp_gs" text,
"goals" text,
"assists" text,
"total_points" text
);
Question: What assists has the Team SMU and the total points of 85?
<|assistant|>
SELECT "assists" FROM "college" WHERE "team"='smu' AND "total_points"='85';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "college" (
"year" text,
"team" text,
"gp_gs" text,
"goals" text,
"assists" text,
"total_points" text
);
Question: What year had 48 assists?
<|assistant|>
SELECT "year" FROM "college" WHERE "assists"='48';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "college" (
"year" text,
"team" text,
"gp_gs" text,
"goals" text,
"assists" text,
"total_points" text
);
Question: What is the total points for GP/GS of 24/23?
<|assistant|>
SELECT "total_points" FROM "college" WHERE "gp_gs"='24/23';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "college" (
"year" text,
"team" text,
"gp_gs" text,
"goals" text,
"assists" text,
"total_points" text
);
Question: What is the assists for the Team of Florida and the total points of 75?
<|assistant|>
SELECT "assists" FROM "college" WHERE "team"='florida' AND "total_points"='75';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"match_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What is the attendance of the match with F.C. central chugoku as the home team?
<|assistant|>
SELECT "attendance" FROM "first_round" WHERE "home_team"='f.c. central chugoku';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"match_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What is the away team of match 9?
<|assistant|>
SELECT "away_team" FROM "first_round" WHERE "match_no"='9';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"match_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What is the score of match 15?
<|assistant|>
SELECT "score" FROM "first_round" WHERE "match_no"='15';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"match_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What is the attendance of the match with kochi university as the away team?
<|assistant|>
SELECT "attendance" FROM "first_round" WHERE "away_team"='kochi university';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"match_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What is the attendance of the match with rosso kumamoto as the away team?
<|assistant|>
SELECT "attendance" FROM "first_round" WHERE "away_team"='rosso kumamoto';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "financial_results" (
"year" real,
"turnover" text,
"net_income" text,
"balance_sheet_total" text,
"employees" real
);
Question: What year did the company have a balance sheet total of €125,359,000?
<|assistant|>
SELECT COUNT("year") FROM "financial_results" WHERE "balance_sheet_total"='€125,359,000';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "music_videos" (
"song" text,
"artist" text,
"album" text,
"director" text,
"year" real
);
Question: What was the average Year of release for the Album, "Da Baddest Bitch"?
<|assistant|>
SELECT AVG("year") FROM "music_videos" WHERE "album"='da baddest bitch';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "music_videos" (
"song" text,
"artist" text,
"album" text,
"director" text,
"year" real
);
Question: After 2009, which Artist published the Song, "Party Like A DJ"?
<|assistant|>
SELECT "artist" FROM "music_videos" WHERE "year">2009 AND "song"='\"party like a dj\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_career" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the result of the game with a score of 3-2?
<|assistant|>
SELECT "result" FROM "international_career" WHERE "score"='3-2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_career" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the score of the 2014 World Cup Qualification?
<|assistant|>
SELECT "score" FROM "international_career" WHERE "competition"='2014 world cup qualification';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_career" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the result of the game with a score of 4-1?
<|assistant|>
SELECT "result" FROM "international_career" WHERE "score"='4-1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_career" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What venue held with game with a score of 3-2?
<|assistant|>
SELECT "venue" FROM "international_career" WHERE "score"='3-2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text
);
Question: Which Cover model has a 20 Questions of christina applegate?
<|assistant|>
SELECT "cover_model" FROM "2004" WHERE "20_questions"='christina applegate';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text
);
Question: When has a Centerfold model of krista kelly?
<|assistant|>
SELECT "date" FROM "2004" WHERE "centerfold_model"='krista kelly';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text
);
Question: Which 20 Questions has a Cover model of rena mero , torrie wilson (two alternative covers)?
<|assistant|>
SELECT "20_questions" FROM "2004" WHERE "cover_model"='rena mero , torrie wilson (two alternative covers)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text
);
Question: When Centerfold model is on 3-04?
<|assistant|>
SELECT "centerfold_model" FROM "2004" WHERE "date"='3-04';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text
);
Question: Which Cover model has a Centerfold model of scarlett keegan?
<|assistant|>
SELECT "cover_model" FROM "2004" WHERE "centerfold_model"='scarlett keegan';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text
);
Question: When has a Centerfold model of pilar lastra?
<|assistant|>
SELECT "date" FROM "2004" WHERE "centerfold_model"='pilar lastra';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_standard_ratings" (
"air_date" text,
"timeslot" text,
"rating" real,
"share" real,
"18_49" text,
"viewers" real,
"weekly_rank" text
);
Question: What is the average share at 8:00 p.m., and an 18-49 of 1.3/4 with an air date of April 4, 2008?
<|assistant|>
SELECT AVG("share") FROM "u_s_standard_ratings" WHERE "timeslot"='8:00 p.m.' AND "18_49"='1.3/4' AND "air_date"='april 4, 2008';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_standard_ratings" (
"air_date" text,
"timeslot" text,
"rating" real,
"share" real,
"18_49" text,
"viewers" real,
"weekly_rank" text
);
Question: What is the lowest share with an air date of March 21, 2008 and had viewers larger than 5.15?
<|assistant|>
SELECT MIN("share") FROM "u_s_standard_ratings" WHERE "air_date"='march 21, 2008' AND "viewers">5.15;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "champions_and_top_goalscorers" (
"season" text,
"champion" text,
"runner_up" text,
"3rd_position" text,
"top_goalscorer_s" text,
"team_s" real
);
Question: What is the lowest team (s) that have tvmk as top scorer (s) and flora as the champion?
<|assistant|>
SELECT MIN("team_s") FROM "champions_and_top_goalscorers" WHERE "top_goalscorer_s"='tvmk' AND "champion"='flora';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "champions_and_top_goalscorers" (
"season" text,
"champion" text,
"runner_up" text,
"3rd_position" text,
"top_goalscorer_s" text,
"team_s" real
);
Question: Which runner-up has narva trans as a 3rd position for the 2005 season?
<|assistant|>
SELECT "runner_up" FROM "champions_and_top_goalscorers" WHERE "3rd_position"='narva trans' AND "season"='2005';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "champions_and_top_goalscorers" (
"season" text,
"champion" text,
"runner_up" text,
"3rd_position" text,
"top_goalscorer_s" text,
"team_s" real
);
Question: Which season has flora as the runner-up, tvmk as the 3rd position, and narva trans as the top goalscorer (s)?
<|assistant|>
SELECT "season" FROM "champions_and_top_goalscorers" WHERE "runner_up"='flora' AND "3rd_position"='tvmk' AND "top_goalscorer_s"='narva trans';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "champions_and_top_goalscorers" (
"season" text,
"champion" text,
"runner_up" text,
"3rd_position" text,
"top_goalscorer_s" text,
"team_s" real
);
Question: Which runner-up has levadia as the 3rd position for the team (s) 37?
<|assistant|>
SELECT "runner_up" FROM "champions_and_top_goalscorers" WHERE "3rd_position"='levadia' AND "team_s"=37;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "club_brugge" (
"round" text,
"opposition" text,
"first_leg" text,
"second_leg" text,
"aggregate_score" text
);
Question: What round had the opponent Lyon?
<|assistant|>
SELECT "round" FROM "club_brugge" WHERE "opposition"='lyon';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "club_brugge" (
"round" text,
"opposition" text,
"first_leg" text,
"second_leg" text,
"aggregate_score" text
);
Question: Who has the first leg that has a round in the semi-final?
<|assistant|>
SELECT "first_leg" FROM "club_brugge" WHERE "round"='semi-final';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"race" text,
"pole_position" text,
"fastest_lap" text,
"most_laps_led" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: What is Most Laps Led, when Winning Team is Chip Ganassi Racing, and when Fastest Lap is Marco Andretti?
<|assistant|>
SELECT "most_laps_led" FROM "round_1" WHERE "winning_team"='chip ganassi racing' AND "fastest_lap"='marco andretti';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"race" text,
"pole_position" text,
"fastest_lap" text,
"most_laps_led" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: Who is the Winning Driver, when Most Laps Led is Dario Franchitti, and when Pole Position is Hélio Castroneves?
<|assistant|>
SELECT "winning_driver" FROM "round_1" WHERE "most_laps_led"='dario franchitti' AND "pole_position"='hélio castroneves';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"race" text,
"pole_position" text,
"fastest_lap" text,
"most_laps_led" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: What is Winning Team, when Most Laps Led is Alex Tagliani?
<|assistant|>
SELECT "winning_team" FROM "round_1" WHERE "most_laps_led"='alex tagliani';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"race" text,
"pole_position" text,
"fastest_lap" text,
"most_laps_led" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: What is Winning Driver, when Fastest Lap is Ryan Hunter-Reay, and when Most Laps Led is Ryan Briscoe?
<|assistant|>
SELECT "winning_driver" FROM "round_1" WHERE "fastest_lap"='ryan hunter-reay' AND "most_laps_led"='ryan briscoe';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"race" text,
"pole_position" text,
"fastest_lap" text,
"most_laps_led" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: What is Race, when Winning Team is Chip Ganassi Racing, when Pole Position is Ryan Briscoe, and when Most Laps Led is Scott Dixon?
<|assistant|>
SELECT "race" FROM "round_1" WHERE "winning_team"='chip ganassi racing' AND "pole_position"='ryan briscoe' AND "most_laps_led"='scott dixon';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "finals_champions_league_era" (
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"losing_semifinalists" text
);
Question: Who was the Winner when the Runner-up was Real Salt Lake?
<|assistant|>
SELECT "winner" FROM "finals_champions_league_era" WHERE "runner_up"='real salt lake';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "finals_champions_league_era" (
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"losing_semifinalists" text
);
Question: During which Season was the tournament in progress?
<|assistant|>
SELECT "season" FROM "finals_champions_league_era" WHERE "runner_up"='tournament in progress';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "finals_champions_league_era" (
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"losing_semifinalists" text
);
Question: What was the Score during the Season in which the Winner was C.F. Atlante?
<|assistant|>
SELECT "score" FROM "finals_champions_league_era" WHERE "winner"='c.f. atlante';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "finals_champions_league_era" (
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"losing_semifinalists" text
);
Question: What was the Score when the Losing Semifinalists were Toluca Unam?
<|assistant|>
SELECT "score" FROM "finals_champions_league_era" WHERE "losing_semifinalists"='toluca unam';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "homosexuality_laws_in_majority_muslim_co" (
"country" text,
"laws_against_homosexuality" text,
"penalty" text,
"same_sex_unions" text,
"laws_against_discrimination" text
);
Question: What law has a penalty of — in Iraq?
<|assistant|>
SELECT "laws_against_homosexuality" FROM "homosexuality_laws_in_majority_muslim_co" WHERE "penalty"='—' AND "country"='iraq';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "homosexuality_laws_in_majority_muslim_co" (
"country" text,
"laws_against_homosexuality" text,
"penalty" text,
"same_sex_unions" text,
"laws_against_discrimination" text
);
Question: What are the laws against homosexuality in Malaysia?
<|assistant|>
SELECT "laws_against_homosexuality" FROM "homosexuality_laws_in_majority_muslim_co" WHERE "country"='malaysia';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the average Events when the top-25 is 12 and there are less than 0 wins?
<|assistant|>
SELECT AVG("events") FROM "summary" WHERE "top_25"=12 AND "wins"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the sum of Events when the top-25 is more than 5, and the top-10 is less than 4, and wins is more than 2?
<|assistant|>
SELECT SUM("events") FROM "summary" WHERE "top_25">5 AND "top_10"<4 AND "wins">2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the average Top-10 when there were 17 cuts made with less than 0 wins?
<|assistant|>
SELECT AVG("top_10") FROM "summary" WHERE "cuts_made"=17 AND "wins"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the sum of Cuts made when there were more than 72 events?
<|assistant|>
SELECT SUM("cuts_made") FROM "summary" WHERE "events">72;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the average Top-5 for the open championship, and a Top-10 smaller than 2?
<|assistant|>
SELECT AVG("top_5") FROM "summary" WHERE "tournament"='the open championship' AND "top_10"<2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states" (
"episode_number_production_number" text,
"title" text,
"original_airing" text,
"rating" real,
"share" real,
"18_49" real,
"total_viewers_in_millions" real,
"rank_per_week" text
);
Question: What was the date of airing for episodes with ratings under 10.1 and production number of 96 5-09?
<|assistant|>
SELECT "original_airing" FROM "united_states" WHERE "rating"<10.1 AND "episode_number_production_number"='96 5-09';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states" (
"episode_number_production_number" text,
"title" text,
"original_airing" text,
"rating" real,
"share" real,
"18_49" real,
"total_viewers_in_millions" real,
"rank_per_week" text
);
Question: What was the fewest number of viewers for the episode production number of 109 5-22?
<|assistant|>
SELECT MIN("total_viewers_in_millions") FROM "united_states" WHERE "episode_number_production_number"='109 5-22';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leap_year_error" (
"scholar" text,
"date" text,
"triennial_leap_years_bc" text,
"first_julian_day" text,
"first_aligned_day" text,
"quadriennial_leap_year_resumes" text
);
Question: What is the First Aligned date in 1614?
<|assistant|>
SELECT "first_aligned_day" FROM "leap_year_error" WHERE "date"='1614';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_aircraft_movements" (
"rank" text,
"route" text,
"avg_daily_flts" real,
"num_of_airlines" real,
"distance_km" real,
"market_share_leader" text
);
Question: How many Airlines have a total distance of 705 (km)?
<|assistant|>
SELECT COUNT("num_of_airlines") FROM "by_aircraft_movements" WHERE "distance_km"=705;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the 1st leg result when team 1 is Gambia?
<|assistant|>
SELECT "1st_leg" FROM "first_round" WHERE "team_1"='gambia';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the 2nd leg result when team 2 is Morocco?
<|assistant|>
SELECT "2nd_leg" FROM "first_round" WHERE "team_2"='morocco';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rankings" (
"name" text,
"rank" real,
"out_of" real,
"source" text,
"year" text
);
Question: Which Name was in the Year 2001?
<|assistant|>
SELECT "name" FROM "rankings" WHERE "year"='2001';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rankings" (
"name" text,
"rank" real,
"out_of" real,
"source" text,
"year" text
);
Question: Which Name had a Rank of 18 Out of a number smaller than 149?
<|assistant|>
SELECT "name" FROM "rankings" WHERE "out_of"<149 AND "rank"=18;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rankings" (
"name" text,
"rank" real,
"out_of" real,
"source" text,
"year" text
);
Question: Which Name had the Rank, 15?
<|assistant|>
SELECT "name" FROM "rankings" WHERE "rank"=15;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rankings" (
"name" text,
"rank" real,
"out_of" real,
"source" text,
"year" text
);
Question: What is the lowest Rank for the Name, "area of permanent crops", Out of a number smaller than 181?
<|assistant|>
SELECT MIN("rank") FROM "rankings" WHERE "name"='area of permanent crops' AND "out_of"<181;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rankings" (
"name" text,
"rank" real,
"out_of" real,
"source" text,
"year" text
);
Question: Which Name had the Source, World Bank, and a Rank smaller than 110, Out of a number smaller than 199?
<|assistant|>
SELECT "name" FROM "rankings" WHERE "source"='world bank' AND "rank"<110 AND "out_of"<199;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league" (
"team" text,
"city" text,
"inaugural_season" text,
"final_season" text,
"captain" text,
"coach" text
);
Question: Which Team has Manzoor Elahi as Coach and Taufeeq Umar as Captain?
<|assistant|>
SELECT "team" FROM "league" WHERE "coach"='manzoor elahi' AND "captain"='taufeeq umar';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league" (
"team" text,
"city" text,
"inaugural_season" text,
"final_season" text,
"captain" text,
"coach" text
);
Question: Which City has the Bahawalpur Stags Team?
<|assistant|>
SELECT "city" FROM "league" WHERE "team"='bahawalpur stags';<|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,
"tv_time" text,
"attendance" text
);
Question: Who is the opponent of the December 18, 1994 game?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "date"='december 18, 1994';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1970s" (
"spoofed_title" text,
"actual_title" text,
"writer" text,
"artist" text,
"issue" real,
"date" text
);
Question: What is the Artist with a Date that is june 1979?
<|assistant|>
SELECT "artist" FROM "1970s" WHERE "date"='june 1979';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1970s" (
"spoofed_title" text,
"actual_title" text,
"writer" text,
"artist" text,
"issue" real,
"date" text
);
Question: What is the Writer with an Actual Title that is mork & mindy?
<|assistant|>
SELECT "writer" FROM "1970s" WHERE "actual_title"='mork & mindy';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1970s" (
"spoofed_title" text,
"actual_title" text,
"writer" text,
"artist" text,
"issue" real,
"date" text
);
Question: What is the Writer with a Date that is january 1975?
<|assistant|>
SELECT "writer" FROM "1970s" WHERE "date"='january 1975';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cities_and_towns" (
"city" text,
"2011_estimate" real,
"2010_census" real,
"2000_census" text,
"county" text
);
Question: What was the 2010 census when the 2011 estimate was 410?
<|assistant|>
SELECT SUM("2010_census") FROM "cities_and_towns" WHERE "2011_estimate"=410;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the smallest played amount when there are 2 draws and an against of more than 73?
<|assistant|>
SELECT MIN("played") FROM "campeonato_paulista" WHERE "drawn"=2 AND "against">73;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_overview" (
"season" real,
"episodes" real,
"premiere" text,
"finale" text,
"dvd_release_date" text
);
Question: What is the earliest season with a premiere of february5,2007?
<|assistant|>
SELECT MIN("episodes") FROM "series_overview" WHERE "premiere"='february5,2007';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_overview" (
"season" real,
"episodes" real,
"premiere" text,
"finale" text,
"dvd_release_date" text
);
Question: Which premiere had more than 15 episodes?
<|assistant|>
SELECT "premiere" FROM "series_overview" WHERE "episodes">15;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Who had the highest rebounds of the game on April 7?
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "date"='april 7';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"result" text,
"record" text,
"opponent" text,
"method" text,
"date" text,
"round" real,
"location" text,
"notes" text
);
Question: What is Result, when Date is 2003?
<|assistant|>
SELECT "result" FROM "mixed_martial_arts_record" WHERE "date"='2003';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"result" text,
"record" text,
"opponent" text,
"method" text,
"date" text,
"round" real,
"location" text,
"notes" text
);
Question: What is Record, when Date is 1996?
<|assistant|>
SELECT "record" FROM "mixed_martial_arts_record" WHERE "date"='1996';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"result" text,
"record" text,
"opponent" text,
"method" text,
"date" text,
"round" real,
"location" text,
"notes" text
);
Question: What is Notes, when Date is 2007?
<|assistant|>
SELECT "notes" FROM "mixed_martial_arts_record" WHERE "date"='2007';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"result" text,
"record" text,
"opponent" text,
"method" text,
"date" text,
"round" real,
"location" text,
"notes" text
);
Question: What is the highest Round, when the Opponent is Junior Pitbull?
<|assistant|>
SELECT MAX("round") FROM "mixed_martial_arts_record" WHERE "opponent"='junior pitbull';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"result" text,
"record" text,
"opponent" text,
"method" text,
"date" text,
"round" real,
"location" text,
"notes" text
);
Question: What is Date, when Result is Loss, and when Method is Submission (Armbar)?
<|assistant|>
SELECT "date" FROM "mixed_martial_arts_record" WHERE "result"='loss' AND "method"='submission (armbar)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1980_timetable_an_illustrative_example" (
"sanderstead" text,
"selsdon" text,
"coombe_road" text,
"bingham_road" text,
"woodside" text,
"elmers_end" text
);
Question: What is the Coombe Road time with a Selsdon evening peak?
<|assistant|>
SELECT "coombe_road" FROM "1980_timetable_an_illustrative_example" WHERE "selsdon"='evening peak';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1980_timetable_an_illustrative_example" (
"sanderstead" text,
"selsdon" text,
"coombe_road" text,
"bingham_road" text,
"woodside" text,
"elmers_end" text
);
Question: What is the Woodside for the 16:19 Coombe Road?
<|assistant|>
SELECT "woodside" FROM "1980_timetable_an_illustrative_example" WHERE "coombe_road"='16:19';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1980_timetable_an_illustrative_example" (
"sanderstead" text,
"selsdon" text,
"coombe_road" text,
"bingham_road" text,
"woodside" text,
"elmers_end" text
);
Question: What is the Elmers End with a 09:54 Bingham Road?
<|assistant|>
SELECT "elmers_end" FROM "1980_timetable_an_illustrative_example" WHERE "bingham_road"='09:54';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1980_timetable_an_illustrative_example" (
"sanderstead" text,
"selsdon" text,
"coombe_road" text,
"bingham_road" text,
"woodside" text,
"elmers_end" text
);
Question: What is the Coombe Road with a Woodside time of 07:23?
<|assistant|>
SELECT "coombe_road" FROM "1980_timetable_an_illustrative_example" WHERE "woodside"='07:23';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1980_timetable_an_illustrative_example" (
"sanderstead" text,
"selsdon" text,
"coombe_road" text,
"bingham_road" text,
"woodside" text,
"elmers_end" text
);
Question: What is the Elmers End with a 17:57 Selsdon time?
<|assistant|>
SELECT "elmers_end" FROM "1980_timetable_an_illustrative_example" WHERE "selsdon"='17:57';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1980_timetable_an_illustrative_example" (
"sanderstead" text,
"selsdon" text,
"coombe_road" text,
"bingham_road" text,
"woodside" text,
"elmers_end" text
);
Question: What is the Selsdon for the 17:19 Coombe Road?
<|assistant|>
SELECT "selsdon" FROM "1980_timetable_an_illustrative_example" WHERE "coombe_road"='17:19';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_ladder" (
"ballarat_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the highest win for losses less than 2?
<|assistant|>
SELECT MAX("wins") FROM "2007_ladder" WHERE "losses"<2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_ladder" (
"ballarat_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the average Byes for the losses of 15, and before 1874?
<|assistant|>
SELECT AVG("byes") FROM "2007_ladder" WHERE "losses"=15 AND "against"<1874;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_ladder" (
"ballarat_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the sum of against in Ballarat FL of East Point and wins less than 16?
<|assistant|>
SELECT SUM("against") FROM "2007_ladder" WHERE "ballarat_fl"='east point' AND "wins"<16;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
);
Question: What is the School with a Pick that is 24?
<|assistant|>
SELECT "school" FROM "first_round_selections" WHERE "pick"=24;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
);
Question: What is the Team with a Player that is david cooper?
<|assistant|>
SELECT "team" FROM "first_round_selections" WHERE "player"='david cooper';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_visited_tourist_attractions" (
"rank" real,
"cultural_attraction" text,
"type" text,
"location" text,
"visitors_2007" real
);
Question: How many visitors in 2007 were there for ski jumping hill?
<|assistant|>
SELECT SUM("visitors_2007") FROM "most_visited_tourist_attractions" WHERE "type"='ski jumping hill';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text,
"games" real,
"rebounds" real
);
Question: What is the highest Games, when Rebounds is greater than 100, when Name is Nikola Peković, and when Rank is less than 4?
<|assistant|>
SELECT MAX("games") FROM "rebounds" WHERE "rebounds">100 AND "name"='nikola peković' AND "rank"<4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text,
"games" real,
"rebounds" real
);
Question: What is the total number of Games, when Rank is less than 4, and when Rebounds is less than 102?
<|assistant|>
SELECT COUNT("games") FROM "rebounds" WHERE "rank"<4 AND "rebounds"<102;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text,
"games" real,
"rebounds" real
);
Question: What is the lowest Games, when Name is Travis Watson, and when Rebounds is less than 136?
<|assistant|>
SELECT MIN("games") FROM "rebounds" WHERE "name"='travis watson' AND "rebounds"<136;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text,
"games" real,
"rebounds" real
);
Question: What is the sum of Rebounds, when Team is Aris Thessaloniki, and when Games is greater than 14?
<|assistant|>
SELECT SUM("rebounds") FROM "rebounds" WHERE "team"='aris thessaloniki' AND "games">14;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text,
"games" real,
"rebounds" real
);
Question: What is the highest Rank, when Name is Travis Watson, and when Games is less than 14?
<|assistant|>
SELECT MAX("rank") FROM "rebounds" WHERE "name"='travis watson' AND "games"<14;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_mammalian" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"location" text
);
Question: What is Authors, when Novelty is Gen Nov, when Location is South Africa, and when Name is Criocephalosaurus?
<|assistant|>
SELECT "authors" FROM "non_mammalian" WHERE "novelty"='gen nov' AND "location"='south africa' AND "name"='criocephalosaurus';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_mammalian" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"location" text
);
Question: What is Status, when Location is Russia?
<|assistant|>
SELECT "status" FROM "non_mammalian" WHERE "location"='russia';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_mammalian" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"location" text
);
Question: What is Authors, when Novelty is Gen Et Sp Nov, and when Name is Lanthanocephalus?
<|assistant|>
SELECT "authors" FROM "non_mammalian" WHERE "novelty"='gen et sp nov' AND "name"='lanthanocephalus';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_mammalian" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"location" text
);
Question: What is Name, when Authors are Kammerer & Sidor?
<|assistant|>
SELECT "name" FROM "non_mammalian" WHERE "authors"='kammerer & sidor';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_mammalian" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"location" text
);
Question: What is Name, when Location is Tanzania, and when Novelty is Gen Nov?
<|assistant|>
SELECT "name" FROM "non_mammalian" WHERE "location"='tanzania' AND "novelty"='gen nov';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_mammalian" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"location" text
);
Question: What is Name, when Status is Valid, when Authors is Maisch, when Location is Tanzania, and when Novelty is Gen Et Sp Nov?
<|assistant|>
SELECT "name" FROM "non_mammalian" WHERE "status"='valid' AND "authors"='maisch' AND "location"='tanzania' AND "novelty"='gen et sp nov';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "category_6a" (
"t568_a_pair" real,
"t568_b_pair" real,
"wire" text,
"t568_a_color" text,
"t568_b_color" text
);
Question: What is the T568A color for the cable with a white/orange stripe T568B color?
<|assistant|>
SELECT "t568_a_color" FROM "category_6a" WHERE "t568_b_color"='white/orange stripe';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_5_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is the Date with an Opponent that is flavia pennetta?
<|assistant|>
SELECT "date" FROM "singles_5_5_runners_up" WHERE "opponent"='flavia pennetta';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_5_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is the Score with an Opponent that is flavia pennetta?
<|assistant|>
SELECT "score" FROM "singles_5_5_runners_up" WHERE "opponent"='flavia pennetta';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.