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 "c... |
<|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|>
SELEC... |
<|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 "a... |
<|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_poin... |
<|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?
<|ass... |
<|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?
... |
<|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_r... |
<|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" W... |
<|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?
<|as... |
<|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?
<|assi... |
<|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,... |
<|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 ... |
<|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"... |
<|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... |
<|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 "sco... |
<|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... |
<|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 ... |
<|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?
<|assis... |
<|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 "d... |
<|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 (t... |
<|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_m... |
<|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?
<|assis... |
<|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 "d... |
<|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., ... |
<|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 dat... |
<|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 ha... |
<|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 ... |
<|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 runne... |
<|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 ... |
<|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 "clu... |
<|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|>
... |
<|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 Wi... |
<|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, whe... |
<|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 Mos... |
<|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 F... |
<|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 Tea... |
<|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?
<... |
<|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?
<|assis... |
<|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 wa... |
<|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 Toluc... |
<|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 h... |
<|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 t... |
<|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 ther... |
<|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,... |
<|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 w... |
<|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... |
<|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 ... |
<|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"... |
<|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"... |
<|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 t... |
<|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 d... |
<|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... |
<|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 "firs... |
<|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';<|e... |
<|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 "rank... |
<|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?
<... |
<|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... |
<|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?
... |
<|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 "cit... |
<|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 "o... |
<|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... |
<|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?
<|assist... |
<|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|>
SEL... |
<|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|>
... |
<|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 am... |
<|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?
<|assistan... |
<|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"... |
<|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: Wh... |
<|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 ... |
<|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 ... |
<|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 i... |
<|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,... |
<|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 ... |
<|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 ... |
<|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... |
<|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 w... |
<|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 ... |
<|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 w... |
<|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 ... |
<|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(... |
<|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?
<|assista... |
<|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 tha... |
<|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 "fir... |
<|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" F... |
<|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... |
<|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... |
<|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?
<|... |
<|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?
<|assista... |
<|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?
<|a... |
<|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|>... |
<|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 ... |
<|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_mammal... |
<|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?
<|as... |
<|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_... |
<|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|>
SEL... |
<|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, ... |
<|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 ... |
<|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?... |
<|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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.