text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"num" real,
"position" text,
"height" text,
"weight_lb" real,
"year" text,
"hometown" text,
"previous_school" text
);
Question: What was the previous school of the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"num" real,
"position" text,
"height" text,
"weight_lb" real,
"year" text,
"hometown" text,
"previous_school" text
);
Question: What was the previous school of #22?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24938621_2" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: What is the ti... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24938621_2" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: What is the ti... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league" (
"season" text,
"date" text,
"home_team" text,
"result" text,
"away_team" text,
"stadium" text
);
Question: Who as the home team for game on 5 october 2011?
<|assistant|>
SELECT "hom... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league" (
"season" text,
"date" text,
"home_team" text,
"result" text,
"away_team" text,
"stadium" text
);
Question: What was the stadium for the home team of shamrock rovers and result of 3–... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league" (
"season" text,
"date" text,
"home_team" text,
"result" text,
"away_team" text,
"stadium" text
);
Question: What was the away team when the result was 2–1 and home team was the bohem... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league" (
"season" text,
"date" text,
"home_team" text,
"result" text,
"away_team" text,
"stadium" text
);
Question: Who was the home team for the 2013 season and the result was 0–0?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league" (
"season" text,
"date" text,
"home_team" text,
"result" text,
"away_team" text,
"stadium" text
);
Question: What is the date for the game at the tallaght stadium and result was 0–1?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24951872_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
Question: What opponents pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24951872_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
Question: What was the maxim... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24938621_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24938621_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24938621_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24938621_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24938621_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "properties_of_foamed_concrete" (
"dry_density_kg_m3" real,
"7_day_compressive_strength_n_mm2" text,
"thermal_conductivity_w_m_k" text,
"modulus_of_elasticity_k_n_mm2" text,
"drying_shrinkage_pct... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24961421_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: What numbe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24961421_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: Who wrote ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24961421_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: When was "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24961421_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: How many e... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24961421_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: Who wrote ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24961421_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: What numbe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24989925_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
Question: What is the date o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24989925_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
Question: How many weeks tot... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24989925_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
Question: What was the team'... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pairs" (
"rank" real,
"ws_points" real,
"name" text,
"country" text,
"09_10_i_o_best" real,
"09_10_gp_jgp_best" real,
"09_10_gp_jgp_2nd" real,
"09_10_oi_best" real,
"09_10_oi_2nd" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pairs" (
"rank" real,
"ws_points" real,
"name" text,
"country" text,
"09_10_i_o_best" real,
"09_10_gp_jgp_best" real,
"09_10_gp_jgp_2nd" real,
"09_10_oi_best" real,
"09_10_oi_2nd" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men" (
"rank" real,
"ws_points" real,
"name" text,
"country" text,
"09_10_i_o_best" real,
"09_10_gp_jgp_best" real,
"09_10_gp_jgp_2nd" real,
"09_10_oi_best" real,
"09_10_oi_2nd" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ice_dancing" (
"rank" real,
"ws_points" real,
"name" text,
"country" text,
"09_10_i_o_best" real,
"09_10_gp_jgp_best" real,
"09_10_gp_jgp_2nd" real,
"09_10_oi_best" real,
"09_10_oi_2nd" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ice_dancing" (
"rank" real,
"ws_points" real,
"name" text,
"country" text,
"09_10_i_o_best" real,
"09_10_gp_jgp_best" real,
"09_10_gp_jgp_2nd" real,
"09_10_oi_best" real,
"09_10_oi_2nd" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ice_dancing" (
"rank" real,
"ws_points" real,
"name" text,
"country" text,
"09_10_i_o_best" real,
"09_10_gp_jgp_best" real,
"09_10_gp_jgp_2nd" real,
"09_10_oi_best" real,
"09_10_oi_2nd" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ice_dancing" (
"rank" real,
"ws_points" real,
"name" text,
"country" text,
"09_10_i_o_best" real,
"09_10_gp_jgp_best" real,
"09_10_gp_jgp_2nd" real,
"09_10_oi_best" real,
"09_10_oi_2nd" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_l" real,
"podiums" real,
"points" text,
"position" text
);
Question: How many ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_l" real,
"podiums" real,
"points" text,
"position" text
);
Question: How many ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_l" real,
"podiums" real,
"points" text,
"position" text
);
Question: In what s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_l" real,
"podiums" real,
"points" text,
"position" text
);
Question: what were... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25016824_2" (
"air_date" text,
"reward" text,
"immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
Question: What was the vote when the air date is 4 october 1997?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25016824_2" (
"air_date" text,
"reward" text,
"immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
Question: Who was eliminated when immunity went to kent (jürgen)?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25016824_2" (
"air_date" text,
"reward" text,
"immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
Question: Who was eliminated when the vote was 8-1?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25016824_2" (
"air_date" text,
"reward" text,
"immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
Question: How many entries are there for vote when the air date was 15 n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25016824_2" (
"air_date" text,
"reward" text,
"immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
Question: What was the reward when immunity went to martin and finish ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Name the position for christopher smith
<|assistant|>
SELECT "position" FROM "round_f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Name the college for nate binder
<|assistant|>
SELECT "college" FROM "round_four" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Name the least pick number for steven turner
<|assistant|>
SELECT MIN("pick_num") FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Name the cfl team for steven turner
<|assistant|>
SELECT "cfl_team" FROM "round_four"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25017530_6" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Name the cfl team for lb position
<|assistant|>
SELECT "cfl_team" FROM "table1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25017530_6" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Name the cfl team for saskatchewan
<|assistant|>
SELECT "cfl_team" FROM "table... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25017530_6" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Name the position for michael warner
<|assistant|>
SELECT "position" FROM "tab... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2_2000_2001" (
"episode_num" real,
"production_count" real,
"original_airdate" text,
"prod_code" text,
"title" text,
"viewing_figures_millions" text
);
Question: How many episodes were... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2_2000_2001" (
"episode_num" real,
"production_count" real,
"original_airdate" text,
"prod_code" text,
"title" text,
"viewing_figures_millions" text
);
Question: What are the original ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2_2000_2001" (
"episode_num" real,
"production_count" real,
"original_airdate" text,
"prod_code" text,
"title" text,
"viewing_figures_millions" text
);
Question: What are the original ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2_2000_2001" (
"episode_num" real,
"production_count" real,
"original_airdate" text,
"prod_code" text,
"title" text,
"viewing_figures_millions" text
);
Question: What are the original ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_generation_fd" (
"model" text,
"power" text,
"torque" text,
"gearbox" text,
"weight" text,
"seating" text,
"brakes" text,
"wheels" text,
"tyres" text
);
Question: What is the powe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_generation_fd" (
"model" text,
"power" text,
"torque" text,
"gearbox" text,
"weight" text,
"seating" text,
"brakes" text,
"wheels" text,
"tyres" text
);
Question: What kind of bra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_generation_fd" (
"model" text,
"power" text,
"torque" text,
"gearbox" text,
"weight" text,
"seating" text,
"brakes" text,
"wheels" text,
"tyres" text
);
Question: What brakes for ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_generation_fd" (
"model" text,
"power" text,
"torque" text,
"gearbox" text,
"weight" text,
"seating" text,
"brakes" text,
"wheels" text,
"tyres" text
);
Question: What is the powe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_generation_fd" (
"model" text,
"power" text,
"torque" text,
"gearbox" text,
"weight" text,
"seating" text,
"brakes" text,
"wheels" text,
"tyres" text
);
Question: What is the gear... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "alabama" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Name the first elected for alabama 3
<|assistant|>
SELECT COUNT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "alabama" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Name the party for spencer bachus
<|assistant|>
SELECT "party" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "alabama" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Name the district for mike rogers
<|assistant|>
SELECT "distric... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "alabama" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Name the district for spencer bachus
<|assistant|>
SELECT "dist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "minnesota" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: In what district was keith ellison the incumbent?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "am" (
"freq" real,
"call" text,
"city" text,
"owner" text,
"start" real,
"day_power_w" real,
"night_power" real,
"nickname" text,
"format" text,
"stereo" text
);
Question: List the ki... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "am" (
"freq" real,
"call" text,
"city" text,
"owner" text,
"start" real,
"day_power_w" real,
"night_power" real,
"nickname" text,
"format" text,
"stereo" text
);
Question: In which ye... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "am" (
"freq" real,
"call" text,
"city" text,
"owner" text,
"start" real,
"day_power_w" real,
"night_power" real,
"nickname" text,
"format" text,
"stereo" text
);
Question: In what yea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "am" (
"freq" real,
"call" text,
"city" text,
"owner" text,
"start" real,
"day_power_w" real,
"night_power" real,
"nickname" text,
"format" text,
"stereo" text
);
Question: Does the ci... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assembly_plants" (
"company" text,
"parent_company" text,
"parent_headquarters" text,
"plant" text,
"models_produced" text,
"production_latest_figures" text
);
Question: what is the company w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assembly_plants" (
"company" text,
"parent_company" text,
"parent_headquarters" text,
"plant" text,
"models_produced" text,
"production_latest_figures" text
);
Question: what is the name ofht... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assembly_plants" (
"company" text,
"parent_company" text,
"parent_headquarters" text,
"plant" text,
"models_produced" text,
"production_latest_figures" text
);
Question: what models are produ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assembly_plants" (
"company" text,
"parent_company" text,
"parent_headquarters" text,
"plant" text,
"models_produced" text,
"production_latest_figures" text
);
Question: how many models produ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assembly_plants" (
"company" text,
"parent_company" text,
"parent_headquarters" text,
"plant" text,
"models_produced" text,
"production_latest_figures" text
);
Question: what is the productio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "active_part_time_indy_car_series_teams" (
"team" text,
"num" real,
"primary_sponsor" text,
"driver_s" text,
"listed_owner_s" text,
"engine" text,
"chassis" text
);
Question: What kind of ch... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "active_part_time_indy_car_series_teams" (
"team" text,
"num" real,
"primary_sponsor" text,
"driver_s" text,
"listed_owner_s" text,
"engine" text,
"chassis" text
);
Question: What team owns ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "active_part_time_indy_car_series_teams" (
"team" text,
"num" real,
"primary_sponsor" text,
"driver_s" text,
"listed_owner_s" text,
"engine" text,
"chassis" text
);
Question: What chassis is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "active_part_time_indy_car_series_teams" (
"team" text,
"num" real,
"primary_sponsor" text,
"driver_s" text,
"listed_owner_s" text,
"engine" text,
"chassis" text
);
Question: Who drives the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Name the number of district for tom marino
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Name the district for 1994
<|assistant|>
SELECT "district"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Name the party for pennsylvania 10
<|assistant|>
SELECT "p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Name the result for glenn thompson
<|assistant|>
SELECT "r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Name the number of district for bill shuster
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_statistics" (
"name" text,
"nationality" text,
"position" text,
"boston_breakers_career" text,
"appearances" real,
"starts" real,
"minutes" real,
"goals" real,
"assists" real
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_net_enrollment_ratio_in_education" (
"region" text,
"preschool_0_5_years" text,
"primary_6_13_years" text,
"secondary_14_17_years" text,
"tertiary_18_24_years" text
);
Question: In what regi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_net_enrollment_ratio_in_education" (
"region" text,
"preschool_0_5_years" text,
"primary_6_13_years" text,
"secondary_14_17_years" text,
"tertiary_18_24_years" text
);
Question: What is the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_net_enrollment_ratio_in_education" (
"region" text,
"preschool_0_5_years" text,
"primary_6_13_years" text,
"secondary_14_17_years" text,
"tertiary_18_24_years" text
);
Question: What is the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_net_enrollment_ratio_in_education" (
"region" text,
"preschool_0_5_years" text,
"primary_6_13_years" text,
"secondary_14_17_years" text,
"tertiary_18_24_years" text
);
Question: What is the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_net_enrollment_ratio_in_education" (
"region" text,
"preschool_0_5_years" text,
"primary_6_13_years" text,
"secondary_14_17_years" text,
"tertiary_18_24_years" text
);
Question: What is the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_net_enrollment_ratio_in_education" (
"region" text,
"preschool_0_5_years" text,
"primary_6_13_years" text,
"secondary_14_17_years" text,
"tertiary_18_24_years" text
);
Question: What is the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_electorate" (
"region" text,
"enrolled_men" real,
"enrolled_women" real,
"enrolled_total" real,
"men_of_voting_age" real,
"women_of_voting_age" real,
"voting_age_population" real,
"e_va... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_electorate" (
"region" text,
"enrolled_men" real,
"enrolled_women" real,
"enrolled_total" real,
"men_of_voting_age" real,
"women_of_voting_age" real,
"voting_age_population" real,
"e_va... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_prison_inmates_and_incarceration_rate" (
"region" text,
"prison_inmates_men" real,
"prison_inmates_women" real,
"prison_inmates_total" real,
"incarceration_rate_male" real,
"incarceration_r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_prison_inmates_and_incarceration_rate" (
"region" text,
"prison_inmates_men" real,
"prison_inmates_women" real,
"prison_inmates_total" real,
"incarceration_rate_male" real,
"incarceration_r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_prison_inmates_and_incarceration_rate" (
"region" text,
"prison_inmates_men" real,
"prison_inmates_women" real,
"prison_inmates_total" real,
"incarceration_rate_male" real,
"incarceration_r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_ownership_of_goods_and_services" (
"region" text,
"vehicle" text,
"automatic_washing_machine" text,
"refrigerator" text,
"water_heater" text,
"fixed_telephone_line" text,
"mobile_phone" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_ownership_of_goods_and_services" (
"region" text,
"vehicle" text,
"automatic_washing_machine" text,
"refrigerator" text,
"water_heater" text,
"fixed_telephone_line" text,
"mobile_phone" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_ownership_of_goods_and_services" (
"region" text,
"vehicle" text,
"automatic_washing_machine" text,
"refrigerator" text,
"water_heater" text,
"fixed_telephone_line" text,
"mobile_phone" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_access_to_electricity" (
"region" text,
"public_network" text,
"own_community_generator" text,
"solar_panel" text,
"other_source" text,
"none" text
);
Question: What region has 0.3% solar ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_access_to_electricity" (
"region" text,
"public_network" text,
"own_community_generator" text,
"solar_panel" text,
"other_source" text,
"none" text
);
Question: What is atacama's percentag... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_access_to_electricity" (
"region" text,
"public_network" text,
"own_community_generator" text,
"solar_panel" text,
"other_source" text,
"none" text
);
Question: Which region has 0.6% none?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_access_to_electricity" (
"region" text,
"public_network" text,
"own_community_generator" text,
"solar_panel" text,
"other_source" text,
"none" text
);
Question: What is the percentage of p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.