text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"rank" real,
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What is the highest heat when the nationality is poland, and the lane is smaller than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "type_ii" (
"part_number" text,
"pins" text,
"body_width_mm" real,
"body_length_mm" real,
"lead_pitch_mm" real
);
Question: Which Lead Pitch/mm has a Body Width/mm larger than 10.16?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "type_ii" (
"part_number" text,
"pins" text,
"body_width_mm" real,
"body_length_mm" real,
"lead_pitch_mm" real
);
Question: How much Body Width/mm has a Part Number of tsop40/44, and a Body Leng... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "type_ii" (
"part_number" text,
"pins" text,
"body_width_mm" real,
"body_length_mm" real,
"lead_pitch_mm" real
);
Question: Which Lead Pitch/mm has a Part Number of tsop24/28?
<|assistant|>
SELE... |
<|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
);
Question: What is the highest amount of silver when gold is 1 and bronze larger than 0?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"lane" real,
"athlete" text,
"nationality" text,
"time" real,
"reaction_time" real
);
Question: What is the Time of the Athlete with a Reaction time of 0.164?
<|assistant|>
SELECT SUM(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"lane" real,
"athlete" text,
"nationality" text,
"time" real,
"reaction_time" real
);
Question: What is the Time of the Athlete in Lane 4?
<|assistant|>
SELECT COUNT("time") FROM "fina... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"lane" real,
"athlete" text,
"nationality" text,
"time" real,
"reaction_time" real
);
Question: What is the Lane of the Athlete from Great Britain with a Reaction time of less than 0.2... |
<|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,
"tv_time" text,
"attendance" text
);
Question: What is the time in week 3?
<|assistant|>
SELECT "tv_time" FROM "schedule"... |
<|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,
"tv_time" text,
"attendance" text
);
Question: What is the week with attendance of 73,572?
<|assistant|>
SELECT MAX("week... |
<|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,
"tv_time" text,
"attendance" text
);
Question: What week was the opponent the San Diego Chargers?
<|assistant|>
SELECT CO... |
<|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,
"tv_time" text,
"attendance" text
);
Question: What week was the result of l 38–21?
<|assistant|>
SELECT MAX("week") FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_game" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"opposition" text
);
Question: What's the total of Rank for the County of Galway and has a Total that's l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_game" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"opposition" text
);
Question: What County has an Opposition of Antrim and the Player Bernie Forde?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_game" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"opposition" text
);
Question: What's the highest Rank for the County of Offaly, the Player of Mark Corri... |
<|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,
"channel" text,
"stadium" text,
"attendance" text
);
Question: Which Channel has an Opponent of washington redskins?
<|... |
<|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,
"channel" text,
"stadium" text,
"attendance" text
);
Question: Which attendance has a Channel of espn, and a Date of 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,
"channel" text,
"stadium" text,
"attendance" text
);
Question: Which Date has a Result of w 27–20?
<|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,
"channel" text,
"stadium" text,
"attendance" text
);
Question: Which Week has an Attendance of 63,447?
<|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,
"channel" text,
"stadium" text,
"attendance" text
);
Question: Which Date has a Stadium of giants stadium, and a Week s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_2" (
"rank" real,
"lane" real,
"athlete" text,
"nationality" text,
"time" real,
"react" real
);
Question: Who was the athlete with react of 0.185?
<|assistant|>
SELECT "athlete" FROM "he... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_2" (
"rank" real,
"lane" real,
"athlete" text,
"nationality" text,
"time" real,
"react" real
);
Question: What's the smallest react of Zimbabwe, ranked after 1 in a lane after 3 and a ti... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "racial_composition" (
"municipality_2010" text,
"white_both_hispanic_and_non_hispanic" real,
"black_both_hispanic_and_non_hispanic" real,
"amerindian_both_hispanic_and_non_hispanic" real,
"n_asi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "racial_composition" (
"municipality_2010" text,
"white_both_hispanic_and_non_hispanic" real,
"black_both_hispanic_and_non_hispanic" real,
"amerindian_both_hispanic_and_non_hispanic" real,
"n_asi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "racial_composition" (
"municipality_2010" text,
"white_both_hispanic_and_non_hispanic" real,
"black_both_hispanic_and_non_hispanic" real,
"amerindian_both_hispanic_and_non_hispanic" real,
"n_asi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "racial_composition" (
"municipality_2010" text,
"white_both_hispanic_and_non_hispanic" real,
"black_both_hispanic_and_non_hispanic" real,
"amerindian_both_hispanic_and_non_hispanic" real,
"n_asi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_by_season_records" (
"season" text,
"div" text,
"pos" text,
"pld" text,
"pts" text
);
Question: What season had 3rd position, a 36 pld, and a bbl div?
<|assistant|>
SELECT "season" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_by_season_records" (
"season" text,
"div" text,
"pos" text,
"pld" text,
"pts" text
);
Question: What season has 36 pld, a bbl div, and 6th position?
<|assistant|>
SELECT "season" FROM "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_by_season_records" (
"season" text,
"div" text,
"pos" text,
"pld" text,
"pts" text
);
Question: What season had 6th position and 36 points?
<|assistant|>
SELECT "season" FROM "season_by_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_by_season_records" (
"season" text,
"div" text,
"pos" text,
"pld" text,
"pts" text
);
Question: What season had 1st position, 33 pld, and 58 points?
<|assistant|>
SELECT "season" FROM "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wales" (
"player" text,
"int_l_debut" text,
"year" real,
"cross_code_debut" text,
"date" text,
"position" text
);
Question: Which player had a Cross Code Debut of the RL test v France, Intern... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text
);
Question: Which School has a Mascot of generals?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text
);
Question: Which School has an IHSAA Class of aaa,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text
);
Question: What is the highest enrollment... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text
);
Question: What is the enrollment at the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text
);
Question: What school that has a IHSAA C... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text
);
Question: What is the mascot at Hamilton... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text
);
Question: What school is in Lagrange, wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text
);
Question: What school is in Ligonier?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_most_olympic_medals_over_career" (
"rank" real,
"nation" text,
"sport" text,
"years" text,
"games" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_most_olympic_medals_over_career" (
"rank" real,
"nation" text,
"sport" text,
"years" text,
"games" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "amateur_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college_junior_club_team" text
);
Question: What's the average Round of Pete Laframboise?
<|assistant|>
SELECT AV... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "amateur_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college_junior_club_team" text
);
Question: What country is Pick 100?
<|assistant|>
SELECT "nationality" FROM "am... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_2" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: Who were the rowers for Great britain?
<|assistant|>
SELECT "rowers" FROM "heat_2" WHERE "country"='... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_2" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: What country has a time of 7:28.66 and a rank less than 3?
<|assistant|>
SELECT "country" FROM "heat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_2" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: What are the notes when the time was 7:42.92 and the rank is more than 1?
<|assistant|>
SELECT "note... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What's the score of Tie number 11?
<|assistant|>
SELECT "score" FROM "fourth_rou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What's the tie number when the away team was Mansfield Town?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What date was Newcastle United the away team?
<|assistant|>
SELECT "date" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: Who was the away team when Brighton & Hove Albion was home?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What's the tie number of Chelsea when they were home?
<|assistant|>
SELECT "tie_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What's the score when Orient was home?
<|assistant|>
SELECT "score" FROM "fourth... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_4" (
"restaurant_name" text,
"original_name" text,
"location" text,
"chef" text,
"designer" text,
"still_open" text
);
Question: What designer has a restaurant named The Citizen?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_4" (
"restaurant_name" text,
"original_name" text,
"location" text,
"chef" text,
"designer" text,
"still_open" text
);
Question: What is the original name of the place by designer Glen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_4" (
"restaurant_name" text,
"original_name" text,
"location" text,
"chef" text,
"designer" text,
"still_open" text
);
Question: What chef that has a location in Toronto, ON, that has ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_4" (
"restaurant_name" text,
"original_name" text,
"location" text,
"chef" text,
"designer" text,
"still_open" text
);
Question: What is the name of the restaurant originally named Ess... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_4" (
"restaurant_name" text,
"original_name" text,
"location" text,
"chef" text,
"designer" text,
"still_open" text
);
Question: What designer has a restaurant named of Cork & Cabbage?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players_who_have_tested_positive_for_ban" (
"athlete" text,
"nation" text,
"olympics" real,
"substance" text,
"punishment" text
);
Question: Which athlete had a six month suspension from IIHF?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championships_total_medals" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many bronze medals did the team have with 0 total silv... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championships_total_medals" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total number of bronze medals for the team wit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dressage" (
"rank" text,
"rider" text,
"horse" text,
"nation" text,
"judge_e" text,
"judge_c" text,
"judge_m" text,
"penalty_points" real
);
Question: what is the least penalty points whe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dressage" (
"rank" text,
"rider" text,
"horse" text,
"nation" text,
"judge_e" text,
"judge_c" text,
"judge_m" text,
"penalty_points" real
);
Question: what is the judge e when judge c is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dressage" (
"rank" text,
"rider" text,
"horse" text,
"nation" text,
"judge_e" text,
"judge_c" text,
"judge_m" text,
"penalty_points" real
);
Question: what is the nation when the penalty ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dressage" (
"rank" text,
"rider" text,
"horse" text,
"nation" text,
"judge_e" text,
"judge_c" text,
"judge_m" text,
"penalty_points" real
);
Question: what is the rank when judge m is 65.... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dressage" (
"rank" text,
"rider" text,
"horse" text,
"nation" text,
"judge_e" text,
"judge_c" text,
"judge_m" text,
"penalty_points" real
);
Question: what is the horse that ranked 69?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1941" (
"title" text,
"series" text,
"director" text,
"production_number" text,
"release_date" text,
"reissue" text
);
Question: Name the Production Number with a Director of friz freleng, an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1941" (
"title" text,
"series" text,
"director" text,
"production_number" text,
"release_date" text,
"reissue" text
);
Question: Name the Series with Production Number of 95, br 1254?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1941" (
"title" text,
"series" text,
"director" text,
"production_number" text,
"release_date" text,
"reissue" text
);
Question: Which reissue has a Production Number of 9853?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1941" (
"title" text,
"series" text,
"director" text,
"production_number" text,
"release_date" text,
"reissue" text
);
Question: Name the Series with a Title of elmer's pet rabbit?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "houses" (
"house" text,
"abbr" text,
"type" text,
"colour" text,
"boarding_day" text
);
Question: What is the Boarding/Day value for a type of old and house of Saunderites?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "houses" (
"house" text,
"abbr" text,
"type" text,
"colour" text,
"boarding_day" text
);
Question: Which house has an abbreviation of G?
<|assistant|>
SELECT "house" FROM "houses" WHERE "abbr"='... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "houses" (
"house" text,
"abbr" text,
"type" text,
"colour" text,
"boarding_day" text
);
Question: Which house has a Boarding/Day value of Day?
<|assistant|>
SELECT "house" FROM "houses" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "houses" (
"house" text,
"abbr" text,
"type" text,
"colour" text,
"boarding_day" text
);
Question: Which house has an abbreviation of D?
<|assistant|>
SELECT "house" FROM "houses" WHERE "abbr"='... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "houses" (
"house" text,
"abbr" text,
"type" text,
"colour" text,
"boarding_day" text
);
Question: Which type has an abbreviation of B and Boarding/Day value of Boarding?
<|assistant|>
SELECT "t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "houses" (
"house" text,
"abbr" text,
"type" text,
"colour" text,
"boarding_day" text
);
Question: Which type has a color of Dark Blue?
<|assistant|>
SELECT "type" FROM "houses" WHERE "colour"='... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"season" real,
"team" text,
"league" text,
"games" text,
"total_tackles" text,
"solo" text,
"tfl" text,
"sacks" text,
"int" text
);
Question: what is the total tackles whe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"season" real,
"team" text,
"league" text,
"games" text,
"total_tackles" text,
"solo" text,
"tfl" text,
"sacks" text,
"int" text
);
Question: what is the team when sacks i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"season" real,
"team" text,
"league" text,
"games" text,
"total_tackles" text,
"solo" text,
"tfl" text,
"sacks" text,
"int" text
);
Question: what is solo when total tackl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
... |
<|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 week 11?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "week"=1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
Question: What is Lisbeth Trickett's time?
<|assistant|>
SELECT COUNT("time") FROM "semifinal_1" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
Question: What is the average rank for 57.05 time?
<|assistant|>
SELECT AVG("rank") FROM "semifinal_1" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
Question: What lane is from Great Britain and a 57.78 time?
<|assistant|>
SELECT COUNT("lane") FROM "sem... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "analogue_terrestrial_television" (
"name" text,
"network" text,
"owner" text,
"launch_date" text,
"channel_bkk" text,
"broadcasting_area" text,
"transmitted_area" text,
"broadcasting_hours... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "analogue_terrestrial_television" (
"name" text,
"network" text,
"owner" text,
"launch_date" text,
"channel_bkk" text,
"broadcasting_area" text,
"transmitted_area" text,
"broadcasting_hours... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "analogue_terrestrial_television" (
"name" text,
"network" text,
"owner" text,
"launch_date" text,
"channel_bkk" text,
"broadcasting_area" text,
"transmitted_area" text,
"broadcasting_hours... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "analogue_terrestrial_television" (
"name" text,
"network" text,
"owner" text,
"launch_date" text,
"channel_bkk" text,
"broadcasting_area" text,
"transmitted_area" text,
"broadcasting_hours... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "analogue_terrestrial_television" (
"name" text,
"network" text,
"owner" text,
"launch_date" text,
"channel_bkk" text,
"broadcasting_area" text,
"transmitted_area" text,
"broadcasting_hours... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "analogue_terrestrial_television" (
"name" text,
"network" text,
"owner" text,
"launch_date" text,
"channel_bkk" text,
"broadcasting_area" text,
"transmitted_area" text,
"broadcasting_hours... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_wins_13" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Who were the runners-up in the tournament on May 26, 1996?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_wins_13" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Which tournament had a runner-up of Val Skinner?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_wins_13" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was Rosie's winning score on Apr 29, 2001?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1947" (
"title" text,
"series" text,
"director" text,
"production_number" text,
"release_date" text,
"reissue" text
);
Question: What was the release date of the feature with a production num... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1947" (
"title" text,
"series" text,
"director" text,
"production_number" text,
"release_date" text,
"reissue" text
);
Question: What is the reissue value for the feature titled "Catch as Cat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
Question: what is the name when the constitue... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
Question: what is the total number of elector... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_ten_medals" (
"rank" real,
"province" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the rank of Si Sa Ket province with less than 14 bronze medals?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_ten_medals" (
"rank" real,
"province" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many total medals does rank 3 with less than 40 silver medals?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_ten_medals" (
"rank" real,
"province" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many average gold medals for provinces higher than rank 9 with 25 bron... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.