text stringlengths 310 1.28k |
|---|
<|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 date has a Home team score of 11.18... |
<|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 home team score has a Away team of ... |
<|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 away team is the home team richmond... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: When Giancarlo Fisichella was the Driver and there were less than 52 Laps, what w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which Constructor has a Grid less than 17, Laps under 52, and Olivier Panis as th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_six" (
"pick_num" text,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Which 2006 cfl draft pick played college ball at Idaho state?
<|assistant|>
SELECT "pi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_six" (
"pick_num" text,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What position did the CFL player drafted out of college of toronto in 2007 play?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "house_of_valois_burgundy_1405_1482" (
"name" text,
"date_of_birth" text,
"date_of_death" text,
"reign" text,
"relationship_with_predecessor" text
);
Question: What was the Date of Death of the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "house_of_valois_burgundy_1405_1482" (
"name" text,
"date_of_birth" text,
"date_of_death" text,
"reign" text,
"relationship_with_predecessor" text
);
Question: What was the Reign of the person w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year_record" (
"year" real,
"record" text,
"finish" text,
"manager" text,
"playoffs" text
);
Question: Tell me the average year with a record of 33-33
<|assistant|>
SELECT AVG("year") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year_record" (
"year" real,
"record" text,
"finish" text,
"manager" text,
"playoffs" text
);
Question: Name the total number of years for a 39-31 record
<|assistant|>
SELECT COUNT("year... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year_record" (
"year" real,
"record" text,
"finish" text,
"manager" text,
"playoffs" text
);
Question: Name the least year for gene hassell manager and 6th finish
<|assistant|>
SELECT M... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year_record" (
"year" real,
"record" text,
"finish" text,
"manager" text,
"playoffs" text
);
Question: Name the finish for a 39-31 record
<|assistant|>
SELECT "finish" FROM "year_by_yea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_window" text,
"transfer_fee" text
);
Question: Name the transfer fee for damia
<|assistant|>
SELECT "transfer_fe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_window" text,
"transfer_fee" text
);
Question: Name the moving to with a transfer fee of free with a transfer st... |
<|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: When was the game played at the Western O... |
<|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 is the home team score for the team ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"locomotive" text,
"serial_no" text,
"entered_service" text,
"gauge" text,
"livery" text
);
Question: What is the livery of the locomotive with a serial number 83-1010?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"locomotive" text,
"serial_no" text,
"entered_service" text,
"gauge" text,
"livery" text
);
Question: What is the livery on the locomotive with a serial number 83-1011?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"locomotive" text,
"serial_no" text,
"entered_service" text,
"gauge" text,
"livery" text
);
Question: What is the locomotive with a standard gauge and a serial number of 83-1015?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"locomotive" text,
"serial_no" text,
"entered_service" text,
"gauge" text,
"livery" text
);
Question: What is the date of entered service for the locomotive with a broad gauge an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the venue on October 16, 1996?
<|assistant|>
SELECT "venue" FROM "interna... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What's the score at the October 30, 1996 1998 fifa world cup qualification with a ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: When was the friendship cup?
<|assistant|>
SELECT "date" FROM "international_goals... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "class_253_and_254" (
"class" text,
"operator" text,
"number" real,
"year_built" text,
"cars_per_set" real,
"unit_numbers" text
);
Question: What is the smallest number for Cars per Set built ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "class_253_and_254" (
"class" text,
"operator" text,
"number" real,
"year_built" text,
"cars_per_set" real,
"unit_numbers" text
);
Question: What unit has cars per set larger than 9 built in 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "class_253_and_254" (
"class" text,
"operator" text,
"number" real,
"year_built" text,
"cars_per_set" real,
"unit_numbers" text
);
Question: What is the largest number of cars per set that is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "class_253_and_254" (
"class" text,
"operator" text,
"number" real,
"year_built" text,
"cars_per_set" real,
"unit_numbers" text
);
Question: What year was the class 253 larger than 18 built?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_14" (
"year" real,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: What is the margin for the Masters Tournament (2) championsh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_14" (
"year" real,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: How many years had 54 holes and a 2 shot lead?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_14" (
"year" real,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: What is the round of 54 holes in which Phil Mickelson was th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_14" (
"year" real,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: What is the championship when the margin was 2 strokes, ther... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "quarter_finals_1_vs_nashville_predators_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
Question: What is the home team of t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "quarter_finals_1_vs_nashville_predators_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
Question: What is the date of the ga... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_nielsen_ratings" (
"episode" text,
"airdate" text,
"rating" real,
"share" real,
"18_49_rating_share" text,
"viewers_m" real,
"rank_num" text
);
Question: How many vieweres for the episo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "history_of_ggb_members" (
"alto_1" text,
"alto_2" text,
"tenor" text,
"lead_tpt" text,
"tpt_2" text,
"tpt_3" text,
"mello" text,
"lead_bone" text,
"bass_bone" text,
"bass" text,
"dru... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the crowd size at the moorabbin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the home team score in the game... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What did the home team score against the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_of_standard_amino_acid_abbreviatio" (
"amino_acid" text,
"3_letter" text,
"1_letter" text,
"side_chain_polarity" text,
"side_chain_charge_p_h_7_4" text,
"hydropathy_index" text
);
Quest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_of_standard_amino_acid_abbreviatio" (
"amino_acid" text,
"3_letter" text,
"1_letter" text,
"side_chain_polarity" text,
"side_chain_charge_p_h_7_4" text,
"hydropathy_index" text
);
Quest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_of_standard_amino_acid_abbreviatio" (
"amino_acid" text,
"3_letter" text,
"1_letter" text,
"side_chain_polarity" text,
"side_chain_charge_p_h_7_4" text,
"hydropathy_index" text
);
Quest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was home team North Melbourne's oppo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was Melbourne's score as the home te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the away team at Junction Oval?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_awards" (
"year" real,
"mrhma" text,
"usca" text,
"rthk" text,
"joint_music_award" text,
"total" real
);
Question: What is the USCA that's Total is smaller than 14, with 1 Joint Music A... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_awards" (
"year" real,
"mrhma" text,
"usca" text,
"rthk" text,
"joint_music_award" text,
"total" real
);
Question: What is the Total with a Joint Music Award of 1, RTHK of 4, and USCA o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_awards" (
"year" real,
"mrhma" text,
"usca" text,
"rthk" text,
"joint_music_award" text,
"total" real
);
Question: How many Joint Music Awards were there with a RTHK of 1, in a Year bef... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_awards" (
"year" real,
"mrhma" text,
"usca" text,
"rthk" text,
"joint_music_award" text,
"total" real
);
Question: How many Joint Music Awards are there when the Total is larger than 18... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_classification" (
"athlete" text,
"final" real,
"lane" real,
"semi" real,
"quart" real,
"heat" real
);
Question: Which lane did the athlete swim in who had a semi-final time of 49.19?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "original_farthing_wood_animals" (
"animal_name" text,
"species" text,
"books" text,
"tv_series" text,
"gender" text,
"tv_seasons" text
);
Question: Which species is male?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"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 teams score at Junction... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_presidents" (
"presidency" real,
"president" text,
"date_of_birth" text,
"took_office" real,
"left_office" text
);
Question: What President has a Presidency greater than 7?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_presidents" (
"presidency" real,
"president" text,
"date_of_birth" text,
"took_office" real,
"left_office" text
);
Question: What is the highest Presidency that Took Office after 1974 a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_presidents" (
"presidency" real,
"president" text,
"date_of_birth" text,
"took_office" real,
"left_office" text
);
Question: What is the Took Office Date of the Presidency that Left Off... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_presidents" (
"presidency" real,
"president" text,
"date_of_birth" text,
"took_office" real,
"left_office" text
);
Question: What was the greatest Took Office dates that Left Office in ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the average Laps for andrea de cesaris?
<|assistant|>
SELECT AVG("laps") FROM "race... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the lowest Grid for jj lehto with over 51 laps?
<|assistant|>
SELECT MIN("grid") FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the average Grid that has a Time/Retired of +2 laps, and under 51 laps?
<|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's the Home teams Venue near Victori... |
<|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 the Home team with a crowd relev... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What is the team's record when they play nashville at home... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What is the decision when they're at phoenix?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
);
Question: What was the score in the Tournament of Frankfurt?
<|assistant|>
SELECT "score" FROM "2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
);
Question: Who was the winner in the Tournament of Graz-Seiersberg?
<|assistant|>
SELECT "winner" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
);
Question: Who earned third place when the winner was Paul Haarhuis?
<|assistant|>
SELECT "third_p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: what is the most laps with the time/retired is differential and the grid is more ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: what is the least laps when the grid is 5?
<|assistant|>
SELECT MIN("laps") FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"county" text,
"proposed" text,
"listed" text,
"construction_completed" text,
"partially_deleted" text,
"deleted" text
);
Question: On w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"county" text,
"proposed" text,
"listed" text,
"construction_completed" text,
"partially_deleted" text,
"deleted" text
);
Question: In w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"county" text,
"proposed" text,
"listed" text,
"construction_completed" text,
"partially_deleted" text,
"deleted" text
);
Question: On w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"county" text,
"proposed" text,
"listed" text,
"construction_completed" text,
"partially_deleted" text,
"deleted" text
);
Question: What... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "x" (
"name" text,
"original_publisher" text,
"first_appearance" text,
"year" real,
"date" text
);
Question: What first appeared in 1966 in the comic X-2-Y?
<|assistant|>
SELECT "first_appearanc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_current_professional_teams" (
"team" text,
"sport" text,
"league" text,
"played" text,
"class" text,
"championships" text
);
Question: Which baseball team is class AAA?
<|assistant|>
S... |
<|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: Where does Collingwood play their games?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: Which position does Robert Nkemdiche play?
<|assistant|>
SELECT "position" FROM "2012_te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: What is Reuben Foster's college?
<|assistant|>
SELECT "college" FROM "2012_team" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: Which position does the player from Muscle Shoals, Alabama play?
<|assistant|>
SELECT "p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: Which player is attending college at Virginia?
<|assistant|>
SELECT "player" FROM "2012_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: Which player attended Hoover High School?
<|assistant|>
SELECT "player" FROM "2012_team"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What is the team's record on may 12 when they play the giants?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "western_conference_semi_finals" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real
);
Question: What is the attendance at the game where San Jose was... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "western_conference_semi_finals" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real
);
Question: Who was the home team on the May 2 game?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "western_conference_semi_finals" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real
);
Question: What is the decision of the game with more than 17,49... |
<|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 date is the crowd larger than 20,000... |
<|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: Which away team has a score of more that ... |
<|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" text,
"record" text
);
Question: What was the record when the score was 11-10?
<|assistant|>
SELECT "record" ... |
<|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" text,
"record" text
);
Question: What was the record when the attendance was 22,713?
<|assistant|>
SELECT "re... |
<|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" text,
"record" text
);
Question: What was the attendance at the game when the record was 49-61?
<|assistant|>... |
<|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" text,
"record" text
);
Question: On what date was there a game in which the opponent was the Detroit Tigers, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general" (
"software" text,
"latest_stable_date_version" text,
"cost_usd" text,
"open_source" text,
"license" text
);
Question: What is the free sotware with the latest stable date version of 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general" (
"software" text,
"latest_stable_date_version" text,
"cost_usd" text,
"open_source" text,
"license" text
);
Question: Name the software with the latest stable date of 0.6.1
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general" (
"software" text,
"latest_stable_date_version" text,
"cost_usd" text,
"open_source" text,
"license" text
);
Question: Name the cost for latest stable date of online
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prime_ministers" (
"name" text,
"entered_office" text,
"left_office" text,
"political_party" text,
"monarchs_served" text,
"birth_place" text
);
Question: What is the birth place of the prime... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prime_ministers" (
"name" text,
"entered_office" text,
"left_office" text,
"political_party" text,
"monarchs_served" text,
"birth_place" text
);
Question: To which political party did the pri... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prime_ministers" (
"name" text,
"entered_office" text,
"left_office" text,
"political_party" text,
"monarchs_served" text,
"birth_place" text
);
Question: What date did the prime minister who... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prime_ministers" (
"name" text,
"entered_office" text,
"left_office" text,
"political_party" text,
"monarchs_served" text,
"birth_place" text
);
Question: What monarch(s) did Stanley Baldwin ... |
<|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,
"game_site" text,
"attendance" text
);
Question: What is the date of the game played at rich stadium?
<|assistant|>
SELEC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.