text stringlengths 310 1.28k |
|---|
<|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: I want the driver for Laps more than 8 and ferrari with Grid of 8
<|assistant|>
SELECT "dri... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"track" real,
"title" text,
"translation" text,
"composer" text,
"recorded" text
);
Question: Which title has the Translation of vesoul?
<|assistant|>
SELECT "title" FROM "trac... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1990s" (
"year" text,
"winner_and_nominees" text,
"original_title" text,
"country" text,
"director" text
);
Question: What was the orignal title for the winner and nominee, Breaking the Waves, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1990s" (
"year" text,
"winner_and_nominees" text,
"original_title" text,
"country" text,
"director" text
);
Question: What is the original title for the winner and nominees 'Secrets & Lies'?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1990s" (
"year" text,
"winner_and_nominees" text,
"original_title" text,
"country" text,
"director" text
);
Question: The winner and nominee 'Hidden Agenda' is from which country?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general_electric" (
"prr_class" text,
"builder_s_model" text,
"build_date" text,
"total_produced" real,
"wheel_arrangement" text,
"service" text,
"power_output" text
);
Question: What is th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general_electric" (
"prr_class" text,
"builder_s_model" text,
"build_date" text,
"total_produced" real,
"wheel_arrangement" text,
"service" text,
"power_output" text
);
Question: What is th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general_electric" (
"prr_class" text,
"builder_s_model" text,
"build_date" text,
"total_produced" real,
"wheel_arrangement" text,
"service" text,
"power_output" text
);
Question: What is th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general_electric" (
"prr_class" text,
"builder_s_model" text,
"build_date" text,
"total_produced" real,
"wheel_arrangement" text,
"service" text,
"power_output" text
);
Question: What was t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1961" (
"1961_democratic_primary" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real
);
Question: Who got 189,524 votes?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fm" (
"frequency" text,
"call_sign" text,
"name" text,
"format" text,
"owner" text
);
Question: Which owner has the frequency of 103.3 FM?
<|assistant|>
SELECT "owner" FROM "fm" WHERE "frequenc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fm" (
"frequency" text,
"call_sign" text,
"name" text,
"format" text,
"owner" text
);
Question: What is the call sign of the Classic Country Music station?
<|assistant|>
SELECT "call_sign" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fm" (
"frequency" text,
"call_sign" text,
"name" text,
"format" text,
"owner" text
);
Question: Which owner has the call sign of KDSU?
<|assistant|>
SELECT "name" FROM "fm" WHERE "call_sign"='k... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fm" (
"frequency" text,
"call_sign" text,
"name" text,
"format" text,
"owner" text
);
Question: What is the call sign for Thunder 106.1?
<|assistant|>
SELECT "call_sign" FROM "fm" WHERE "name"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fm" (
"frequency" text,
"call_sign" text,
"name" text,
"format" text,
"owner" text
);
Question: Which owner has a Contemporary Christian music station on 97.9 FM?
<|assistant|>
SELECT "name" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: Who was the leading scorer in the game where the visi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: How many people attended the game where the leading s... |
<|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 mean number of laps where Time/retired was a water leak and the grid number was... |
<|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 mean number of laps when time/retired was spun off and the driver was Nick Heid... |
<|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 sum grid number when the driver was Luciano Burti?
<|assistant|>
SELECT COUNT("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which constructor had a laps number bigger than 3 when the driver was Jarno Trulli?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
"marginal_ordinary_income_tax_rate" text,
"single" text,
"married_filing_jointly_or_qualified_widow_er" text,
"married_filing_separately" text,
"head_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
"marginal_ordinary_income_tax_rate" text,
"single" text,
"married_filing_jointly_or_qualified_widow_er" text,
"married_filing_separately" text,
"head_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
"marginal_ordinary_income_tax_rate" text,
"single" text,
"married_filing_jointly_or_qualified_widow_er" text,
"married_filing_separately" text,
"head_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
"marginal_ordinary_income_tax_rate" text,
"single" text,
"married_filing_jointly_or_qualified_widow_er" text,
"married_filing_separately" text,
"head_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
"marginal_ordinary_income_tax_rate" text,
"single" text,
"married_filing_jointly_or_qualified_widow_er" text,
"married_filing_separately" text,
"head_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "40_point_games" (
"number" real,
"opponent" text,
"box_score" text,
"points" real,
"fgm_fga" text,
"3_pm_3_pa" text,
"ftm_fta" text,
"assists" real,
"rebounds" real,
"steals" real,
"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tallest_buildings" (
"rank" text,
"name" text,
"height_m_ft" text,
"floors" real,
"year" real
);
Question: What is the lowest number of floors recorded for buildings built by Dubai Marriott Har... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tallest_buildings" (
"rank" text,
"name" text,
"height_m_ft" text,
"floors" real,
"year" real
);
Question: What is the name of the building housing more than 101 floors, that was built after 20... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which team played against the away team ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"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 on 4 july 1981, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When did essendon play away?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"film_or_series" text,
"result" text
);
Question: Which category won the Sundance Film Festival award in 1998?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"film_or_series" text,
"result" text
);
Question: Which award category was the film series The Wire nominated for after 200... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"film_or_series" text,
"result" text
);
Question: What was the result for the nominee for Outstanding Supporting Actress in... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When the home team scored 11.13 (79), wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When st kilda played as the away team, wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"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 total on the day the h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: On what date did Fitzroy play as the home... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What date did the home team score 12.12 (... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How many points did the away team score i... |
<|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 sum of crowds that saw hawth... |
<|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 away side scores 10.17 (77)?
<|assi... |
<|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: Who is the home side when the away side ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010" (
"block_a" text,
"antonio_thomas" text,
"hikaru_sato" text,
"hiroshi_yamato" text,
"kaz_hayashi" text,
"minoru" text,
"super_crazy" text
);
Question: Name the antonio thomas for Hika... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010" (
"block_a" text,
"antonio_thomas" text,
"hikaru_sato" text,
"hiroshi_yamato" text,
"kaz_hayashi" text,
"minoru" text,
"super_crazy" text
);
Question: Tell me the block A for antonio ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010" (
"block_a" text,
"antonio_thomas" text,
"hikaru_sato" text,
"hiroshi_yamato" text,
"kaz_hayashi" text,
"minoru" text,
"super_crazy" text
);
Question: Name the minoru that has a hikar... |
<|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: Atlanta was a visitor on December 8, what was their record... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_statistics" (
"team" text,
"nation" text,
"from" text,
"matches" real,
"drawn" real,
"lost" real,
"win_pct" real
);
Question: Tell me the team which has matches of 13
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_statistics" (
"team" text,
"nation" text,
"from" text,
"matches" real,
"drawn" real,
"lost" real,
"win_pct" real
);
Question: Tell me the sum of win % for drawn being larger than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_statistics" (
"team" text,
"nation" text,
"from" text,
"matches" real,
"drawn" real,
"lost" real,
"win_pct" real
);
Question: Name the most win % for 13 drawn
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_statistics" (
"team" text,
"nation" text,
"from" text,
"matches" real,
"drawn" real,
"lost" real,
"win_pct" real
);
Question: Name the sum of drawn for 30 october 2006 and win % ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_statistics" (
"team" text,
"nation" text,
"from" text,
"matches" real,
"drawn" real,
"lost" real,
"win_pct" real
);
Question: Name the win % average from 22 april 2000 for drawn ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_statistics" (
"team" text,
"nation" text,
"from" text,
"matches" real,
"drawn" real,
"lost" real,
"win_pct" real
);
Question: Name the average lost for matches of 6
<|assistant|>... |
<|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 was the time recorded for grid 18?
<|assistant|>
SELECT "time_retired" FROM "race" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "disc_two" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"song_title" text,
"time" text
);
Question: What catalogue has a track less than 16 and 2/3/56 recorded with ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "disc_two" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"song_title" text,
"time" text
);
Question: What is the highest track for the song Rip it Up?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "disc_two" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"song_title" text,
"time" text
);
Question: What is the sum of every track with a catalogue of EPA 4054 with ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "disc_two" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"song_title" text,
"time" text
);
Question: What catalogue has a length of 2:10?
<|assistant|>
SELECT "catalo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "disc_two" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"song_title" text,
"time" text
);
Question: When was the release date of a track greater than 4, 1/12/57 reco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "disc_two" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"song_title" text,
"time" text
);
Question: When was the cataglogue EPA 4054 released with a 1/12/57 recorded... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2002_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: Tell me the school with a height of 6-9
<|assistant|>
SELECT "sch... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2002_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: Which school did the player have a height of 6-4?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2002_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: Tell me the college that paul davis went to
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2002_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: Tell me the school that jason fraser went to
<|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,
"kickoff_time" text,
"attendance" text
);
Question: What is the result of the game with 68,436 attending?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1988_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: What is the NBA Draft status of the person who went to college at... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1988_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: What is Player Kenny Williams' Height?
<|assistant|>
SELECT "heig... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1988_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: What School did Player Billy Owens attend?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1988_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: What School did Player Alonzo Mourning attend?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many bronze's on average for nations with over 1 total, less than 2 golds,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many silvers on average for nations with less than 3 total, ranked 6, and ... |
<|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 date of the Cubs game when the Cubs had a record of 1-0?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Who did the Cubs play when they had a record of 4-4?
<|assistant|>
SELECT "o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aor_radio_stations" (
"call_letters" text,
"market" text,
"frequency" text,
"aor_years" text,
"current_format" text
);
Question: What is the frequency of WMAD?
<|assistant|>
SELECT "frequency" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polling" (
"party" text,
"results_2004" text,
"ifop_11_12_08" text,
"ifop_1_9_09" text,
"ipsos_3_14_09" text,
"csa_4_16_09" text,
"opinion_way_4_17_09" text,
"ifop_4_24_09" text,
"ipsos_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polling" (
"party" text,
"results_2004" text,
"ifop_11_12_08" text,
"ifop_1_9_09" text,
"ipsos_3_14_09" text,
"csa_4_16_09" text,
"opinion_way_4_17_09" text,
"ifop_4_24_09" text,
"ipsos_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polling" (
"party" text,
"results_2004" text,
"ifop_11_12_08" text,
"ifop_1_9_09" text,
"ipsos_3_14_09" text,
"csa_4_16_09" text,
"opinion_way_4_17_09" text,
"ifop_4_24_09" text,
"ipsos_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polling" (
"party" text,
"results_2004" text,
"ifop_11_12_08" text,
"ifop_1_9_09" text,
"ipsos_3_14_09" text,
"csa_4_16_09" text,
"opinion_way_4_17_09" text,
"ifop_4_24_09" text,
"ipsos_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polling" (
"party" text,
"results_2004" text,
"ifop_11_12_08" text,
"ifop_1_9_09" text,
"ipsos_3_14_09" text,
"csa_4_16_09" text,
"opinion_way_4_17_09" text,
"ifop_4_24_09" text,
"ipsos_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polling" (
"party" text,
"results_2004" text,
"ifop_11_12_08" text,
"ifop_1_9_09" text,
"ipsos_3_14_09" text,
"csa_4_16_09" text,
"opinion_way_4_17_09" text,
"ifop_4_24_09" text,
"ipsos_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"record" text
);
Question: What was the decision when Tampa Bay was the visitor?
<|assistant|>
SELECT "dec... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"record" text
);
Question: Which visitor visited on February 21?
<|assistant|>
SELECT "visitor" FROM "febr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
);
Question: Which team has an away score of 9.10 (64)?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
);
Question: What date is the Victoria Park venue?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
);
Question: What Home team has an away score of 6.6 (42)?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
);
Question: What home team has a score of 5.8 (38)?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
);
Question: What is the away team score of a Melbourne team that has ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
);
Question: What Away team is from Fitzroy?
<|assistant|>
SELECT "awa... |
<|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,
"attendance" real,
"record" text
);
Question: Who was the home team that played the Lakers?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "democrats" (
"candidate" text,
"total_receipts" real,
"loans_received" real,
"receipts_w_o_loans" real,
"money_spent" real,
"cash_on_hand" real,
"total_debt" text,
"cash_on_hand_minus_debt... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Whi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Whi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Whi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which home team score has an Away team o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the highest crowd for Home team ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which crowd has an Away team score of 16... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "new_zealand_track_field_championships" (
"year" real,
"place" text,
"event" text,
"performance" text,
"age_years" real
);
Question: What is the year when the performance is 60.73m and the age (... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "new_zealand_track_field_championships" (
"year" real,
"place" text,
"event" text,
"performance" text,
"age_years" real
);
Question: What is the highest age (years) that the 1st place had a perf... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "new_zealand_track_field_championships" (
"year" real,
"place" text,
"event" text,
"performance" text,
"age_years" real
);
Question: What is the place when the performance is 60.73m?
<|assistant... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.