text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2006_07" (
"date" text,
"presenter" text,
"guest_1" text,
"guest_2" text,
"guest_3" text,
"guest_4" text
);
Question: How many dates are associated with a guest 4 being Jim Jeffries (debut)?
<|assistant|>
SELECT COUNT("date") FROM "season_2006_07" WHERE "guest_4"='Jim Jeffries (debut)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2006_07" (
"date" text,
"presenter" text,
"guest_1" text,
"guest_2" text,
"guest_3" text,
"guest_4" text
);
Question: What is the date of the episode in which the presenter is Johnny Vaughan?
<|assistant|>
SELECT "date" FROM "season_2006_07" WHERE "presenter"='Johnny Vaughan';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20466963_13" (
"date" text,
"presenter" text,
"guest_1" text,
"guest_2" text,
"guest_3" text,
"guest_4" text
);
Question: Name the guest 4 for 8 december
<|assistant|>
SELECT "guest_4" FROM "table1_20466963_13" WHERE "date"='8 December';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20466963_13" (
"date" text,
"presenter" text,
"guest_1" text,
"guest_2" text,
"guest_3" text,
"guest_4" text
);
Question: Name the guest 4 for steve lamacq
<|assistant|>
SELECT "guest_4" FROM "table1_20466963_13" WHERE "guest_2"='Steve Lamacq';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20466963_13" (
"date" text,
"presenter" text,
"guest_1" text,
"guest_2" text,
"guest_3" text,
"guest_4" text
);
Question: Name the guest 2 for colin murray 6 april
<|assistant|>
SELECT COUNT("guest_2") FROM "table1_20466963_13" WHERE "presenter"='Colin Murray' AND "date"='6 April';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20466963_13" (
"date" text,
"presenter" text,
"guest_1" text,
"guest_2" text,
"guest_3" text,
"guest_4" text
);
Question: Name the presenter 11 may
<|assistant|>
SELECT "presenter" FROM "table1_20466963_13" WHERE "date"='11 May';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20466963_13" (
"date" text,
"presenter" text,
"guest_1" text,
"guest_2" text,
"guest_3" text,
"guest_4" text
);
Question: Name the guest 3 for iyare igiehon
<|assistant|>
SELECT "guest_3" FROM "table1_20466963_13" WHERE "guest_2"='Iyare Igiehon';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "newport_rfc_record" (
"season" text,
"games" real,
"tries" real,
"conversions" real,
"penalties" real,
"drop_goals" real,
"total_points" real
);
Question: How many seasons featured 29 conversions?
<|assistant|>
SELECT COUNT("penalties") FROM "newport_rfc_record" WHERE "conversions"=29;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "newport_rfc_record" (
"season" text,
"games" real,
"tries" real,
"conversions" real,
"penalties" real,
"drop_goals" real,
"total_points" real
);
Question: Lowest number of drop goals?
<|assistant|>
SELECT MIN("drop_goals") FROM "newport_rfc_record";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "newport_rfc_record" (
"season" text,
"games" real,
"tries" real,
"conversions" real,
"penalties" real,
"drop_goals" real,
"total_points" real
);
Question: What is the point total for the season with 2 drop goals?
<|assistant|>
SELECT MIN("total_points") FROM "newport_rfc_record" WHERE "drop_goals"=2;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real,
"otherspct" text,
"othersnum" real,
"total" real
);
Question: Name the most obama number for mccain being 38.86%
<|assistant|>
SELECT MAX("obamanum") FROM "by_county" WHERE "mc_cainpct"='38.86%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real,
"otherspct" text,
"othersnum" real,
"total" real
);
Question: Name the most abama number for mccain being 29266
<|assistant|>
SELECT MAX("obamanum") FROM "by_county" WHERE "mc_cainnum"=29266;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real,
"otherspct" text,
"othersnum" real,
"total" real
);
Question: Name the county for mccain being 38.78%
<|assistant|>
SELECT "county" FROM "by_county" WHERE "mc_cainpct"='38.78%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county_city" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
Question: In how many counties di McCain win 41.62% of the vote?
<|assistant|>
SELECT COUNT("county") FROM "by_county_city" WHERE "mc_cainpct"='41.62%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county_city" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
Question: What percentage of the vote did McCain win in Waynesboro (city)?
<|assistant|>
SELECT "mc_cainpct" FROM "by_county_city" WHERE "county"='Waynesboro (city)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county_city" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
Question: What was Obama's percentage in those places where McCain's percentage was 55.46%?
<|assistant|>
SELECT "obamapct" FROM "by_county_city" WHERE "mc_cainpct"='55.46%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county_city" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
Question: What was Obama's percentage in the county of Alleghany?
<|assistant|>
SELECT "obamapct" FROM "by_county_city" WHERE "county"='Alleghany';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county_city" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
Question: What was Obama's percentage in the county of Surry?
<|assistant|>
SELECT "obamapct" FROM "by_county_city" WHERE "county"='Surry';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real,
"total" real
);
Question: How many percent of the votes in Debaca did McCain get?
<|assistant|>
SELECT "mc_cainpct" FROM "by_county" WHERE "county"='DeBaca';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real,
"total" real
);
Question: What percentage of the votes did Obama get in the county where 3909 people voted in total?
<|assistant|>
SELECT "obamapct" FROM "by_county" WHERE "total"=3909;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real,
"total" real
);
Question: What percentage of the votes did Obama get in the county where McCain got 3648 votes?
<|assistant|>
SELECT "obamapct" FROM "by_county" WHERE "mc_cainnum"=3648;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20540006_6" (
"date" text,
"time" text,
"big_east_team" text,
"sec_team" text,
"location" text,
"television" text,
"attendance" real,
"winner" text,
"challenge_leader" text
);
Question: Who was the winner when the SEC team LSU played?
<|assistant|>
SELECT "winner" FROM "table1_20540006_6" WHERE "sec_team"='LSU';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20540006_6" (
"date" text,
"time" text,
"big_east_team" text,
"sec_team" text,
"location" text,
"television" text,
"attendance" real,
"winner" text,
"challenge_leader" text
);
Question: What was the attendance for the game when the challenge leader was at Big East (4-2)?
<|assistant|>
SELECT MAX("attendance") FROM "table1_20540006_6" WHERE "challenge_leader"='Big East (4-2)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mlb_draft_history" (
"draft_year" real,
"player" text,
"summer_team" text,
"college" text,
"mlb_team" text,
"draft_round" text
);
Question: What suumer team was James Lomangino from St. John's on?
<|assistant|>
SELECT "summer_team" FROM "mlb_draft_history" WHERE "college"='St. John''s' AND "player"='James Lomangino';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mlb_draft_history" (
"draft_year" real,
"player" text,
"summer_team" text,
"college" text,
"mlb_team" text,
"draft_round" text
);
Question: In what draft round in 2012 did a player from Rio Hondo get drafted?
<|assistant|>
SELECT "draft_round" FROM "mlb_draft_history" WHERE "college"='Rio Hondo' AND "draft_year"=2012;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mlb_draft_history" (
"draft_year" real,
"player" text,
"summer_team" text,
"college" text,
"mlb_team" text,
"draft_round" text
);
Question: What college did Aaron Slegers attend?
<|assistant|>
SELECT "college" FROM "mlb_draft_history" WHERE "player"='Aaron Slegers';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: What are the statuses of the platelet counts for the conditions where the prothrombin time and partial thromboblastin time is unaffected?
<|assistant|>
SELECT "platelet_count" FROM "laboratory_findings_in_various_platelet_" WHERE "prothrombin_time"='Unaffected' AND "partial_thromboplastin_time"='Unaffected';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: What is the status of partial thromboplastin times for conditions where the platelet count is decreased?
<|assistant|>
SELECT "partial_thromboplastin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "platelet_count"='Decreased';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: In what conditions are both the platelet count and prothrombin time unaffected?
<|assistant|>
SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "platelet_count"='Unaffected' AND "prothrombin_time"='Unaffected';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: What is the status of bleeding time for thrombocytopenia?
<|assistant|>
SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Thrombocytopenia';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: What is the status of platelet counts for conditions where bleeding time is prolonged and partial thromboplastin time is unaffected?
<|assistant|>
SELECT "platelet_count" FROM "laboratory_findings_in_various_platelet_" WHERE "bleeding_time"='Prolonged' AND "partial_thromboplastin_time"='Unaffected';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_results" (
"player" text,
"starts" real,
"cuts_made" real,
"best_finish" text,
"money_list_rank" real,
"earnings" real
);
Question: Which players made exactly 8 cuts?
<|assistant|>
SELECT "player" FROM "2009_results" WHERE "cuts_made"=8;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_results" (
"player" text,
"starts" real,
"cuts_made" real,
"best_finish" text,
"money_list_rank" real,
"earnings" real
);
Question: What is the total number of entries for Leif Olson?
<|assistant|>
SELECT COUNT("starts") FROM "2009_results" WHERE "player"='Leif Olson';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_results" (
"player" text,
"starts" real,
"cuts_made" real,
"best_finish" text,
"money_list_rank" real,
"earnings" real
);
Question: What is the total number of players who had a money list rank of 96?
<|assistant|>
SELECT COUNT("best_finish") FROM "2009_results" WHERE "money_list_rank"=96;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stock_list" (
"original_no" real,
"lner_no_intermediate_no" text,
"br_no" real,
"name" text,
"rebuild_date" text,
"withdrawn" text
);
Question: what is the name for br no. 60501
<|assistant|>
SELECT "name" FROM "stock_list" WHERE "br_no"=60501;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stock_list" (
"original_no" real,
"lner_no_intermediate_no" text,
"br_no" real,
"name" text,
"rebuild_date" text,
"withdrawn" text
);
Question: what is the name for br no. 60501
<|assistant|>
SELECT "name" FROM "stock_list" WHERE "br_no"=60501;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polling" (
"poll_source" text,
"dates_administered" text,
"joe_miller_r" text,
"lisa_murkowski_r_write_in_candidate" text,
"scott_mc_adams_d" text
);
Question: When 23% scott mcadams (d) what are the dates administered?
<|assistant|>
SELECT "dates_administered" FROM "polling" WHERE "scott_mc_adams_d"='23%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polling" (
"poll_source" text,
"dates_administered" text,
"joe_miller_r" text,
"lisa_murkowski_r_write_in_candidate" text,
"scott_mc_adams_d" text
);
Question: When 30% is scott mcadams (d) percentage how many poll sources are there?
<|assistant|>
SELECT COUNT("poll_source") FROM "polling" WHERE "scott_mc_adams_d"='30%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "umicore_n_v_financial_results" (
"year_ended" real,
"revenue_million" real,
"earnings_before_interest_and_taxes_m" text,
"net_profit_m" text,
"earnings_per_share" text
);
Question: Name the revenue for eps being 1.19
<|assistant|>
SELECT MAX("revenue_million") FROM "umicore_n_v_financial_results" WHERE "earnings_per_share"='1.19';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "umicore_n_v_financial_results" (
"year_ended" real,
"revenue_million" real,
"earnings_before_interest_and_taxes_m" text,
"net_profit_m" text,
"earnings_per_share" text
);
Question: Name the net profit for eps beign 1.19
<|assistant|>
SELECT "net_profit_m" FROM "umicore_n_v_financial_results" WHERE "earnings_per_share"='1.19';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "umicore_n_v_financial_results" (
"year_ended" real,
"revenue_million" real,
"earnings_before_interest_and_taxes_m" text,
"net_profit_m" text,
"earnings_per_share" text
);
Question: Name the ebit for eps being 1.78
<|assistant|>
SELECT "earnings_before_interest_and_taxes_m" FROM "umicore_n_v_financial_results" WHERE "earnings_per_share"='1.78';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20613292_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: How many different production codes does the episode directed by Dominic Polcino have?
<|assistant|>
SELECT COUNT("production_code") FROM "table1_20613292_1" WHERE "directed_by"='Dominic Polcino';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20613292_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What's the production code of the episode written by Kirker Butler and directed by Dan Povenmire?
<|assistant|>
SELECT "production_code" FROM "table1_20613292_1" WHERE "written_by"='Kirker Butler' AND "directed_by"='Dan Povenmire';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1996_97_season_as_a_three_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"jockey" text,
"winner_2nd" text
);
Question: What was the weight in kg when the jockey was B. York?
<|assistant|>
SELECT "weight_kg" FROM "1996_97_season_as_a_three_year_old" WHERE "jockey"='B. York';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1996_97_season_as_a_three_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"jockey" text,
"winner_2nd" text
);
Question: What was the result of the race where the jockey was J. Marshall?
<|assistant|>
SELECT "result" FROM "1996_97_season_as_a_three_year_old" WHERE "jockey"='J. Marshall';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1998_99_season_as_a_five_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"jockey" text,
"winner_2nd" text
);
Question: Name the most weight
<|assistant|>
SELECT MAX("weight_kg") FROM "1998_99_season_as_a_five_year_old";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1998_99_season_as_a_five_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"jockey" text,
"winner_2nd" text
);
Question: Name the date for moonee valley
<|assistant|>
SELECT "date" FROM "1998_99_season_as_a_five_year_old" WHERE "venue"='Moonee Valley';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1997_98_season_as_a_four_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"jockey" text,
"winner_2nd" text
);
Question: What group was the Hollindale Stakes in?
<|assistant|>
SELECT "group" FROM "1997_98_season_as_a_four_year_old" WHERE "race"='Hollindale Stakes';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1997_98_season_as_a_four_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"jockey" text,
"winner_2nd" text
);
Question: What race has a distance of 1200 m?
<|assistant|>
SELECT "race" FROM "1997_98_season_as_a_four_year_old" WHERE "distance"='1200 m';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_results" (
"result" text,
"date" text,
"race" text,
"venue" text,
"distance" text,
"class" text,
"weight_kg" text,
"time" text,
"jockey" text,
"odds" text,
"winner_2nd" text
);
Question: What was the result for the time of 1-26.21?
<|assistant|>
SELECT "result" FROM "career_results" WHERE "time"='1-26.21';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_results" (
"result" text,
"date" text,
"race" text,
"venue" text,
"distance" text,
"class" text,
"weight_kg" text,
"time" text,
"jockey" text,
"odds" text,
"winner_2nd" text
);
Question: Who was the jockey in group 1 at the 1400m distance at randwick?
<|assistant|>
SELECT "jockey" FROM "career_results" WHERE "class"='Group 1' AND "venue"='Randwick' AND "distance"='1400m';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_results" (
"result" text,
"date" text,
"race" text,
"venue" text,
"distance" text,
"class" text,
"weight_kg" text,
"time" text,
"jockey" text,
"odds" text,
"winner_2nd" text
);
Question: What class was the 2nd - portillo?
<|assistant|>
SELECT "class" FROM "career_results" WHERE "winner_2nd"='2nd - Portillo';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_results" (
"result" text,
"date" text,
"race" text,
"venue" text,
"distance" text,
"class" text,
"weight_kg" text,
"time" text,
"jockey" text,
"odds" text,
"winner_2nd" text
);
Question: What time for the entrant weighing 54.4kg?
<|assistant|>
SELECT "time" FROM "career_results" WHERE "weight_kg"='54.4kg';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_osculating_selenocentric_orbi" (
"epoch_utc" text,
"periselene_km" text,
"aposelene_km" text,
"eccentricity" text,
"inclination_deg_to_moon_equator" text,
"period_h" text
);
Question: What is every entry for epoch if periselene is 5,454.925?
<|assistant|>
SELECT "epoch_utc" FROM "summary_of_osculating_selenocentric_orbi" WHERE "periselene_km"='5,454.925';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_osculating_selenocentric_orbi" (
"epoch_utc" text,
"periselene_km" text,
"aposelene_km" text,
"eccentricity" text,
"inclination_deg_to_moon_equator" text,
"period_h" text
);
Question: What is every entry for epoch if periselene is 2,291.250?
<|assistant|>
SELECT "epoch_utc" FROM "summary_of_osculating_selenocentric_orbi" WHERE "periselene_km"='2,291.250';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_osculating_selenocentric_orbi" (
"epoch_utc" text,
"periselene_km" text,
"aposelene_km" text,
"eccentricity" text,
"inclination_deg_to_moon_equator" text,
"period_h" text
);
Question: What is every value of period when eccentricity is 0.583085?
<|assistant|>
SELECT "period_h" FROM "summary_of_osculating_selenocentric_orbi" WHERE "eccentricity"='0.583085';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_osculating_selenocentric_orbi" (
"epoch_utc" text,
"periselene_km" text,
"aposelene_km" text,
"eccentricity" text,
"inclination_deg_to_moon_equator" text,
"period_h" text
);
Question: What is every value of epoch if inclination is 90.063603?
<|assistant|>
SELECT "epoch_utc" FROM "summary_of_osculating_selenocentric_orbi" WHERE "inclination_deg_to_moon_equator"='90.063603';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_osculating_selenocentric_orbi" (
"epoch_utc" text,
"periselene_km" text,
"aposelene_km" text,
"eccentricity" text,
"inclination_deg_to_moon_equator" text,
"period_h" text
);
Question: What is every value for periselene if period is 4.947432?
<|assistant|>
SELECT "periselene_km" FROM "summary_of_osculating_selenocentric_orbi" WHERE "period_h"='4.947432';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_osculating_selenocentric_orbi" (
"epoch_utc" text,
"periselene_km" text,
"aposelene_km" text,
"eccentricity" text,
"inclination_deg_to_moon_equator" text,
"period_h" text
);
Question: How many values of periselene when epoch is November 15, 2004, 17:47:12.1?
<|assistant|>
SELECT COUNT("periselene_km") FROM "summary_of_osculating_selenocentric_orbi" WHERE "epoch_utc"='November 15, 2004, 17:47:12.1';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bruins_points" real,
"opponents" real,
"record" text
);
Question: How many times did the Bruins play Tennessee?
<|assistant|>
SELECT COUNT("result") FROM "schedule" WHERE "opponent"='Tennessee';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "events" (
"tournament" text,
"also_currently_known_as" text,
"city_s" text,
"country" text,
"court_surface" text,
"tier_iv_in" text,
"years" real
);
Question: What is the current tournament name for the event in Tampa?
<|assistant|>
SELECT "also_currently_known_as" FROM "events" WHERE "tournament"='Tampa';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "events" (
"tournament" text,
"also_currently_known_as" text,
"city_s" text,
"country" text,
"court_surface" text,
"tier_iv_in" text,
"years" real
);
Question: What is the tier IV year for the tournament held in Tampa?
<|assistant|>
SELECT "tier_iv_in" FROM "events" WHERE "tournament"='Tampa';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "events" (
"tournament" text,
"also_currently_known_as" text,
"city_s" text,
"country" text,
"court_surface" text,
"tier_iv_in" text,
"years" real
);
Question: What is the most years that tournaments held in Rome have lasted?
<|assistant|>
SELECT MAX("years") FROM "events" WHERE "tournament"='Rome';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "events" (
"tournament" text,
"also_currently_known_as" text,
"city_s" text,
"country" text,
"court_surface" text,
"tier_iv_in" text,
"years" real
);
Question: What is the city location of the tournament currently known as the Medibank International Sydney?
<|assistant|>
SELECT "city_s" FROM "events" WHERE "also_currently_known_as"='Medibank International Sydney';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scania_ab_publ_principal_shareholders" (
"shareholder_name" text,
"a_shares" real,
"b_shares" real,
"pct_of_capital" text,
"pct_of_votes" text
);
Question: How many different shareholders have 2.39 % of capital?
<|assistant|>
SELECT COUNT("shareholder_name") FROM "scania_ab_publ_principal_shareholders" WHERE "pct_of_capital"='2.39';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scania_ab_publ_principal_shareholders" (
"shareholder_name" text,
"a_shares" real,
"b_shares" real,
"pct_of_capital" text,
"pct_of_votes" text
);
Question: What shareholders have 0 A shares?
<|assistant|>
SELECT "shareholder_name" FROM "scania_ab_publ_principal_shareholders" WHERE "a_shares"=0;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scania_ab_publ_principal_shareholders" (
"shareholder_name" text,
"a_shares" real,
"b_shares" real,
"pct_of_capital" text,
"pct_of_votes" text
);
Question: What percentage of votes does the shareholder with 78.19% of capital have?
<|assistant|>
SELECT "pct_of_votes" FROM "scania_ab_publ_principal_shareholders" WHERE "pct_of_capital"='78.19';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scania_ab_publ_principal_shareholders" (
"shareholder_name" text,
"a_shares" real,
"b_shares" real,
"pct_of_capital" text,
"pct_of_votes" text
);
Question: How many different numbers of B shares does Handelsbanken fonder have?
<|assistant|>
SELECT COUNT("b_shares") FROM "scania_ab_publ_principal_shareholders" WHERE "shareholder_name"='Handelsbanken fonder';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "convertible" (
"interior_roof" text,
"black_ua" real,
"red_e8" real,
"white_zr" real,
"green_sw" real,
"totals" real
);
Question: What's the green (SW) of the model with charcoal/white interior/roof?
<|assistant|>
SELECT MIN("green_sw") FROM "convertible" WHERE "interior_roof"='Charcoal/white';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "convertible" (
"interior_roof" text,
"black_ua" real,
"red_e8" real,
"white_zr" real,
"green_sw" real,
"totals" real
);
Question: How many different results for red (e8) does the model with parchment/saddle interior/roof have?
<|assistant|>
SELECT COUNT("red_e8") FROM "convertible" WHERE "interior_roof"='Parchment/saddle';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "convertible" (
"interior_roof" text,
"black_ua" real,
"red_e8" real,
"white_zr" real,
"green_sw" real,
"totals" real
);
Question: How many different total results are there for the model with parchment/black interior/roof?
<|assistant|>
SELECT COUNT("totals") FROM "convertible" WHERE "interior_roof"='Parchment/black';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cfl_draft" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Where did aaron wagner go to college
<|assistant|>
SELECT "college" FROM "cfl_draft" WHERE "player"='Aaron Wagner';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cfl_draft" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Where did the ol go to college?
<|assistant|>
SELECT "college" FROM "cfl_draft" WHERE "position"='OL';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cfl_draft" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Name the number for new mexico
<|assistant|>
SELECT MIN("pick_num") FROM "cfl_draft" WHERE "college"='New Mexico';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cfl_draft" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Name the number for db
<|assistant|>
SELECT COUNT("pick_num") FROM "cfl_draft" WHERE "position"='DB';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cfl_draft" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Name the player for ol
<|assistant|>
SELECT "player" FROM "cfl_draft" WHERE "position"='OL';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cfl_draft" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Name the number for dl
<|assistant|>
SELECT "pick_num" FROM "cfl_draft" WHERE "position"='DL';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition" (
"bse_code" text,
"company" text,
"city" text,
"gics_sector" text,
"free_float" text,
"index_weighting_pct" text
);
Question: Which companies have a free float of 0.2726?
<|assistant|>
SELECT "company" FROM "composition" WHERE "free_float"='0.2726';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition" (
"bse_code" text,
"company" text,
"city" text,
"gics_sector" text,
"free_float" text,
"index_weighting_pct" text
);
Question: What is every BSE code for a free float of 0.2726?
<|assistant|>
SELECT "bse_code" FROM "composition" WHERE "free_float"='0.2726';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition" (
"bse_code" text,
"company" text,
"city" text,
"gics_sector" text,
"free_float" text,
"index_weighting_pct" text
);
Question: What is every GICS sector for free float of 0.3180?
<|assistant|>
SELECT "gics_sector" FROM "composition" WHERE "free_float"='0.3180';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition" (
"bse_code" text,
"company" text,
"city" text,
"gics_sector" text,
"free_float" text,
"index_weighting_pct" text
);
Question: What is every company with an index weighting % of 1 and the city of Dimitrovgrad?
<|assistant|>
SELECT "company" FROM "composition" WHERE "index_weighting_pct"='1' AND "city"='Dimitrovgrad';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition" (
"bse_code" text,
"company" text,
"city" text,
"gics_sector" text,
"free_float" text,
"index_weighting_pct" text
);
Question: How many GICS sectors have a free float of 0.2391?
<|assistant|>
SELECT COUNT("gics_sector") FROM "composition" WHERE "free_float"='0.2391';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition" (
"bse_code" text,
"company" text,
"city" text,
"gics_sector" text,
"free_float" text,
"index_weighting_pct" text
);
Question: How many values of free float for the BSE code of 4EH?
<|assistant|>
SELECT COUNT("free_float") FROM "composition" WHERE "bse_code"='4EH';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polls" (
"date_of_opinion_poll" text,
"conductor" text,
"sample_size" real,
"for" text,
"against" text,
"undecided" text
);
Question: When was the poll that showed 54% for and 22% undecided conducted?
<|assistant|>
SELECT "date_of_opinion_poll" FROM "opinion_polls" WHERE "for"='54%' AND "undecided"='22%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polls" (
"date_of_opinion_poll" text,
"conductor" text,
"sample_size" real,
"for" text,
"against" text,
"undecided" text
);
Question: How many polls taken on different dates show an undecided percentage of 25%?
<|assistant|>
SELECT COUNT("date_of_opinion_poll") FROM "opinion_polls" WHERE "undecided"='25%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polls" (
"date_of_opinion_poll" text,
"conductor" text,
"sample_size" real,
"for" text,
"against" text,
"undecided" text
);
Question: When was Quantum Research's poll conducted?
<|assistant|>
SELECT "date_of_opinion_poll" FROM "opinion_polls" WHERE "conductor"='Quantum Research';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polls" (
"date_of_opinion_poll" text,
"conductor" text,
"sample_size" real,
"for" text,
"against" text,
"undecided" text
);
Question: Who conducted the poll with sample size of 2000 that shows 18% undecided?
<|assistant|>
SELECT "conductor" FROM "opinion_polls" WHERE "undecided"='18%' AND "sample_size"=2000;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_delegates" (
"country" text,
"contestant" text,
"age" real,
"height_cm" real,
"height_ft" text,
"hometown" text
);
Question: How tall is the contestant from Ecuador?
<|assistant|>
SELECT "height_ft" FROM "official_delegates" WHERE "country"='Ecuador';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_delegates" (
"country" text,
"contestant" text,
"age" real,
"height_cm" real,
"height_ft" text,
"hometown" text
);
Question: How tall is the contestant from Aruba?
<|assistant|>
SELECT "height_ft" FROM "official_delegates" WHERE "country"='Aruba';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_delegates" (
"country" text,
"contestant" text,
"age" real,
"height_cm" real,
"height_ft" text,
"hometown" text
);
Question: What country is the contestant from San Francisco de Yojoa from?
<|assistant|>
SELECT "country" FROM "official_delegates" WHERE "hometown"='San Francisco de Yojoa';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_delegates" (
"country" text,
"contestant" text,
"age" real,
"height_cm" real,
"height_ft" text,
"hometown" text
);
Question: How many different heights are there for the contestants from Warsaw?
<|assistant|>
SELECT COUNT("height_ft") FROM "official_delegates" WHERE "hometown"='Warsaw';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
Question: What is the total of countys where Obama is popular by 35.44%?
<|assistant|>
SELECT COUNT("county") FROM "by_county" WHERE "obamapct"='35.44%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
Question: What are McCain's Percent when Obama has 36.47%?
<|assistant|>
SELECT "mc_cainpct" FROM "by_county" WHERE "obamapct"='36.47%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
Question: What is McCains percent when Obamas is 39.13%
<|assistant|>
SELECT COUNT("mc_cainnum") FROM "by_county" WHERE "obamapct"='39.13%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
Question: What is the maximum Obama supporters in Wayne county?
<|assistant|>
SELECT MAX("obamanum") FROM "by_county" WHERE "county"='Wayne';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "barangays_districts" (
"barangay" text,
"district" text,
"population_may_1_2000" real,
"population_august_1_2007" real,
"population_may_1_2010" text
);
Question: Name th epopulation may for general terrero
<|assistant|>
SELECT "population_may_1_2000" FROM "barangays_districts" WHERE "barangay"='General Terrero';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "barangays_districts" (
"barangay" text,
"district" text,
"population_may_1_2000" real,
"population_august_1_2007" real,
"population_may_1_2010" text
);
Question: Name the total number of district for population may being 478
<|assistant|>
SELECT COUNT("district") FROM "barangays_districts" WHERE "population_may_1_2010"='478';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "barangays_districts" (
"barangay" text,
"district" text,
"population_may_1_2000" real,
"population_august_1_2007" real,
"population_may_1_2010" text
);
Question: Name the population may for cadalusan for population 1423
<|assistant|>
SELECT "population_may_1_2010" FROM "barangays_districts" WHERE "district"='CadaLuSan' AND "population_august_1_2007"=1423;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20704243_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: What is the season number for Series #23, the Runway Job?
<|assistant|>
SELECT "season_num" FROM "table1_20704243_3" WHERE "series_num"=23;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20704243_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: What series was directed by Mark Roskin?
<|assistant|>
SELECT MIN("series_num") FROM "table1_20704243_3" WHERE "directed_by"='Mark Roskin';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.