text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variation_with_playing_cards" (
"1st_player_s_choice" text,
"2nd_player_s_choice" text,
"probability_1st_player_wins" text,
"probability_2nd_player_wins" text,
"probability_of_a_draw" text
);
Q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variation_with_playing_cards" (
"1st_player_s_choice" text,
"2nd_player_s_choice" text,
"probability_1st_player_wins" text,
"probability_2nd_player_wins" text,
"probability_of_a_draw" text
);
Q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variation_with_playing_cards" (
"1st_player_s_choice" text,
"2nd_player_s_choice" text,
"probability_1st_player_wins" text,
"probability_2nd_player_wins" text,
"probability_of_a_draw" text
);
Q... |
<|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 was Collingwood's score as the home ... |
<|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 was the home team when the away team... |
<|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 was the average crowd size when teh ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What venue features carlton as the home ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What day is collingwood the home side?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_11" (
"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's score when hawth... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who is the home side when the away side ... |
<|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: The event that has a record o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_draft_picks" (
"name" text,
"round" text,
"overall_pick" text,
"year" real,
"team" text
);
Question: What year was Leon Blevins picked?
<|assistant|>
SELECT SUM("year") FROM "nba_draft_pick... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_draft_picks" (
"name" text,
"round" text,
"overall_pick" text,
"year" real,
"team" text
);
Question: What year was Jordan Hill picked overall number 8?
<|assistant|>
SELECT MIN("year") FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_draft_picks" (
"name" text,
"round" text,
"overall_pick" text,
"year" real,
"team" text
);
Question: In 1981 which team picked overall 148?
<|assistant|>
SELECT "team" FROM "nba_draft_picks... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scoring_chart" (
"couple" text,
"place" real,
"wk_1" real,
"wk_2" real,
"tot_1_2" real
);
Question: What is the place of the team that had a total score larger than 37 and a week one score abov... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: How many people attended the game on December 2, 1951?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: After week 9, which games had an attendance greater than 24,229?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What venue does st kilda play at as the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is melbourne's home team score?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How many games is collingwood the home s... |
<|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: Who was the opponent on the date of November 29, 1970 and the attendance was less than 31,42... |
<|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: On what date was the game where is was later than Week 4 of the season and the opponent was ... |
<|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 was the attendance of the game on December 13, 1970?
<|assistant|>
SELECT COUNT("attend... |
<|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,
"record" text,
"attendance" real
);
Question: What is the date before week 13 and Miami Dolphins as an opponent?
<|assist... |
<|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,
"record" text,
"attendance" real
);
Question: What is the attendance for week 11?
<|assistant|>
SELECT "attendance" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the average crowd size when the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"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's score for north ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the average crowd size when the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_drivers" (
"team" text,
"chassis" text,
"engine" text,
"driver_s" text,
"sponsor_s" text,
"rounds" text
);
Question: Who sponsors Josele Garza in all rounds?
<|assistant|>
SELECT "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_drivers" (
"team" text,
"chassis" text,
"engine" text,
"driver_s" text,
"sponsor_s" text,
"rounds" text
);
Question: Which rounds did the team Walther participate in?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_drivers" (
"team" text,
"chassis" text,
"engine" text,
"driver_s" text,
"sponsor_s" text,
"rounds" text
);
Question: What team was Tom Sneva on in rounds 1-9?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_drivers" (
"team" text,
"chassis" text,
"engine" text,
"driver_s" text,
"sponsor_s" text,
"rounds" text
);
Question: Which rounds do Arciero Wines sponsor a March 85c chassis?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_chapters" (
"chapter" text,
"chartered" text,
"school" text,
"state" text,
"status" text,
"charter_range" text
);
Question: What years were the inactive North Carolina chapter active?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_chapters" (
"chapter" text,
"chartered" text,
"school" text,
"state" text,
"status" text,
"charter_range" text
);
Question: What years were the inactive Idaho chapter active?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_chapters" (
"chapter" text,
"chartered" text,
"school" text,
"state" text,
"status" text,
"charter_range" text
);
Question: Which chapter was active from 1906-1991?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_chapters" (
"chapter" text,
"chartered" text,
"school" text,
"state" text,
"status" text,
"charter_range" text
);
Question: What are the active dates for the Montana State University ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_chapters" (
"chapter" text,
"chartered" text,
"school" text,
"state" text,
"status" text,
"charter_range" text
);
Question: What state had an active chapter from 1906-1991?
<|assistan... |
<|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,
"record" text,
"tv_time" text,
"attendance" text
);
Question: How many people were at the game with a record of 6-1?
<|... |
<|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,
"record" text,
"tv_time" text,
"attendance" text
);
Question: When was there a game against the Indianapolis colts?
<|a... |
<|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 lowest crowd size at MCG?
<|... |
<|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 away team name that has a sc... |
<|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 average crowd size when the ... |
<|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 away team score when the hom... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races" (
"race_name" text,
"circuit" text,
"city_location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Ques... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races" (
"race_name" text,
"circuit" text,
"city_location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Ques... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races" (
"race_name" text,
"circuit" text,
"city_location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Ques... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races" (
"race_name" text,
"circuit" text,
"city_location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Ques... |
<|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 venue where Carlton was the ... |
<|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 venue where the home team sc... |
<|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 away team whose opponents sc... |
<|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 venue when Carlton was the a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinals" (
"rank" real,
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
Question: What was the highest heat with a time slower than 48.87 from sweden?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinals" (
"rank" real,
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
Question: How many lanes featured a swimmer ranked above 4, in a heat later than 1, from a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cities_by_gdp" (
"rank" real,
"city" text,
"state" text,
"gdp_in_id_b" text,
"population_m_luz" real,
"gdp_per_capita_id_k" text,
"eurozone" text
);
Question: What is the Eurozone result fo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cities_by_gdp" (
"rank" real,
"city" text,
"state" text,
"gdp_in_id_b" text,
"population_m_luz" real,
"gdp_per_capita_id_k" text,
"eurozone" text
);
Question: What is the GDP $IDB in Istanb... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"men_s_nickname" text,
"women_s_nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text
);
Question: What is ... |
<|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: What was the home team that scored 24.14... |
<|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: What was the home team that played Geelo... |
<|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: What was the home team's score when they... |
<|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: What is Melbourne's home venue?
<|assist... |
<|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: What was the venue when the away team sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2003_new_england_patriots_draft_selectio" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
);
Question: What was the overall draft pick for the player selected for... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which home team corresponds to an away te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: On what date is Hawthorn the home team?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: On what date is St Kilda the away team?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: Who did the Browns play on October 13, 1968?
<|assistant|>
SELECT "opponent" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_medalists" (
"medal" text,
"name" text,
"games" text,
"sport" text,
"event" text
);
Question: Which game is named tsegay kebede category:articles with hcards?
<|assistant|>
SELECT "game... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_medalists" (
"medal" text,
"name" text,
"games" text,
"sport" text,
"event" text
);
Question: Which event in the 2000 Sydney games was in the category gete wami category:articles with h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_medalists" (
"medal" text,
"name" text,
"games" text,
"sport" text,
"event" text
);
Question: Which event in the 2008 Beijing Games had a bronze medal?
<|assistant|>
SELECT "event" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_medalists" (
"medal" text,
"name" text,
"games" text,
"sport" text,
"event" text
);
Question: What is the medal named fatuma roba category:articles with hcards for?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_medalists" (
"medal" text,
"name" text,
"games" text,
"sport" text,
"event" text
);
Question: What is the game named derartu tulu category:articles with hcards?
<|assistant|>
SELECT "ga... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races" (
"finish" text,
"race" text,
"distance" text,
"jockey" text,
"time" text,
"grade" text,
"runner_up_winner" text,
"track" text
);
Question: What is the fastest time for the Kentuck... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races" (
"finish" text,
"race" text,
"distance" text,
"jockey" text,
"time" text,
"grade" text,
"runner_up_winner" text,
"track" text
);
Question: Which track does the Woodward Stakes rac... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races" (
"finish" text,
"race" text,
"distance" text,
"jockey" text,
"time" text,
"grade" text,
"runner_up_winner" text,
"track" text
);
Question: What grade did jockey Robby Albarado get... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_lanterne_rouge" (
"year" real,
"name" text,
"nationality" text,
"time" text,
"age_category" text
);
Question: In which Age Category is Marco Manenti?
<|assistant|>
SELECT "age_category" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_lanterne_rouge" (
"year" real,
"name" text,
"nationality" text,
"time" text,
"age_category" text
);
Question: Which year has a Time of 13:23:43?
<|assistant|>
SELECT "year" FROM "men_s_la... |
<|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,
"time" text,
"att" text,
"record" text
);
Question: What score has 3-7 as the record?
<|assistant|>
SELECT "score" FROM ... |
<|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,
"time" text,
"att" text,
"record" text
);
Question: What loss has 16,458 as an Att.?
<|assistant|>
SELECT "loss" FROM "g... |
<|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,
"time" text,
"att" text,
"record" text
);
Question: What date has 5-3 as the score, and holt (1-1) as a loss?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "transport" (
"s_no" real,
"company" text,
"incorporated" real,
"ministry" text,
"sector" text
);
Question: What is the sector of the company with an incorporated date before 1983?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "transport" (
"s_no" real,
"company" text,
"incorporated" real,
"ministry" text,
"sector" text
);
Question: What is the average incorporataed year of the Air India Charters company?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lanka_sama_samaja_party_electoral_result" (
"date" text,
"candidates_nominated" real,
"candidates_elected" text,
"votes" real,
"pct_of_national_vote" real
);
Question: How many votes were talli... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lanka_sama_samaja_party_electoral_result" (
"date" text,
"candidates_nominated" real,
"candidates_elected" text,
"votes" real,
"pct_of_national_vote" real
);
Question: How many candidates were ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lanka_sama_samaja_party_electoral_result" (
"date" text,
"candidates_nominated" real,
"candidates_elected" text,
"votes" real,
"pct_of_national_vote" real
);
Question: How many votes were talli... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
Question: Who is the visitor with a record of 14–17–5?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
Question: How many in attendance when Penguins were home with a record... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
Question: Which Format has a Catalog of 561 445-1?
<|assistant|>
SELECT "format" FROM "release_hist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
Question: Which Region has a Date of early september 1999?
<|assistant|>
SELECT "region" FROM "rele... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
Question: Which Region has a Date of early september 1999?
<|assistant|>
SELECT "region" FROM "rele... |
<|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 was the date of the game with a loss of White (4-5)?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"series" text
);
Question: what score has a location and attendance of montreal forum and the date of may 10?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preliminaries_scores" (
"province" text,
"swimsuit" real,
"evening_gown" real,
"interview" real,
"average" real
);
Question: Which Interview has a Province of monte cristi and a Swimsuit larger... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preliminaries_scores" (
"province" text,
"swimsuit" real,
"evening_gown" real,
"interview" real,
"average" real
);
Question: WHich Evening Gown has a Swimsuit smaller than 7.99 and a Interview ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preliminaries_scores" (
"province" text,
"swimsuit" real,
"evening_gown" real,
"interview" real,
"average" real
);
Question: Which Interview has a Swimsuit larger than 7.6, and a Province of la... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_13_2009" (
"series_ep" text,
"episode" real,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: Which items in segment A have a segment D of marble scu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_13_2009" (
"series_ep" text,
"episode" real,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: Which segment A also has a segment D of kitchen shears?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_13_2009" (
"series_ep" text,
"episode" real,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: Which items in segment C is episode 160?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"season" text,
"episodes" real,
"first_airdate" text,
"last_airdate" text,
"nielsen_ranking" text
);
Question: Which season last aired on May 6, 1987?
<|assistant|>
SELECT "season" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"season" text,
"episodes" real,
"first_airdate" text,
"last_airdate" text,
"nielsen_ranking" text
);
Question: What is the Nielsen ranking for Season 8?
<|assistant|>
SELECT "nielsen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"season" text,
"episodes" real,
"first_airdate" text,
"last_airdate" text,
"nielsen_ranking" text
);
Question: What was the first airdate or the season that had less than 24 episodes... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.