text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what amount of try bonus where the game was won by 11? <|assistant|> SELECT COUNT("try_bonus") FROM "2009_2010_table" WHERE "won"='11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what is the total amount of tries where the points were 325? <|assistant|> SELECT COUNT("tries_against") FROM "2009_2010_table" WHERE "points_for"='325';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: What is the name of the column points against? <|assistant|> SELECT "points_against" FROM "2008_2009_table" WHERE "points"='Points';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: How many points for when the points was 53? <|assistant|> SELECT "points_for" FROM "2008_2009_table" WHERE "points"='53';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: What is the played total when the points against was 321? <|assistant|> SELECT "played" FROM "2008_2009_table" WHERE "points_against"='321';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: How many tries for when the points against was 547? <|assistant|> SELECT "tries_for" FROM "2008_2009_table" WHERE "points_against"='547';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: How many total games drawn for club tylorstown rfc? <|assistant|> SELECT "drawn" FROM "2008_2009_table" WHERE "club"='Tylorstown RFC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "renewable_electricity_in_spain_g_wh_2006" ( "autonomous_community" text, "hydroelectric_power" real, "wind_power" real, "solar_power" real, "biomass_power" real, "solid_waste_power" real, "total_renewable_generation" real, "total_electricity_demand" real, "pct_renewable_of_total_electricity_demand" text ); Question: How many communities had a total renewable generation of 1375? <|assistant|> SELECT COUNT("autonomous_community") FROM "renewable_electricity_in_spain_g_wh_2006" WHERE "total_renewable_generation"=1375;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "renewable_electricity_in_spain_g_wh_2006" ( "autonomous_community" text, "hydroelectric_power" real, "wind_power" real, "solar_power" real, "biomass_power" real, "solid_waste_power" real, "total_renewable_generation" real, "total_electricity_demand" real, "pct_renewable_of_total_electricity_demand" text ); Question: What is the total demand for electricity when the demand for renewable electricity demand is 2.2%? <|assistant|> SELECT "total_electricity_demand" FROM "renewable_electricity_in_spain_g_wh_2006" WHERE "pct_renewable_of_total_electricity_demand"='2.2%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "renewable_electricity_in_spain_g_wh_2006" ( "autonomous_community" text, "hydroelectric_power" real, "wind_power" real, "solar_power" real, "biomass_power" real, "solid_waste_power" real, "total_renewable_generation" real, "total_electricity_demand" real, "pct_renewable_of_total_electricity_demand" text ); Question: What is the lowest numbered hydroelectric power when the renewable electricity demand is 21.5%? <|assistant|> SELECT MIN("hydroelectric_power") FROM "renewable_electricity_in_spain_g_wh_2006" WHERE "pct_renewable_of_total_electricity_demand"='21.5%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "renewable_electricity_in_spain_g_wh_2006" ( "autonomous_community" text, "hydroelectric_power" real, "wind_power" real, "solar_power" real, "biomass_power" real, "solid_waste_power" real, "total_renewable_generation" real, "total_electricity_demand" real, "pct_renewable_of_total_electricity_demand" text ); Question: What is the community with a wind power of 1042? <|assistant|> SELECT "autonomous_community" FROM "renewable_electricity_in_spain_g_wh_2006" WHERE "wind_power"=1042;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2002_03_season_as_a_six_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text ); Question: How many races were for a distance of 2020 m? <|assistant|> SELECT COUNT("group") FROM "2002_03_season_as_a_six_year_old" WHERE "distance"='2020 m';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2002_03_season_as_a_six_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text ); Question: Who was the winner of the race at Belmont? <|assistant|> SELECT "winner_2nd" FROM "2002_03_season_as_a_six_year_old" WHERE "venue"='Belmont';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2002_03_season_as_a_six_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text ); Question: On what date did Northerly place 6th? <|assistant|> SELECT "date" FROM "2002_03_season_as_a_six_year_old" WHERE "result"='6th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2002_03_season_as_a_six_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text ); Question: What was the weight in kg on the day of the race at Ranvet Stakes? <|assistant|> SELECT "weight_kg" FROM "2002_03_season_as_a_six_year_old" WHERE "race"='Ranvet Stakes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2002_03_season_as_a_six_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text ); Question: What was Northerly's result at the race on 19 Oct 2002? <|assistant|> SELECT "result" FROM "2002_03_season_as_a_six_year_old" WHERE "date"='19 Oct 2002';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2002_03_season_as_a_six_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text ); Question: What was the distance of the race in which Northerly raced in group G3? <|assistant|> SELECT "distance" FROM "2002_03_season_as_a_six_year_old" WHERE "group"='G3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "security_features" ( "distribution" text, "compile_time_buffer_checks" text, "mandatory_access_control" text, "software_executable_space_protection" text, "grsecurity" text, "rsbac" text ); Question: what's the software executable space protection with dbeingtribution being gentoo <|assistant|> SELECT "software_executable_space_protection" FROM "security_features" WHERE "distribution"='Gentoo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "security_features" ( "distribution" text, "compile_time_buffer_checks" text, "mandatory_access_control" text, "software_executable_space_protection" text, "grsecurity" text, "rsbac" text ); Question: what's the dbeingtribution with grsecurity being no <|assistant|> SELECT "distribution" FROM "security_features" WHERE "grsecurity"='No';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "security_features" ( "distribution" text, "compile_time_buffer_checks" text, "mandatory_access_control" text, "software_executable_space_protection" text, "grsecurity" text, "rsbac" text ); Question: what's the grsecurity with dbeingtribution being debian / ubuntu <|assistant|> SELECT "grsecurity" FROM "security_features" WHERE "distribution"='Debian / Ubuntu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "security_features" ( "distribution" text, "compile_time_buffer_checks" text, "mandatory_access_control" text, "software_executable_space_protection" text, "grsecurity" text, "rsbac" text ); Question: what's the software executable space protection with dbeingtribution being gentoo <|assistant|> SELECT "software_executable_space_protection" FROM "security_features" WHERE "distribution"='Gentoo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "security_features" ( "distribution" text, "compile_time_buffer_checks" text, "mandatory_access_control" text, "software_executable_space_protection" text, "grsecurity" text, "rsbac" text ); Question: what's the dbeingtribution with grsecurity being optional and compile time buffer checks being yes <|assistant|> SELECT "distribution" FROM "security_features" WHERE "grsecurity"='Optional' AND "compile_time_buffer_checks"='Yes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "security_features" ( "distribution" text, "compile_time_buffer_checks" text, "mandatory_access_control" text, "software_executable_space_protection" text, "grsecurity" text, "rsbac" text ); Question: what's the dbeingtribution with rsbac being unknown <|assistant|> SELECT "distribution" FROM "security_features" WHERE "rsbac"='Unknown';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "government" ( "district" text, "2012_commission" text, "2010_commission" text, "2007_commission" text, "2002_commission" text, "1999_commission" text ); Question: Who is on the 2002 commission from district 3? <|assistant|> SELECT "2002_commission" FROM "government" WHERE "district"='District 3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "government" ( "district" text, "2012_commission" text, "2010_commission" text, "2007_commission" text, "2002_commission" text, "1999_commission" text ); Question: What district for charlie oliver of the 2012 commission? <|assistant|> SELECT "district" FROM "government" WHERE "2012_commission"='Charlie Oliver';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "government" ( "district" text, "2012_commission" text, "2010_commission" text, "2007_commission" text, "2002_commission" text, "1999_commission" text ); Question: Who was on the 2012 commission and the 1999 commission with john wilborn? <|assistant|> SELECT "2012_commission" FROM "government" WHERE "1999_commission"='John Wilborn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "government" ( "district" text, "2012_commission" text, "2010_commission" text, "2007_commission" text, "2002_commission" text, "1999_commission" text ); Question: How many people named gloria moon were on the 2002 and 2012 commissions? <|assistant|> SELECT COUNT("2002_commission") FROM "government" WHERE "2012_commission"='Gloria Moon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_parish" ( "parish" text, "bushnum" real, "bushpct" text, "kerrynum" real, "kerrypct" text, "othersnum" real, "otherspct" text, "totalnum" real ); Question: what's the others% with parbeingh being tangipahoa <|assistant|> SELECT "otherspct" FROM "by_parish" WHERE "parish"='Tangipahoa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_parish" ( "parish" text, "bushnum" real, "bushpct" text, "kerrynum" real, "kerrypct" text, "othersnum" real, "otherspct" text, "totalnum" real ); Question: what is the maximum bush# with others% being 1.57% <|assistant|> SELECT MAX("bushnum") FROM "by_parish" WHERE "otherspct"='1.57%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_parish" ( "parish" text, "bushnum" real, "bushpct" text, "kerrynum" real, "kerrypct" text, "othersnum" real, "otherspct" text, "totalnum" real ); Question: how many bush% with total# being 191269 <|assistant|> SELECT COUNT("bushpct") FROM "by_parish" WHERE "totalnum"=191269;<|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: What is the highest game number? <|assistant|> SELECT MAX("game") FROM "game_log";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2002_03_season_as_a_four_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" text, "time" text, "jockey" text, "winner_2nd" text ); Question: How many entries are there for weight when the winner is 1st - defier and venue is randwick? <|assistant|> SELECT COUNT("weight_kg") FROM "2002_03_season_as_a_four_year_old" WHERE "winner_2nd"='1st - Defier' AND "venue"='Randwick';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2002_03_season_as_a_four_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" text, "time" text, "jockey" text, "winner_2nd" text ); Question: Who was the jockey at Rosehill and the weight was 57.5 kg? <|assistant|> SELECT "jockey" FROM "2002_03_season_as_a_four_year_old" WHERE "venue"='Rosehill' AND "weight_kg"='57.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2002_03_season_as_a_four_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" text, "time" text, "jockey" text, "winner_2nd" text ); Question: When the time is 1:36.30 what shows as winner? <|assistant|> SELECT "winner_2nd" FROM "2002_03_season_as_a_four_year_old" WHERE "time"='1:36.30';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes" ( "district" text, "2010_population_000" real, "2008_gdp_usd_bn_a" text, "2008_gdp_per_capita_usd_a" real, "agri_culture_b" text, "mining_b" text, "manufac_turing_b" text, "services_cons_truction_b" text, "exports_usd_mn_2011" real, "median_mo_salary_usd_a_e" real, "vehicles_per_1000_d" real, "income_poverty_f" text, "structural_poverty_g" text ); Question: What was the depravitiy of earnings where international sales was 2470? <|assistant|> SELECT "income_poverty_f" FROM "notes" WHERE "exports_usd_mn_2011"=2470;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes" ( "district" text, "2010_population_000" real, "2008_gdp_usd_bn_a" text, "2008_gdp_per_capita_usd_a" real, "agri_culture_b" text, "mining_b" text, "manufac_turing_b" text, "services_cons_truction_b" text, "exports_usd_mn_2011" real, "median_mo_salary_usd_a_e" real, "vehicles_per_1000_d" real, "income_poverty_f" text, "structural_poverty_g" text ); Question: What was head count in 2010 where the farm production is 6.9? <|assistant|> SELECT MAX("2010_population_000") FROM "notes" WHERE "agri_culture_b"='6.9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes" ( "district" text, "2010_population_000" real, "2008_gdp_usd_bn_a" text, "2008_gdp_per_capita_usd_a" real, "agri_culture_b" text, "mining_b" text, "manufac_turing_b" text, "services_cons_truction_b" text, "exports_usd_mn_2011" real, "median_mo_salary_usd_a_e" real, "vehicles_per_1000_d" real, "income_poverty_f" text, "structural_poverty_g" text ); Question: How many districts had an depravity level of 27.7 <|assistant|> SELECT COUNT("district") FROM "notes" WHERE "income_poverty_f"='27.7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes" ( "district" text, "2010_population_000" real, "2008_gdp_usd_bn_a" text, "2008_gdp_per_capita_usd_a" real, "agri_culture_b" text, "mining_b" text, "manufac_turing_b" text, "services_cons_truction_b" text, "exports_usd_mn_2011" real, "median_mo_salary_usd_a_e" real, "vehicles_per_1000_d" real, "income_poverty_f" text, "structural_poverty_g" text ); Question: How low was the income where services is 72.5? <|assistant|> SELECT "income_poverty_f" FROM "notes" WHERE "services_cons_truction_b"='72.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes" ( "district" text, "2010_population_000" real, "2008_gdp_usd_bn_a" text, "2008_gdp_per_capita_usd_a" real, "agri_culture_b" text, "mining_b" text, "manufac_turing_b" text, "services_cons_truction_b" text, "exports_usd_mn_2011" real, "median_mo_salary_usd_a_e" real, "vehicles_per_1000_d" real, "income_poverty_f" text, "structural_poverty_g" text ); Question: How low was the San Juan income? <|assistant|> SELECT "income_poverty_f" FROM "notes" WHERE "district"='San Juan';<|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: who is the player with high assists on january 22? <|assistant|> SELECT "high_assists" FROM "game_log" WHERE "date"='January 22';<|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: what is the total score for the date of january 3? <|assistant|> SELECT COUNT("score") FROM "game_log" WHERE "date"='January 3';<|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: Which team was in a game with a record of 15-63? <|assistant|> SELECT "team" FROM "game_log" WHERE "record"='15-63';<|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: Which team played on April 1? <|assistant|> SELECT "team" FROM "game_log" WHERE "date"='April 1';<|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: How many players led Game #66 in scoring? <|assistant|> SELECT COUNT("high_points") FROM "game_log" WHERE "game"=66;<|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: Who scored the most points in the game where the Raptors became 13-49? <|assistant|> SELECT "high_points" FROM "game_log" WHERE "record"='13-49';<|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: Who did the Raptors play against when their record was 13-48? <|assistant|> SELECT "team" FROM "game_log" WHERE "record"='13-48';<|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: Who was the high scorer in the game when the team was 1-4? <|assistant|> SELECT "high_points" FROM "game_log" WHERE "record"='1-4';<|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: Where did they play and how many attended in the game against minnesota? <|assistant|> SELECT "location_attendance" FROM "game_log" WHERE "team"='Minnesota';<|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: Who had the high point total when dee brown (5) had the high assist total? <|assistant|> SELECT "high_points" FROM "game_log" WHERE "high_assists"='Dee Brown (5)';<|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: How many records are there for the games that took place on January 14. <|assistant|> SELECT COUNT("record") FROM "game_log" WHERE "date"='January 14';<|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: Which players scored the most points when the opposing team was Seattle and how many points did they score? <|assistant|> SELECT "high_points" FROM "game_log" WHERE "team"='Seattle';<|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: What was the location and attendance of the game against Portland? <|assistant|> SELECT "location_attendance" FROM "game_log" WHERE "team"='Portland';<|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: What was the record when the score was w 108–93 (ot)? <|assistant|> SELECT "record" FROM "game_log" WHERE "score"='W 108–93 (OT)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "urban_population_growth_pct" ( "region_country" text, "1985_1990" text, "1990_1995" text, "1995_2000" text, "2000_2005" text ); Question: what's the 1985-1990 with 1995-2000 being 1.46 <|assistant|> SELECT "1985_1990" FROM "urban_population_growth_pct" WHERE "1995_2000"='1.46';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "urban_population_growth_pct" ( "region_country" text, "1985_1990" text, "1990_1995" text, "1995_2000" text, "2000_2005" text ); Question: what's the 2000-2005 with 1985-1990 being 3.78 <|assistant|> SELECT "2000_2005" FROM "urban_population_growth_pct" WHERE "1985_1990"='3.78';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "urban_population_growth_pct" ( "region_country" text, "1985_1990" text, "1990_1995" text, "1995_2000" text, "2000_2005" text ); Question: what's the 1985-1990 with 2000-2005 being 2.52 <|assistant|> SELECT "1985_1990" FROM "urban_population_growth_pct" WHERE "2000_2005"='2.52';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "urban_population_growth_pct" ( "region_country" text, "1985_1990" text, "1990_1995" text, "1995_2000" text, "2000_2005" text ); Question: what's the region/country with 2000-2005 being 2.61 <|assistant|> SELECT "region_country" FROM "urban_population_growth_pct" WHERE "2000_2005"='2.61';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "urban_population_growth_pct" ( "region_country" text, "1985_1990" text, "1990_1995" text, "1995_2000" text, "2000_2005" text ); Question: what's the 1995-2000 with 1985-1990 being 1.24 <|assistant|> SELECT "1995_2000" FROM "urban_population_growth_pct" WHERE "1985_1990"='1.24';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "urban_population_growth_pct" ( "region_country" text, "1985_1990" text, "1990_1995" text, "1995_2000" text, "2000_2005" text ); Question: what's the 1995-2000 with 1990-1995 being 3.08 <|assistant|> SELECT "1995_2000" FROM "urban_population_growth_pct" WHERE "1990_1995"='3.08';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "catholicism_in_africa" ( "region" text, "total_population" real, "catholic" real, "pct_catholic" text, "pct_of_global_catholic_pop" text ); Question: what is the maximum total population with % catholic being 1.17% <|assistant|> SELECT MAX("total_population") FROM "catholicism_in_africa" WHERE "pct_catholic"='1.17%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "catholicism_in_africa" ( "region" text, "total_population" real, "catholic" real, "pct_catholic" text, "pct_of_global_catholic_pop" text ); Question: how many total population with catholic being smaller than 31370649.1405057 and region being north africa <|assistant|> SELECT COUNT("total_population") FROM "catholicism_in_africa" WHERE "catholic"<31370649.1405057 AND "region"='North Africa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13663434_1" ( "title_and_source" text, "developer_s_publisher_s" text, "jp_210" text, "na_350" text, "pal_295" text, "wii_points" text ); Question: what's the wii points with title and source being tsūshin taikyoku: igo dōjō 2700-mon <|assistant|> SELECT "wii_points" FROM "table1_13663434_1" WHERE "title_and_source"='Tsūshin Taikyoku: Igo Dōjō 2700-Mon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13663434_1" ( "title_and_source" text, "developer_s_publisher_s" text, "jp_210" text, "na_350" text, "pal_295" text, "wii_points" text ); Question: what's the na -350- with title and source being paper wars: cannon fodder <|assistant|> SELECT "na_350" FROM "table1_13663434_1" WHERE "title_and_source"='Paper Wars: Cannon Fodder';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13663434_1" ( "title_and_source" text, "developer_s_publisher_s" text, "jp_210" text, "na_350" text, "pal_295" text, "wii_points" text ); Question: how many title and source with pal -295- being yes and jp -210- being yes <|assistant|> SELECT COUNT("title_and_source") FROM "table1_13663434_1" WHERE "pal_295"='Yes' AND "jp_210"='Yes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13663434_1" ( "title_and_source" text, "developer_s_publisher_s" text, "jp_210" text, "na_350" text, "pal_295" text, "wii_points" text ); Question: what's the jp -210- with title and source being fun! fun! minigolf <|assistant|> SELECT "jp_210" FROM "table1_13663434_1" WHERE "title_and_source"='Fun! Fun! Minigolf';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13663434_1" ( "title_and_source" text, "developer_s_publisher_s" text, "jp_210" text, "na_350" text, "pal_295" text, "wii_points" text ); Question: how many na -350- with title and source being bokumo sekai wo sukuitai: battle tournament <|assistant|> SELECT COUNT("na_350") FROM "table1_13663434_1" WHERE "title_and_source"='Bokumo Sekai wo Sukuitai: Battle Tournament';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13657883_2" ( "rnd" real, "circuit" text, "gto_winning_team" text, "gtu_winning_team" text, "to_winning_team" text, "tu_winning_team" text, "results" text ); Question: What was the gtu winning team when the gto winning team was #48 greenwood racing? <|assistant|> SELECT "gtu_winning_team" FROM "table1_13657883_2" WHERE "gto_winning_team"='#48 Greenwood Racing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13657883_2" ( "rnd" real, "circuit" text, "gto_winning_team" text, "gtu_winning_team" text, "to_winning_team" text, "tu_winning_team" text, "results" text ); Question: What was the to winnning team when the tu winning team was #16 2002? <|assistant|> SELECT "to_winning_team" FROM "table1_13657883_2" WHERE "tu_winning_team"='#16 2002';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13657883_2" ( "rnd" real, "circuit" text, "gto_winning_team" text, "gtu_winning_team" text, "to_winning_team" text, "tu_winning_team" text, "results" text ); Question: What round was the gto winning team #48 greenwood racing? <|assistant|> SELECT "rnd" FROM "table1_13657883_2" WHERE "gto_winning_team"='#48 Greenwood Racing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13657883_2" ( "rnd" real, "circuit" text, "gto_winning_team" text, "gtu_winning_team" text, "to_winning_team" text, "tu_winning_team" text, "results" text ); Question: What was the to winning team when the tu winning team was joe amato carson baird? <|assistant|> SELECT "to_winning_team" FROM "table1_13657883_2" WHERE "tu_winning_team"='Joe Amato Carson Baird';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13657749_2" ( "rnd" real, "circuit" text, "gto_winning_team" text, "gtu_winning_team" text, "to_winning_team" text, "tu_winning_team" text, "results" text ); Question: Who is GTU Winning Team's #27 Don Lindley's TO Winning Team? <|assistant|> SELECT "to_winning_team" FROM "table1_13657749_2" WHERE "gtu_winning_team"='#27 Don Lindley';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13657749_2" ( "rnd" real, "circuit" text, "gto_winning_team" text, "gtu_winning_team" text, "to_winning_team" text, "tu_winning_team" text, "results" text ); Question: What is GTO Winning Team Mike Keyser's RND number? <|assistant|> SELECT "rnd" FROM "table1_13657749_2" WHERE "gto_winning_team"='Mike Keyser';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13657749_2" ( "rnd" real, "circuit" text, "gto_winning_team" text, "gtu_winning_team" text, "to_winning_team" text, "tu_winning_team" text, "results" text ); Question: Who is Gene Felton's TO Winning Team? <|assistant|> SELECT "to_winning_team" FROM "table1_13657749_2" WHERE "gto_winning_team"='Gene Felton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13657749_2" ( "rnd" real, "circuit" text, "gto_winning_team" text, "gtu_winning_team" text, "to_winning_team" text, "tu_winning_team" text, "results" text ); Question: What is Peter Gregg Hurley Haywood's results? <|assistant|> SELECT "results" FROM "table1_13657749_2" WHERE "gto_winning_team"='Peter Gregg Hurley Haywood';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "head_to_head" ( "tournament" text, "matches" real, "wins_olimpia" real, "empates" real, "wins_cerro" real, "goals_olimpia" real, "goals_cerro" real ); Question: What was the least amount for Goals Olimpia? <|assistant|> SELECT MIN("goals_olimpia") FROM "head_to_head";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "head_to_head" ( "tournament" text, "matches" real, "wins_olimpia" real, "empates" real, "wins_cerro" real, "goals_olimpia" real, "goals_cerro" real ); Question: How many goals Olimpia recorded for 32 matches? <|assistant|> SELECT COUNT("goals_olimpia") FROM "head_to_head" WHERE "matches"=32;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "head_to_head" ( "tournament" text, "matches" real, "wins_olimpia" real, "empates" real, "wins_cerro" real, "goals_olimpia" real, "goals_cerro" real ); Question: What was the number of matches when the Goals Olimpia was 149? <|assistant|> SELECT "matches" FROM "head_to_head" WHERE "goals_olimpia"=149;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13690575_4" ( "cost" text, "2400_k_wh_k_wp_y" text, "2200_k_wh_k_wp_y" text, "2000_k_wh_k_wp_y" text, "1800_k_wh_k_wp_y" text, "1600_k_wh_k_wp_y" text, "1400_k_wh_k_wp_y" text, "1200_k_wh_k_wp_y" text, "1000_k_wh_k_wp_y" text, "800_k_wh_k_wp_y" text ); Question: At the rate where 1600kwh/kwp•y is 26.3, what is the value of 2200 kwh/kwp•y? <|assistant|> SELECT "2200_k_wh_k_wp_y" FROM "table1_13690575_4" WHERE "1600_k_wh_k_wp_y"='26.3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13690575_4" ( "cost" text, "2400_k_wh_k_wp_y" text, "2200_k_wh_k_wp_y" text, "2000_k_wh_k_wp_y" text, "1800_k_wh_k_wp_y" text, "1600_k_wh_k_wp_y" text, "1400_k_wh_k_wp_y" text, "1200_k_wh_k_wp_y" text, "1000_k_wh_k_wp_y" text, "800_k_wh_k_wp_y" text ); Question: At the rate where 2200 kwh/kwp•y is 11.8, what is the value of 2400 kwh/kwp•y? <|assistant|> SELECT "2400_k_wh_k_wp_y" FROM "table1_13690575_4" WHERE "2200_k_wh_k_wp_y"='11.8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13690575_4" ( "cost" text, "2400_k_wh_k_wp_y" text, "2200_k_wh_k_wp_y" text, "2000_k_wh_k_wp_y" text, "1800_k_wh_k_wp_y" text, "1600_k_wh_k_wp_y" text, "1400_k_wh_k_wp_y" text, "1200_k_wh_k_wp_y" text, "1000_k_wh_k_wp_y" text, "800_k_wh_k_wp_y" text ); Question: At the rate where 1000 kwh/kwp•y is 26.0, what is the value of 1600 kwh/kwp•y? <|assistant|> SELECT "1600_k_wh_k_wp_y" FROM "table1_13690575_4" WHERE "1000_k_wh_k_wp_y"='26.0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13690575_4" ( "cost" text, "2400_k_wh_k_wp_y" text, "2200_k_wh_k_wp_y" text, "2000_k_wh_k_wp_y" text, "1800_k_wh_k_wp_y" text, "1600_k_wh_k_wp_y" text, "1400_k_wh_k_wp_y" text, "1200_k_wh_k_wp_y" text, "1000_k_wh_k_wp_y" text, "800_k_wh_k_wp_y" text ); Question: At the rate where 1800 kwh/kwp•y is 1.1, what is the value of 2400 kwh/kwp•y? <|assistant|> SELECT "2400_k_wh_k_wp_y" FROM "table1_13690575_4" WHERE "1800_k_wh_k_wp_y"='1.1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13690575_4" ( "cost" text, "2400_k_wh_k_wp_y" text, "2200_k_wh_k_wp_y" text, "2000_k_wh_k_wp_y" text, "1800_k_wh_k_wp_y" text, "1600_k_wh_k_wp_y" text, "1400_k_wh_k_wp_y" text, "1200_k_wh_k_wp_y" text, "1000_k_wh_k_wp_y" text, "800_k_wh_k_wp_y" text ); Question: At the rate where 1800 kwh/kwp•y is 16.7, what is the value of 2400 kwh/kwp•y? <|assistant|> SELECT "2400_k_wh_k_wp_y" FROM "table1_13690575_4" WHERE "1800_k_wh_k_wp_y"='16.7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13681_2" ( "country" text, "currency_name" text, "month_with_highest_inflation_rate" text, "highest_monthly_inflation_rate" text, "equivalent_daily_inflation_rate" text, "time_required_for_prices_to_double" text ); Question: what's the time required for prices to double with highest monthly inflation rate being 29,500% <|assistant|> SELECT "time_required_for_prices_to_double" FROM "table1_13681_2" WHERE "highest_monthly_inflation_rate"='29,500%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13681_2" ( "country" text, "currency_name" text, "month_with_highest_inflation_rate" text, "highest_monthly_inflation_rate" text, "equivalent_daily_inflation_rate" text, "time_required_for_prices_to_double" text ); Question: what's the currency name with highest monthly inflation rate being 29,500% <|assistant|> SELECT "currency_name" FROM "table1_13681_2" WHERE "highest_monthly_inflation_rate"='29,500%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13681_2" ( "country" text, "currency_name" text, "month_with_highest_inflation_rate" text, "highest_monthly_inflation_rate" text, "equivalent_daily_inflation_rate" text, "time_required_for_prices_to_double" text ); Question: how many equivalent daily inflation rate with time required for prices to double being 3.7 days <|assistant|> SELECT COUNT("equivalent_daily_inflation_rate") FROM "table1_13681_2" WHERE "time_required_for_prices_to_double"='3.7 days';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13681_2" ( "country" text, "currency_name" text, "month_with_highest_inflation_rate" text, "highest_monthly_inflation_rate" text, "equivalent_daily_inflation_rate" text, "time_required_for_prices_to_double" text ); Question: how many country with currency name being republika srpska dinar <|assistant|> SELECT COUNT("country") FROM "table1_13681_2" WHERE "currency_name"='Republika Srpska dinar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13681_2" ( "country" text, "currency_name" text, "month_with_highest_inflation_rate" text, "highest_monthly_inflation_rate" text, "equivalent_daily_inflation_rate" text, "time_required_for_prices_to_double" text ); Question: how many equivalent daily inflation rate with currency name being republika srpska dinar <|assistant|> SELECT COUNT("equivalent_daily_inflation_rate") FROM "table1_13681_2" WHERE "currency_name"='Republika Srpska dinar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13681_2" ( "country" text, "currency_name" text, "month_with_highest_inflation_rate" text, "highest_monthly_inflation_rate" text, "equivalent_daily_inflation_rate" text, "time_required_for_prices_to_double" text ); Question: what's the country with highest monthly inflation rate being 3.13 × 10 8 % <|assistant|> SELECT "country" FROM "table1_13681_2" WHERE "highest_monthly_inflation_rate"='3.13 × 10 8 %';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "commentators_and_spokespersons" ( "year_s" real, "grand_final_television_commentator" text, "grand_final_dual_television_commentator" text, "spokesperson" text, "semi_final_television_commentator" text, "semi_final_dual_television_commentator" text ); Question: How many grand final dual television commentators were there in 1961? <|assistant|> SELECT COUNT("grand_final_dual_television_commentator") FROM "commentators_and_spokespersons" WHERE "year_s"=1961;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "commentators_and_spokespersons" ( "year_s" real, "grand_final_television_commentator" text, "grand_final_dual_television_commentator" text, "spokesperson" text, "semi_final_television_commentator" text, "semi_final_dual_television_commentator" text ); Question: Who was the spokesperson for France in 1970? <|assistant|> SELECT "spokesperson" FROM "commentators_and_spokespersons" WHERE "year_s"=1970;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "commentators_and_spokespersons" ( "year_s" real, "grand_final_television_commentator" text, "grand_final_dual_television_commentator" text, "spokesperson" text, "semi_final_television_commentator" text, "semi_final_dual_television_commentator" text ); Question: What year was Thierry Beccaro the spokesperson? <|assistant|> SELECT MIN("year_s") FROM "commentators_and_spokespersons" WHERE "spokesperson"='Thierry Beccaro';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lone_star_series" ( "date" text, "winning_team" text, "score" text, "winning_pitcher" text, "losing_pitcher" text, "attendance" real, "location" text ); Question: How many games played on june 25? <|assistant|> SELECT COUNT("score") FROM "lone_star_series" WHERE "date"='June 25';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lone_star_series" ( "date" text, "winning_team" text, "score" text, "winning_pitcher" text, "losing_pitcher" text, "attendance" real, "location" text ); Question: Who won the game on may 21? <|assistant|> SELECT "winning_team" FROM "lone_star_series" WHERE "date"='May 21';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lone_star_series" ( "date" text, "winning_team" text, "score" text, "winning_pitcher" text, "losing_pitcher" text, "attendance" real, "location" text ); Question: Who was the losing pitcher when 40583 attended? <|assistant|> SELECT "losing_pitcher" FROM "lone_star_series" WHERE "attendance"=40583;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lone_star_series" ( "date" text, "winning_team" text, "score" text, "winning_pitcher" text, "losing_pitcher" text, "attendance" real, "location" text ); Question: Who was the wenning witcher when ezequiel astacio was the losing pitcher? <|assistant|> SELECT "winning_pitcher" FROM "lone_star_series" WHERE "losing_pitcher"='Ezequiel Astacio';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lone_star_series" ( "date" text, "winning_team" text, "score" text, "winning_pitcher" text, "losing_pitcher" text, "attendance" real, "location" text ); Question: Where was the game played on may 20? <|assistant|> SELECT "location" FROM "lone_star_series" WHERE "date"='May 20';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "position" real, "club_city_town" text, "games_played" real, "w_l_d" text, "goals_for_against" text, "points" real ); Question: On what position number is the club with a w-l-d of 5-7-4? <|assistant|> SELECT COUNT("club_city_town") FROM "regular_season" WHERE "w_l_d"='5-7-4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "position" real, "club_city_town" text, "games_played" real, "w_l_d" text, "goals_for_against" text, "points" real ); Question: What's the position of the club with w-l-d of 6-2-8? <|assistant|> SELECT MAX("position") FROM "regular_season" WHERE "w_l_d"='6-2-8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "position" real, "club_city_town" text, "games_played" real, "w_l_d" text, "goals_for_against" text, "points" real ); Question: How many games has the club with 29-24 goals for/against score played? <|assistant|> SELECT "games_played" FROM "regular_season" WHERE "goals_for_against"='29-24';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: How many films titled Gie have been nominated? <|assistant|> SELECT COUNT("original_title") FROM "submissions" WHERE "film_title_used_in_nomination"='Gie';<|endoftext|>