text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round" real,
"race_name" text,
"circuit" text,
"city_state" text,
"date" text,
"winner_s" text,
"team" text
);
Question: Which circuit had a round larger than 5?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conan_dark_horse_comics" (
"issue" text,
"date" text,
"title" text,
"story" text,
"color" text
);
Question: What is the title of the story published on October 19, 2011?
<|assistant|>
SELECT "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conan_dark_horse_comics" (
"issue" text,
"date" text,
"title" text,
"story" text,
"color" text
);
Question: What Issue number was released on August 17, 2011?
<|assistant|>
SELECT "issue" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conan_dark_horse_comics" (
"issue" text,
"date" text,
"title" text,
"story" text,
"color" text
);
Question: What story title was included in Issue #8?
<|assistant|>
SELECT "story" FROM "conan_d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jersey_progress" (
"stage_winner" text,
"general_classification" text,
"young_classification" text,
"mountains_classification" text,
"sprint_classification" text,
"team_classification" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jersey_progress" (
"stage_winner" text,
"general_classification" text,
"young_classification" text,
"mountains_classification" text,
"sprint_classification" text,
"team_classification" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jersey_progress" (
"stage_winner" text,
"general_classification" text,
"young_classification" text,
"mountains_classification" text,
"sprint_classification" text,
"team_classification" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_cities" (
"rank" real,
"municipality" text,
"population_2010_census" real,
"population_2005_census" real,
"population_2000_census" real
);
Question: What is the lowest population (2010 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_cities" (
"rank" real,
"municipality" text,
"population_2010_census" real,
"population_2005_census" real,
"population_2000_census" real
);
Question: What is the lowest population (2000 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_cities" (
"rank" real,
"municipality" text,
"population_2010_census" real,
"population_2005_census" real,
"population_2000_census" real
);
Question: What is the highest population (2000... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_cities" (
"rank" real,
"municipality" text,
"population_2010_census" real,
"population_2005_census" real,
"population_2000_census" real
);
Question: What is the total number of rank tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazil_s_40_busiest_airports_by_passenge" (
"rank" real,
"location" text,
"total_passengers" real,
"annual_change" text,
"capacity" real,
"capacity_in_use" text
);
Question: Who had the lowes... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazil_s_40_busiest_airports_by_passenge" (
"rank" real,
"location" text,
"total_passengers" real,
"annual_change" text,
"capacity" real,
"capacity_in_use" text
);
Question: What is the avera... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_10" (
"outcome" text,
"date" text,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: Which outcome has a par... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What is the Format with a Catalog that is vcrd 103?
<|assistant|>
SELECT "format" FROM "r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What is the Region with a Catalog that is vlmx 1087-3?
<|assistant|>
SELECT "region" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What is the Format with a Label of electropolis and a Date that is 2002?
<|assistant|>
SE... |
<|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 result's attendance was more than 60,705 when the week number is less than 13?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition_of_the_9th_seanad" (
"administrative_panel" real,
"agricultural_panel" real,
"cultural_and_educational_panel" real,
"industrial_and_commercial_panel" real,
"labour_panel" real,
"na... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
"margin" text,
"match_date" text
);
Question: What is Margin, when Match Date is Oct 17, 2007?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
"margin" text,
"match_date" text
);
Question: What is Team (B), when S No is greater than 17?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
"margin" text,
"match_date" text
);
Question: What is the total number of S No(s), when the Margin is 16 run... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
"margin" text,
"match_date" text
);
Question: What is the highest S No, when the Match Date is Nov 1, 2003?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
"margin" text,
"match_date" text
);
Question: What is Team (B), when S No is less than 18, when Margin is 8 ... |
<|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: When was the last time, since December 14, 1986, that the attendance was lower than 47,096?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_finals" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is the Surface of indoor/carpet Outcome on... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_finals" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What the Outcome for the Tournament of Johannes... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "block_iif" (
"date" text,
"rocket" text,
"type" text,
"launch_site" text,
"satellite" text
);
Question: What is the launch site of the delta iv rocket?
<|assistant|>
SELECT "launch_site" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "block_iif" (
"date" text,
"rocket" text,
"type" text,
"launch_site" text,
"satellite" text
);
Question: What is the type of the gps iif-10 satellite with an unknown date?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "block_iif" (
"date" text,
"rocket" text,
"type" text,
"launch_site" text,
"satellite" text
);
Question: What is the type of the gps iif-10 satellite?
<|assistant|>
SELECT "type" FROM "block_iif... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "block_iif" (
"date" text,
"rocket" text,
"type" text,
"launch_site" text,
"satellite" text
);
Question: What is the launch site of the delta iv rocket with an unknown date and a gps iif-10 sate... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "block_iif" (
"date" text,
"rocket" text,
"type" text,
"launch_site" text,
"satellite" text
);
Question: What is the date of the gps iif-7 satellite?
<|assistant|>
SELECT "date" FROM "block_iif"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text
);
Question: What was the finish for 1992?
<|assistant|>
SELECT "finish" FROM "indy_500_results" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text
);
Question: What was Andretti's finish for the year he had a Buick engine and started 16th?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text
);
Question: What was Andretti's finish the year he started 16th with a Buick engine?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: How many years were there a men's do... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: Which Drawn has a Points of 6,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: Which Points has a Difference ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: Which Points has a Team of são... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: Which Position has a Played la... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1997_reissue_bonus_tracks" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"song_title" text,
"time" text
);
Question: What track has a catalogue of 47-9465?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1997_reissue_bonus_tracks" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"song_title" text,
"time" text
);
Question: What track has a time of 2:30?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1997_reissue_bonus_tracks" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"song_title" text,
"time" text
);
Question: What catalogue was recorded on 9/10/67 and a rel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_medal_tables" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Where does Norway rank in total medals among countries with fewer tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "best_batting_strike_rate" (
"player" text,
"team" text,
"inns" real,
"runs" real,
"balls" real
);
Question: What is the Inns of 435 Runs?
<|assistant|>
SELECT "inns" FROM "best_batting_strike_r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "total_team_ranking_open_section" (
"rank" real,
"country" text,
"1st_place" real,
"2nd_place" real,
"3rd_place" real,
"total" real
);
Question: What is the average 1st place with a Rank that ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"week_of" text,
"tier" text,
"winner" text,
"runner_up" text,
"semi_finalists" text
);
Question: What week was the Runner-up Lori McNeil?
<|assistant|>
SELECT "week_of" FROM "novemb... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"week_of" text,
"tier" text,
"winner" text,
"runner_up" text,
"semi_finalists" text
);
Question: When the runner-up was Jing-qian Yi, who was the winner?
<|assistant|>
SELECT "winne... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text
);
Question: Who was the mus... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text
);
Question: Who was the gue... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text
);
Question: Who were the pa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text
);
Question: What is the hig... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: What is the score of the home game for the Cavaliers where Lebron James (46)... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: Who was the leading scorer against the visiting team Bulls?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: What date was the game played against the home team Rockets?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conan_dark_horse_comics" (
"issue" text,
"date" text,
"title" text,
"penciller" text,
"color" text
);
Question: What was the Date of the Cimmeria Issue for which the Penciller was Tomás Giorell... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conan_dark_horse_comics" (
"issue" text,
"date" text,
"title" text,
"penciller" text,
"color" text
);
Question: When did the Issue with the Title Homecoming come out?
<|assistant|>
SELECT "date... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_league" (
"team" text,
"match" real,
"points" real,
"draw" real,
"lost" real
);
Question: Which average match has a lost greater than 0, points greater than 6, legia warszawa as the team,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_league" (
"team" text,
"match" real,
"points" real,
"draw" real,
"lost" real
);
Question: What draw has a lost less than 6 with 28 as the points?
<|assistant|>
SELECT "draw" FROM "first_l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_league" (
"team" text,
"match" real,
"points" real,
"draw" real,
"lost" real
);
Question: Which average lost that has a match less than 14?
<|assistant|>
SELECT AVG("lost") FROM "first_le... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
);
Question: What is the Match for skra warszawa?
<|assistant|>
SELECT "match" FROM "second_league" WHERE "te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
);
Question: What is the Draw for skra warszawa?
<|assistant|>
SELECT "draw" FROM "second_league" WHERE "team... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
);
Question: What is the Lost when the points were dissolved?
<|assistant|>
SELECT "lost" FROM "second_league... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
);
Question: What is the Draw for match 10, and the team was skra warszawa?
<|assistant|>
SELECT "draw" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
);
Question: What is the Draw for the team of tramwajarz łódź?
<|assistant|>
SELECT "draw" FROM "second_leagu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
);
Question: What is the Draw for the team tramwajarz łódź?
<|assistant|>
SELECT "draw" FROM "second_league" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "newly_named_dinosaurs" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"unit" text,
"location" text
);
Question: What is the Location when the novelty is gen?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "newly_named_dinosaurs" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"unit" text,
"location" text
);
Question: What shows for Unit with a status of nomen oblitum?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "newly_named_dinosaurs" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"unit" text,
"location" text
);
Question: What is the Location when the name is telmatosaurus?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "newly_named_dinosaurs" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"unit" text,
"location" text
);
Question: What is the Status with a novelty of gen et sp, and the name is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_scorers_in_order_of_league_goals" (
"player" text,
"club" text,
"league" real,
"fa_cup" real,
"fa_trophy" real,
"league_cup" real,
"total" real
);
Question: How many League cups had a t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_scorers_in_order_of_league_goals" (
"player" text,
"club" text,
"league" real,
"fa_cup" real,
"fa_trophy" real,
"league_cup" real,
"total" real
);
Question: How many FA trophies did Cer... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mutual_intelligibility" (
"city" text,
"comprehension_of_danish" text,
"comprehension_of_swedish" text,
"comprehension_of_norwegian" text,
"average" real
);
Question: Which City has an Average ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mutual_intelligibility" (
"city" text,
"comprehension_of_danish" text,
"comprehension_of_swedish" text,
"comprehension_of_norwegian" text,
"average" real
);
Question: What is the Average of ber... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mutual_intelligibility" (
"city" text,
"comprehension_of_danish" text,
"comprehension_of_swedish" text,
"comprehension_of_norwegian" text,
"average" real
);
Question: Which Comprehension of Dan... |
<|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,
"game_site" text,
"attendance" text
);
Question: What are the Attendance numbers for november 18, 1990?
... |
<|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,
"game_site" text,
"attendance" text
);
Question: What is the Date for a week higher than 7 with a record... |
<|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 result of the game with an attendance over 53,731 after week 5?
<|assistant|>
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: What is the average week of a game on November 12, 1989?
<|assistant|>
SELECT AVG("week") FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_b" (
"game" real,
"date" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"result_sets" text,
"result_pts" text
);
Question: What is the Set 5 with a Set... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_b" (
"game" real,
"date" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"result_sets" text,
"result_pts" text
);
Question: What is the sum of the Game ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_b" (
"game" real,
"date" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"result_sets" text,
"result_pts" text
);
Question: What is the Set 5 with a Gam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_results" (
"year" real,
"competition" text,
"club" text,
"nation" text,
"result" text
);
Question: What shows for nation when the Competition is preseason, Year less than 2011, an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_results" (
"year" real,
"competition" text,
"club" text,
"nation" text,
"result" text
);
Question: What was the Result for the club universidad de guadalajara?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_results" (
"year" real,
"competition" text,
"club" text,
"nation" text,
"result" text
);
Question: What is the Nation with 2012 as the year, and a Competition of preseason, and a ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_results" (
"year" real,
"competition" text,
"club" text,
"nation" text,
"result" text
);
Question: What is the average Year when the Competition was friendly, and a Club of everto... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_results" (
"year" real,
"competition" text,
"club" text,
"nation" text,
"result" text
);
Question: What is the Competition when the Club was costa rica u-20?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_results" (
"year" real,
"competition" text,
"club" text,
"nation" text,
"result" text
);
Question: What is the Club of mexico, Year of 2010, and a Competition of preseason, and a ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the lowest total when the nation is Sweden?
<|assistant|>
SELECT MIN("t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the average Total when silver is less than 1, and the rank is 15?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total number of Bronze when rank is 11, and the total is less than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "olympic_roster" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2012_club" text
);
Question: Which name's 2012 club was deportivo nacional?
<|assistant|>
SELECT "name" FROM "olympic... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "olympic_roster" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2012_club" text
);
Question: Which name's 2012 club was deportivo nacional?
<|assistant|>
SELECT "name" FROM "olympic... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "olympic_roster" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2012_club" text
);
Question: Which weight was attached to the 2012 club San Pedro?
<|assistant|>
SELECT "weight" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "filmography" (
"year" real,
"film" text,
"director" text,
"producer" text,
"writer" text
);
Question: What year is the latest year that has no under director?
<|assistant|>
SELECT MAX("year") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "filmography" (
"year" real,
"film" text,
"director" text,
"producer" text,
"writer" text
);
Question: With yes under writer and in 2014, what is the director?
<|assistant|>
SELECT "director" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "filmography" (
"year" real,
"film" text,
"director" text,
"producer" text,
"writer" text
);
Question: Who is the writer of the film Run?
<|assistant|>
SELECT "writer" FROM "filmography" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" text,
"matches" real,
"goals" real
);
Question: What is the most goals made for a person with less than 208 matches... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" text,
"matches" real,
"goals" real
);
Question: In what years was there a rank lower than 9, under 84 goals, and mo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conto_tv_teleitalia" (
"television_service" text,
"country" text,
"language" text,
"content" text,
"hdtv" text,
"package_option" text
);
Question: What is the HDTV status of the r-light telev... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.