text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Tell me the away team score for away tea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: I want to know the away team score for v... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"track" real,
"title" text,
"translation" text,
"composer" text,
"recorded" text
);
Question: Name the total number of tracks for of the fallen angel
<|assistant|>
SELECT COUNT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: What driver went 14 rounds with a 193 C... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: What engine was used when Aguri Suzuki ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: Who was the entrant for all the round w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: What engine did Riccardo Patrese use?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: If the home team was footscray which ven... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When the home team was footscray what di... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When the home team north melbourne was p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"date" text,
"opponents" text,
"score" text,
"competition" text,
"match_report" text
);
Question: What is the score of the September 20, 2005 match when the Opponents are FC Bayern M... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"date" text,
"opponents" text,
"score" text,
"competition" text,
"match_report" text
);
Question: What is the match report for July 10, 2005?
<|assistant|>
SELECT "match_report" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"date" text,
"opponents" text,
"score" text,
"competition" text,
"match_report" text
);
Question: What is the date of the GC competition when the opponents are 1. FC Nuremberg?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"date" text,
"opponents" text,
"score" text,
"competition" text,
"match_report" text
);
Question: Which competition was held on September 10, 2005?
<|assistant|>
SELECT "competition"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"date" text,
"opponents" text,
"score" text,
"competition" text,
"match_report" text
);
Question: In which competition was the score 3-0?
<|assistant|>
SELECT "competition" FROM "res... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: Who was the visitor when the lakers were at home with a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players_who_made_their_debut_for_the_gee" (
"debut_year" real,
"player" text,
"date_of_birth" text,
"games" real,
"goals" real,
"years_at_club" text
);
Question: what is the date of birth for... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players_who_made_their_debut_for_the_gee" (
"debut_year" real,
"player" text,
"date_of_birth" text,
"games" real,
"goals" real,
"years_at_club" text
);
Question: what is the debut year for pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How people attended Victoria Park?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the away team score for South Mel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who played Melbourne as the home team?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which away team has an attendance of more... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which away team played at MCG?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the date when Geelong was the ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australia" (
"player" text,
"date_of_birth" text,
"batting_style" text,
"bowling_style" text,
"first_class_team" text
);
Question: What is Damien Martyn's bowling style?
<|assistant|>
SELECT "b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australia" (
"player" text,
"date_of_birth" text,
"batting_style" text,
"bowling_style" text,
"first_class_team" text
);
Question: What is the batting style of the player born on 14 November 19... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australia" (
"player" text,
"date_of_birth" text,
"batting_style" text,
"bowling_style" text,
"first_class_team" text
);
Question: What is the first class team of the player born on 23 February... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1975_2009" (
"year" real,
"date" text,
"type" text,
"eu_council_presidency" text,
"president_in_office" text,
"host_city" text
);
Question: What is the type for EU Council Presidency of UK an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1975_2009" (
"year" real,
"date" text,
"type" text,
"eu_council_presidency" text,
"president_in_office" text,
"host_city" text
);
Question: In which host city was Margaret Thatcher the Presid... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition_scores" (
"country" text,
"preliminaries" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: How many average scores have preliminary ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition_scores" (
"country" text,
"preliminaries" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: What is the least score for interview wit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in_ordinary" (
"date" text,
"three" text,
"four" text,
"five" text,
"seven" text
);
Question: Name the seven for 29 november 1690
<|assistant|>
SELECT "seven" FROM "in_ordinary" WHERE "date"='2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in_ordinary" (
"date" text,
"three" text,
"four" text,
"five" text,
"seven" text
);
Question: Name the four for 6 march 1801
<|assistant|>
SELECT "four" FROM "in_ordinary" WHERE "date"='6 march... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in_ordinary" (
"date" text,
"three" text,
"four" text,
"five" text,
"seven" text
);
Question: Name the three for william prewett for four and five being richard ellis with seven being nicholas ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in_ordinary" (
"date" text,
"three" text,
"four" text,
"five" text,
"seven" text
);
Question: Name the three for 16 december 1676
<|assistant|>
SELECT "three" FROM "in_ordinary" WHERE "date"='1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Tell me the average Grid for driver of Luca Badoer and Laps more than 69
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fencing" (
"athlete" text,
"event" text,
"semifinal" text,
"final" text,
"rank" text
);
Question: What final was Farhad Rezaei in?
<|assistant|>
SELECT "final" FROM "fencing" WHERE "athlete"='f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fencing" (
"athlete" text,
"event" text,
"semifinal" text,
"final" text,
"rank" text
);
Question: What final was ranked 4?
<|assistant|>
SELECT "final" FROM "fencing" WHERE "rank"='4';<|endofte... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fencing" (
"athlete" text,
"event" text,
"semifinal" text,
"final" text,
"rank" text
);
Question: What was the reanking of Hamid Veisi?
<|assistant|>
SELECT "rank" FROM "fencing" WHERE "athlete... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_records" (
"year" real,
"franchise" text,
"league" text,
"percentage" real,
"finish" text
);
Question: Which Franchise has a Percentage under 0.707, a Year larger than 1931, and the Fini... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_records" (
"year" real,
"franchise" text,
"league" text,
"percentage" real,
"finish" text
);
Question: What is the average Year for the Finish of lost 2001 alcs and the Percentage is ove... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_records" (
"year" real,
"franchise" text,
"league" text,
"percentage" real,
"finish" text
);
Question: In the Year 1939, what was the Finish when Al was the League?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_records" (
"year" real,
"franchise" text,
"league" text,
"percentage" real,
"finish" text
);
Question: What was the Finish when NL was the League, the Percentage was under 0.726, the Yea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the venue when the home team wa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the crowd when the away team wa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "girone_b" (
"club" text,
"city" text,
"stadium" text,
"capacity" real,
"2011_12_season" text
);
Question: What city houses the Ciro Vigorito stadium?
<|assistant|>
SELECT "city" FROM "girone_b"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: I want to know the highest silver for total of 4 for poland and gold less than 1
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Tell me the average silver for total more than 1 with bronze of 2 for france and gold more tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Tell me the number of gold for albania with a silver of 1 and total less than 1
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Tell me the average gold for moldova and bronze less than 1
<|assistant|>
SELECT AVG("gold") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Tell me the sum of gold for bronze less than 0
<|assistant|>
SELECT SUM("gold") FROM "medal_ta... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"county" text,
"proposed" text,
"listed" text,
"construction_completed" text,
"partially_deleted" text
);
Question: Which county is named ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"county" text,
"proposed" text,
"listed" text,
"construction_completed" text,
"partially_deleted" text
);
Question: What construction comp... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"county" text,
"proposed" text,
"listed" text,
"construction_completed" text,
"partially_deleted" text
);
Question: What is the ID of mars... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards" (
"ceremony" text,
"award" text,
"category" text,
"nominee" text,
"outcome" text
);
Question: Which nominee won the award for Fourth Best Indian Film?
<|assistant|>
SELECT "nominee" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards" (
"ceremony" text,
"award" text,
"category" text,
"nominee" text,
"outcome" text
);
Question: In which ceremony was Harnam Singh Rawail nominated for an award?
<|assistant|>
SELECT "cer... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards" (
"ceremony" text,
"award" text,
"category" text,
"nominee" text,
"outcome" text
);
Question: In which ceremony was Jayant nominated for an award?
<|assistant|>
SELECT "ceremony" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_18_8" (
"edition" text,
"round" text,
"date" text,
"surface" text,
"opponent" text,
"result" text
);
Question: What surface was the April 24, 2003 match played on?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: How many times has Watney made the top 25 for a tournament in which he as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: Which tournament has the highest number of cuts while also having 4 top 2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the smallest grid with collision as the Time/Retired for pedro diniz?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the number of laps for Grid 14?
<|assistant|>
SELECT COUNT("laps") FROM "race" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the number of the grid for mika häkkinen and more than 45 laps?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which home team has more than 19,000 spec... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "canadian_floral_collection" (
"year" real,
"theme" text,
"artist" text,
"finish" text,
"issue_price" text,
"total_mintage" real
);
Question: What is the Theme of Christie Paquet after 2004 wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "canadian_floral_collection" (
"year" real,
"theme" text,
"artist" text,
"finish" text,
"issue_price" text,
"total_mintage" real
);
Question: What is the Year of Christie Paquet with Issue Pri... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the Crowd for the Venue of Princ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the Home team score for the Home... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the Home team score for the Home... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What Away team has a Home team score of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the Home team score for the Venu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
);
Question: Who has the lowest earnings that has a rank smaller than 2?
<|assistant|>
SELECT MIN("earnings")... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
);
Question: What is the average rank of someone who earned smaller than 3,069,633?
<|assistant|>
SELECT AVG(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
);
Question: What has the average wins in Australia who earned smaller than 3,133,913?
<|assistant|>
SELECT A... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
);
Question: What was the total number of wins with player Mike Hill with a rank bigger than 2?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "championship_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
);
Question: Where was th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "championship_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
);
Question: What was the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "championship_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
);
Question: Tell me the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "championship_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
);
Question: Name the con... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players_who_made_their_debut_for_the_gee" (
"debut_year" real,
"player" text,
"date_of_birth" text,
"games" real,
"goals" real,
"years_at_club" text
);
Question: What is the number of Years a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players_who_made_their_debut_for_the_gee" (
"debut_year" real,
"player" text,
"date_of_birth" text,
"games" real,
"goals" real,
"years_at_club" text
);
Question: What is the birthday of the p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_composition" (
"name" text,
"rank" text,
"years_until_mandatory_retirement" text,
"appointed_by" text,
"year_appointed" real
);
Question: what rank has years until mandatory retirement ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_composition" (
"name" text,
"rank" text,
"years_until_mandatory_retirement" text,
"appointed_by" text,
"year_appointed" real
);
Question: what name has an appointed year of 2009 and yea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "j" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: Which player from Oregon used the number 12?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "j" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: What position does the player who is 6-10 play?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "j" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: What are the numbers for any players from Washing... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "j" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: Which years did the Rockets number 6 play?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winning_head_of_the_river_championship_e" (
"crew" real,
"open_1st_viii" text,
"senior_2nd_viii" text,
"senior_3rd_viii" text,
"senior_iv" text,
"year_12_single_scull" text,
"year_11_single_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: How many laps did John Love have on a grid less than 11?
<|assistant|>
SELECT "la... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hebburn_line_locomotives" (
"locomotive" text,
"type" text,
"builder" text,
"builder_s_no" text,
"built" real,
"entered_service" real,
"withdrawn" real
);
Question: What is the Builder of L... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hebburn_line_locomotives" (
"locomotive" text,
"type" text,
"builder" text,
"builder_s_no" text,
"built" real,
"entered_service" real,
"withdrawn" real
);
Question: With a Type of 4-6-4t, w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What was the score from the game where Dallas played Home ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "holiday_coin_set" (
"year" real,
"theme" text,
"artist" text,
"mintage" text,
"issue_price" real
);
Question: What was the mintage when the theme was Santa Claus?
<|assistant|>
SELECT "mintage"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "holiday_coin_set" (
"year" real,
"theme" text,
"artist" text,
"mintage" text,
"issue_price" real
);
Question: What was the issue price in the year 2008?
<|assistant|>
SELECT SUM("issue_price") ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "crystal_snowflake" (
"year" real,
"theme" text,
"artist" text,
"composition" text,
"mintage" real,
"issue_price" text
);
Question: What is the earliest year when the composition is 99.99% sil... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "crystal_snowflake" (
"year" real,
"theme" text,
"artist" text,
"composition" text,
"mintage" real,
"issue_price" text
);
Question: What year had an issue price of $94.95 and theme of Amethyst... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.