text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scottish_football_league_challenge_cup_f" (
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"venue" text,
"attendance" text
);
Question: How many were in attendance when the sco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scottish_football_league_challenge_cup_f" (
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"venue" text,
"attendance" text
);
Question: How many people were watching when Livin... |
<|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: what average grid has laps larger than 52 and contains the driver of andrea de ad... |
<|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: what's the highest lap that contains the driver of graham hill and a grid that is... |
<|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: what's the average grid that has a time/retired piston and laps smaller than 15?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"season" real,
"driver" text,
"co_driver" text,
"team" text,
"tuner" text,
"governing_body" text
);
Question: Who is the tuner after season 2004 with Gaurav Gill as the driver, Tea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"season" real,
"driver" text,
"co_driver" text,
"team" text,
"tuner" text,
"governing_body" text
);
Question: Who is the driver in season 2003 with a tuner of N. Leelakrishnan and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"season" real,
"driver" text,
"co_driver" text,
"team" text,
"tuner" text,
"governing_body" text
);
Question: Who is the turner on Team MRF?
<|assistant|>
SELECT "tuner" FROM "resu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"season" real,
"driver" text,
"co_driver" text,
"team" text,
"tuner" text,
"governing_body" text
);
Question: What is the earliest season with driver Farad Bathena?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"season" text,
"club" text,
"league" text,
"apps" real,
"goals" real
);
Question: Which Major League Soccer team for the 2005 season has the lowest goals?
<|assistant|>
SELECT MIN... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"season" text,
"club" text,
"league" text,
"apps" real,
"goals" real
);
Question: What are the average apps for the Major League Soccer team club for the Seattle Sounders FC that ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "faroese_words_and_phrases_in_comparison_" (
"faroese" text,
"norwegian_bokm_l" text,
"norwegian_nynorsk" text,
"english" text,
"icelandic" text,
"danish" text,
"swedish" text,
"german" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "faroese_words_and_phrases_in_comparison_" (
"faroese" text,
"norwegian_bokm_l" text,
"norwegian_nynorsk" text,
"english" text,
"icelandic" text,
"danish" text,
"swedish" text,
"german" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "faroese_words_and_phrases_in_comparison_" (
"faroese" text,
"norwegian_bokm_l" text,
"norwegian_nynorsk" text,
"english" text,
"icelandic" text,
"danish" text,
"swedish" text,
"german" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "faroese_words_and_phrases_in_comparison_" (
"faroese" text,
"norwegian_bokm_l" text,
"norwegian_nynorsk" text,
"english" text,
"icelandic" text,
"danish" text,
"swedish" text,
"german" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "faroese_words_and_phrases_in_comparison_" (
"faroese" text,
"norwegian_bokm_l" text,
"norwegian_nynorsk" text,
"english" text,
"icelandic" text,
"danish" text,
"swedish" text,
"german" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "legislative_history" (
"congress" text,
"bill_number" text,
"date_introduced" text,
"sponsor" text,
"num_of_cosponsors" real
);
Question: What number of Congress has 44 cosponsors?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "legislative_history" (
"congress" text,
"bill_number" text,
"date_introduced" text,
"sponsor" text,
"num_of_cosponsors" real
);
Question: Who was the sponsor on April 22, 2004?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What is the score of the game when the New York Rangers we... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the result on 8 October 1961?
<|assistant|>
SELECT "result... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the venue of the game on 27 April 1964?
<|assistant|>
SELE... |
<|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: Where was the game played with a home tea... |
<|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: What is the home team score when the away... |
<|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: What did the home team score when the awa... |
<|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: When was the game played where the away t... |
<|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: Where was the game played when the away t... |
<|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: What home team played against the away te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_runner_up" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What was the score of the game against Divij Sharan?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_runner_up" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What was the score of the match that was a played on a hard surface ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: How many attended the game with a record of 43-34?
<|assistant|>
SELECT COUN... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_7_10" (
"edition" text,
"round" text,
"date" text,
"partner" text,
"surface" text,
"opponents" text,
"result" text
);
Question: Who was Manuela Maleeva opponent when she played a ma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "yearly_results" (
"season" text,
"games" real,
"lost" real,
"tied" real,
"points" real,
"pct_pct" real,
"goals_for" real,
"goals_against" real,
"standing" text
);
Question: When the per... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "yearly_results" (
"season" text,
"games" real,
"lost" real,
"tied" real,
"points" real,
"pct_pct" real,
"goals_for" real,
"goals_against" real,
"standing" text
);
Question: When less th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: How many rounds did the event... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: How long was the fight 'adren... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: What was roberto travern's re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the score of the away team at t... |
<|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: Who constructed the car with a grid larger than 20 that got in an accident?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_three" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Which Position has a CFL Team of montreal alouettes (via edmonton)?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_three" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Which Player has a CFL Team of montreal alouettes (via hamilton via winnipeg)?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_three" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Which Position has a Player of patrick macdonald?
<|assistant|>
SELECT "position" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_summary" (
"series" real,
"year" text,
"winner" text,
"runner_up" text,
"third_place" text,
"fourth_place" text,
"fifth_place" text,
"sixth_place" text,
"host" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_summary" (
"series" real,
"year" text,
"winner" text,
"runner_up" text,
"third_place" text,
"fourth_place" text,
"fifth_place" text,
"sixth_place" text,
"host" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_summary" (
"series" real,
"year" text,
"winner" text,
"runner_up" text,
"third_place" text,
"fourth_place" text,
"fifth_place" text,
"sixth_place" text,
"host" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_summary" (
"series" real,
"year" text,
"winner" text,
"runner_up" text,
"third_place" text,
"fourth_place" text,
"fifth_place" text,
"sixth_place" text,
"host" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"faction" text,
"order_and_title" text,
"elevated" text,
"elevator" text
);
Question: What is the Order and Title with an Elevated wit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"faction" text,
"order_and_title" text,
"elevated" text,
"elevator" text
);
Question: What is the Elector with a Nationality with roma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"faction" text,
"order_and_title" text,
"elevated" text,
"elevator" text
);
Question: What is the Nationality with an Elector with ber... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"faction" text,
"order_and_title" text,
"elevated" text,
"elevator" text
);
Question: What is the Order and Title with a Nationality w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"faction" text,
"order_and_title" text,
"elevated" text,
"elevator" text
);
Question: What is the Elector with a Faction of roman, and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What did the away team score at the game ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the home team that scored 6.5 (41... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "65_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"mult" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "65_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"mult" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "65_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"mult" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
);
Question: What day did Patri... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
);
Question: Who held the pole ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
);
Question: Who was the Long B... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Where was the game played when the away ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What did the away team score when Carlto... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What did St Kilda score when they were t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What did the home team score when South ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who is the away team when the home team ... |
<|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: Name the leading scorer for april 12, 2008
<|assistant|... |
<|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: What was the score for the home team that... |
<|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" (
"order" real,
"name" text,
"seasons" text,
"games" real,
"goals" real
);
Question: what is the name for seasons 1981 and an order more than 807?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the smallest crowd of the away t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What away team played in Lake Oval?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"tournament" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Ques... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "october" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: On what date was the attendance greater than 18,118 when Co... |
<|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: What driver went 59 laps on grid 11?
<|assistant|>
SELECT "driver" FROM "classifi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: Which driver has a grid value of 22?
<|assistant|>
SELECT "driver" FROM "race" WHERE "grid"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: What is the value of time/retired for Jean Alesi?
<|assistant|>
SELECT "time_retired" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: When the time/retired is electrical how many laps did Rubens Barrichello have?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: How many laps did Eddie Irvine have?
<|assistant|>
SELECT "laps" FROM "race" WHERE "driver"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: In the game where the Hornets were the home team and ... |
<|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: Where is the home venue of carlton that ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: Which finish has a 99.550 Qual?
<|assistant|>
SELECT "finish" FROM "indy_500_r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: Which Qual with laps less than 200 and an 11 start?
<|assistant|>
SELECT "qual... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: Which rank is the start of totals?
<|assistant|>
SELECT "rank" FROM "indy_500_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: Which year has 112 laps?
<|assistant|>
SELECT "year" FROM "indy_500_results" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_11_2_9" (
"outcome" text,
"tournament" text,
"surface" text,
"partnering" text,
"score_in_the_final" text
);
Question: On what surface was the score in the final 0–6, 4–6?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_11_2_9" (
"outcome" text,
"tournament" text,
"surface" text,
"partnering" text,
"score_in_the_final" text
);
Question: What score in the final had a tournament of $25,000 Glasgow, Great... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_11_2_9" (
"outcome" text,
"tournament" text,
"surface" text,
"partnering" text,
"score_in_the_final" text
);
Question: Which surface has a score in the final of 4–6, 3–6?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: how many times is the nation listed as united states with the total more than 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: what is the lowest total when the rank is less than 2 and bronze is more than 0... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: what is the nation with a total of 1, bronze smaller than 1 and a rank of 3?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: what is the rank when silver is less than 0?
<|assistant|>
SELECT SUM("rank") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: what is the amount of silver when gold is 2 and the rank is more than 1?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Which home has a Decision of kolzig, and a Date of novembe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Which score has a Decision of johnson?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Which date has a Home of washington, a Visitor of florida,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What is the total of attendance with a Record of 5-9-0?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Which score has a Date of november 2?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "farm_to_market_roads" (
"route_name" text,
"direction" text,
"termini" text,
"junctions" text,
"length" text,
"population_area" text
);
Question: What's the length of route FM 2895 with junct... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "farm_to_market_roads" (
"route_name" text,
"direction" text,
"termini" text,
"junctions" text,
"length" text,
"population_area" text
);
Question: What's the termini of the route with junction... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "farm_to_market_roads" (
"route_name" text,
"direction" text,
"termini" text,
"junctions" text,
"length" text,
"population_area" text
);
Question: What are the junctions of the route with term... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "farm_to_market_roads" (
"route_name" text,
"direction" text,
"termini" text,
"junctions" text,
"length" text,
"population_area" text
);
Question: What route has termini of fm 1472 sh 255?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "farm_to_market_roads" (
"route_name" text,
"direction" text,
"termini" text,
"junctions" text,
"length" text,
"population_area" text
);
Question: What termini does the route with a population... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "farm_to_market_roads" (
"route_name" text,
"direction" text,
"termini" text,
"junctions" text,
"length" text,
"population_area" text
);
Question: What's the length of the route with junctions... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.