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 ft7in (m) tall player?
<|assistant|>
SELECT "previous_school" FROM "roster" WHERE "height"='ft7in (m)';<|endoftext|> |
<|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?
<|assistant|>
SELECT "previous_school" FROM "roster" WHERE "num"=22;<|endoftext|> |
<|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 title of the episode with production code 3x5402?
<|assistant|>
SELECT "title" FROM "table1_24938621_2" WHERE "production_code"='3X5402';<|endoftext|> |
<|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 title of the episode with production code 3x5405?
<|assistant|>
SELECT "title" FROM "table1_24938621_2" WHERE "production_code"='3X5405';<|endoftext|> |
<|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 "home_team" FROM "league" WHERE "date"='5 October 2011';<|endoftext|> |
<|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–0?
<|assistant|>
SELECT "stadium" FROM "league" WHERE "home_team"='Shamrock Rovers' AND "result"='3–0';<|endoftext|> |
<|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 bohemians?
<|assistant|>
SELECT "away_team" FROM "league" WHERE "result"='2–1' AND "home_team"='Bohemians';<|endoftext|> |
<|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?
<|assistant|>
SELECT "home_team" FROM "league" WHERE "season"='2013' AND "result"='0–0';<|endoftext|> |
<|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?
<|assistant|>
SELECT "date" FROM "league" WHERE "stadium"='Tallaght Stadium' AND "result"='0–1';<|endoftext|> |
<|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 played Waldstadion in a game?
<|assistant|>
SELECT "opponent" FROM "table1_24951872_2" WHERE "game_site"='Waldstadion';<|endoftext|> |
<|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 maximum week that had attendance of 10738?
<|assistant|>
SELECT MAX("week") FROM "table1_24951872_2" WHERE "attendance"=10738;<|endoftext|> |
<|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: Who wrote "Concordia"?
<|assistant|>
SELECT "written_by" FROM "table1_24938621_3" WHERE "title"='\"Concordia\"';<|endoftext|> |
<|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: What is the production code of the episode written by Cathryn Humphris?
<|assistant|>
SELECT "production_code" FROM "table1_24938621_3" WHERE "written_by"='Cathryn Humphris';<|endoftext|> |
<|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: What is the production code of the episode that had 5.43 million viewers?
<|assistant|>
SELECT "production_code" FROM "table1_24938621_3" WHERE "u_s_viewers_million"='5.43';<|endoftext|> |
<|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: What was the title of the episode directed by Jesse Warn?
<|assistant|>
SELECT "production_code" FROM "table1_24938621_3" WHERE "directed_by"='Jesse Warn';<|endoftext|> |
<|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: What episode number was written by Gregg Hurwitz?
<|assistant|>
SELECT "no" FROM "table1_24938621_3" WHERE "written_by"='Gregg Hurwitz';<|endoftext|> |
<|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" text
);
Question: If the dry density is 800, what is the drying shrinkage %?
<|assistant|>
SELECT "drying_shrinkage_pct" FROM "properties_of_foamed_concrete" WHERE "dry_density_kg_m3"=800;<|endoftext|> |
<|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 number in the series was episode 7 in the season?
<|assistant|>
SELECT "series_num" FROM "table1_24961421_1" WHERE "season_num"=7;<|endoftext|> |
<|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 "Voir Dire"?
<|assistant|>
SELECT "written_by" FROM "table1_24961421_1" WHERE "title"='\"Voir Dire\"';<|endoftext|> |
<|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 "Rewind" originally aired?
<|assistant|>
SELECT "original_air_date" FROM "table1_24961421_1" WHERE "title"='\"Rewind\"';<|endoftext|> |
<|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 episodes had the title "Rise and Fall"?
<|assistant|>
SELECT COUNT("season_num") FROM "table1_24961421_1" WHERE "title"='\"Rise and Fall\"';<|endoftext|> |
<|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 the episode that had 12.15 million viewers?
<|assistant|>
SELECT "written_by" FROM "table1_24961421_1" WHERE "u_s_viewers_millions"='12.15';<|endoftext|> |
<|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 number in the season was the episode with 12.23 million viewers?
<|assistant|>
SELECT "season_num" FROM "table1_24961421_1" WHERE "u_s_viewers_millions"='12.23';<|endoftext|> |
<|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 of the game at Olympic Stadium?
<|assistant|>
SELECT "date" FROM "table1_24989925_2" WHERE "game_site"='Olympic Stadium';<|endoftext|> |
<|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 total are there?
<|assistant|>
SELECT MAX("week") FROM "table1_24989925_2";<|endoftext|> |
<|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's record when they played at Rheinenergiestadion?
<|assistant|>
SELECT "team_record" FROM "table1_24989925_2" WHERE "game_site"='RheinEnergieStadion';<|endoftext|> |
<|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,
"08_09_i_o_best" real,
"08_09_gp_jgp_best" real,
"08_09_gp_jgp_2nd" real,
"08_09_oi_best" real,
"08_09_oi_2nd" real
);
Question: What is the lowest overall number of 09-10 oi 2nd?
<|assistant|>
SELECT MIN("09_10_oi_2nd") FROM "pairs";<|endoftext|> |
<|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,
"08_09_i_o_best" real,
"08_09_gp_jgp_best" real,
"08_09_gp_jgp_2nd" real,
"08_09_oi_best" real,
"08_09_oi_2nd" real
);
Question: What is the lowest overall number for 09-10 oi 2nd?
<|assistant|>
SELECT MIN("09_10_oi_2nd") FROM "pairs";<|endoftext|> |
<|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,
"08_09_i_o_best" real,
"08_09_gp_jgp_best" real,
"08_09_gp_jgp_2nd" real,
"08_09_oi_best" real,
"08_09_oi_2nd" real
);
Question: What was the maximum 09-10 i/o best?
<|assistant|>
SELECT MAX("09_10_i_o_best") FROM "men";<|endoftext|> |
<|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" real,
"08_09_i_o_best" real,
"08_09_gp_jgp_best" real,
"08_09_gp_jgp_2nd" real,
"08_09_oi_best" real,
"08_09_oi_2nd" real
);
Question: If 09-10 i/o best is 972, what is the 09-10 gp/jgp 2nd maximum?
<|assistant|>
SELECT MAX("09_10_gp_jgp_2nd") FROM "ice_dancing" WHERE "09_10_i_o_best"=972;<|endoftext|> |
<|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" real,
"08_09_i_o_best" real,
"08_09_gp_jgp_best" real,
"08_09_gp_jgp_2nd" real,
"08_09_oi_best" real,
"08_09_oi_2nd" real
);
Question: If the rank is 17, what are the names?
<|assistant|>
SELECT "name" FROM "ice_dancing" WHERE "rank"=17;<|endoftext|> |
<|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" real,
"08_09_i_o_best" real,
"08_09_gp_jgp_best" real,
"08_09_gp_jgp_2nd" real,
"08_09_oi_best" real,
"08_09_oi_2nd" real
);
Question: If the WS points is 947, what is the 08-09 gp/jgp 2nd ?
<|assistant|>
SELECT "08_09_gp_jgp_2nd" FROM "ice_dancing" WHERE "ws_points"=947;<|endoftext|> |
<|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" real,
"08_09_i_o_best" real,
"08_09_gp_jgp_best" real,
"08_09_gp_jgp_2nd" real,
"08_09_oi_best" real,
"08_09_oi_2nd" real
);
Question: If the 08-09 gp/jgp 2nd is bigger than 227.0 and the 08-09 gp/jgp best is 252, what is the 08-09 oi best?
<|assistant|>
SELECT "08_09_oi_best" FROM "ice_dancing" WHERE "08_09_gp_jgp_best"=252 AND "08_09_gp_jgp_2nd">227.0;<|endoftext|> |
<|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 points did he have when he has in the 34th position?
<|assistant|>
SELECT "points" FROM "career_summary" WHERE "position"='34th';<|endoftext|> |
<|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 wins were listed when he had 112 points?
<|assistant|>
SELECT "wins" FROM "career_summary" WHERE "points"='112';<|endoftext|> |
<|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 series did he have the 7th position?
<|assistant|>
SELECT "series" FROM "career_summary" WHERE "position"='7th';<|endoftext|> |
<|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 his points when he was in 8th position?
<|assistant|>
SELECT "points" FROM "career_summary" WHERE "position"='8th';<|endoftext|> |
<|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?
<|assistant|>
SELECT "vote" FROM "table1_25016824_2" WHERE "air_date"='4 October 1997';<|endoftext|> |
<|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)?
<|assistant|>
SELECT "eliminated" FROM "table1_25016824_2" WHERE "immunity"='Kent (Jürgen)';<|endoftext|> |
<|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 "eliminated" FROM "table1_25016824_2" WHERE "vote"='8-1';<|endoftext|> |
<|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 november 1997?
<|assistant|>
SELECT COUNT("vote") FROM "table1_25016824_2" WHERE "air_date"='15 November 1997';<|endoftext|> |
<|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 is 13th voted out 8th jury member day 46?
<|assistant|>
SELECT "reward" FROM "table1_25016824_2" WHERE "immunity"='Martin' AND "finish"='13th Voted Out 8th Jury Member Day 46';<|endoftext|> |
<|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_four" WHERE "player"='Christopher Smith';<|endoftext|> |
<|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" WHERE "player"='Nate Binder';<|endoftext|> |
<|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") FROM "round_four" WHERE "player"='Steven Turner';<|endoftext|> |
<|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" WHERE "player"='Steven Turner';<|endoftext|> |
<|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_25017530_6" WHERE "position"='LB';<|endoftext|> |
<|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 "table1_25017530_6" WHERE "college"='Saskatchewan';<|endoftext|> |
<|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 "table1_25017530_6" WHERE "player"='Michael Warner';<|endoftext|> |
<|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 numbered 5?
<|assistant|>
SELECT COUNT("production_count") FROM "series_2_2000_2001" WHERE "episode_num"=5;<|endoftext|> |
<|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 air date(s) for episodes with production code ipea343l?
<|assistant|>
SELECT "original_airdate" FROM "series_2_2000_2001" WHERE "prod_code"='IPEA343L';<|endoftext|> |
<|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 air date(s) for episodes with production code ipea345a?
<|assistant|>
SELECT "original_airdate" FROM "series_2_2000_2001" WHERE "prod_code"='IPEA345A';<|endoftext|> |
<|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 air date(s) for episodes with 8.63 million viewers?
<|assistant|>
SELECT "original_airdate" FROM "series_2_2000_2001" WHERE "viewing_figures_millions"='8.63';<|endoftext|> |
<|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 power of the Type R?
<|assistant|>
SELECT "power" FROM "third_generation_fd" WHERE "model"='Type R';<|endoftext|> |
<|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 brakes for the model type rb 4at with 16x8.0jj (front) 16x8.0jj (rear) wheels and 225/50r16 92v(front) 225/50r16 92v(rear) tyres?
<|assistant|>
SELECT "brakes" FROM "third_generation_fd" WHERE "wheels"='16x8.0JJ (front) 16x8.0JJ (rear)' AND "tyres"='225/50R16 92V(front) 225/50R16 92V(rear)' AND "model"='Type RB 4AT';<|endoftext|> |
<|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 the 4-speed automatic gearbox?
<|assistant|>
SELECT "brakes" FROM "third_generation_fd" WHERE "gearbox"='4-speed automatic';<|endoftext|> |
<|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 power for the Spirit R (Type B)?
<|assistant|>
SELECT "power" FROM "third_generation_fd" WHERE "model"='Spirit R (Type B)';<|endoftext|> |
<|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 gearbox when the torque is torque?
<|assistant|>
SELECT "gearbox" FROM "third_generation_fd" WHERE "torque"='Torque';<|endoftext|> |
<|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("first_elected") FROM "alabama" WHERE "district"='Alabama 3';<|endoftext|> |
<|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" FROM "alabama" WHERE "incumbent"='Spencer Bachus';<|endoftext|> |
<|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 "district" FROM "alabama" WHERE "incumbent"='Mike Rogers';<|endoftext|> |
<|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 "district" FROM "alabama" WHERE "incumbent"='Spencer Bachus';<|endoftext|> |
<|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|>
SELECT "district" FROM "minnesota" WHERE "incumbent"='Keith Ellison';<|endoftext|> |
<|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 kilo watt hoours per day for moline.
<|assistant|>
SELECT "day_power_w" FROM "am" WHERE "city"='Moline';<|endoftext|> |
<|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 year did the voice of muscatine show start?
<|assistant|>
SELECT "start" FROM "am" WHERE "nickname"='Voice of Muscatine';<|endoftext|> |
<|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 year was cumulus founded?
<|assistant|>
SELECT MIN("start") FROM "am" WHERE "owner"='Cumulus';<|endoftext|> |
<|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 city of moline have stereo?
<|assistant|>
SELECT "stereo" FROM "am" WHERE "city"='Moline';<|endoftext|> |
<|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 with the parent company wrightbus?
<|assistant|>
SELECT "company" FROM "assembly_plants" WHERE "parent_company"='Wrightbus';<|endoftext|> |
<|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 ofhte company where the plant is in burnaston?
<|assistant|>
SELECT "company" FROM "assembly_plants" WHERE "plant"='Burnaston';<|endoftext|> |
<|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 produced where the plant is scarborough?
<|assistant|>
SELECT "models_produced" FROM "assembly_plants" WHERE "plant"='Scarborough';<|endoftext|> |
<|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 produced where the plant is castle bromwich?
<|assistant|>
SELECT COUNT("models_produced") FROM "assembly_plants" WHERE "plant"='Castle Bromwich';<|endoftext|> |
<|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 production where the parent company is ariel?
<|assistant|>
SELECT "production_latest_figures" FROM "assembly_plants" WHERE "parent_company"='Ariel';<|endoftext|> |
<|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 chassis on the angie's list sponsored car?
<|assistant|>
SELECT "chassis" FROM "active_part_time_indy_car_series_teams" WHERE "primary_sponsor"='Angie''s List';<|endoftext|> |
<|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 the car owned by chip ganassi?
<|assistant|>
SELECT "team" FROM "active_part_time_indy_car_series_teams" WHERE "listed_owner_s"='Chip Ganassi';<|endoftext|> |
<|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 on the car repped by team rahal letterman lanigan racing?
<|assistant|>
SELECT "chassis" FROM "active_part_time_indy_car_series_teams" WHERE "team"='Rahal Letterman Lanigan Racing';<|endoftext|> |
<|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 abc supply sponsored cor?
<|assistant|>
SELECT "driver_s" FROM "active_part_time_indy_car_series_teams" WHERE "primary_sponsor"='ABC Supply';<|endoftext|> |
<|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|>
SELECT COUNT("district") FROM "pennsylvania" WHERE "incumbent"='Tom Marino';<|endoftext|> |
<|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" FROM "pennsylvania" WHERE "first_elected"=1994;<|endoftext|> |
<|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 "party" FROM "pennsylvania" WHERE "district"='Pennsylvania 10';<|endoftext|> |
<|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 "result" FROM "pennsylvania" WHERE "incumbent"='Glenn Thompson';<|endoftext|> |
<|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|>
SELECT COUNT("district") FROM "pennsylvania" WHERE "incumbent"='Bill Shuster';<|endoftext|> |
<|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
);
Question: List the total play time for 11 starts.
<|assistant|>
SELECT MAX("minutes") FROM "all_time_statistics" WHERE "starts"=11;<|endoftext|> |
<|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 region is the enrollment ratio in primary 94.40?
<|assistant|>
SELECT "region" FROM "by_net_enrollment_ratio_in_education" WHERE "primary_6_13_years"='94.40';<|endoftext|> |
<|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 enrollment ratio for preschool in the region where enrollment ratio for tertiary is 29.55?
<|assistant|>
SELECT "preschool_0_5_years" FROM "by_net_enrollment_ratio_in_education" WHERE "tertiary_18_24_years"='29.55';<|endoftext|> |
<|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 enrollment ratio in primary in the region where the enrollment ratio in preschool is 38.14?
<|assistant|>
SELECT "primary_6_13_years" FROM "by_net_enrollment_ratio_in_education" WHERE "preschool_0_5_years"='38.14';<|endoftext|> |
<|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 enrollment ratio in tertiary in the region where the enrollment ration in secondary is 71.43?
<|assistant|>
SELECT "tertiary_18_24_years" FROM "by_net_enrollment_ratio_in_education" WHERE "secondary_14_17_years"='71.43';<|endoftext|> |
<|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 enrollment ratio in preschool in the region where the enrollment ratio in primary is 93.10?
<|assistant|>
SELECT "preschool_0_5_years" FROM "by_net_enrollment_ratio_in_education" WHERE "primary_6_13_years"='93.10';<|endoftext|> |
<|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 enrollment ration in primary in the region where the enrollment ratio in preschool is 50.23?
<|assistant|>
SELECT "primary_6_13_years" FROM "by_net_enrollment_ratio_in_education" WHERE "preschool_0_5_years"='50.23';<|endoftext|> |
<|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_vap_ratio_men" text,
"e_vap_ratio_women" text,
"e_vap_ratio_total" text
);
Question: what is the number of registered female voters where the percentage is 108.6%
<|assistant|>
SELECT "enrolled_women" FROM "by_electorate" WHERE "e_vap_ratio_women"='108.6%';<|endoftext|> |
<|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_vap_ratio_men" text,
"e_vap_ratio_women" text,
"e_vap_ratio_total" text
);
Question: what is the percentage of male voters where the level of maturity is 123726
<|assistant|>
SELECT "e_vap_ratio_total" FROM "by_electorate" WHERE "men_of_voting_age"=123726;<|endoftext|> |
<|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_rate_female" real,
"incarceration_rate_total" real,
"country_comparison" text
);
Question: How many regions had 153 women prison inmates?
<|assistant|>
SELECT COUNT("incarceration_rate_total") FROM "by_prison_inmates_and_incarceration_rate" WHERE "prison_inmates_women"=153;<|endoftext|> |
<|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_rate_female" real,
"incarceration_rate_total" real,
"country_comparison" text
);
Question: How many regions had an incarceration rate for females of 63?
<|assistant|>
SELECT COUNT("incarceration_rate_total") FROM "by_prison_inmates_and_incarceration_rate" WHERE "incarceration_rate_female"=63;<|endoftext|> |
<|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_rate_female" real,
"incarceration_rate_total" real,
"country_comparison" text
);
Question: What is the male incarceration rate of maule?
<|assistant|>
SELECT MAX("incarceration_rate_male") FROM "by_prison_inmates_and_incarceration_rate" WHERE "region"='Maule';<|endoftext|> |
<|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" text,
"cable_sat_tv_connection" text
);
Question: Name the region for automatic washing machine being 60.9%
<|assistant|>
SELECT "region" FROM "by_ownership_of_goods_and_services" WHERE "automatic_washing_machine"='60.9%';<|endoftext|> |
<|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" text,
"cable_sat_tv_connection" text
);
Question: Name the fixed telephone line for 25.6% vehicle
<|assistant|>
SELECT "fixed_telephone_line" FROM "by_ownership_of_goods_and_services" WHERE "vehicle"='25.6%';<|endoftext|> |
<|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" text,
"cable_sat_tv_connection" text
);
Question: Name the region for 39.2% vehicle
<|assistant|>
SELECT "region" FROM "by_ownership_of_goods_and_services" WHERE "vehicle"='39.2%';<|endoftext|> |
<|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 panel?
<|assistant|>
SELECT "region" FROM "by_access_to_electricity" WHERE "solar_panel"='0.3%';<|endoftext|> |
<|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 percentage of solar panels?
<|assistant|>
SELECT "solar_panel" FROM "by_access_to_electricity" WHERE "region"='Atacama';<|endoftext|> |
<|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?
<|assistant|>
SELECT "region" FROM "by_access_to_electricity" WHERE "none"='0.6%';<|endoftext|> |
<|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 public network in the region that has 0.1% other sources, 0.0% solar, and is named maule?
<|assistant|>
SELECT "public_network" FROM "by_access_to_electricity" WHERE "other_source"='0.1%' AND "solar_panel"='0.0%' AND "region"='Maule';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.