text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tag_team_turmoil_match" ( "eliminated" text, "tag_team" text, "entered" real, "eliminated_by" text, "time" text ); Question: Name the Tag Team with Entered of 6? <|assistant|> SELECT "tag_team" FROM "tag_team_turmoil_match" WHERE "entered"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tag_team_turmoil_match" ( "eliminated" text, "tag_team" text, "entered" real, "eliminated_by" text, "time" text ); Question: Name Tag Team with a Eliminated of 5? <|assistant|> SELECT "tag_team" FROM "tag_team_turmoil_match" WHERE "eliminated"='5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tag_team_turmoil_match" ( "eliminated" text, "tag_team" text, "entered" real, "eliminated_by" text, "time" text ); Question: Name the Tag Team with a Time of 03:34? <|assistant|> SELECT "tag_team" FROM "tag_team_turmoil_match" WHERE "time"='03:34';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tag_team_turmoil_match" ( "eliminated" text, "tag_team" text, "entered" real, "eliminated_by" text, "time" text ); Question: Name the highest Entered of Eliminated by of rosey and the hurricane? <|assistant|> SELECT MAX("entered") FROM "tag_team_turmoil_match" WHERE "eliminated_by"='rosey and the hurricane';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_fall_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text ); Question: Which Episodes have a TV Station of ntv, and a Japanese Title of あいのうた? <|assistant|> SELECT AVG("episodes") FROM "2005_fall_season" WHERE "tv_station"='ntv' AND "japanese_title"='あいのうた';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_fall_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text ); Question: Which TV Station has Average Ratings of 16.89%? <|assistant|> SELECT "tv_station" FROM "2005_fall_season" WHERE "average_ratings"='16.89%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_fall_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text ); Question: Which Episodes have a TV Station of tbs, and a Japanese Title of 今夜ひとりのベッドで? <|assistant|> SELECT MAX("episodes") FROM "2005_fall_season" WHERE "tv_station"='tbs' AND "japanese_title"='今夜ひとりのベッドで';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_fall_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text ); Question: Which Japanese Title has a TV Station of tbs, and a Romaji Title of hana yori dango? <|assistant|> SELECT "japanese_title" FROM "2005_fall_season" WHERE "tv_station"='tbs' AND "romaji_title"='hana yori dango';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Who was the away team with a tie number of 4? <|assistant|> SELECT "away_team" FROM "first_round_proper" WHERE "tie_no"='4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What date was the tie number of 32? <|assistant|> SELECT "date" FROM "first_round_proper" WHERE "tie_no"='32';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What was the score when the tie number was a replay and the home team was mansfield town? <|assistant|> SELECT "score" FROM "first_round_proper" WHERE "tie_no"='replay' AND "home_team"='mansfield town';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: what is the to par when the score is 67-68-76=211? <|assistant|> SELECT "to_par" FROM "third_round" WHERE "score"='67-68-76=211';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: what is the score for tom watson? <|assistant|> SELECT "score" FROM "third_round" WHERE "player"='tom watson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: who is the player when the place is t10 and the score is 67-72-72=211? <|assistant|> SELECT "player" FROM "third_round" WHERE "place"='t10' AND "score"='67-72-72=211';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: what is the place for bryce molder? <|assistant|> SELECT "place" FROM "third_round" WHERE "player"='bryce molder';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: what is the to par for mathew goggin? <|assistant|> SELECT "to_par" FROM "third_round" WHERE "player"='mathew goggin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passenger_and_express_train_locomotives" ( "class" text, "railway_number_s" text, "drg_number_s" text, "quantity" real, "year_s_of_manufacture" text, "axle_arrangement" text ); Question: Which Quantity has an Axle arrangement of 2′c h2? <|assistant|> SELECT AVG("quantity") FROM "passenger_and_express_train_locomotives" WHERE "axle_arrangement"='2′c h2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passenger_and_express_train_locomotives" ( "class" text, "railway_number_s" text, "drg_number_s" text, "quantity" real, "year_s_of_manufacture" text, "axle_arrangement" text ); Question: Which Year(s) of manufacture has an Axle arrangement of 2′b n2? <|assistant|> SELECT "year_s_of_manufacture" FROM "passenger_and_express_train_locomotives" WHERE "axle_arrangement"='2′b n2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_a_b_1" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: Which Rank has a Time of 5:56.73? <|assistant|> SELECT "rank" FROM "semifinal_a_b_1" WHERE "time"='5:56.73';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_a_b_1" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: Which Rank has Notes of fb, and a Time of 5:57.31? <|assistant|> SELECT "rank" FROM "semifinal_a_b_1" WHERE "notes"='fb' AND "time"='5:57.31';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_markets_2000_2011" ( "country_or_territory" text, "2000" real, "2001" real, "2002" real, "2003" real, "2004" real, "2005" real, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011" real ); Question: How much 2000 has a 2005 smaller than 583,590, and a 2009 smaller than 156,761, and a 2002 larger than 1,393,020? <|assistant|> SELECT SUM("2000") FROM "top_markets_2000_2011" WHERE "2005"<'583,590' AND "2009"<'156,761' AND "2002">'1,393,020';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_markets_2000_2011" ( "country_or_territory" text, "2000" real, "2001" real, "2002" real, "2003" real, "2004" real, "2005" real, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011" real ); Question: Which 2011 has a 2004 smaller than 271,691, and a Country or territory of vietnam, and a 2009 larger than 265,414? <|assistant|> SELECT AVG("2011") FROM "top_markets_2000_2011" WHERE "2004"<'271,691' AND "country_or_territory"='vietnam' AND "2009">'265,414';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_markets_2000_2011" ( "country_or_territory" text, "2000" real, "2001" real, "2002" real, "2003" real, "2004" real, "2005" real, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011" real ); Question: Which 2007 has a Country or territory of china, and a 2002 smaller than 670,099? <|assistant|> SELECT MIN("2007") FROM "top_markets_2000_2011" WHERE "country_or_territory"='china' AND "2002"<'670,099';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "per_country" ( "rank" text, "country" text, "jerseys" real, "giro_wins" real, "points" real, "young_rider" real, "most_recent_cyclist" text, "most_recent_date" text, "different_holders" real ); Question: what is the giro wins when jerseys is 2, country is portugal and young rider is more than 0? <|assistant|> SELECT SUM("giro_wins") FROM "per_country" WHERE "jerseys"=2 AND "country"='portugal' AND "young_rider">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "per_country" ( "rank" text, "country" text, "jerseys" real, "giro_wins" real, "points" real, "young_rider" real, "most_recent_cyclist" text, "most_recent_date" text, "different_holders" real ); Question: what is the highest jersey when points is 0, different holders is less than 3, giro wins is less than 1 and young rider is more than 1? <|assistant|> SELECT MAX("jerseys") FROM "per_country" WHERE "points"=0 AND "different_holders"<3 AND "giro_wins"<1 AND "young_rider">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "per_country" ( "rank" text, "country" text, "jerseys" real, "giro_wins" real, "points" real, "young_rider" real, "most_recent_cyclist" text, "most_recent_date" text, "different_holders" real ); Question: how many times is young rider more than 0, country is france and points less than 1? <|assistant|> SELECT COUNT("jerseys") FROM "per_country" WHERE "young_rider">0 AND "country"='france' AND "points"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "per_country" ( "rank" text, "country" text, "jerseys" real, "giro_wins" real, "points" real, "young_rider" real, "most_recent_cyclist" text, "most_recent_date" text, "different_holders" real ); Question: what is the least different holders when the country is ireland and giro wins is less than 1? <|assistant|> SELECT MIN("different_holders") FROM "per_country" WHERE "country"='ireland' AND "giro_wins"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_6a_lightweight_manx_grand_prix" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What is Brian Mateer's Speed? <|assistant|> SELECT "speed" FROM "race_6a_lightweight_manx_grand_prix" WHERE "rider"='brian mateer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_6a_lightweight_manx_grand_prix" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What is the Rank of the Rider with a Speed of 111.072mph in Team 250CC Honda? <|assistant|> SELECT AVG("rank") FROM "race_6a_lightweight_manx_grand_prix" WHERE "team"='250cc honda' AND "speed"='111.072mph';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the Nationality of the swimmer with a Time of 1:08.80? <|assistant|> SELECT "nationality" FROM "heats" WHERE "time"='1:08.80';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is Anna Khlistunova's Nationality? <|assistant|> SELECT "nationality" FROM "heats" WHERE "name"='anna khlistunova';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "penalty_summary" ( "period" text, "team" text, "player" text, "penalty" text, "time" text ); Question: What is the penalty for the DET team player Andreas Lilja? <|assistant|> SELECT "penalty" FROM "penalty_summary" WHERE "team"='det' AND "player"='andreas lilja';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "penalty_summary" ( "period" text, "team" text, "player" text, "penalty" text, "time" text ); Question: What is the penalty for Jonathan Toews? <|assistant|> SELECT "penalty" FROM "penalty_summary" WHERE "player"='jonathan toews';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "penalty_summary" ( "period" text, "team" text, "player" text, "penalty" text, "time" text ); Question: What is the period for Ben Eager? <|assistant|> SELECT "period" FROM "penalty_summary" WHERE "player"='ben eager';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "penalty_summary" ( "period" text, "team" text, "player" text, "penalty" text, "time" text ); Question: What is the period for the DET Team with a time of 11:27? <|assistant|> SELECT "period" FROM "penalty_summary" WHERE "team"='det' AND "time"='11:27';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "penalty_summary" ( "period" text, "team" text, "player" text, "penalty" text, "time" text ); Question: What player has a penalty of holding on the DET team? <|assistant|> SELECT "player" FROM "penalty_summary" WHERE "penalty"='holding' AND "team"='det';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "penalty_summary" ( "period" text, "team" text, "player" text, "penalty" text, "time" text ); Question: What time does Dustin Byfuglien have in 1st period? <|assistant|> SELECT "time" FROM "penalty_summary" WHERE "period"='1st' AND "player"='dustin byfuglien';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "location" text, "lineup" text, "assist_pass" text, "score" text, "result" text, "competition" text ); Question: Which competition has a result of 2-0 in Ferreiras with an assist/pass by Casey Nogueira? <|assistant|> SELECT "competition" FROM "international_goals" WHERE "result"='2-0' AND "location"='ferreiras' AND "assist_pass"='casey nogueira';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "location" text, "lineup" text, "assist_pass" text, "score" text, "result" text, "competition" text ); Question: What is the score with the Lineup match reports? <|assistant|> SELECT "score" FROM "international_goals" WHERE "lineup"='match reports';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "location" text, "lineup" text, "assist_pass" text, "score" text, "result" text, "competition" text ); Question: On what date is there an assist/pass by Shannon Boxx? <|assistant|> SELECT "date" FROM "international_goals" WHERE "assist_pass"='shannon boxx';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "location" text, "lineup" text, "assist_pass" text, "score" text, "result" text, "competition" text ); Question: Which assist/pass is in Ferreiras? <|assistant|> SELECT "assist_pass" FROM "international_goals" WHERE "location"='ferreiras';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "transfers_out" ( "nat" text, "name" text, "type" text, "transfer_window" text, "transfer_fee" text ); Question: Willy Sagnol with a type as career end had what has the transfer fee? <|assistant|> SELECT "transfer_fee" FROM "transfers_out" WHERE "type"='career end' AND "name"='willy sagnol';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "transfers_out" ( "nat" text, "name" text, "type" text, "transfer_window" text, "transfer_fee" text ); Question: Marcell Jansen with a transfer window of summer, and of transfer as type is from what nation? <|assistant|> SELECT "nat" FROM "transfers_out" WHERE "transfer_window"='summer' AND "type"='transfer' AND "name"='marcell jansen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "transfers_out" ( "nat" text, "name" text, "type" text, "transfer_window" text, "transfer_fee" text ); Question: Marcell Jansen of the nation GER has what for the type? <|assistant|> SELECT "type" FROM "transfers_out" WHERE "nat"='ger' AND "name"='marcell jansen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "transfers_out" ( "nat" text, "name" text, "type" text, "transfer_window" text, "transfer_fee" text ); Question: What player had a transfer window of winter, and free as the transfer fee? <|assistant|> SELECT "name" FROM "transfers_out" WHERE "transfer_window"='winter' AND "transfer_fee"='free';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "transfers_out" ( "nat" text, "name" text, "type" text, "transfer_window" text, "transfer_fee" text ); Question: Which player from GER has a transfer window of summer, and a transfer fee of n/a? <|assistant|> SELECT "name" FROM "transfers_out" WHERE "transfer_window"='summer' AND "nat"='ger' AND "transfer_fee"='n/a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "county" text, "year_joined" real, "year_left" real, "conference_joined" text ); Question: What's the highest Year Left that's got a Conference Joined of Sagamore with a Year Joined larger than 1942? <|assistant|> SELECT MAX("year_left") FROM "former_members" WHERE "conference_joined"='sagamore' AND "year_joined">1942;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "county" text, "year_joined" real, "year_left" real, "conference_joined" text ); Question: What's the highest Year Left for the School of Danville? <|assistant|> SELECT MAX("year_left") FROM "former_members" WHERE "school"='danville';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What was lane 4's time? <|assistant|> SELECT "time" FROM "semifinal_2" WHERE "lane"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sandy_bridge_dual_core_32_nm" ( "model_number" text, "s_spec_number" text, "cores" text, "frequency" text, "turbo" text, "l2_cache" text, "l3_cache" text, "gpu_model" text, "gpu_frequency" text, "socket" text, "i_o_bus" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); Question: What's the part number of the processor that has an 1.8 ghz frequency and 2 × 256 kb L@ Cache? <|assistant|> SELECT "part_number_s" FROM "sandy_bridge_dual_core_32_nm" WHERE "l2_cache"='2 × 256 kb' AND "frequency"='1.8 ghz';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sandy_bridge_dual_core_32_nm" ( "model_number" text, "s_spec_number" text, "cores" text, "frequency" text, "turbo" text, "l2_cache" text, "l3_cache" text, "gpu_model" text, "gpu_frequency" text, "socket" text, "i_o_bus" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); Question: What's the sSpec number of the processor having an ultra-low power I/O? <|assistant|> SELECT "s_spec_number" FROM "sandy_bridge_dual_core_32_nm" WHERE "i_o_bus"='ultra-low power';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sandy_bridge_dual_core_32_nm" ( "model_number" text, "s_spec_number" text, "cores" text, "frequency" text, "turbo" text, "l2_cache" text, "l3_cache" text, "gpu_model" text, "gpu_frequency" text, "socket" text, "i_o_bus" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); Question: What the cores with a release date of February 2011 and a BGA-1023 socket? <|assistant|> SELECT "cores" FROM "sandy_bridge_dual_core_32_nm" WHERE "socket"='bga-1023' AND "release_date"='february 2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sandy_bridge_dual_core_32_nm" ( "model_number" text, "s_spec_number" text, "cores" text, "frequency" text, "turbo" text, "l2_cache" text, "l3_cache" text, "gpu_model" text, "gpu_frequency" text, "socket" text, "i_o_bus" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); Question: What's the L3 Cache that has a standard power I/O? <|assistant|> SELECT "l3_cache" FROM "sandy_bridge_dual_core_32_nm" WHERE "i_o_bus"='standard power';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sandy_bridge_dual_core_32_nm" ( "model_number" text, "s_spec_number" text, "cores" text, "frequency" text, "turbo" text, "l2_cache" text, "l3_cache" text, "gpu_model" text, "gpu_frequency" text, "socket" text, "i_o_bus" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); Question: What's the release date of the processor with 2.8 ghz of frequency? <|assistant|> SELECT "release_date" FROM "sandy_bridge_dual_core_32_nm" WHERE "frequency"='2.8 ghz';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pharmacotherapy_for_cocaine_abuse" ( "3_h_cft" real, "3_h_nisoxetine" text, "3_h_paroxetine" text, "n_d" real, "s_d" real ); Question: What is the total S ÷ D with a 3298 (1986) [3 H] nizoxetine and an N ÷ D greater than 37.01? <|assistant|> SELECT COUNT("s_d") FROM "pharmacotherapy_for_cocaine_abuse" WHERE "3_h_nisoxetine"='3298 (1986)' AND "n_d">37.01;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pharmacotherapy_for_cocaine_abuse" ( "3_h_cft" real, "3_h_nisoxetine" text, "3_h_paroxetine" text, "n_d" real, "s_d" real ); Question: What is the [3 H] paroxetine with a [3 H] CFT less than 3.93, an S ÷ D greater than 1891, and a [3H] nizoxetine of 299 (180)? <|assistant|> SELECT "3_h_paroxetine" FROM "pharmacotherapy_for_cocaine_abuse" WHERE "3_h_cft"<3.93 AND "s_d">1891 AND "3_h_nisoxetine"='299 (180)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pharmacotherapy_for_cocaine_abuse" ( "3_h_cft" real, "3_h_nisoxetine" text, "3_h_paroxetine" text, "n_d" real, "s_d" real ); Question: What is the sum of the [3 H]CFT with an N ÷ D less than 393.8 and a [3H] paroxetine of 1045 (45)? <|assistant|> SELECT SUM("3_h_cft") FROM "pharmacotherapy_for_cocaine_abuse" WHERE "n_d"<393.8 AND "3_h_paroxetine"='1045 (45)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pharmacotherapy_for_cocaine_abuse" ( "3_h_cft" real, "3_h_nisoxetine" text, "3_h_paroxetine" text, "n_d" real, "s_d" real ); Question: What is the highest S ÷ D with a 2420 (220) [3H] paroxetine and an N ÷ D less than 393.8? <|assistant|> SELECT MAX("s_d") FROM "pharmacotherapy_for_cocaine_abuse" WHERE "3_h_paroxetine"='2420 (220)' AND "n_d"<393.8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_attendances" ( "attendance" real, "round" text, "date" text, "home" text, "score" text, "away" text, "venue" text, "weekday" text, "time_of_day" text ); Question: What round was the match at Westpac Stadium that had the Newcastle Jets as the away team? <|assistant|> SELECT "round" FROM "top_10_attendances" WHERE "venue"='westpac stadium' AND "away"='newcastle jets';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_attendances" ( "attendance" real, "round" text, "date" text, "home" text, "score" text, "away" text, "venue" text, "weekday" text, "time_of_day" text ); Question: On what weekday was the match that had Perth Glory as the away team? <|assistant|> SELECT "weekday" FROM "top_10_attendances" WHERE "away"='perth glory';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "guernsey_records" ( "fish" text, "guernsey_record" text, "year" text, "location" text, "british_record" text ); Question: What is the British record for the fish with a Guernsey record of 32-8-0? <|assistant|> SELECT "british_record" FROM "guernsey_records" WHERE "guernsey_record"='32-8-0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "guernsey_records" ( "fish" text, "guernsey_record" text, "year" text, "location" text, "british_record" text ); Question: What year was the Guernsey record of 2-3-12 set? <|assistant|> SELECT "year" FROM "guernsey_records" WHERE "guernsey_record"='2-3-12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "guernsey_records" ( "fish" text, "guernsey_record" text, "year" text, "location" text, "british_record" text ); Question: What was the guernsey record set with a fish caught at Bordeaux Harbour? <|assistant|> SELECT "guernsey_record" FROM "guernsey_records" WHERE "location"='bordeaux harbour';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1931" ( "title" text, "series" text, "characters" text, "production_num" real, "release_date" text ); Question: When was the film released that a less than 5038 production number and was of the character Bosko? <|assistant|> SELECT "release_date" FROM "1931" WHERE "production_num"<5038 AND "characters"='bosko';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1931" ( "title" text, "series" text, "characters" text, "production_num" real, "release_date" text ); Question: With 4645 as the production number what was the title? <|assistant|> SELECT "title" FROM "1931" WHERE "production_num"=4645;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1931" ( "title" text, "series" text, "characters" text, "production_num" real, "release_date" text ); Question: The film titled Bosko's fox hunt had what as the smallest production number? <|assistant|> SELECT MIN("production_num") FROM "1931" WHERE "title"='bosko''s fox hunt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1931" ( "title" text, "series" text, "characters" text, "production_num" real, "release_date" text ); Question: What is the smallest production number for the LT series with the Dumb Patrol title? <|assistant|> SELECT MIN("production_num") FROM "1931" WHERE "series"='lt' AND "title"='dumb patrol';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "stadium" text, "capacity" real, "city" text, "province" text, "home_team_s" text ); Question: What was the average capacity for vélez sársfield? <|assistant|> SELECT AVG("capacity") FROM "list" WHERE "home_team_s"='vélez sársfield';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "stadium" text, "capacity" real, "city" text, "province" text, "home_team_s" text ); Question: What city was the home team Tigre? <|assistant|> SELECT "city" FROM "list" WHERE "home_team_s"='tigre';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "stadium" text, "capacity" real, "city" text, "province" text, "home_team_s" text ); Question: What province is in Mendoza with a stadium feliciano gambarte? <|assistant|> SELECT "province" FROM "list" WHERE "city"='mendoza' AND "stadium"='feliciano gambarte';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text, "attendance" text ); Question: On what date was there a tv time of ABC 8:00pm and after week 9? <|assistant|> SELECT "date" FROM "schedule" WHERE "week">9 AND "tv_time"='abc 8:00pm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_game_of_the_year_awards" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); Question: What is total number of years that has genre of first-person shooter? <|assistant|> SELECT SUM("year") FROM "list_of_game_of_the_year_awards" WHERE "genre"='first-person shooter';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_game_of_the_year_awards" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); Question: Which year is the lowest for genre of action-adventure? <|assistant|> SELECT MIN("year") FROM "list_of_game_of_the_year_awards" WHERE "genre"='action-adventure';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "alphabet_and_transliteration" ( "gothic_letter_or_digraph" text, "roman_equivalent" text, "normalised_transliteration" text, "sound" text, "normal_environment_of_occurrence_in_native_words" text, "proto_germanic_origin" text ); Question: What is the Roman translation with "Normalised" transliteration i <|assistant|> SELECT "roman_equivalent" FROM "alphabet_and_transliteration" WHERE "normalised_transliteration"='i';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "alphabet_and_transliteration" ( "gothic_letter_or_digraph" text, "roman_equivalent" text, "normalised_transliteration" text, "sound" text, "normal_environment_of_occurrence_in_native_words" text, "proto_germanic_origin" text ); Question: what is the "normalized" transliteration for Roman i <|assistant|> SELECT "normalised_transliteration" FROM "alphabet_and_transliteration" WHERE "roman_equivalent"='i';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "alphabet_and_transliteration" ( "gothic_letter_or_digraph" text, "roman_equivalent" text, "normalised_transliteration" text, "sound" text, "normal_environment_of_occurrence_in_native_words" text, "proto_germanic_origin" text ); Question: what is the normal environment of occurrence that has a Proto-Germanic origin /ai/ <|assistant|> SELECT "normal_environment_of_occurrence_in_native_words" FROM "alphabet_and_transliteration" WHERE "proto_germanic_origin"='/ai/';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text ); Question: Which the lowest Against has a Status of tour match, and a Venue of ravenhill , belfast? <|assistant|> SELECT MIN("against") FROM "matches" WHERE "status"='tour match' AND "venue"='ravenhill , belfast';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text ); Question: Name the average Against that has a Venue of twickenham , london on 25 november 1978? <|assistant|> SELECT AVG("against") FROM "matches" WHERE "venue"='twickenham , london' AND "date"='25 november 1978';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text ); Question: Name the highest Against on 21 november 1978? <|assistant|> SELECT MAX("against") FROM "matches" WHERE "date"='21 november 1978';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text ); Question: Name the Against of Venue of brewery field , bridgend? <|assistant|> SELECT "against" FROM "matches" WHERE "venue"='brewery field , bridgend';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text ); Question: Name the Status with an Against larger than 15? <|assistant|> SELECT "status" FROM "matches" WHERE "against">15;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); Question: what is the name when 2008 club is vc nova? <|assistant|> SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='vc nova';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); Question: what is the name when 2008 club is patron patra? <|assistant|> SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='patron patra';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); Question: what is spike when 2008 club is vc nova? <|assistant|> SELECT "spike" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='vc nova';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: what is the score on 24 january 1976 with the tie no of 1? <|assistant|> SELECT "score" FROM "fourth_round_proper" WHERE "date"='24 january 1976' AND "tie_no"='1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Who is the home team when the away team is newcastle united? <|assistant|> SELECT "home_team" FROM "fourth_round_proper" WHERE "away_team"='newcastle united';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: who is the home team when the away team is wolverhampton wanderers? <|assistant|> SELECT "home_team" FROM "fourth_round_proper" WHERE "away_team"='wolverhampton wanderers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: what is the date when the tie no is 9? <|assistant|> SELECT "date" FROM "fourth_round_proper" WHERE "tie_no"='9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: who is the away team when the tie no is 7? <|assistant|> SELECT "away_team" FROM "fourth_round_proper" WHERE "tie_no"='7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: what is the score when the home team is sunderland? <|assistant|> SELECT "score" FROM "fourth_round_proper" WHERE "home_team"='sunderland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1942" ( "title" text, "series" text, "director" text, "production_number" text, "release_date" text, "reissue" text ); Question: What is the name of the title that was directed by Friz Freleng and has a production number of 443? <|assistant|> SELECT "title" FROM "1942" WHERE "director"='friz freleng' AND "production_number"='443';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1942" ( "title" text, "series" text, "director" text, "production_number" text, "release_date" text, "reissue" text ); Question: Which title has a production number of 627? <|assistant|> SELECT "title" FROM "1942" WHERE "production_number"='627';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "screen_actors_guild" ( "year" real, "category" text, "film" text, "result" text, "lost_to" text ); Question: what is the film when the year is earlier than 2002 and the category is outstanding actress? <|assistant|> SELECT "film" FROM "screen_actors_guild" WHERE "year"<2002 AND "category"='outstanding actress';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "g" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: What is the total latitude of the greenland township with more than 34.846 sqmi of land, a geo id less than 3805529660, and an ANSI code greater than 1036405? <|assistant|> SELECT COUNT("latitude") FROM "g" WHERE "land_sqmi">34.846 AND "geo_id"<3805529660 AND "township"='greenland' AND "ansi_code">1036405;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "g" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: What is the sum of the land in sq mi with an ansi code less than 1036538, a 2010 population less than 42, a longitude greater than -99.442872, and more than 0.882 sq mi of water? <|assistant|> SELECT SUM("land_sqmi") FROM "g" WHERE "ansi_code"<1036538 AND "pop_2010"<42 AND "longitude">-99.442872 AND "water_sqmi">0.882;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "g" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: What is the highest water (sq mi) of the township glenila, which has more than 33.576 sq mi of land and a latitude greater than 48.832189? <|assistant|> SELECT MAX("water_sqmi") FROM "g" WHERE "land_sqmi">33.576 AND "township"='glenila' AND "latitude">48.832189;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "g" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: What is the sum of the 2010 population with a latitude greater than 47.710905, a longitude of -101.79876, and less than 35.695 sq mi of land? <|assistant|> SELECT SUM("pop_2010") FROM "g" WHERE "latitude">47.710905 AND "longitude"=-101.79876 AND "land_sqmi"<35.695;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "g" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: What is the lowest land in sq mi with a longitude of -99.172785 and less than 0.973 sq mi of water? <|assistant|> SELECT MIN("land_sqmi") FROM "g" WHERE "longitude"=-99.172785 AND "water_sqmi"<0.973;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaches_staff" ( "position" text, "name" text, "year_at_cu" text, "experience" real, "alma_mater" text ); Question: Who was the head coach? <|assistant|> SELECT "name" FROM "coaches_staff" WHERE "position"='head coach';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaches_staff" ( "position" text, "name" text, "year_at_cu" text, "experience" real, "alma_mater" text ); Question: Who has the alma mater of Dayton ('07), and was in their 1st year at CU? <|assistant|> SELECT "name" FROM "coaches_staff" WHERE "year_at_cu"='1st' AND "alma_mater"='dayton (''07)';<|endoftext|>