text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What was the value of 1st prize when the scor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What day was the score 200 (-16)?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" text
);
Question: Where was Outback Steakhouse Pro-AM held?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chhattisgarh_result" (
"state" text,
"date_of_polls" text,
"seats_a_cs" real,
"date_of_counting" text,
"incumbent" text,
"election_winner" text
);
Question: Which dates of polls occur in the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chhattisgarh_result" (
"state" text,
"date_of_polls" text,
"seats_a_cs" real,
"date_of_counting" text,
"incumbent" text,
"election_winner" text
);
Question: How many dates of polls occur in t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" real
);
Question: Ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" real
);
Question: if... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" real
);
Question: Ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" real
);
Question: If... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" real
);
Question: Ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_ratings" (
"season" real,
"num_of_episodes" real,
"timeslot" text,
"season_premiere" text,
"season_final" text,
"peak_audience" real,
"average_audience" real,
"average_nightly_rank"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_ratings" (
"season" real,
"num_of_episodes" real,
"timeslot" text,
"season_premiere" text,
"season_final" text,
"peak_audience" real,
"average_audience" real,
"average_nightly_rank"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scoring_format" (
"from" real,
"to" real,
"goal" real,
"round_1" text,
"round_2" text,
"round_3" text,
"round_4" text,
"round_5" text,
"round_6" text
);
Question: What are all the round... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scoring_format" (
"from" real,
"to" real,
"goal" real,
"round_1" text,
"round_2" text,
"round_3" text,
"round_4" text,
"round_5" text,
"round_6" text
);
Question: What are all the round... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scoring_format" (
"from" real,
"to" real,
"goal" real,
"round_1" text,
"round_2" text,
"round_3" text,
"round_4" text,
"round_5" text,
"round_6" text
);
Question: What is the maximum go... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"2000" text,
"january" text,
"february" text,
"march" text,
"april" text,
"may" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"2000" text,
"january" text,
"february" text,
"march" text,
"april" text,
"may" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"2000" text,
"january" text,
"february" text,
"march" text,
"april" text,
"may" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"2000" text,
"january" text,
"february" text,
"march" text,
"april" text,
"may" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"2000" text,
"january" text,
"february" text,
"march" text,
"april" text,
"may" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "apea_s_campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
Quest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "apea_s_campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
Quest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "apea_s_campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
Quest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "apea_s_campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
Quest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "apea_s_campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
Quest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15400878_1" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
Question: Name... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15400878_1" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
Question: Name... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15400878_1" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
Question: Name... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "peter_drummond_1911_1918" (
"class" text,
"wheels" real,
"date" text,
"builder" text,
"no_built" real,
"1919_nos" text,
"lms_class" text,
"lms_nos" text
);
Question: What is the LMS class... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "peter_drummond_1911_1918" (
"class" text,
"wheels" real,
"date" text,
"builder" text,
"no_built" real,
"1919_nos" text,
"lms_class" text,
"lms_nos" text
);
Question: What is the date of t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "peter_drummond_1911_1918" (
"class" text,
"wheels" real,
"date" text,
"builder" text,
"no_built" real,
"1919_nos" text,
"lms_class" text,
"lms_nos" text
);
Question: What is the class whe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "peter_drummond_1911_1918" (
"class" text,
"wheels" real,
"date" text,
"builder" text,
"no_built" real,
"1919_nos" text,
"lms_class" text,
"lms_nos" text
);
Question: What is the LMS numbe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "peter_drummond_1911_1918" (
"class" text,
"wheels" real,
"date" text,
"builder" text,
"no_built" real,
"1919_nos" text,
"lms_class" text,
"lms_nos" text
);
Question: How many figures are ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "peter_drummond_1911_1918" (
"class" text,
"wheels" real,
"date" text,
"builder" text,
"no_built" real,
"1919_nos" text,
"lms_class" text,
"lms_nos" text
);
Question: What is the builder o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_1_historical_storms_and_the_chi_19" (
"name" text,
"year" real,
"landfall" text,
"nhc_advisory_number" text,
"v_mph" real,
"r_miles" real,
"saffir_simpson_category" real,
"chi" text
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_1_historical_storms_and_the_chi_19" (
"name" text,
"year" real,
"landfall" text,
"nhc_advisory_number" text,
"v_mph" real,
"r_miles" real,
"saffir_simpson_category" real,
"chi" text
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_1_historical_storms_and_the_chi_19" (
"name" text,
"year" real,
"landfall" text,
"nhc_advisory_number" text,
"v_mph" real,
"r_miles" real,
"saffir_simpson_category" real,
"chi" text
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_1_historical_storms_and_the_chi_19" (
"name" text,
"year" real,
"landfall" text,
"nhc_advisory_number" text,
"v_mph" real,
"r_miles" real,
"saffir_simpson_category" real,
"chi" text
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_1_historical_storms_and_the_chi_19" (
"name" text,
"year" real,
"landfall" text,
"nhc_advisory_number" text,
"v_mph" real,
"r_miles" real,
"saffir_simpson_category" real,
"chi" text
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_1_historical_storms_and_the_chi_19" (
"name" text,
"year" real,
"landfall" text,
"nhc_advisory_number" text,
"v_mph" real,
"r_miles" real,
"saffir_simpson_category" real,
"chi" text
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15417439_1" (
"genus_species" text,
"common_name" text,
"accession_number" text,
"length" text,
"similarity" text,
"identity" text
);
Question: What kind of animal corresponds to the a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15417439_1" (
"genus_species" text,
"common_name" text,
"accession_number" text,
"length" text,
"similarity" text,
"identity" text
);
Question: How similar is the genus/species sus scr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15417439_1" (
"genus_species" text,
"common_name" text,
"accession_number" text,
"length" text,
"similarity" text,
"identity" text
);
Question: What identities do the genus/species ara... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15417439_1" (
"genus_species" text,
"common_name" text,
"accession_number" text,
"length" text,
"similarity" text,
"identity" text
);
Question: What's the animals name when the genus/s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15417439_1" (
"genus_species" text,
"common_name" text,
"accession_number" text,
"length" text,
"similarity" text,
"identity" text
);
Question: For the genus/species arabidopsis thalia... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15430813_1" (
"no_in_season" real,
"no_disc" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: How many original air dates were there for... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15430813_1" (
"no_in_season" real,
"no_disc" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: When did the episode titled "Prisoners" fi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_of_largest_rogue_trader_losses" (
"name" text,
"country" text,
"date_s" real,
"loss" text,
"institution" text,
"market_activity" text,
"sentence" text
);
Question: Which company was b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15431959_1" (
"no_in_season" real,
"no_disc" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: What was the original air date of Stargate... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15431959_1" (
"no_in_season" real,
"no_disc" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: How many seasons did Peter Deluise direct ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15431959_1" (
"no_in_season" real,
"no_disc" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: Which number episode of season 6 was the t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"first_district" text,
"second_district" text,
"third_district" text,
"fourth_district" text,
"fifth_district" text
);
Question: Name the fifth district for william womer
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"first_district" text,
"second_district" text,
"third_district" text,
"fourth_district" text,
"fifth_district" text
);
Question: Name the third district for christine young
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"first_district" text,
"second_district" text,
"third_district" text,
"fourth_district" text,
"fifth_district" text
);
Question: Name the fourth district for joan runnels
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"first_district" text,
"second_district" text,
"third_district" text,
"fourth_district" text,
"fifth_district" text
);
Question: Name the fourth district for beverly bodem
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"first_district" text,
"second_district" text,
"third_district" text,
"fourth_district" text,
"fifth_district" text
);
Question: Name the number for fifth district for richar... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"first_district" text,
"second_district" text,
"third_district" text,
"fourth_district" text,
"fifth_district" text
);
Question: Name the fifth district for steve rudoni
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"locale" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" text
);
Quest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"locale" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" text
);
Quest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"locale" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" text
);
Quest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" text,
"acquisition_via" text
);
Question: What was the school/club team whose season was in 2012 and were a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" text,
"acquisition_via" text
);
Question: Which school/club team has a player named Mark Sanford?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" text,
"acquisition_via" text
);
Question: How many school/club teams have a player named Manuel Luis Quezon... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" text,
"acquisition_via" text
);
Question: How many players are listed for the school/club team Washington? ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" text,
"acquisition_via" text
);
Question: How many players with a position are listed for the 2009 season? ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" real,
"acquisition_via" text
);
Question: Name the school/club for guard
<|assistant|>
SELECT "school_club_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" real,
"acquisition_via" text
);
Question: Name the position for judy-ann ramirez
<|assistant|>
SELECT "posi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"tries_for" text,
"tries_against"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"tries_for" text,
"tries_against"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"tries_for" text,
"tries_against"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"tries_for" text,
"tries_against"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"tries_for" text,
"tries_against"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"tries_for" text,
"tries_against"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "entries" (
"no" real,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text
);
Question: How many chassis used number 34?
<|assistant|>
SELECT COUNT("chassis") FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "entries" (
"no" real,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text
);
Question: Who was the constructor of car 22?
<|assistant|>
SELECT "constructor" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "entries" (
"no" real,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text
);
Question: How many cars used number 48?
<|assistant|>
SELECT COUNT("engine") FROM "en... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "entries" (
"no" real,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text
);
Question: Who drove car 44?
<|assistant|>
SELECT "driver" FROM "entries" WHERE "no"=4... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_doubles_finals_15_7_8" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Name the total number of years w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_doubles_finals_15_7_8" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Name the surfaace where outcome ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_doubles_finals_15_7_8" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Name the partner for mark woodfo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_doubles_finals_15_7_8" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Name the score for rick leach zi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_scores" (
"state" text,
"preliminary_average" text,
"interview" text,
"swimsuit" text,
"evening_gown" text,
"semifinal_average" text
);
Question: Name the swimsuit for arizona
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_f3_challenge" (
"pos" real,
"driver" text,
"qualifying" real,
"race_1" text,
"race_2" text,
"race_3" text,
"points" real
);
Question: Name the driver for race 2 7
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_f3_challenge" (
"pos" real,
"driver" text,
"qualifying" real,
"race_1" text,
"race_2" text,
"race_3" text,
"points" real
);
Question: Name the total number of qualifiying for race 3 be... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_f3_challenge" (
"pos" real,
"driver" text,
"qualifying" real,
"race_1" text,
"race_2" text,
"race_3" text,
"points" real
);
Question: Name the driver for race 2 2
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_f3_challenge" (
"pos" real,
"driver" text,
"qualifying" real,
"race_1" text,
"race_2" text,
"race_3" text,
"points" real
);
Question: Name the race 1 when race 3 is 8
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_f3_challenge" (
"pos" real,
"driver" text,
"qualifying" real,
"race_1" text,
"race_2" text,
"race_3" text,
"points" real
);
Question: Name the race 2 for james winslow
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_f3_challenge" (
"pos" real,
"driver" text,
"qualifying" real,
"race_1" text,
"race_2" text,
"race_3" text,
"points" real
);
Question: Name the total number of positions for race 1 bein... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "full_series_results" (
"rd" real,
"race" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: Did the race get reported whe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "full_series_results" (
"rd" real,
"race" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: Did the round 8 race get repo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "full_series_results" (
"rd" real,
"race" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: Which race was the winning te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "full_series_results" (
"rd" real,
"race" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: how many winners were in roun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "afternoon" (
"time" text,
"12_00_pm" text,
"01_00_pm" text,
"02_00_pm" text,
"03_00_pm" text,
"04_00_pm" text,
"05_00_pm" text,
"05_55_pm" text
);
Question: How many episodes air on Wedne... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "afternoon" (
"time" text,
"12_00_pm" text,
"01_00_pm" text,
"02_00_pm" text,
"03_00_pm" text,
"04_00_pm" text,
"05_00_pm" text,
"05_55_pm" text
);
Question: What are the names of the epis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "afternoon" (
"time" text,
"12_00_pm" text,
"01_00_pm" text,
"02_00_pm" text,
"03_00_pm" text,
"04_00_pm" text,
"05_00_pm" text,
"05_55_pm" text
);
Question: What is the name of the show t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "night" (
"time" text,
"06_00_pm" text,
"07_00_pm" text,
"08_00_pm" text,
"09_00_pm" text,
"10_00_pm" text,
"10_30_pm" text,
"11_00_pm" text
);
Question: Name the 10 pm for thursday
<|assi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.