text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "name" text, "num" real, "height" text, "weight" real, "position" text, "year" text, "home_town" text, "high_school" text ); Question: What is the position of the player who's hometown is North Babylon, NY? <|assistant|> SELECT "position" FROM "roster" WHERE "home_town"='North Babylon, NY';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "name" text, "num" real, "height" text, "weight" real, "position" text, "year" text, "home_town" text, "high_school" text ); Question: What position is the player from Chapel Hill, NC? <|assistant|> SELECT "position" FROM "roster" WHERE "home_town"='Chapel Hill, NC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "name" text, "num" real, "height" text, "weight" real, "position" text, "year" text, "home_town" text, "high_school" text ); Question: What is the height of the player from Gulfport, MS? <|assistant|> SELECT "height" FROM "roster" WHERE "home_town"='Gulfport, MS';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obamanum" real, "obamapct" text, "mc_cainnum" real, "mc_cainpct" text ); Question: In what county did McCain get 57.8%? <|assistant|> SELECT "county" FROM "by_county" WHERE "mc_cainpct"='57.8%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obamanum" real, "obamapct" text, "mc_cainnum" real, "mc_cainpct" text ); Question: How many figures are given for McCain's % in Davidson county? <|assistant|> SELECT COUNT("mc_cainpct") FROM "by_county" WHERE "county"='DAVIDSON';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obamanum" real, "obamapct" text, "mc_cainnum" real, "mc_cainpct" text ); Question: What percentage did Obama get in Rutherford county? <|assistant|> SELECT "obamapct" FROM "by_county" WHERE "county"='RUTHERFORD';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obamanum" real, "obamapct" text, "mc_cainnum" real, "mc_cainpct" text ); Question: What percentage did McCain get in Hamilton county? <|assistant|> SELECT "mc_cainpct" FROM "by_county" WHERE "county"='HAMILTON';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obamanum" real, "obamapct" text, "mc_cainnum" real, "mc_cainpct" text ); Question: What percentage did Obama get when McCain got 52.8%? <|assistant|> SELECT "obamapct" FROM "by_county" WHERE "mc_cainpct"='52.8%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obamanum" real, "obamapct" text, "mc_cainnum" real, "mc_cainpct" text ); Question: How many votes did Obama get in Lake County? <|assistant|> SELECT MIN("obamanum") FROM "by_county" WHERE "county"='LAKE';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real ); Question: In how many counties did McCain get 65.72% of the votes? <|assistant|> SELECT COUNT("county") FROM "by_county" WHERE "mc_cainpct"='65.72%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real ); Question: How many people voted for Obama in the county where McCain got 72.75% of the votes? <|assistant|> SELECT MIN("obamanum") FROM "by_county" WHERE "mc_cainpct"='72.75%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real ); Question: What percentage of the votes did McCain get in Hinds? <|assistant|> SELECT "mc_cainpct" FROM "by_county" WHERE "county"='Hinds';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real ); Question: How many votes did McCain get in Scott? <|assistant|> SELECT MIN("mc_cainnum") FROM "by_county" WHERE "county"='Scott';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real ); Question: What percentage of the votes in Tippah did Obama get? <|assistant|> SELECT "obamapct" FROM "by_county" WHERE "county"='Tippah';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real ); Question: What percentage of the votes in Copiah did McCain get? <|assistant|> SELECT "mc_cainpct" FROM "by_county" WHERE "county"='Copiah';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fares" ( "type_of_fare" text, "cash_fare" text, "day_pass" text, "31_day_pass" text, "monthly_pass" text ); Question: When n/a is the cash fate and n/a is the 31-day pass how many types of fare are there? <|assistant|> SELECT COUNT("type_of_fare") FROM "fares" WHERE "31_day_pass"='N/A' AND "cash_fare"='N/A';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fares" ( "type_of_fare" text, "cash_fare" text, "day_pass" text, "31_day_pass" text, "monthly_pass" text ); Question: When fixed route is the type of fare how much is the 31-day pass? <|assistant|> SELECT "31_day_pass" FROM "fares" WHERE "type_of_fare"='Fixed Route';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fares" ( "type_of_fare" text, "cash_fare" text, "day_pass" text, "31_day_pass" text, "monthly_pass" text ); Question: When mega pass* (senior/disabled) is the type of fare what is the cash fare? <|assistant|> SELECT "cash_fare" FROM "fares" WHERE "type_of_fare"='Mega Pass* (Senior/Disabled)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fares" ( "type_of_fare" text, "cash_fare" text, "day_pass" text, "31_day_pass" text, "monthly_pass" text ); Question: When mega pass* (senior/disabled) is the type of fare what is the day pass? <|assistant|> SELECT "day_pass" FROM "fares" WHERE "type_of_fare"='Mega Pass* (Senior/Disabled)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fares" ( "type_of_fare" text, "cash_fare" text, "day_pass" text, "31_day_pass" text, "monthly_pass" text ); Question: When fort irwin-barstow/victorville is the type of fare what is the cash fare? <|assistant|> SELECT "cash_fare" FROM "fares" WHERE "type_of_fare"='Fort Irwin-Barstow/Victorville';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_statistics" ( "no" real, "player" text, "league_apps" real, "league_goals" real, "cup_apps" real, "cup_goals" real, "total_apps" real, "total_goals" real, "yc" real, "rc" real ); Question: Where total goals is 1 and total apps is 33, what is the smallest no.? <|assistant|> SELECT MIN("no") FROM "player_statistics" WHERE "total_goals"=1 AND "total_apps"=33;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2082992_5" ( "city_utility" text, "residential_monthly_usage_1000_k_wh" text, "small_power_power_demand_40_k_w_consumption_10_000_k_wh_load_factor_35pct" text, "medium_power_power_demand_1_000_k_w_consumption_400_000_k_wh_load_factor_56_pct" text, "large_power_power_demand_50_000_k_w_consumption_30_600_000_k_wh_load_factor_85pct" text ); Question: What is every residential monthly usage if large power demand is 6.86? <|assistant|> SELECT "residential_monthly_usage_1000_k_wh" FROM "table1_2082992_5" WHERE "large_power_power_demand_50_000_k_w_consumption_30_600_000_k_wh_load_factor_85pct"='6.86';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2082992_5" ( "city_utility" text, "residential_monthly_usage_1000_k_wh" text, "small_power_power_demand_40_k_w_consumption_10_000_k_wh_load_factor_35pct" text, "medium_power_power_demand_1_000_k_w_consumption_400_000_k_wh_load_factor_56_pct" text, "large_power_power_demand_50_000_k_w_consumption_30_600_000_k_wh_load_factor_85pct" text ); Question: How many values for small power demand occur when medium power demand is 11.07? <|assistant|> SELECT COUNT("small_power_power_demand_40_k_w_consumption_10_000_k_wh_load_factor_35pct") FROM "table1_2082992_5" WHERE "medium_power_power_demand_1_000_k_w_consumption_400_000_k_wh_load_factor_56_pct"='11.07';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2082992_5" ( "city_utility" text, "residential_monthly_usage_1000_k_wh" text, "small_power_power_demand_40_k_w_consumption_10_000_k_wh_load_factor_35pct" text, "medium_power_power_demand_1_000_k_w_consumption_400_000_k_wh_load_factor_56_pct" text, "large_power_power_demand_50_000_k_w_consumption_30_600_000_k_wh_load_factor_85pct" text ); Question: What is every value for large power demand when small power demand is 13.41? <|assistant|> SELECT "large_power_power_demand_50_000_k_w_consumption_30_600_000_k_wh_load_factor_85pct" FROM "table1_2082992_5" WHERE "small_power_power_demand_40_k_w_consumption_10_000_k_wh_load_factor_35pct"='13.41';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2082992_5" ( "city_utility" text, "residential_monthly_usage_1000_k_wh" text, "small_power_power_demand_40_k_w_consumption_10_000_k_wh_load_factor_35pct" text, "medium_power_power_demand_1_000_k_w_consumption_400_000_k_wh_load_factor_56_pct" text, "large_power_power_demand_50_000_k_w_consumption_30_600_000_k_wh_load_factor_85pct" text ); Question: What is every city with a residential monthly usage of 11.80? <|assistant|> SELECT "city_utility" FROM "table1_2082992_5" WHERE "residential_monthly_usage_1000_k_wh"='11.80';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "line_honours_results_top_10" ( "position" real, "race_number" text, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "elapsed_time_d_hh_mm_ss" text ); Question: What position is the boat with 20.12 LOA (metres)? <|assistant|> SELECT MAX("position") FROM "line_honours_results_top_10" WHERE "loa_metres"='20.12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "line_honours_results_top_10" ( "position" real, "race_number" text, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "elapsed_time_d_hh_mm_ss" text ); Question: What are the LOA (metres) of boat with sail number M10? <|assistant|> SELECT "loa_metres" FROM "line_honours_results_top_10" WHERE "sail_number"='M10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "line_honours_results_top_10" ( "position" real, "race_number" text, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "elapsed_time_d_hh_mm_ss" text ); Question: What is the race number with time 1:23:19:31? <|assistant|> SELECT "race_number" FROM "line_honours_results_top_10" WHERE "elapsed_time_d_hh_mm_ss"='1:23:19:31';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "line_honours_results_top_10" ( "position" real, "race_number" text, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "elapsed_time_d_hh_mm_ss" text ); Question: How many LOA (metres) reported for Black Jack? <|assistant|> SELECT COUNT("loa_metres") FROM "line_honours_results_top_10" WHERE "yacht"='Black Jack';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "line_honours_results_top_10" ( "position" real, "race_number" text, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "elapsed_time_d_hh_mm_ss" text ); Question: What race number had sail number AUS 98888? <|assistant|> SELECT "race_number" FROM "line_honours_results_top_10" WHERE "sail_number"='AUS 98888';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "line_honours_results_top_10" ( "position" real, "race_number" text, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "elapsed_time_d_hh_mm_ss" text ); Question: How many sail numbers for boat skippered by Geoff Ross? <|assistant|> SELECT COUNT("sail_number") FROM "line_honours_results_top_10" WHERE "skipper"='Geoff Ross';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "orangemen_points" real, "opponents" real, "record" text ); Question: When did they play against West Virginia? <|assistant|> SELECT "date" FROM "schedule" WHERE "opponent"='West Virginia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season_record" ( "season" text, "gp" real, "w_ot_so" text, "l_ot_so" text, "pts" real, "pts_gp" text, "gf_ga" text, "rank_league_conference" text, "top_scorer" text ); Question: When l (ot/so) is 22 (3/4), what is the season? <|assistant|> SELECT "season" FROM "regular_season_record" WHERE "l_ot_so"='22 (3/4)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season_record" ( "season" text, "gp" real, "w_ot_so" text, "l_ot_so" text, "pts" real, "pts_gp" text, "gf_ga" text, "rank_league_conference" text, "top_scorer" text ); Question: In season is 2008–09, how many wins did they have? <|assistant|> SELECT "w_ot_so" FROM "regular_season_record" WHERE "season"='2008–09';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20860739_1" ( "round" real, "choice" real, "player" text, "position" text, "height" text, "weight" real, "college" text ); Question: What is the weight of Eben Britton? <|assistant|> SELECT MAX("weight") FROM "table1_20860739_1" WHERE "player"='Eben Britton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20860739_1" ( "round" real, "choice" real, "player" text, "position" text, "height" text, "weight" real, "college" text ); Question: How many rounds did Virginia have? <|assistant|> SELECT "round" FROM "table1_20860739_1" WHERE "college"='Virginia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20860739_1" ( "round" real, "choice" real, "player" text, "position" text, "height" text, "weight" real, "college" text ); Question: How many rounds were there a height of 6'5? <|assistant|> SELECT "round" FROM "table1_20860739_1" WHERE "height"='6''5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20860739_1" ( "round" real, "choice" real, "player" text, "position" text, "height" text, "weight" real, "college" text ); Question: What college has a player that is 6'1? <|assistant|> SELECT "college" FROM "table1_20860739_1" WHERE "height"='6''1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20860739_1" ( "round" real, "choice" real, "player" text, "position" text, "height" text, "weight" real, "college" text ); Question: What is the number of Mike Thomas? <|assistant|> SELECT COUNT("position") FROM "table1_20860739_1" WHERE "player"='Mike Thomas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20861261_4" ( "round" real, "choice" real, "player" text, "position" text, "height" text, "weight" text, "college" text ); Question: What college did Terrance Taylor play for? <|assistant|> SELECT "college" FROM "table1_20861261_4" WHERE "player"='Terrance Taylor';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20861261_4" ( "round" real, "choice" real, "player" text, "position" text, "height" text, "weight" text, "college" text ); Question: What's Curtis Painter's position? <|assistant|> SELECT "position" FROM "table1_20861261_4" WHERE "player"='Curtis Painter';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20861261_4" ( "round" real, "choice" real, "player" text, "position" text, "height" text, "weight" text, "college" text ); Question: How much does the player from Southern California weight? <|assistant|> SELECT "weight" FROM "table1_20861261_4" WHERE "college"='Southern California';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20861261_4" ( "round" real, "choice" real, "player" text, "position" text, "height" text, "weight" text, "college" text ); Question: What's Curtis Painter's position? <|assistant|> SELECT "position" FROM "table1_20861261_4" WHERE "player"='Curtis Painter';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20861261_4" ( "round" real, "choice" real, "player" text, "position" text, "height" text, "weight" text, "college" text ); Question: In what round did the player who weights 192lb (87kg) play? <|assistant|> SELECT MAX("round") FROM "table1_20861261_4" WHERE "weight"='192lb (87kg)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20861261_4" ( "round" real, "choice" real, "player" text, "position" text, "height" text, "weight" text, "college" text ); Question: What's the choice score of the player who weights 303lb (137kg)? <|assistant|> SELECT MIN("choice") FROM "table1_20861261_4" WHERE "weight"='303lb (137kg)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technical_specifications" ( "model_type" text, "model_designation" text, "engine" text, "wheelbase_mm_inch" text, "gvw_kg_ton" text, "axle_ratio" text ); Question: How many different engines are there for the model with model designation 97G00? <|assistant|> SELECT COUNT("engine") FROM "technical_specifications" WHERE "model_designation"='97G00';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technical_specifications" ( "model_type" text, "model_designation" text, "engine" text, "wheelbase_mm_inch" text, "gvw_kg_ton" text, "axle_ratio" text ); Question: What's the engine for the model model designation 97G00 and GVW of 2500/2.46 kg/ton? <|assistant|> SELECT "engine" FROM "technical_specifications" WHERE "gvw_kg_ton"='2500/2.46' AND "model_designation"='97G00';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technical_specifications" ( "model_type" text, "model_designation" text, "engine" text, "wheelbase_mm_inch" text, "gvw_kg_ton" text, "axle_ratio" text ); Question: What model type has model designation 97500? <|assistant|> SELECT "model_type" FROM "technical_specifications" WHERE "model_designation"='97500';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technical_specifications" ( "model_type" text, "model_designation" text, "engine" text, "wheelbase_mm_inch" text, "gvw_kg_ton" text, "axle_ratio" text ); Question: What's the axle ratio of the model with model designation 97G00? <|assistant|> SELECT "axle_ratio" FROM "technical_specifications" WHERE "model_designation"='97G00';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technical_specifications" ( "model_type" text, "model_designation" text, "engine" text, "wheelbase_mm_inch" text, "gvw_kg_ton" text, "axle_ratio" text ); Question: What model type has 97100 model designation? <|assistant|> SELECT "model_type" FROM "technical_specifications" WHERE "model_designation"='97100';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technical_specifications" ( "model_type" text, "model_designation" text, "engine" text, "wheelbase_mm_inch" text, "gvw_kg_ton" text, "axle_ratio" text ); Question: What type of engine does the model with model designation 97100 have? <|assistant|> SELECT "engine" FROM "technical_specifications" WHERE "model_designation"='97100';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technical_specifications" ( "model_type" text, "model_designation" text, "engine" text, "wheelbase_mm_inch" text, "gvw_kg_ton" text, "axle_ratio" text ); Question: What's the wheelbase (in mm/inch) of the model with model designation 97G00? <|assistant|> SELECT "wheelbase_mm_inch" FROM "technical_specifications" WHERE "model_designation"='97G00';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technical_specifications" ( "model_type" text, "model_designation" text, "engine" text, "wheelbase_mm_inch" text, "gvw_kg_ton" text, "axle_ratio" text ); Question: What type of engine does the model with model designation 97F00 have? <|assistant|> SELECT "engine" FROM "technical_specifications" WHERE "model_designation"='97F00';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technical_specifications" ( "model_type" text, "model_designation" text, "engine" text, "wheelbase_mm_inch" text, "gvw_kg_ton" text, "axle_ratio" text ); Question: What's the model designation of the model with GVW of 2828/2.78 kg/ton and axle ratio of 9/47? <|assistant|> SELECT "model_designation" FROM "technical_specifications" WHERE "gvw_kg_ton"='2828/2.78' AND "axle_ratio"='9/47';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20871703_1" ( "round" real, "choice" real, "player_name" text, "position" text, "height" text, "weight" real, "college" text ); Question: Who is the player name when eastern michigan is the college? <|assistant|> SELECT "player_name" FROM "table1_20871703_1" WHERE "college"='Eastern Michigan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20871703_1" ( "round" real, "choice" real, "player_name" text, "position" text, "height" text, "weight" real, "college" text ); Question: What is the height if ot is the position? <|assistant|> SELECT "height" FROM "table1_20871703_1" WHERE "position"='OT';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20871703_1" ( "round" real, "choice" real, "player_name" text, "position" text, "height" text, "weight" real, "college" text ); Question: Who is the player for south carolina college? <|assistant|> SELECT "player_name" FROM "table1_20871703_1" WHERE "college"='South Carolina';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20871703_1" ( "round" real, "choice" real, "player_name" text, "position" text, "height" text, "weight" real, "college" text ); Question: What is the height if de is the position? <|assistant|> SELECT COUNT("height") FROM "table1_20871703_1" WHERE "position"='DE';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20871703_1" ( "round" real, "choice" real, "player_name" text, "position" text, "height" text, "weight" real, "college" text ); Question: Which college has fb as the position? <|assistant|> SELECT "college" FROM "table1_20871703_1" WHERE "position"='FB';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technical_specifications" ( "model_type" text, "model_designation" text, "engine" text, "wheelbase_mm_inch" text, "gvw_kg_ton" text, "axle_ratio" text ); Question: What is the GVW for model 97H00? <|assistant|> SELECT "gvw_kg_ton" FROM "technical_specifications" WHERE "model_designation"='97H00';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technical_specifications" ( "model_type" text, "model_designation" text, "engine" text, "wheelbase_mm_inch" text, "gvw_kg_ton" text, "axle_ratio" text ); Question: How many engines are there for model 97H00? <|assistant|> SELECT COUNT("engine") FROM "technical_specifications" WHERE "model_designation"='97H00';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technical_specifications" ( "model_type" text, "model_designation" text, "engine" text, "wheelbase_mm_inch" text, "gvw_kg_ton" text, "axle_ratio" text ); Question: What is the Wheelbase for Model 97300? <|assistant|> SELECT "wheelbase_mm_inch" FROM "technical_specifications" WHERE "model_designation"='97300';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technical_specifications" ( "model_type" text, "model_designation" text, "engine" text, "wheelbase_mm_inch" text, "gvw_kg_ton" text, "axle_ratio" text ); Question: Name the Engine for model CF350. <|assistant|> SELECT "engine" FROM "technical_specifications" WHERE "model_type"='CF350';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "rd" real, "race_title" text, "circuit" text, "location" text, "date" text, "format" text, "winner" text, "team" text, "report" text ); Question: Was the result of the supercheap auto bathurst 1000 reported? <|assistant|> SELECT "report" FROM "race_calendar" WHERE "race_title"='Supercheap Auto Bathurst 1000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "rd" real, "race_title" text, "circuit" text, "location" text, "date" text, "format" text, "winner" text, "team" text, "report" text ); Question: Who was the winner of the race at barbagallo raceway? <|assistant|> SELECT "winner" FROM "race_calendar" WHERE "circuit"='Barbagallo Raceway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_pittsburgh_steelers_draft_selection" ( "round" real, "pick_num" real, "player" text, "position" text, "height" text, "weight" text, "college" text, "status" text ); Question: how many players played running back where status is made 53-man roster at start of 2009 season <|assistant|> SELECT COUNT("player") FROM "2009_pittsburgh_steelers_draft_selection" WHERE "status"='Made 53-man roster at start of 2009 season' AND "position"='Running back';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_pittsburgh_steelers_draft_selection" ( "round" real, "pick_num" real, "player" text, "position" text, "height" text, "weight" text, "college" text, "status" text ); Question: howe many positions did wallace, mike mike wallace play for <|assistant|> SELECT COUNT("position") FROM "2009_pittsburgh_steelers_draft_selection" WHERE "player"='Wallace, Mike Mike Wallace';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_pittsburgh_steelers_draft_selection" ( "round" real, "pick_num" real, "player" text, "position" text, "height" text, "weight" text, "college" text, "status" text ); Question: state the status of pick # 32 <|assistant|> SELECT "status" FROM "2009_pittsburgh_steelers_draft_selection" WHERE "pick_num"=32;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_pittsburgh_steelers_draft_selection" ( "round" real, "pick_num" real, "player" text, "position" text, "height" text, "weight" text, "college" text, "status" text ); Question: which college had a running back player <|assistant|> SELECT "college" FROM "2009_pittsburgh_steelers_draft_selection" WHERE "position"='Running back';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_pittsburgh_steelers_draft_selection" ( "round" real, "pick_num" real, "player" text, "position" text, "height" text, "weight" text, "college" text, "status" text ); Question: what is the position of the player of height ft0in (m) <|assistant|> SELECT "position" FROM "2009_pittsburgh_steelers_draft_selection" WHERE "height"='ft0in (m)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_pittsburgh_steelers_draft_selection" ( "round" real, "pick_num" real, "player" text, "position" text, "height" text, "weight" text, "college" text, "status" text ); Question: what's the position of pick # 79 <|assistant|> SELECT "position" FROM "2009_pittsburgh_steelers_draft_selection" WHERE "pick_num"=79;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_career_passing_records" ( "name" text, "completions" real, "attempts" real, "completion_pct" text, "yards" real, "touchdowns" real, "interceptions" real, "qb_rating" text ); Question: How many touchdowns were scored when QB rating was 82.7? <|assistant|> SELECT MAX("touchdowns") FROM "team_career_passing_records" WHERE "qb_rating"='82.7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_career_passing_records" ( "name" text, "completions" real, "attempts" real, "completion_pct" text, "yards" real, "touchdowns" real, "interceptions" real, "qb_rating" text ); Question: What was the QB rating for Neil lomax? <|assistant|> SELECT "qb_rating" FROM "team_career_passing_records" WHERE "name"='Neil Lomax';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_career_passing_records" ( "name" text, "completions" real, "attempts" real, "completion_pct" text, "yards" real, "touchdowns" real, "interceptions" real, "qb_rating" text ); Question: How many attempts did Charley Johnson have? <|assistant|> SELECT COUNT("attempts") FROM "team_career_passing_records" WHERE "name"='Charley Johnson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_career_passing_records" ( "name" text, "completions" real, "attempts" real, "completion_pct" text, "yards" real, "touchdowns" real, "interceptions" real, "qb_rating" text ); Question: How many touchdowns were there with QB rating of 66.6? <|assistant|> SELECT "touchdowns" FROM "team_career_passing_records" WHERE "qb_rating"='66.6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cardinals_points" real, "opponents" real, "record" text ); Question: Name the number opponent for loss result <|assistant|> SELECT COUNT("opponent") FROM "schedule" WHERE "result"='Loss';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cardinals_points" real, "opponents" real, "record" text ); Question: Name the game for record being 3-0 <|assistant|> SELECT "game" FROM "schedule" WHERE "record"='3-0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cardinals_points" real, "opponents" real, "record" text ); Question: What was the date of game 6? <|assistant|> SELECT "date" FROM "schedule" WHERE "game"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cardinals_points" real, "opponents" real, "record" text ); Question: What was the record for the game where the cardinals scored 7 points? <|assistant|> SELECT "record" FROM "schedule" WHERE "cardinals_points"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cardinals_points" real, "opponents" real, "record" text ); Question: What game date had the record of 1-2? <|assistant|> SELECT "date" FROM "schedule" WHERE "record"='1-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cardinals_points" real, "opponents" real, "record" text ); Question: How many opponents were in North Carolina state game? <|assistant|> SELECT COUNT("opponents") FROM "schedule" WHERE "opponent"='North Carolina State';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "moto_gp_winner" text, "moto2_winner" text, "125cc_winner" text, "report" text ); Question: How many 125cc winners were in the same events as when the Moto2 winner was Shoya Tomizawa? <|assistant|> SELECT COUNT("125cc_winner") FROM "grands_prix" WHERE "moto2_winner"='Shoya Tomizawa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "hurricanes_points" real, "opponents" real, "record" text ); Question: After how many opponents was the overall record 1-0-0? <|assistant|> SELECT COUNT("opponents") FROM "schedule" WHERE "record"='1-0-0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "hurricanes_points" real, "opponents" real, "record" text ); Question: What was the record after the game in which the Hurricanes scored 24 points? <|assistant|> SELECT "record" FROM "schedule" WHERE "hurricanes_points"=24;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "hurricanes_points" real, "opponents" real, "record" text ); Question: Which game number was played against Georgia? <|assistant|> SELECT MIN("game") FROM "schedule" WHERE "opponent"='Georgia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "hurricanes_points" real, "opponents" real, "record" text ); Question: How many games were played against Tulane? <|assistant|> SELECT COUNT("opponents") FROM "schedule" WHERE "opponent"='Tulane';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2093995_1" ( "stations" text, "connections" text, "city_neighborhood" text, "parking" text, "date_opened" text ); Question: How much parking is in Van Nuys at the Sepulveda station? <|assistant|> SELECT "parking" FROM "table1_2093995_1" WHERE "city_neighborhood"='Van Nuys' AND "stations"='Sepulveda';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2093995_1" ( "stations" text, "connections" text, "city_neighborhood" text, "parking" text, "date_opened" text ); Question: What are the stations in Tarzana? <|assistant|> SELECT "stations" FROM "table1_2093995_1" WHERE "city_neighborhood"='Tarzana';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2093995_1" ( "stations" text, "connections" text, "city_neighborhood" text, "parking" text, "date_opened" text ); Question: How many connection catagories are there for Tampa? <|assistant|> SELECT COUNT("connections") FROM "table1_2093995_1" WHERE "stations"='Tampa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2093995_1" ( "stations" text, "connections" text, "city_neighborhood" text, "parking" text, "date_opened" text ); Question: Which station has park & ride lot parking? <|assistant|> SELECT "stations" FROM "table1_2093995_1" WHERE "parking"='Park & Ride Lot';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "lwat" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text ); Question: Which player has a 92.58 3-dart average? <|assistant|> SELECT "player" FROM "statistics" WHERE "3_dart_average"='92.58';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "lwat" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text ); Question: What is the 3-dart average with a high checkout of 112? <|assistant|> SELECT "3_dart_average" FROM "statistics" WHERE "high_checkout"=112;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "lwat" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text ); Question: What is the high checkout when played is 2 and 36 is 100+? <|assistant|> SELECT MIN("high_checkout") FROM "statistics" WHERE "played"=2 AND "100"=36;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "lwat" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text ); Question: How many 180s have legs won of 45? <|assistant|> SELECT MAX("180s") FROM "statistics" WHERE "legs_won"=45;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "lwat" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text ); Question: How many legs won have 95.29 as a 3-dart average? <|assistant|> SELECT "legs_won" FROM "statistics" WHERE "3_dart_average"='95.29';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2003_fed_ex_ground_winners" ( "week" real, "player" text, "team" text, "opponent" text, "carries" real, "yards" real, "average" text, "touchdowns" real ); Question: The player who had 145 yards had how many touchdowns? <|assistant|> SELECT COUNT("touchdowns") FROM "2003_fed_ex_ground_winners" WHERE "yards"=145;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2003_fed_ex_ground_winners" ( "week" real, "player" text, "team" text, "opponent" text, "carries" real, "yards" real, "average" text, "touchdowns" real ); Question: Which team did the player have who had 27 total carries? <|assistant|> SELECT "team" FROM "2003_fed_ex_ground_winners" WHERE "carries"=27;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2003_fed_ex_ground_winners" ( "week" real, "player" text, "team" text, "opponent" text, "carries" real, "yards" real, "average" text, "touchdowns" real ); Question: What was the player's team's opponent for Week 12? <|assistant|> SELECT "opponent" FROM "2003_fed_ex_ground_winners" WHERE "week"=12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20967430_4" ( "ep" real, "season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text ); Question: Who directed the episode that originally aired on March 18, 1988? <|assistant|> SELECT "directed_by" FROM "table1_20967430_4" WHERE "original_air_date"='March 18, 1988';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20967430_4" ( "ep" real, "season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text ); Question: What is the episode number in the series for "graduation" that was directed by Don Corvan? <|assistant|> SELECT MIN("ep") FROM "table1_20967430_4" WHERE "directed_by"='Don Corvan' AND "title"='\"Graduation\"';<|endoftext|>