text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sycamores_in_professional_leagues_50" (
"player" text,
"class_year" real,
"position" text,
"teams" text,
"career" text,
"highlight_s" text
);
Question: What class year was the player whose highlights were 35 career INTs from?
<|assistant|>
SELECT MIN("class_year") FROM "sycamores_in_professional_leagues_50" WHERE "highlight_s"='35 Career INTs';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sycamores_in_professional_leagues_50" (
"player" text,
"class_year" real,
"position" text,
"teams" text,
"career" text,
"highlight_s" text
);
Question: What class year was the player who played for Buffalo from?
<|assistant|>
SELECT MIN("class_year") FROM "sycamores_in_professional_leagues_50" WHERE "teams"='Buffalo';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"gore_pct" text,
"gore_num" real,
"bush_pct" text,
"bush_num" real,
"others_pct" text,
"others_num" text
);
Question: Name the gore number for others # 6.6%
<|assistant|>
SELECT MIN("gore_num") FROM "by_county" WHERE "others_num"='6.6%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"gore_pct" text,
"gore_num" real,
"bush_pct" text,
"bush_num" real,
"others_pct" text,
"others_num" text
);
Question: Name the others % for bush number 1372
<|assistant|>
SELECT "others_pct" FROM "by_county" WHERE "bush_num"=1372;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"gore_pct" text,
"gore_num" real,
"bush_pct" text,
"bush_num" real,
"others_pct" text,
"others_num" text
);
Question: Name the gore number for others % being 5.3%
<|assistant|>
SELECT "gore_num" FROM "by_county" WHERE "others_pct"='5.3%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"gore_pct" text,
"gore_num" real,
"bush_pct" text,
"bush_num" real,
"others_pct" text,
"others_num" text
);
Question: Name the couty for others% 5.8
<|assistant|>
SELECT "county" FROM "by_county" WHERE "others_pct"='5.8';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"gore_pct" text,
"gore_num" real,
"bush_pct" text,
"bush_num" real,
"others_pct" text,
"others_num" text
);
Question: Name the number of bush % for elko
<|assistant|>
SELECT COUNT("bush_pct") FROM "by_county" WHERE "county"='Elko';<|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_laps" real,
"podiums" real,
"points" text,
"position" text
);
Question: If the series is ADAC GT Masters and poles is 1, what is the name of the team?
<|assistant|>
SELECT "team" FROM "career_summary" WHERE "poles"=1 AND "series"='ADAC GT Masters';<|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_laps" real,
"podiums" real,
"points" text,
"position" text
);
Question: If the position of 26th what is the season total number?
<|assistant|>
SELECT COUNT("season") FROM "career_summary" WHERE "position"='26th';<|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_laps" real,
"podiums" real,
"points" text,
"position" text
);
Question: If the points is 41, what is the season?
<|assistant|>
SELECT "season" FROM "career_summary" WHERE "points"='41';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_recent_lower_tier_county_cup_sou" (
"season" text,
"junior_south_winners" text,
"intermediate_south_winners" text,
"minor_south_winners" text,
"primary_south_winners" text
);
Question: If the primary (South) winners is Inter The Bloomfield, what is the season total number?
<|assistant|>
SELECT COUNT("season") FROM "list_of_recent_lower_tier_county_cup_sou" WHERE "primary_south_winners"='Inter The Bloomfield';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_recent_lower_tier_county_cup_sou" (
"season" text,
"junior_south_winners" text,
"intermediate_south_winners" text,
"minor_south_winners" text,
"primary_south_winners" text
);
Question: What is the season total number if the primary (South) winners is Ridings High 'A'?
<|assistant|>
SELECT COUNT("season") FROM "list_of_recent_lower_tier_county_cup_sou" WHERE "primary_south_winners"='Ridings High ''A''';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_recent_lower_tier_county_cup_sou" (
"season" text,
"junior_south_winners" text,
"intermediate_south_winners" text,
"minor_south_winners" text,
"primary_south_winners" text
);
Question: What is the year of the season if the intermediate (South) winners is Southmead Athletic?
<|assistant|>
SELECT "season" FROM "list_of_recent_lower_tier_county_cup_sou" WHERE "intermediate_south_winners"='Southmead Athletic';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_recent_lower_tier_county_cup_sou" (
"season" text,
"junior_south_winners" text,
"intermediate_south_winners" text,
"minor_south_winners" text,
"primary_south_winners" text
);
Question: What is the season date if the minor (South) winners is Bristol Sanctuary XI?
<|assistant|>
SELECT "season" FROM "list_of_recent_lower_tier_county_cup_sou" WHERE "minor_south_winners"='Bristol Sanctuary XI';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_recent_lower_tier_county_cup_sou" (
"season" text,
"junior_south_winners" text,
"intermediate_south_winners" text,
"minor_south_winners" text,
"primary_south_winners" text
);
Question: What isthe minor (South) winners total number is the primary (South) winners is Mendip Gate?
<|assistant|>
SELECT COUNT("minor_south_winners") FROM "list_of_recent_lower_tier_county_cup_sou" WHERE "primary_south_winners"='Mendip Gate';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23014685_1" (
"no" real,
"place_date" text,
"target" text,
"area_damaged" text,
"cause_of_damage" text,
"intercepted_by_patriot" text
);
Question: What area was damaged when King Khalid Military City was targeted?
<|assistant|>
SELECT "area_damaged" FROM "table1_23014685_1" WHERE "target"='King Khalid Military City';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23014685_1" (
"no" real,
"place_date" text,
"target" text,
"area_damaged" text,
"cause_of_damage" text,
"intercepted_by_patriot" text
);
Question: What was the place and date that the Apartments area was damaged?
<|assistant|>
SELECT "place_date" FROM "table1_23014685_1" WHERE "area_damaged"='Apartments area';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23014685_1" (
"no" real,
"place_date" text,
"target" text,
"area_damaged" text,
"cause_of_damage" text,
"intercepted_by_patriot" text
);
Question: Was the missile intercepted by patriot when the parking lot was damaged?
<|assistant|>
SELECT "intercepted_by_patriot" FROM "table1_23014685_1" WHERE "area_damaged"='Parking lot';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23014685_1" (
"no" real,
"place_date" text,
"target" text,
"area_damaged" text,
"cause_of_damage" text,
"intercepted_by_patriot" text
);
Question: What number missile led to damage to the Islamic University campus?
<|assistant|>
SELECT MIN("no") FROM "table1_23014685_1" WHERE "area_damaged"='Islamic University campus';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23015396_1" (
"year" real,
"date" text,
"driver" text,
"manufacturer" text,
"laps" real,
"miles_km" text,
"race_time" text,
"average_speed_mph" text
);
Question: Name the number of year for mark martin
<|assistant|>
SELECT COUNT("year") FROM "table1_23015396_1" WHERE "driver"='Mark Martin';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23015396_1" (
"year" real,
"date" text,
"driver" text,
"manufacturer" text,
"laps" real,
"miles_km" text,
"race_time" text,
"average_speed_mph" text
);
Question: Name the number of year for june 30
<|assistant|>
SELECT COUNT("year") FROM "table1_23015396_1" WHERE "date"='June 30';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "32_nm_dual_core" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"turbo" text,
"gpu_frequency" text,
"cores" real,
"l2_cache" text,
"l3_cache" text,
"i_o_bus" text,
"mult" text,
"memory" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
Question: What is the model number for part numbers of cm80616003177acbx80616i5660?
<|assistant|>
SELECT "model_number" FROM "32_nm_dual_core" WHERE "part_number_s"='CM80616003177ACBX80616I5660';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "32_nm_dual_core" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"turbo" text,
"gpu_frequency" text,
"cores" real,
"l2_cache" text,
"l3_cache" text,
"i_o_bus" text,
"mult" text,
"memory" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
Question: What is every release price(USD) for model number core i5-650?
<|assistant|>
SELECT "release_price_usd" FROM "32_nm_dual_core" WHERE "model_number"='Core i5-650';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "32_nm_dual_core" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"turbo" text,
"gpu_frequency" text,
"cores" real,
"l2_cache" text,
"l3_cache" text,
"i_o_bus" text,
"mult" text,
"memory" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
Question: How many frequencies have a model number of core i5-655k?
<|assistant|>
SELECT COUNT("frequency") FROM "32_nm_dual_core" WHERE "model_number"='Core i5-655K';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "32_nm_dual_core" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"turbo" text,
"gpu_frequency" text,
"cores" real,
"l2_cache" text,
"l3_cache" text,
"i_o_bus" text,
"mult" text,
"memory" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
Question: What is every part number with model number core i5-670?
<|assistant|>
SELECT "part_number_s" FROM "32_nm_dual_core" WHERE "model_number"='Core i5-670';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_10_big_ten_conference_men_s_basketb" (
"acc_team" text,
"big_ten_team" text,
"location" text,
"attendance" real,
"winner" text,
"challenge_leader" text
);
Question: What is the record for Big Ten Team #4 Purdue?
<|assistant|>
SELECT "winner" FROM "2009_10_big_ten_conference_men_s_basketb" WHERE "big_ten_team"='#4 Purdue';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: Name the avg start for avg finish being 24.2
<|assistant|>
SELECT "avg_start" FROM "nascar_sprint_cup_series" WHERE "avg_finish"='24.2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: Name the year for avg start being 22.4
<|assistant|>
SELECT "year" FROM "nascar_sprint_cup_series" WHERE "avg_start"='22.4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kei_and_ki_indexes_by_country" (
"country" text,
"kei" text,
"ki" text,
"economic_incentive_regime" text,
"innovation" text,
"education" text,
"ict" text,
"2008_rank" real
);
Question: How many KEI catagories are listed when the economic incentive regime is 2.56?
<|assistant|>
SELECT COUNT("kei") FROM "kei_and_ki_indexes_by_country" WHERE "economic_incentive_regime"='2.56';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kei_and_ki_indexes_by_country" (
"country" text,
"kei" text,
"ki" text,
"economic_incentive_regime" text,
"innovation" text,
"education" text,
"ict" text,
"2008_rank" real
);
Question: What is the innovation when the economic incentive grime is 7.14?
<|assistant|>
SELECT "innovation" FROM "kei_and_ki_indexes_by_country" WHERE "economic_incentive_regime"='7.14';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kei_and_ki_indexes_by_country" (
"country" text,
"kei" text,
"ki" text,
"economic_incentive_regime" text,
"innovation" text,
"education" text,
"ict" text,
"2008_rank" real
);
Question: What is the education in Nepal?
<|assistant|>
SELECT "education" FROM "kei_and_ki_indexes_by_country" WHERE "country"='Nepal';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kei_and_ki_indexes_by_country" (
"country" text,
"kei" text,
"ki" text,
"economic_incentive_regime" text,
"innovation" text,
"education" text,
"ict" text,
"2008_rank" real
);
Question: What is the 2008 rank of Djibouti?
<|assistant|>
SELECT "2008_rank" FROM "kei_and_ki_indexes_by_country" WHERE "country"='Djibouti';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kei_and_ki_indexes_by_country" (
"country" text,
"kei" text,
"ki" text,
"economic_incentive_regime" text,
"innovation" text,
"education" text,
"ict" text,
"2008_rank" real
);
Question: What is the ICT when education is 1.73 and KI is ag 1.99?
<|assistant|>
SELECT "ict" FROM "kei_and_ki_indexes_by_country" WHERE "education"='1.73' AND "ki"='1.99';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kei_and_ki_indexes_by_country" (
"country" text,
"kei" text,
"ki" text,
"economic_incentive_regime" text,
"innovation" text,
"education" text,
"ict" text,
"2008_rank" real
);
Question: What is the education when the economic incentive regime is 1.58?
<|assistant|>
SELECT "education" FROM "kei_and_ki_indexes_by_country" WHERE "economic_incentive_regime"='1.58';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23114705_7" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"n_z_viewers_thousand" text
);
Question: How many thousands of viewers tuned in for "Make Mad the Guilty and Appal the Free"?
<|assistant|>
SELECT "n_z_viewers_thousand" FROM "table1_23114705_7" WHERE "title"='\"Make Mad the Guilty and Appal the Free\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23114705_7" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"n_z_viewers_thousand" text
);
Question: When did "Follow Her Close" air?
<|assistant|>
SELECT "original_air_date" FROM "table1_23114705_7" WHERE "title"='\"Follow Her Close\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23114705_7" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"n_z_viewers_thousand" text
);
Question: What was the air date of the episod that had 456.58 thousand viewers?
<|assistant|>
SELECT "original_air_date" FROM "table1_23114705_7" WHERE "n_z_viewers_thousand"='456.58';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2311410_1" (
"season" text,
"episodes" real,
"series_premiere" text,
"series_finale" text,
"winning_couple" text,
"winning_profit_aud" text,
"host_s" text,
"judges" text
);
Question: What season had a winning profit of $15,000?
<|assistant|>
SELECT "season" FROM "table1_2311410_1" WHERE "winning_profit_aud"='$15,000';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2311410_1" (
"season" text,
"episodes" real,
"series_premiere" text,
"series_finale" text,
"winning_couple" text,
"winning_profit_aud" text,
"host_s" text,
"judges" text
);
Question: How many series premieres did the season "All-stars" have?
<|assistant|>
SELECT COUNT("series_premiere") FROM "table1_2311410_1" WHERE "season"='All-Stars';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2311410_5" (
"week" real,
"room_s" text,
"john_and_neisha" text,
"mark_and_duncan" text,
"erin_and_jake" text,
"chez_and_brenton" text,
"winner" text
);
Question: Name the erin and jake for week 4
<|assistant|>
SELECT "erin_and_jake" FROM "table1_2311410_5" WHERE "week"=4;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23117208_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text,
"viewers_millions" text
);
Question: when the number of spectator are 5.28 millions, which is the smallest number of the episode in series?
<|assistant|>
SELECT MIN("no_in_series") FROM "table1_23117208_3" WHERE "viewers_millions"='5.28';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23117208_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text,
"viewers_millions" text
);
Question: which is the biggest number of episode in the season, where the number of the episode in series is 20?
<|assistant|>
SELECT MAX("no_in_season") FROM "table1_23117208_3" WHERE "no_in_series"=20;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23117208_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text,
"viewers_millions" text
);
Question: what is the name of the episode when the number of spectators was 5.60 millions?
<|assistant|>
SELECT "title" FROM "table1_23117208_3" WHERE "viewers_millions"='5.60';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23117208_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text,
"viewers_millions" text
);
Question: how many millions of spectator did has the episode whose prod.code was rp#213?
<|assistant|>
SELECT "viewers_millions" FROM "table1_23117208_3" WHERE "prod_code"='RP#213';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23117208_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text,
"viewers_millions" text
);
Question: which is the biggest number of episode in the season, when the director of the episode was Constantine Makris?
<|assistant|>
SELECT MAX("no_in_season") FROM "table1_23117208_3" WHERE "directed_by"='Constantine Makris';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23117208_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text,
"viewers_millions" text
);
Question: What is the name of the episode that was written by Michael Rauch?
<|assistant|>
SELECT "title" FROM "table1_23117208_5" WHERE "written_by"='Michael Rauch';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23117208_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text,
"viewers_millions" text
);
Question: For the episode directed by Matthew Penn, what is the total number in the series?
<|assistant|>
SELECT "no_in_series" FROM "table1_23117208_5" WHERE "directed_by"='Matthew Penn';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23117208_4" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text,
"viewers_millions" text
);
Question: Name the production code for 4.92 million viewers
<|assistant|>
SELECT "prod_code" FROM "table1_23117208_4" WHERE "viewers_millions"='4.92';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23117208_4" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text,
"viewers_millions" text
);
Question: Name the least number in season for jessica ball
<|assistant|>
SELECT MIN("no_in_season") FROM "table1_23117208_4" WHERE "written_by"='Jessica Ball';<|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_name" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"final_placing" text
);
Question: How many flaps did he have when he had 109 points?
<|assistant|>
SELECT MAX("f_laps") FROM "career_summary" WHERE "points"=109;<|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_name" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"final_placing" text
);
Question: How many wins did he have with carlin motorsport?
<|assistant|>
SELECT COUNT("wins") FROM "career_summary" WHERE "team_name"='Carlin Motorsport';<|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_name" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"final_placing" text
);
Question: What was the most races he had in a season?
<|assistant|>
SELECT MAX("races") FROM "career_summary";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"player" text,
"rr_w_l" text,
"sets_w_l" text,
"games_w_l" text,
"standings" real
);
Question: What are Ken Rosewall's sets w-l?
<|assistant|>
SELECT "sets_w_l" FROM "standings" WHERE "player"='Ken Rosewall';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"player" text,
"rr_w_l" text,
"sets_w_l" text,
"games_w_l" text,
"standings" real
);
Question: What are Arthur Ashe's games w-l?
<|assistant|>
SELECT "games_w_l" FROM "standings" WHERE "player"='Arthur Ashe';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"player" text,
"rr_w_l" text,
"sets_w_l" text,
"games_w_l" text,
"standings" real
);
Question: Name the games w-1 for cliff richey
<|assistant|>
SELECT "games_w_l" FROM "standings" WHERE "player"='Cliff Richey';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_progress_table" (
"stage" real,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"youth_classification" text,
"team_classification" text
);
Question: What stage number had the general classification Rory Sutherland?
<|assistant|>
SELECT COUNT("stage") FROM "classification_leadership_progress_table" WHERE "general_classification"='Rory Sutherland';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_progress_table" (
"stage" real,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"youth_classification" text,
"team_classification" text
);
Question: Who was the Youth Classification in the race with Kenneth Hanson as Mountains Classification and Lucas Sebastian Haedo as winner?
<|assistant|>
SELECT "youth_classification" FROM "classification_leadership_progress_table" WHERE "mountains_classification"='Kenneth Hanson' AND "winner"='Lucas Sebastian Haedo';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_progress_table" (
"stage" real,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"youth_classification" text,
"team_classification" text
);
Question: Who won the race with Tom Zirbel as Mountains Classification and Thomas Soladay as Points Classification?
<|assistant|>
SELECT "winner" FROM "classification_leadership_progress_table" WHERE "mountains_classification"='Tom Zirbel' AND "points_classification"='Thomas Soladay';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_progress_table" (
"stage" real,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"youth_classification" text,
"team_classification" text
);
Question: Who was Mountains Classification in the race with Nick Frey as Youth Classification and Tom Zirbel as Points Classification?
<|assistant|>
SELECT "mountains_classification" FROM "classification_leadership_progress_table" WHERE "youth_classification"='Nick Frey' AND "points_classification"='Tom Zirbel';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_progress_table" (
"stage" real,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"youth_classification" text,
"team_classification" text
);
Question: How many Mountains Classifications were in the race with Mike Northey as Youth Classification?
<|assistant|>
SELECT COUNT("mountains_classification") FROM "classification_leadership_progress_table" WHERE "youth_classification"='Mike Northey';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23143607_1" (
"autonomous_community" text,
"organization" text,
"television_channels" text,
"radio_stations" text,
"foundation" real
);
Question: How many foundation dates were there when the television channels is canal nou canal nou dos canal nou 24 tvvi?
<|assistant|>
SELECT COUNT("foundation") FROM "table1_23143607_1" WHERE "television_channels"='Canal Nou Canal Nou Dos Canal Nou 24 TVVi';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23143607_1" (
"autonomous_community" text,
"organization" text,
"television_channels" text,
"radio_stations" text,
"foundation" real
);
Question: If the radio stations is radio nou si radio radio nou música; what were the total number of television channels?
<|assistant|>
SELECT COUNT("television_channels") FROM "table1_23143607_1" WHERE "radio_stations"='Radio Nou Si Radio Radio Nou Música';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23143607_1" (
"autonomous_community" text,
"organization" text,
"television_channels" text,
"radio_stations" text,
"foundation" real
);
Question: What is the total number of television channels when one of the radio stations is onda madrid?
<|assistant|>
SELECT COUNT("television_channels") FROM "table1_23143607_1" WHERE "radio_stations"='Onda Madrid';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23143607_1" (
"autonomous_community" text,
"organization" text,
"television_channels" text,
"radio_stations" text,
"foundation" real
);
Question: Which of the radio stations has the organization of ente público radio televisión madrid (eprtvm)?
<|assistant|>
SELECT "radio_stations" FROM "table1_23143607_1" WHERE "organization"='Ente Público Radio Televisión Madrid (EPRTVM)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23143607_1" (
"autonomous_community" text,
"organization" text,
"television_channels" text,
"radio_stations" text,
"foundation" real
);
Question: What is the autonomous community with television channels tpa tpa2 rtpa internacional?
<|assistant|>
SELECT "autonomous_community" FROM "table1_23143607_1" WHERE "television_channels"='TPA TPA2 RTPA Internacional';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23170118_2" (
"episode_number" text,
"title" text,
"villains" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: Who was the writer of "Face Off"?
<|assistant|>
SELECT "writer" FROM "table1_23170118_2" WHERE "title"='\"Face Off\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23170118_2" (
"episode_number" text,
"title" text,
"villains" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: Who were the directors of the episode "nano nits" written by nathan cockerill?
<|assistant|>
SELECT "director" FROM "table1_23170118_2" WHERE "writer"='Nathan Cockerill' AND "title"='\"Nano Nits\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23170118_2" (
"episode_number" text,
"title" text,
"villains" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: Who are the villains in "the others"?
<|assistant|>
SELECT "villains" FROM "table1_23170118_2" WHERE "title"='\"The Others\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23170118_2" (
"episode_number" text,
"title" text,
"villains" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: What was the original air date of the episode "nano nits"?
<|assistant|>
SELECT "original_airdate" FROM "table1_23170118_2" WHERE "title"='\"Nano Nits\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23170118_2" (
"episode_number" text,
"title" text,
"villains" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: How many villains were in episode 3 (13)?
<|assistant|>
SELECT COUNT("villains") FROM "table1_23170118_2" WHERE "episode_number"='3 (13)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23170118_2" (
"episode_number" text,
"title" text,
"villains" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: What was the title of the episode where reg lacey (aka mr. b) played the villain?
<|assistant|>
SELECT "title" FROM "table1_23170118_2" WHERE "villains"='Reg Lacey (AKA Mr. B)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"minutes" real,
"field_goals" real,
"three_pointers" real,
"free_throws" real,
"rebounds" real,
"assists" real,
"blocks" real,
"steals" real,
"points" real
);
Question: Name the most three pointers for dewanna bonner
<|assistant|>
SELECT MAX("three_pointers") FROM "player_stats" WHERE "player"='DeWanna Bonner';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"minutes" real,
"field_goals" real,
"three_pointers" real,
"free_throws" real,
"rebounds" real,
"assists" real,
"blocks" real,
"steals" real,
"points" real
);
Question: Name the least field goals for chantel hilliard
<|assistant|>
SELECT MIN("field_goals") FROM "player_stats" WHERE "player"='Chantel Hilliard';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"minutes" real,
"field_goals" real,
"three_pointers" real,
"free_throws" real,
"rebounds" real,
"assists" real,
"blocks" real,
"steals" real,
"points" real
);
Question: Name the most minutes for morgan jennings
<|assistant|>
SELECT MAX("minutes") FROM "player_stats" WHERE "player"='Morgan Jennings';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"minutes" real,
"field_goals" real,
"three_pointers" real,
"free_throws" real,
"rebounds" real,
"assists" real,
"blocks" real,
"steals" real,
"points" real
);
Question: Name the most free throws for 4 steals
<|assistant|>
SELECT MAX("free_throws") FROM "player_stats" WHERE "steals"=4;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conference_standings" (
"team" text,
"sec_wins" real,
"sec_losses" real,
"percentage" text,
"home_record" text,
"road_record" text,
"overall_record" text
);
Question: What is the road record for the team with an overall record of 22-11?
<|assistant|>
SELECT "road_record" FROM "conference_standings" WHERE "overall_record"='22-11';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conference_standings" (
"team" text,
"sec_wins" real,
"sec_losses" real,
"percentage" text,
"home_record" text,
"road_record" text,
"overall_record" text
);
Question: What is the road record for Vanderbilt?
<|assistant|>
SELECT COUNT("road_record") FROM "conference_standings" WHERE "team"='Vanderbilt';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conference_standings" (
"team" text,
"sec_wins" real,
"sec_losses" real,
"percentage" text,
"home_record" text,
"road_record" text,
"overall_record" text
);
Question: What team's overal record is 22-11?
<|assistant|>
SELECT "team" FROM "conference_standings" WHERE "overall_record"='22-11';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conference_standings" (
"team" text,
"sec_wins" real,
"sec_losses" real,
"percentage" text,
"home_record" text,
"road_record" text,
"overall_record" text
);
Question: What is the percentage for the team with a road record of 3-4 and a home record of 7-0?
<|assistant|>
SELECT "percentage" FROM "conference_standings" WHERE "road_record"='3-4' AND "home_record"='7-0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"minutes" real,
"field_goals" real,
"three_pointers" real,
"free_throws" real,
"rebounds" real,
"assists" real,
"blocks" real,
"steals" real,
"points" real
);
Question: Name the number of three pointers for 67
<|assistant|>
SELECT COUNT("three_pointers") FROM "player_stats" WHERE "points"=67;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"minutes" real,
"field_goals" real,
"three_pointers" real,
"free_throws" real,
"rebounds" real,
"assists" real,
"blocks" real,
"steals" real,
"points" real
);
Question: Name the field goals for alexis yackley
<|assistant|>
SELECT MAX("field_goals") FROM "player_stats" WHERE "player"='Alexis Yackley';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"minutes" real,
"field_goals" real,
"three_pointers" real,
"free_throws" real,
"rebounds" real,
"assists" real,
"blocks" real,
"steals" real,
"points" real
);
Question: Name the number of assists for 321 minutes
<|assistant|>
SELECT COUNT("assists") FROM "player_stats" WHERE "minutes"=321;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"minutes" real,
"field_goals" real,
"three_pointers" real,
"free_throws" real,
"rebounds" real,
"assists" real,
"blocks" real,
"steals" real,
"points" real
);
Question: Name the number of players for field goals being 25 and blocks is 6
<|assistant|>
SELECT COUNT("player") FROM "player_stats" WHERE "field_goals"=25 AND "blocks"=6;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the location attendance of 5-15
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "record"='5-15';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the record for golden state
<|assistant|>
SELECT "record" FROM "game_log" WHERE "team"='Golden State';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the number of high points for record 5-17
<|assistant|>
SELECT COUNT("high_points") FROM "game_log" WHERE "record"='5-17';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the record for houston
<|assistant|>
SELECT "record" FROM "game_log" WHERE "team"='Houston';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"location" text,
"opponent" text,
"cardinal_points" real,
"opp_points" real,
"record" text
);
Question: Name the cardinal points for 19-4 record
<|assistant|>
SELECT MIN("cardinal_points") FROM "schedule" WHERE "record"='19-4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"location" text,
"opponent" text,
"cardinal_points" real,
"opp_points" real,
"record" text
);
Question: Name the location for 2-1 record
<|assistant|>
SELECT "location" FROM "schedule" WHERE "record"='2-1';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "base_salary" (
"gs_grade" real,
"step_1" text,
"step_2" text,
"step_3" text,
"step_4" text,
"step_5" text,
"step_6" text,
"step_7" text,
"step_8" text,
"step_9" text,
"step_10" text
);
Question: Name the total number of step 6 for 11 gs grade
<|assistant|>
SELECT COUNT("step_6") FROM "base_salary" WHERE "gs_grade"=11;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wta_tier_i" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_final" text,
"score_in_final" text
);
Question: such as are entire the rating of closing where championship is moscow
<|assistant|>
SELECT "score_in_final" FROM "wta_tier_i" WHERE "championship"='Moscow';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wta_tier_i" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_final" text,
"score_in_final" text
);
Question: as is the quantity variety of score between ultimate the place opponents between remaining is alexandra fusai nathalie tauziat
<|assistant|>
SELECT COUNT("score_in_final") FROM "wta_tier_i" WHERE "opponents_in_final"='Alexandra Fusai Nathalie Tauziat';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wta_tier_i" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_final" text,
"score_in_final" text
);
Question: what are every one of the rivals in conclusive where title is zürich
<|assistant|>
SELECT "opponents_in_final" FROM "wta_tier_i" WHERE "championship"='Zürich';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wta_tier_i" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_final" text,
"score_in_final" text
);
Question: what are all the score in conclusive where title is rome
<|assistant|>
SELECT "score_in_final" FROM "wta_tier_i" WHERE "championship"='Rome';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "import" (
"num" real,
"importing_nation" text,
"10_3_bbl_day_2011" real,
"10_3_m_3_day_2011" real,
"10_3_bbl_day_2009" real,
"10_3_m_3_day_2009" real,
"10_3_bbl_day_2006" real,
"10_3_m_3_day_2006" real
);
Question: At what # does 10 3 bbl/day (2006) equal 5097?
<|assistant|>
SELECT MIN("num") FROM "import" WHERE "10_3_bbl_day_2006"=5097;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "import" (
"num" real,
"importing_nation" text,
"10_3_bbl_day_2011" real,
"10_3_m_3_day_2011" real,
"10_3_bbl_day_2009" real,
"10_3_m_3_day_2009" real,
"10_3_bbl_day_2006" real,
"10_3_m_3_day_2006" real
);
Question: In how many importing nations is 10 3 m 3 /day (2006) equivalent to 150?
<|assistant|>
SELECT COUNT("importing_nation") FROM "import" WHERE "10_3_m_3_day_2006"=150;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "import" (
"num" real,
"importing_nation" text,
"10_3_bbl_day_2011" real,
"10_3_m_3_day_2011" real,
"10_3_bbl_day_2009" real,
"10_3_m_3_day_2009" real,
"10_3_bbl_day_2006" real,
"10_3_m_3_day_2006" real
);
Question: What is the highest number in 10 3 m 3 /day (2011) where 10 3 bbl/day (2006) is equivalent to 787?
<|assistant|>
SELECT MAX("10_3_m_3_day_2011") FROM "import" WHERE "10_3_bbl_day_2006"=787;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "production" (
"num" real,
"producing_nation" text,
"10_3_bbl_d_2006" text,
"10_3_bbl_d_2007" real,
"10_3_bbl_d_2008" real,
"10_3_bbl_d_2009" real,
"present_share" text
);
Question: Name the most 10 3 bbl/d (2008) for present share being 1.7%
<|assistant|>
SELECT MAX("10_3_bbl_d_2008") FROM "production" WHERE "present_share"='1.7%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "production" (
"num" real,
"producing_nation" text,
"10_3_bbl_d_2006" text,
"10_3_bbl_d_2007" real,
"10_3_bbl_d_2008" real,
"10_3_bbl_d_2009" real,
"present_share" text
);
Question: Name the present share for australia
<|assistant|>
SELECT "present_share" FROM "production" WHERE "producing_nation"='Australia';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "production" (
"num" real,
"producing_nation" text,
"10_3_bbl_d_2006" text,
"10_3_bbl_d_2007" real,
"10_3_bbl_d_2008" real,
"10_3_bbl_d_2009" real,
"present_share" text
);
Question: Name the 10 3 bbl/d (2009) when 10 3 bbl/d (2007) is 180
<|assistant|>
SELECT "10_3_bbl_d_2009" FROM "production" WHERE "10_3_bbl_d_2007"=180;<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.