text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What was the average date with a record of 30-31-9 in a game over 70?
<|assistant|>
SELECT AVG("date") FROM "schedule_and_results" WHERE "record"='30-31-9' AND "game">70;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What is the latest date at Los Angeles with a game less than 62?
<|assistant|>
SELECT MAX("date") FROM "schedule_and_results" WHERE "location_attendance"='los angeles' AND "game"<62;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What is the latest date for a game over 69 with a St. Louis Blues opponent?
<|assistant|>
SELECT MAX("date") FROM "schedule_and_results" WHERE "game">69 AND "opponent"='st. louis blues';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What is the highest game with Oakland Seals opponent and a record of 27-30-6 on a date more than 7?
<|assistant|>
SELECT MAX("game") FROM "schedule_and_results" WHERE "opponent"='oakland seals' AND "record"='27-30-6' AND "date">7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
Question: What is the total attendance for the date of october 5?
<|assistant|>
SELECT SUM("attendance") FROM "regular_season" WHERE "date"='october 5';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
Question: What record has September 21 as the date?
<|assistant|>
SELECT "record" FROM "regular_season" WHERE "date"='september 21';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "under_23_international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the score of the match on December 19, 2009?
<|assistant|>
SELECT "score" FROM "under_23_international_goals" WHERE "date"='december 19, 2009';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What's the highest game against the New York Rangers with more than 55 points?
<|assistant|>
SELECT MAX("game") FROM "regular_season" WHERE "opponent"='new york rangers' AND "points">55;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What's the record for a game past 44 against the Dallas Stars with more than 54 points?
<|assistant|>
SELECT "record" FROM "regular_season" WHERE "points">54 AND "game">44 AND "opponent"='dallas stars';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "big_five_it_services_company" (
"firm" text,
"revenues" text,
"employees" real,
"fiscal_year" real,
"headquarters" text
);
Question: What is the latest Fiscal Year with Revenues of $4.3 billion, and more than 85,335 employees?
<|assistant|>
SELECT MAX("fiscal_year") FROM "big_five_it_services_company" WHERE "revenues"='$4.3 billion' AND "employees">'85,335';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "big_five_it_services_company" (
"firm" text,
"revenues" text,
"employees" real,
"fiscal_year" real,
"headquarters" text
);
Question: What is the average Fiscal Year of the firm Headquartered in noida, with less than 85,335 employees?
<|assistant|>
SELECT AVG("fiscal_year") FROM "big_five_it_services_company" WHERE "headquarters"='noida' AND "employees"<'85,335';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"machine" text,
"points" real,
"wins" real
);
Question: What are the Points after 1991?
<|assistant|>
SELECT COUNT("points") FROM "grand_prix_career_statistics" WHERE "year">1991;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"machine" text,
"points" real,
"wins" real
);
Question: What Class has 36 Points?
<|assistant|>
SELECT "class" FROM "grand_prix_career_statistics" WHERE "points"=36;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"machine" text,
"points" real,
"wins" real
);
Question: What is the Class after 1986?
<|assistant|>
SELECT "class" FROM "grand_prix_career_statistics" WHERE "year">1986;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
Question: How many attendances had the Detroit Lions as opponents?
<|assistant|>
SELECT SUM("attendance") FROM "schedule" WHERE "opponent"='detroit lions';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: Who was on the men's doubles in 2010?
<|assistant|>
SELECT "men_s_doubles" FROM "previous_winners" WHERE "year"=2010;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: Which women was on the mixed doubles of tontowi ahmad lilyana natsir in 2011?
<|assistant|>
SELECT "women_s_singles" FROM "previous_winners" WHERE "mixed_doubles"='tontowi ahmad lilyana natsir' AND "year"=2011;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_kayak" (
"distance" text,
"event" text,
"record" text,
"nationality" text,
"year" real,
"location" text
);
Question: Which nationality's distance was 500m before 2012, when the record was 1:37.071s?
<|assistant|>
SELECT "nationality" FROM "women_kayak" WHERE "distance"='500m' AND "year"<2012 AND "record"='1:37.071s';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_kayak" (
"distance" text,
"event" text,
"record" text,
"nationality" text,
"year" real,
"location" text
);
Question: Which location's year was 2001 when the record was 3:52.983s?
<|assistant|>
SELECT "location" FROM "women_kayak" WHERE "year"=2001 AND "record"='3:52.983s';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_kayak" (
"distance" text,
"event" text,
"record" text,
"nationality" text,
"year" real,
"location" text
);
Question: Which nationality's distance was 200m and had a year more recent than 1994 when the record was 33.778s?
<|assistant|>
SELECT "nationality" FROM "women_kayak" WHERE "distance"='200m' AND "year">1994 AND "record"='33.778s';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many Total medals for the team with a Rank of 8, 1 Bronze and more than 1 Silver?
<|assistant|>
SELECT MIN("total") FROM "medal_table" WHERE "bronze"=1 AND "rank"='8' AND "silver">1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many Gold does the Nation in Rank 12 with less than 2 Total medals have?
<|assistant|>
SELECT MAX("gold") FROM "medal_table" WHERE "rank"='12' AND "total"<2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_six" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Which NHL team got pick 89?
<|assistant|>
SELECT "nhl_team" FROM "round_six" WHERE "pick_num"='89';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_six" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Who plays goaltender for the Vancouver Canucks?
<|assistant|>
SELECT "player" FROM "round_six" WHERE "position"='goaltender' AND "nhl_team"='vancouver canucks';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_final_statistics" (
"rank" real,
"airport" text,
"location" text,
"code_iata" text,
"total_cargo_metric_tonnes" text,
"2003_rank" text,
"pct_change" text
);
Question: What is the % Change at London Heathrow airport?
<|assistant|>
SELECT "pct_change" FROM "2004_final_statistics" WHERE "airport"='london heathrow airport';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_final_statistics" (
"rank" real,
"airport" text,
"location" text,
"code_iata" text,
"total_cargo_metric_tonnes" text,
"2003_rank" text,
"pct_change" text
);
Question: What 2003 rank does the airport IATA code SIN have?
<|assistant|>
SELECT "2003_rank" FROM "2004_final_statistics" WHERE "code_iata"='sin';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_final_statistics" (
"rank" real,
"airport" text,
"location" text,
"code_iata" text,
"total_cargo_metric_tonnes" text,
"2003_rank" text,
"pct_change" text
);
Question: Which airport has an IATA code of AMS?
<|assistant|>
SELECT "airport" FROM "2004_final_statistics" WHERE "code_iata"='ams';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_final_statistics" (
"rank" real,
"airport" text,
"location" text,
"code_iata" text,
"total_cargo_metric_tonnes" text,
"2003_rank" text,
"pct_change" text
);
Question: What is the IATA code of the airport that has a Total Cargo of 1,838,894 Metric Tonnes?
<|assistant|>
SELECT "code_iata" FROM "2004_final_statistics" WHERE "total_cargo_metric_tonnes"='1,838,894';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_final_statistics" (
"rank" real,
"airport" text,
"location" text,
"code_iata" text,
"total_cargo_metric_tonnes" text,
"2003_rank" text,
"pct_change" text
);
Question: What is the 2003 rank for Los Angeles International airport?
<|assistant|>
SELECT "2003_rank" FROM "2004_final_statistics" WHERE "airport"='los angeles international airport';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_final_statistics" (
"rank" real,
"airport" text,
"location" text,
"code_iata" text,
"total_cargo_metric_tonnes" text,
"2003_rank" text,
"pct_change" text
);
Question: What % Change is listed against the airport with a rank less than 8 and a 2003 rank of 6?
<|assistant|>
SELECT "pct_change" FROM "2004_final_statistics" WHERE "rank"<8 AND "2003_rank"='6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text
);
Question: What district is Wyatt Aiken in?
<|assistant|>
SELECT "district" FROM "south_carolina" WHERE "incumbent"='wyatt aiken';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Silver larger than 0, and a Total smaller than 3, and a Nation of bulgaria, and a Bronze smaller than 0 had what sum of gold?
<|assistant|>
SELECT SUM("gold") FROM "medal_table" WHERE "silver">0 AND "total"<3 AND "nation"='bulgaria' AND "bronze"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Nation of total has what sum of gold?
<|assistant|>
SELECT SUM("gold") FROM "medal_table" WHERE "nation"='total';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Total of 3, and a Gold larger than 0, and a Nation of belarus, and a Silver larger than 2 has what sum of bronze?
<|assistant|>
SELECT SUM("bronze") FROM "medal_table" WHERE "total"=3 AND "gold">0 AND "nation"='belarus' AND "silver">2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Bronze of 22 has what average silver?
<|assistant|>
SELECT AVG("silver") FROM "medal_table" WHERE "bronze"=22;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_table" (
"position" real,
"club_city_town" text,
"games_played" real,
"w_l_d" text,
"goals_for_against" text,
"points" real
);
Question: Which position had 5 games played and a record of 1-2-2?
<|assistant|>
SELECT "position" FROM "league_table" WHERE "games_played"=5 AND "w_l_d"='1-2-2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "history_of_leaders" (
"name" text,
"term_start" real,
"term_end" text,
"date_of_birth" text,
"date_of_death" text
);
Question: What was the name of the leader whose term ended in 2013?
<|assistant|>
SELECT "name" FROM "history_of_leaders" WHERE "term_end"='2013';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "history_of_leaders" (
"name" text,
"term_start" real,
"term_end" text,
"date_of_birth" text,
"date_of_death" text
);
Question: When was the start of the leader's term who was born on January 8, 1859 and whose term ended in 1919?
<|assistant|>
SELECT "term_start" FROM "history_of_leaders" WHERE "term_end"='1919' AND "date_of_birth"='january 8, 1859';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "history_of_leaders" (
"name" text,
"term_start" real,
"term_end" text,
"date_of_birth" text,
"date_of_death" text
);
Question: Which leader born on December 17, 1874 started their term before 1984?
<|assistant|>
SELECT "name" FROM "history_of_leaders" WHERE "term_start"<1984 AND "date_of_birth"='december 17, 1874';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_4_2" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: What date shows the Outcome of winner against nikola fraňková carmen klaschka?
<|assistant|>
SELECT "date" FROM "doubles_4_2" WHERE "outcome"='winner' AND "opponents_in_the_final"='nikola fraňková carmen klaschka';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_4_2" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: What is the Outcome of the jounieh tournament?
<|assistant|>
SELECT "outcome" FROM "doubles_4_2" WHERE "tournament"='jounieh';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_4_2" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: What date was the score of 6–3 6–4?
<|assistant|>
SELECT "date" FROM "doubles_4_2" WHERE "score"='6–3 6–4';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "friday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text,
"10_30" text
);
Question: What is the 9:00 episode that will be shown on the station that will show 20/20 at 10:00?
<|assistant|>
SELECT "9_00" FROM "friday" WHERE "10_00"='20/20';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "friday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text,
"10_30" text
);
Question: What is the 9:00 show that will be aired on the station that airs Dawson's Creek at 8:00?
<|assistant|>
SELECT "9_00" FROM "friday" WHERE "8_00"='dawson''s creek';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "friday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text,
"10_30" text
);
Question: What is the 9:30 program airing on the station that airs The Red Green Show at 8:30?
<|assistant|>
SELECT "9_30" FROM "friday" WHERE "8_30"='the red green show';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "friday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text,
"10_30" text
);
Question: What is the 8:30 program that airs on the station that airs various programs at 7:30?
<|assistant|>
SELECT "8_30" FROM "friday" WHERE "7_30"='various programs';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "friday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text,
"10_30" text
);
Question: What is the 9:30 program that airs on the station that airs Dawson's Creek at 8:30?
<|assistant|>
SELECT "9_30" FROM "friday" WHERE "8_30"='dawson''s creek';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
Question: when indiana pacers were the opponent what was the date?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "opponent"='indiana pacers';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_2008_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
);
Question: tries against is 55, what is the try bonus?
<|assistant|>
SELECT "try_bonus" FROM "2007_2008_table" WHERE "tries_against"='55';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_2008_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
);
Question: tries against is 29, what is the points against?
<|assistant|>
SELECT "points_against" FROM "2007_2008_table" WHERE "tries_against"='29';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_2008_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
);
Question: tries against correct as of 2007-10-15 has what tries for?
<|assistant|>
SELECT "tries_for" FROM "2007_2008_table" WHERE "tries_against"='correct as of 2007-10-15';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_2008_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
);
Question: tries against correct as of 2007-10-15 has what tries for?
<|assistant|>
SELECT "tries_for" FROM "2007_2008_table" WHERE "tries_against"='correct as of 2007-10-15';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_2008_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
);
Question: tries against is 88, played is 22, what is the lost?
<|assistant|>
SELECT "lost" FROM "2007_2008_table" WHERE "played"='22' AND "tries_against"='88';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "taijiquan" (
"year" real,
"location" text,
"gold" text,
"silver" text,
"bronze" text
);
Question: Who won silver in the year before 2010, the year Chan Ming Shu won gold?
<|assistant|>
SELECT "silver" FROM "taijiquan" WHERE "year"<2010 AND "gold"='chan ming shu';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "taijiquan" (
"year" real,
"location" text,
"gold" text,
"silver" text,
"bronze" text
);
Question: What is the location for the year under 2010 and the year Hei Zhi Hong won silver?
<|assistant|>
SELECT "location" FROM "taijiquan" WHERE "year"<2010 AND "silver"='hei zhi hong';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "taijiquan" (
"year" real,
"location" text,
"gold" text,
"silver" text,
"bronze" text
);
Question: Which location had a year over 2006?
<|assistant|>
SELECT "location" FROM "taijiquan" WHERE "year">2006;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pre_season_friendles" (
"date" text,
"opponents" text,
"venue" text,
"result" text,
"score_f_a" text
);
Question: Score F–A of 2–0, and a Opponents of walsall has what date?
<|assistant|>
SELECT "date" FROM "pre_season_friendles" WHERE "score_f_a"='2–0' AND "opponents"='walsall';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pre_season_friendles" (
"date" text,
"opponents" text,
"venue" text,
"result" text,
"score_f_a" text
);
Question: Score F–A of 3–0, and a Date of 31 july 2007 had what opponents?
<|assistant|>
SELECT "opponents" FROM "pre_season_friendles" WHERE "score_f_a"='3–0' AND "date"='31 july 2007';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pre_season_friendles" (
"date" text,
"opponents" text,
"venue" text,
"result" text,
"score_f_a" text
);
Question: Opponents of sheffield wednesday had what date?
<|assistant|>
SELECT "date" FROM "pre_season_friendles" WHERE "opponents"='sheffield wednesday';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pre_season_friendles" (
"date" text,
"opponents" text,
"venue" text,
"result" text,
"score_f_a" text
);
Question: Opponents of sheffield wednesday had what date?
<|assistant|>
SELECT "date" FROM "pre_season_friendles" WHERE "opponents"='sheffield wednesday';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pre_season_friendles" (
"date" text,
"opponents" text,
"venue" text,
"result" text,
"score_f_a" text
);
Question: Date of 4 august 2007 had what opponents?
<|assistant|>
SELECT "opponents" FROM "pre_season_friendles" WHERE "date"='4 august 2007';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: WHich Position has a Player of david laliberte?
<|assistant|>
SELECT "position" FROM "draft_picks" WHERE "player"='david laliberte';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: Which Position has a Player of gino pisellini?
<|assistant|>
SELECT "position" FROM "draft_picks" WHERE "player"='gino pisellini';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_20" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What is the winning score of standard register ping tournament, which has Kelly Robbins as the runner-up?
<|assistant|>
SELECT "winning_score" FROM "lpga_tour_20" WHERE "tournament"='standard register ping' AND "runner_s_up"='kelly robbins';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_20" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What is the winning score of the tournament on 16 May 1993?
<|assistant|>
SELECT "winning_score" FROM "lpga_tour_20" WHERE "date"='16 may 1993';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_20" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What is the margin of victory of the tournament on 5 Jun 1988?
<|assistant|>
SELECT "margin_of_victory" FROM "lpga_tour_20" WHERE "date"='5 jun 1988';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_20" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What is the winning scor of the tournament with Robin Walton as the runner-up?
<|assistant|>
SELECT "winning_score" FROM "lpga_tour_20" WHERE "runner_s_up"='robin walton';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team_league" text
);
Question: which NHL team has a College/Junior/Club Team (League) of shattuck-saint mary's school (midget major aaa)?
<|assistant|>
SELECT "nhl_team" FROM "draft_picks" WHERE "college_junior_club_team_league"='shattuck-saint mary''s school (midget major aaa)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team_league" text
);
Question: How many Rounds have a Nationality of canada, and a College/Junior/Club Team (League) of fort mcmurray oil barons (ajhl)?
<|assistant|>
SELECT COUNT("round") FROM "draft_picks" WHERE "nationality"='canada' AND "college_junior_club_team_league"='fort mcmurray oil barons (ajhl)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team_league" text
);
Question: Which Round has a NHL team of edmonton oilers and a Player of vyacheslav trukhno?
<|assistant|>
SELECT AVG("round") FROM "draft_picks" WHERE "nhl_team"='edmonton oilers' AND "player"='vyacheslav trukhno';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team_league" text
);
Question: Which Round has a Nationality of united states, and a College/Junior/Club Team (League) of breck school (ushs)?
<|assistant|>
SELECT MIN("round") FROM "draft_picks" WHERE "nationality"='united states' AND "college_junior_club_team_league"='breck school (ushs)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_pacific_hurricane_statistics" (
"storm_name" text,
"dates_active" text,
"max_1_min_wind_mph_km_h" text,
"min_press_mbar" text,
"damage_millions_usd" text,
"deaths" text
);
Question: What is the max 1-min wind mph when the minimum press is 997?
<|assistant|>
SELECT "max_1_min_wind_mph_km_h" FROM "2010_pacific_hurricane_statistics" WHERE "min_press_mbar"='997';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_pacific_hurricane_statistics" (
"storm_name" text,
"dates_active" text,
"max_1_min_wind_mph_km_h" text,
"min_press_mbar" text,
"damage_millions_usd" text,
"deaths" text
);
Question: How many deaths occurred during Darby?
<|assistant|>
SELECT "deaths" FROM "2010_pacific_hurricane_statistics" WHERE "storm_name"='darby';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "original_stations" (
"name_location" text,
"other_later_names" text,
"operation" text,
"distance_from_jaffa" text,
"elevation" text
);
Question: What is the distance from Jaffa of Jerusalem station?
<|assistant|>
SELECT "distance_from_jaffa" FROM "original_stations" WHERE "name_location"='jerusalem';<|endoftext|> |
<|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,
"record" text
);
Question: What visitor has February 11 as the date?
<|assistant|>
SELECT "visitor" FROM "february" WHERE "date"='february 11';<|endoftext|> |
<|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: Which venue is the friendly match in?
<|assistant|>
SELECT "venue" FROM "international_goals" WHERE "competition"='friendly match';<|endoftext|> |
<|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 is the result of the friendly match in Seoul?
<|assistant|>
SELECT "result" FROM "international_goals" WHERE "competition"='friendly match' AND "venue"='seoul';<|endoftext|> |
<|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 is the result of the 2007 AFC asian cup?
<|assistant|>
SELECT "result" FROM "international_goals" WHERE "competition"='2007 afc asian cup';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senior_pga_tour_wins_11" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Which Runner(s)-up has a Margin of victory of 1 stroke, and a Tournament of world seniors invitational?
<|assistant|>
SELECT "runner_s_up" FROM "senior_pga_tour_wins_11" WHERE "margin_of_victory"='1 stroke' AND "tournament"='world seniors invitational';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senior_pga_tour_wins_11" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Which Date has a Margin of victory of 4 strokes?
<|assistant|>
SELECT "date" FROM "senior_pga_tour_wins_11" WHERE "margin_of_victory"='4 strokes';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senior_pga_tour_wins_11" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Which Runner(s)-up has a Tournament of general foods pga seniors' championship?
<|assistant|>
SELECT "runner_s_up" FROM "senior_pga_tour_wins_11" WHERE "tournament"='general foods pga seniors'' championship';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senior_pga_tour_wins_11" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Which Tournament has a Margin of victory of 2 strokes, and a Winning score of −14 (68-66-68=202)?
<|assistant|>
SELECT "tournament" FROM "senior_pga_tour_wins_11" WHERE "margin_of_victory"='2 strokes' AND "winning_score"='−14 (68-66-68=202)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senior_pga_tour_wins_11" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Which Date has a Winning score of −9 (70-64-70=203)?
<|assistant|>
SELECT "date" FROM "senior_pga_tour_wins_11" WHERE "winning_score"='−9 (70-64-70=203)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What was the High points when date was February 11?
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "date"='february 11';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What was the team that has a High rebounds of popeye jones (14), and when the Record was 16-28?
<|assistant|>
SELECT "team" FROM "game_log" WHERE "high_rebounds"='popeye jones (14)' AND "record"='16-28';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What is the Location Attendance when the Date was February 27?
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "date"='february 27';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What is the score of the scores when Game had a Record of 17-29?
<|assistant|>
SELECT SUM("game") FROM "game_log" WHERE "record"='17-29';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "provincial_champions" (
"year" real,
"event" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Who has the lead on Lisa Weagle?
<|assistant|>
SELECT "skip" FROM "provincial_champions" WHERE "lead"='lisa weagle';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "provincial_champions" (
"year" real,
"event" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Which event shows Matt St. Louis in second and a skip of John Morris?
<|assistant|>
SELECT "event" FROM "provincial_champions" WHERE "skip"='john morris' AND "second"='matt st. louis';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"player" text,
"attempts" real,
"net_yards" real,
"yards_per_attempt" real,
"touchdowns" real
);
Question: What are the highest attempts that have net yards less than 631, and 2 for the touchdowns?
<|assistant|>
SELECT MAX("attempts") FROM "rushing" WHERE "net_yards"<631 AND "touchdowns"=2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"player" text,
"attempts" real,
"net_yards" real,
"yards_per_attempt" real,
"touchdowns" real
);
Question: What are the average net yards that have 9 as the touchdowns, 145 as the attempts, and yards per attempt greater than 4.8?
<|assistant|>
SELECT AVG("net_yards") FROM "rushing" WHERE "touchdowns"=9 AND "attempts"=145 AND "yards_per_attempt">4.8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"player" text,
"attempts" real,
"net_yards" real,
"yards_per_attempt" real,
"touchdowns" real
);
Question: How many yards per attempt have net yards greater than 631?
<|assistant|>
SELECT SUM("yards_per_attempt") FROM "rushing" WHERE "net_yards">631;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"player" text,
"attempts" real,
"net_yards" real,
"yards_per_attempt" real,
"touchdowns" real
);
Question: What are the highest touchdowns that have net yards greater than 631, with attempts less than 145?
<|assistant|>
SELECT MAX("touchdowns") FROM "rushing" WHERE "net_yards">631 AND "attempts"<145;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_standings" (
"season" real,
"overall" real,
"slalom" text,
"giant_slalom" real,
"super_g" text,
"downhill" text,
"combined" text
);
Question: What is the value for Slalom in seasons later than 1994 and overall value greater than 22?
<|assistant|>
SELECT "slalom" FROM "season_standings" WHERE "season">1994 AND "overall">22;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_standings" (
"season" real,
"overall" real,
"slalom" text,
"giant_slalom" real,
"super_g" text,
"downhill" text,
"combined" text
);
Question: How many seasons had a Super G of 2 and overall of 3?
<|assistant|>
SELECT COUNT("season") FROM "season_standings" WHERE "super_g"='2' AND "overall"=3;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_13_6_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Who was the Opponent in the Auckland, New Zealand Tournament?
<|assistant|>
SELECT "opponent" FROM "singles_13_6_7" WHERE "tournament"='auckland, new zealand';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_13_6_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: On what Date was Rafael Nadal the Opponent?
<|assistant|>
SELECT "date" FROM "singles_13_6_7" WHERE "opponent"='rafael nadal';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_13_6_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Who was the Opponent on a Hard (i) Surface?
<|assistant|>
SELECT "opponent" FROM "singles_13_6_7" WHERE "surface"='hard (i)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_13_6_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What was the Score at the Auckland, New Zealand Tournament?
<|assistant|>
SELECT "score" FROM "singles_13_6_7" WHERE "tournament"='auckland, new zealand';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_venues" (
"team" text,
"location" text,
"venue" text,
"capacity" real,
"position_in_1996" text
);
Question: What team plays in Dinamo, Brest?
<|assistant|>
SELECT "team" FROM "teams_and_venues" WHERE "venue"='dinamo, brest';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.