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 (d... |
<|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 V... |
<|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"... |
<|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_... |
<|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... |
<|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" FRO... |
<|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... |
<|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 conve... |
<|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?
<|ass... |
<|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 se... |
<|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 numbe... |
<|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 numbe... |
<|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 mccai... |
<|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 ... |
<|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... |
<|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... |
<|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... |
<|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 "ob... |
<|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?
<|assista... |
<|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 39... |
<|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 Mc... |
<|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
);
Qu... |
<|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
);
Qu... |
<|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'... |
<|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 H... |
<|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|... |
<|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 ... |
<|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 s... |
<|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 condi... |
<|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 s... |
<|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 s... |
<|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|>
SELEC... |
<|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?
<|... |
<|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 li... |
<|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|>... |
<|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|>... |
<|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 a... |
<|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) per... |
<|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 rev... |
<|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... |
<|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 ebi... |
<|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 di... |
<|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 ... |
<|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
);
Questio... |
<|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
);
Questio... |
<|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... |
<|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... |
<|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... |
<|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... |
<|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
)... |
<|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
)... |
<|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
)... |
<|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
)... |
<|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
);
Questi... |
<|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
);
Questi... |
<|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
);
Questi... |
<|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
);
Questi... |
<|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
);
Questi... |
<|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
);
Questi... |
<|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?
<|assi... |
<|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... |
<|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 t... |
<|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 to... |
<|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 t... |
<|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 ... |
<|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?
<|... |
<|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 sha... |
<|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 share... |
<|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 interi... |
<|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 p... |
<|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... |
<|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" W... |
<|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 ... |
<|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" W... |
<|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 "... |
<|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"... |
<|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 "positio... |
<|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?
<|assi... |
<|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?
... |
<|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?... |
<|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 ... |
<|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?
... |
<|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 4... |
<|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% und... |
<|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 u... |
<|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?
<|ass... |
<|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 t... |
<|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|>
SE... |
<|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|>
SELE... |
<|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 Yojo... |
<|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 ... |
<|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|>
SELE... |
<|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... |
<|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_cain... |
<|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("o... |
<|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 gen... |
<|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 distri... |
<|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 cad... |
<|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... |
<|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 se... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.