text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_titles_5" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Name the score for when the opponent in the final is shiho hisamatsu
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_titles_5" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Name the tournament for april 3, 2005
<|assistant|>
SELECT "tournamen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_titles_5" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Name th score for may 11, 2003
<|assistant|>
SELECT "score" FROM "sin... |
<|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 pedro diniz's car?
<|assistant|>
SELECT "constructor" FROM "race" WHERE "dr... |
<|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 grid total for david coulthard with over 45 laps?
<|assistant|>
SELECT COUNT("g... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"gymnast" text,
"start_value" real,
"penalty" text,
"average" real,
"total" real
);
Question: What is the average for the gymnast with a 9.9 start value and a total of 9.612?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"gymnast" text,
"start_value" real,
"penalty" text,
"average" real,
"total" real
);
Question: What was the penalty for the gymnast with average above 9.662 and total is more than 9.706... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indian_telly_awards" (
"year" real,
"category" text,
"character" text,
"for_the_show" text,
"result" text
);
Question: What category was Kasautii Zindagii Kay nominated for after 2005?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indian_telly_awards" (
"year" real,
"category" text,
"character" text,
"for_the_show" text,
"result" text
);
Question: What show had a nomination for best actor in a lead role β female (popular... |
<|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,
"attendance" real
);
Question: In what week was the Result L 15-13?
<|assistant|>
SELECT AVG("week") FROM "schedule" WHERE ... |
<|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,
"attendance" real
);
Question: What is the Attendance with Opponent Dallas Cowboys in a Week greater than 5?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_world_championship_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: How many points for maserati v12 engines in 1968?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_world_championship_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What entrant had less than 3 points before 1963?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grands_prix" (
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: Who had the pole at the French Grand Prix?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grands_prix" (
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: Who constructed the car that won the Canadian... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grands_prix" (
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: When Michael Schumacher won the race, who had... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: For the Player playing for the College of Kentucky and a Height o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: What School did Terrence Jones play for?
<|assistant|>
SELECT "sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: What Player(s) have a Height of 6-3?
<|assistant|>
SELECT "player... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: For the player with a Height of 6-9 and College of Kentucky what ... |
<|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 "complete_formula_one_results" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What is the average point total for arrows racing team before 1983?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What team has jordan 193 chassis after 1990?
<|assistant|>
SELECT "team" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"points" real
);
Question: How many points for the cosworth v8 engine after 1985?
<|assistant|>
SELECT "... |
<|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 constructor for the driver with grid less than 2?
<|assistant|>
SELECT "constru... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What Position did Aaron Williams play?
<|assistant|>
SELECT "position" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: At Position of guard, from the School/Club Team Notre Dame, how many Years f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Which School/Club Team did Andre Wakefield play for?
<|assistant|>
SELECT "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the Nationality of the player who had Position of guard from School/... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What School/Club Team is Player Howard Wood from?
<|assistant|>
SELECT "scho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What School/Club Team is Player Aaron Williams from?
<|assistant|>
SELECT "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" text
);
Question: What is the street address of the building with 5 fl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" text
);
Question: What is the street address of the building with 40 f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" text
);
Question: What were the years the building with 44 floors was ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" text
);
Question: What is the street address of Oliver Building?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "labour_targets" (
"rank" real,
"constituency" text,
"winning_party_2003" text,
"swing_to_gain" real,
"labour_s_place_2003" text,
"result" text
);
Question: Can you tell me the Winning party o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "labour_targets" (
"rank" real,
"constituency" text,
"winning_party_2003" text,
"swing_to_gain" real,
"labour_s_place_2003" text,
"result" text
);
Question: Can you tell me the lowest Rank tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "labour_targets" (
"rank" real,
"constituency" text,
"winning_party_2003" text,
"swing_to_gain" real,
"labour_s_place_2003" text,
"result" text
);
Question: Can you tell me the sum of Swing to... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "labour_targets" (
"rank" real,
"constituency" text,
"winning_party_2003" text,
"swing_to_gain" real,
"labour_s_place_2003" text,
"result" text
);
Question: Can you tell me Labour's place 2003... |
<|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's the Time/Retired of Laps of 75?
<|assistant|>
SELECT "time_retired" 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: Which Driver has Laps larger than 78, and a Time/Retired of + 1:09.4?
<|assistant|>
SELECT ... |
<|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: Hows many Laps are in a Grid of 4?
<|assistant|>
SELECT COUNT("laps") FROM "race" WHERE "gr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: On what date did the away team score 13.... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the score of the away team where... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How much did the away team score that pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What venue did the away team Collingwood... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the score of the away team that ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the name of the away team that p... |
<|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,
"attendance" text
);
Question: What is the attendance in the bye week after week 5?
<|assistant|>
SELECT "attendance" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_winners" (
"year" real,
"athlete" text,
"nation" text,
"time" text,
"location" text
);
Question: What location had 1:59:12 in time?
<|assistant|>
SELECT "location" FROM "women_s_winners... |
<|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 is the score for the away team of n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: If the away team scored 8.7 (55), what v... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"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 scored 25.23 (173), w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which home team scored 25.23 (173)?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When the away team scored 7.9 (51), what... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which home team plays at victoria park?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
Question: what is the competition for the event team all-round in the year before 1913?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
Question: what is the event for the year less than 1913 with the position of 2nd?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
Question: what is the competition in paris for the parallel bars with a position of 1st?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
Question: what is the competition in a year after 1911 with the position of 1st for the rings?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
Question: what is the year that the position was 1st in paris?
<|assistant|>
SELECT "year" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which team plays their home matches at t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1" (
"production_no" text,
"episode_no" real,
"original_airdate" text,
"episode_title" text,
"host" text
);
Question: What host has an original air date of june 11, 2007?
<|assistant|>
S... |
<|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,
"location" text
);
Question: Where is the location of a team with a 3-2 r... |
<|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,
"location" text
);
Question: What is the result of the team with the 4-2 ... |
<|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: What day was played in SCG with the atte... |
<|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: What was St Kilda's away team score?
<|a... |
<|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 attendance at Moorabbin Oval... |
<|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: Who was Melbourne's away team opponent?
<... |
<|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 attendance at the Footscray ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: Tell me the competition that happened on 14 june 2008
<|assistant|>
SELECT "compet... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: Tell me the score for Venue of tanteen recreation ground, st. george's
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seasons" (
"season" text,
"num_of_stars" real,
"num_of_weeks" real,
"season_premiere_date" text,
"season_finale_date" text,
"winner" text,
"runner_up" text,
"third_place" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seasons" (
"season" text,
"num_of_stars" real,
"num_of_weeks" real,
"season_premiere_date" text,
"season_finale_date" text,
"winner" text,
"runner_up" text,
"third_place" text
);
Question... |
<|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: What is the average attendance when Brewers are the opponent with a score of... |
<|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: What loss occurred on June 10?
<|assistant|>
SELECT "loss" FROM "game_log" W... |
<|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: Who is the opponent with a score of 5β4?
<|assistant|>
SELECT "opponent" FRO... |
<|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,
"attendance" real
);
Question: What is the week for Result of w 28-17?
<|assistant|>
SELECT "week" FROM "schedule" WHERE "r... |
<|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,
"attendance" real
);
Question: What is the avarage Attendance for the Date of october 26, 1947?
<|assistant|>
SELECT AVG("a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kaipara" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Can you tell me the Years that has the Name of arapohue school?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kaipara" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Can you tell me the lowest Decile that has the Area of matakohe, and the Roll larg... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kaipara" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Can you tell me the total number of Roll that has the Area of aranga?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kaipara" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Can you tell me the Name that has the Roll larger than 419?
<|assistant|>
SELECT "... |
<|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,
"attendance" real
);
Question: Which total number of Week has an Opponent of at new orleans saints, and an Attendance large... |
<|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,
"attendance" real
);
Question: Which Attendance has a Result of w 51-21?
<|assistant|>
SELECT "attendance" FROM "schedule" ... |
<|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: Who was the Away team at Arden Street Ova... |
<|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 smallest crowd size for a gam... |
<|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-25 value for majors that have mor... |
<|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 most number of cuts made that had more than 7... |
<|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: For top-25 values under 2, what is the average number of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general_election_results" (
"election" text,
"d_il" text,
"share_of_votes" text,
"seats" real,
"total_seats" real
);
Question: With a dail of 24th and more than 57 seats, what is the election?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general_election_results" (
"election" text,
"d_il" text,
"share_of_votes" text,
"seats" real,
"total_seats" real
);
Question: with shares of 45.3% and total seats less than 166. what is the gr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general_election_results" (
"election" text,
"d_il" text,
"share_of_votes" text,
"seats" real,
"total_seats" real
);
Question: with a share of 44.2% and 77 seats, what is the greatest seat tota... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"year" text,
"team" text,
"comp" text,
"long" text,
"rate" text,
"r_att" text,
"r_yds" text,
"r_avg" text
);
Question: What is the long in 1994?
<|assistant|>
SELECT "lo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"year" text,
"team" text,
"comp" text,
"long" text,
"rate" text,
"r_att" text,
"r_yds" text,
"r_avg" text
);
Question: Which team has a long of 67?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"year" text,
"team" text,
"comp" text,
"long" text,
"rate" text,
"r_att" text,
"r_yds" text,
"r_avg" text
);
Question: What is the RAvg of the year with Ratt of 9?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"year" text,
"team" text,
"comp" text,
"long" text,
"rate" text,
"r_att" text,
"r_yds" text,
"r_avg" text
);
Question: What is the Ratt of the year with a 78 long?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"year" text,
"team" text,
"comp" text,
"long" text,
"rate" text,
"r_att" text,
"r_yds" text,
"r_avg" text
);
Question: Which team has a Ravg of 1.3?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"year" text,
"team" text,
"comp" text,
"long" text,
"rate" text,
"r_att" text,
"r_yds" text,
"r_avg" text
);
Question: What is the rate of 17 years?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2005" (
"block_a" text,
"goto" text,
"jado" text,
"kakihara" text,
"kanemoto" text,
"minoru" text,
"samurai" text,
"stampede" text
);
Question: Name the samurai for stampede of t. mask
<|... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.