text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text ); Question: When was the game on Taylor Field played? <|assistant|> SELECT "date" FROM "regular_season" WHERE "location"='Taylor Field';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "date" text, "city_and_venue" text, "winner" text, "runner_up" text, "3rd_placed" text, "4th_placed" text, "results" text ); Question: Who placed fourth when the winner was Greg Hancock? <|assistant|> SELECT "4th_placed" FROM "calendar" WHERE "winner"='Greg Hancock';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "date" text, "city_and_venue" text, "winner" text, "runner_up" text, "3rd_placed" text, "4th_placed" text, "results" text ); Question: Who was the runner-up on September 11? <|assistant|> SELECT "runner_up" FROM "calendar" WHERE "date"='September 11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "date" text, "city_and_venue" text, "winner" text, "runner_up" text, "3rd_placed" text, "4th_placed" text, "results" text ); Question: How many rounds were on July 10? <|assistant|> SELECT COUNT("round") FROM "calendar" WHERE "date"='July 10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: Name the number of years for 18.5 <|assistant|> SELECT COUNT("year") FROM "nascar_sprint_cup_series" WHERE "avg_finish"='18.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: Name the max top 5 for avg finish being 27.6 <|assistant|> SELECT MAX("top_5") FROM "nascar_sprint_cup_series" WHERE "avg_finish"='27.6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: Name the number of wins for 30 starts <|assistant|> SELECT COUNT("wins") FROM "nascar_sprint_cup_series" WHERE "starts"=30;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: Name the year for donlavey racing bill davis racing <|assistant|> SELECT "year" FROM "nascar_sprint_cup_series" WHERE "team_s"='Donlavey Racing Bill Davis Racing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: Name the starts for 23.7 <|assistant|> SELECT "starts" FROM "nascar_sprint_cup_series" WHERE "avg_start"='23.7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: Name the position for 23.7 avg start <|assistant|> SELECT COUNT("position") FROM "nascar_sprint_cup_series" WHERE "avg_start"='23.7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "full_time_entries" ( "team" text, "car_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); Question: What is the car number for the Chevrolet Monte Carlo that Teresa Earnhardt owns and Paul Menard is her driver? <|assistant|> SELECT MIN("num") FROM "full_time_entries" WHERE "car_s"='Chevrolet Monte Carlo' AND "listed_owner_s"='Teresa Earnhardt' AND "driver_s"='Paul Menard';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "full_time_entries" ( "team" text, "car_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); Question: What type of car does Jeff Fuller drive? <|assistant|> SELECT "car_s" FROM "full_time_entries" WHERE "driver_s"='Jeff Fuller';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "full_time_entries" ( "team" text, "car_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); Question: How many cars does Gregg Mixon own? <|assistant|> SELECT COUNT("car_s") FROM "full_time_entries" WHERE "listed_owner_s"='Gregg Mixon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "full_time_entries" ( "team" text, "car_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); Question: Who is Wayne Day's crew chief? <|assistant|> SELECT "crew_chief" FROM "full_time_entries" WHERE "listed_owner_s"='Wayne Day';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "full_time_entries" ( "team" text, "car_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); Question: What number is on the car that Geoffrey Bodine drives? <|assistant|> SELECT MIN("num") FROM "full_time_entries" WHERE "driver_s"='Geoffrey Bodine';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2182654_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: What episode number in the season is episode 24 in the series? <|assistant|> SELECT "no_in_season" FROM "table1_2182654_3" WHERE "no_in_series"=24;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2182654_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: How many episodes in the season were directed by Jeremy Podeswa? <|assistant|> SELECT COUNT("no_in_season") FROM "table1_2182654_3" WHERE "directed_by"='Jeremy Podeswa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2182654_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: What is the name of the episode directed by Miguel Arteta? <|assistant|> SELECT "title" FROM "table1_2182654_3" WHERE "directed_by"='Miguel Arteta';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2182654_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: How many episodes in the series were directed by Alan Taylor? <|assistant|> SELECT COUNT("no_in_series") FROM "table1_2182654_3" WHERE "directed_by"='Alan Taylor';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: How many different teams had an average start of 12.9? <|assistant|> SELECT COUNT("team_s") FROM "nascar_nationwide_series" WHERE "avg_start"='12.9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: How high was the amount of winnings (in $) in the year with 15 starts? <|assistant|> SELECT "winnings" FROM "nascar_nationwide_series" WHERE "starts"=15;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: How many different amounts of winnings were there for the year when the team had an average finish of 17.4? <|assistant|> SELECT COUNT("winnings") FROM "nascar_nationwide_series" WHERE "avg_finish"='17.4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: What was the top 5 in the year with an average finish of 8.2? <|assistant|> SELECT MIN("top_5") FROM "nascar_nationwide_series" WHERE "avg_finish"='8.2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: What was the position of the team with an average finish of 21.5? <|assistant|> SELECT "position" FROM "nascar_nationwide_series" WHERE "avg_finish"='21.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: How many years was the position 97th? <|assistant|> SELECT COUNT("year") FROM "nascar_sprint_cup_series" WHERE "position"='97th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: How many wins when the average start is 29.0? <|assistant|> SELECT COUNT("wins") FROM "nascar_sprint_cup_series" WHERE "avg_start"='29.0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: What is the average finish when winnings equals $71,200? <|assistant|> SELECT "avg_finish" FROM "nascar_sprint_cup_series" WHERE "winnings"='$71,200';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: What year did the winnings equal $281,945? <|assistant|> SELECT "year" FROM "nascar_sprint_cup_series" WHERE "winnings"='$281,945';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: What are the top 5 average finishes equalling 40.3? <|assistant|> SELECT "top_5" FROM "nascar_sprint_cup_series" WHERE "avg_finish"='40.3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21831229_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_u_s_air_date" text, "prod_code" real ); Question: Who wrote episode 31 in the series? <|assistant|> SELECT "written_by" FROM "table1_21831229_3" WHERE "no_in_series"=31;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21831229_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_u_s_air_date" text, "prod_code" real ); Question: What was the date that the episode with a production code of 213 was originally aired? <|assistant|> SELECT "original_u_s_air_date" FROM "table1_21831229_3" WHERE "prod_code"=213;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_7_3_4" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Who was playing when the score was 5–7, 6–7 (4–7)? <|assistant|> SELECT "opponents" FROM "doubles_7_3_4" WHERE "score"='5–7, 6–7 (4–7)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_7_3_4" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Who was playing when the score was 5–7, 5–7? <|assistant|> SELECT "opponents" FROM "doubles_7_3_4" WHERE "score"='5–7, 5–7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_7_3_4" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: How many partners were there when the score was 7–6 (7–4) , 6–3? <|assistant|> SELECT COUNT("partner") FROM "doubles_7_3_4" WHERE "score"='7–6 (7–4) , 6–3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text ); Question: What was their record when they played the stampeders? <|assistant|> SELECT "record" FROM "regular_season" WHERE "opponent"='Stampeders';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text ); Question: What was their record in week 11? <|assistant|> SELECT "record" FROM "regular_season" WHERE "week"=11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: Name the least wins <|assistant|> SELECT MIN("wins") FROM "nascar_sprint_cup_series";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: Name the avg start for avg finish of 18.3 <|assistant|> SELECT "avg_start" FROM "nascar_sprint_cup_series" WHERE "avg_finish"='18.3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: Name the year for #16 roush racing for poles less than smaller 1.0 <|assistant|> SELECT "year" FROM "nascar_sprint_cup_series" WHERE "team_s"='#16 Roush Racing' AND "poles"<1.0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21888587_1" ( "model" text, "engine" text, "power_rpm" text, "torque_rpm" text, "0_100km_h_acceleration" text, "top_speed" text, "transmission" text, "co_2_emissions" text ); Question: Name the transmission for ps (kw; hp) @4500-6000 <|assistant|> SELECT "transmission" FROM "table1_21888587_1" WHERE "power_rpm"='PS (kW; hp) @4500-6000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21888587_1" ( "model" text, "engine" text, "power_rpm" text, "torque_rpm" text, "0_100km_h_acceleration" text, "top_speed" text, "transmission" text, "co_2_emissions" text ); Question: Name the 0–100km/h acceleration for ps (kw; hp) @5400 <|assistant|> SELECT "0_100km_h_acceleration" FROM "table1_21888587_1" WHERE "power_rpm"='PS (kW; hp) @5400';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_chart" ( "team" text, "truck_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); Question: Name the listen owners for repairone <|assistant|> SELECT "listed_owner_s" FROM "team_chart" WHERE "primary_sponsor_s"='RepairOne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_chart" ( "team" text, "truck_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); Question: Name the trucks for scott neal <|assistant|> SELECT "truck_s" FROM "team_chart" WHERE "crew_chief"='Scott Neal';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_chart" ( "team" text, "truck_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); Question: Name the listed owners for brevak racing <|assistant|> SELECT "listed_owner_s" FROM "team_chart" WHERE "team"='Brevak Racing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_chart" ( "team" text, "truck_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); Question: Name the crew chief for ricky craven <|assistant|> SELECT "crew_chief" FROM "team_chart" WHERE "driver_s"='Ricky Craven';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_chart" ( "team" text, "truck_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); Question: Name the drivers for superchips <|assistant|> SELECT "driver_s" FROM "team_chart" WHERE "primary_sponsor_s"='Superchips';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21904740_1" ( "year_ceremony" text, "english_title" text, "spanish_title" text, "director" text, "result" text ); Question: When was Viva Cuba submitted? <|assistant|> SELECT "year_ceremony" FROM "table1_21904740_1" WHERE "spanish_title"='Viva Cuba';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_most_powerful_nuclear_tests" ( "date_gmt" text, "yield_megatons" text, "deployment" text, "country" text, "test_site" text, "name_or_number" text ); Question: Name the name for 15 yield <|assistant|> SELECT "name_or_number" FROM "list_of_most_powerful_nuclear_tests" WHERE "yield_megatons"='15';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "public_companies" ( "state_rank_by_revenue" real, "company_name" text, "national_rank" real, "revenue_billions_2012_estimate" text, "headquarters_city" text, "known_for" text ); Question: What is the rank of the company known for retailing? <|assistant|> SELECT COUNT("state_rank_by_revenue") FROM "public_companies" WHERE "known_for"='Retailing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "public_companies" ( "state_rank_by_revenue" real, "company_name" text, "national_rank" real, "revenue_billions_2012_estimate" text, "headquarters_city" text, "known_for" text ); Question: What is the rank for Murphy Oil? <|assistant|> SELECT "state_rank_by_revenue" FROM "public_companies" WHERE "company_name"='Murphy Oil';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "public_companies" ( "state_rank_by_revenue" real, "company_name" text, "national_rank" real, "revenue_billions_2012_estimate" text, "headquarters_city" text, "known_for" text ); Question: Where is the company with estimated revenue of 33.3 billion headquartered? <|assistant|> SELECT "headquarters_city" FROM "public_companies" WHERE "revenue_billions_2012_estimate"='33.3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "public_companies" ( "state_rank_by_revenue" real, "company_name" text, "national_rank" real, "revenue_billions_2012_estimate" text, "headquarters_city" text, "known_for" text ); Question: What is the national rank of Windstream? <|assistant|> SELECT MIN("national_rank") FROM "public_companies" WHERE "company_name"='Windstream';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "public_companies" ( "state_rank_by_revenue" real, "company_name" text, "national_rank" real, "revenue_billions_2012_estimate" text, "headquarters_city" text, "known_for" text ); Question: What is the state rank of the company with 6.8 billion in revenue? <|assistant|> SELECT "state_rank_by_revenue" FROM "public_companies" WHERE "revenue_billions_2012_estimate"='6.8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "entries" ( "no" real, "driver" text, "entrant" text, "constructor" text, "chassis" text, "engine" text ); Question: Name the entrant for benedicto campos <|assistant|> SELECT "entrant" FROM "entries" WHERE "driver"='Benedicto Campos';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "entries" ( "no" real, "driver" text, "entrant" text, "constructor" text, "chassis" text, "engine" text ); Question: Name the number for automóvil club argentino for juan manuel fangio <|assistant|> SELECT "no" FROM "entries" WHERE "entrant"='Automóvil Club Argentino' AND "driver"='Juan Manuel Fangio';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "entries" ( "no" real, "driver" text, "entrant" text, "constructor" text, "chassis" text, "engine" text ); Question: Name the most number for automóvil club argentino for benedicto campos <|assistant|> SELECT MAX("no") FROM "entries" WHERE "entrant"='Automóvil Club Argentino' AND "driver"='Benedicto Campos';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "entries" ( "no" real, "driver" text, "entrant" text, "constructor" text, "chassis" text, "engine" text ); Question: Name the driver for talbot l6 <|assistant|> SELECT "driver" FROM "entries" WHERE "engine"='Talbot L6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "entries" ( "no" real, "driver" text, "entrant" text, "constructor" text, "chassis" text, "engine" text ); Question: Name the constructor for alberto ascari <|assistant|> SELECT "constructor" FROM "entries" WHERE "driver"='Alberto Ascari';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "entries" ( "no" real, "driver" text, "entrant" text, "constructor" text, "chassis" text, "engine" text ); Question: Name the chassis for alta <|assistant|> SELECT "chassis" FROM "entries" WHERE "constructor"='Alta';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21977627_1" ( "no" real, "driver" text, "entrant" text, "constructor" text, "chassis" text, "engine" text ); Question: The Maserati 4cl's minimum no was? <|assistant|> SELECT MIN("no") FROM "table1_21977627_1" WHERE "chassis"='Maserati 4CL';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21977627_1" ( "no" real, "driver" text, "entrant" text, "constructor" text, "chassis" text, "engine" text ); Question: How many entrants was yves giraud-cabantous? <|assistant|> SELECT COUNT("entrant") FROM "table1_21977627_1" WHERE "driver"='Yves Giraud-Cabantous';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21977627_1" ( "no" real, "driver" text, "entrant" text, "constructor" text, "chassis" text, "engine" text ); Question: What chasis did the maserati l6s have? <|assistant|> SELECT "chassis" FROM "table1_21977627_1" WHERE "engine"='Maserati L6s';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21977627_1" ( "no" real, "driver" text, "entrant" text, "constructor" text, "chassis" text, "engine" text ); Question: How many drivers did Bob Gerard Racing have? <|assistant|> SELECT COUNT("driver") FROM "table1_21977627_1" WHERE "entrant"='Bob Gerard Racing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2006" ( "position" real, "club" text, "played" real, "h_win" real, "h_draw" real, "a_win" real, "a_draw" real, "lost" real, "def" real, "pts_for" real, "pts_agst" real, "pair" real, "long" real, "points" real, "average" text ); Question: For the team with 7 points, how many points were scored against this season? <|assistant|> SELECT COUNT("pts_agst") FROM "season_2006" WHERE "points"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2006" ( "position" real, "club" text, "played" real, "h_win" real, "h_draw" real, "a_win" real, "a_draw" real, "lost" real, "def" real, "pts_for" real, "pts_agst" real, "pair" real, "long" real, "points" real, "average" text ); Question: What is the maximum number of points scored against? <|assistant|> SELECT MAX("pts_agst") FROM "season_2006";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2006" ( "position" real, "club" text, "played" real, "h_win" real, "h_draw" real, "a_win" real, "a_draw" real, "lost" real, "def" real, "pts_for" real, "pts_agst" real, "pair" real, "long" real, "points" real, "average" text ); Question: What is Chesterfield Spires average? <|assistant|> SELECT "average" FROM "season_2006" WHERE "club"='Chesterfield Spires';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_daily_maximum_and_minimum_temper" ( "location" text, "july_c" text, "july_f" text, "january_c" text, "january_f" text ); Question: What is the total number of January (°C) temperatures when the July (°C) temperatures were 22/13? <|assistant|> SELECT COUNT("january_c") FROM "average_daily_maximum_and_minimum_temper" WHERE "july_c"='22/13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_daily_maximum_and_minimum_temper" ( "location" text, "july_c" text, "july_f" text, "january_c" text, "january_f" text ); Question: What is the total number of January (°C) temperatures when the July (°C) temperatures were 23/15? <|assistant|> SELECT COUNT("january_c") FROM "average_daily_maximum_and_minimum_temper" WHERE "july_c"='23/15';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_daily_maximum_and_minimum_temper" ( "location" text, "july_c" text, "july_f" text, "january_c" text, "january_f" text ); Question: In what location were the January (°F) temperatures 30/17? <|assistant|> SELECT "location" FROM "average_daily_maximum_and_minimum_temper" WHERE "january_f"='30/17';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_daily_maximum_and_minimum_temper" ( "location" text, "july_c" text, "july_f" text, "january_c" text, "january_f" text ); Question: What were the July (°C) temperatures when the July (°F) temperatures were 71/55? <|assistant|> SELECT "july_c" FROM "average_daily_maximum_and_minimum_temper" WHERE "july_f"='71/55';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_daily_maximum_and_minimum_temper" ( "location" text, "july_c" text, "july_f" text, "january_c" text, "january_f" text ); Question: What were the January (°F) temperatures in the Corner Brook location? <|assistant|> SELECT "january_f" FROM "average_daily_maximum_and_minimum_temper" WHERE "location"='Corner Brook';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2008" ( "position" real, "club" text, "played" real, "won" real, "drawn" real, "lost" real, "def" real, "pts_for" real, "pts_agst" real, "long" real, "points" real, "average" text ); Question: Name the most points agst <|assistant|> SELECT MAX("pts_agst") FROM "season_2008";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2008" ( "position" real, "club" text, "played" real, "won" real, "drawn" real, "lost" real, "def" real, "pts_for" real, "pts_agst" real, "long" real, "points" real, "average" text ); Question: Name the least lost <|assistant|> SELECT MIN("lost") FROM "season_2008";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21979779_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: who are the writers of the episode that had 3.07 millions of North American spectators? <|assistant|> SELECT "written_by" FROM "table1_21979779_1" WHERE "u_s_viewers_million"='3.07';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21979779_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: what is the biggest series episode number whose production code is 2t7211? <|assistant|> SELECT MAX("no") FROM "table1_21979779_1" WHERE "production_code"='2T7211';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21979779_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: what is the smallest series episode number whose production code is 2t7211? <|assistant|> SELECT MIN("no") FROM "table1_21979779_1" WHERE "production_code"='2T7211';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21979779_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: when was the premiere of the episode where the amount of North American spectators was 1.76 millions? <|assistant|> SELECT "original_air_date" FROM "table1_21979779_1" WHERE "u_s_viewers_million"='1.76';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21994729_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text ); Question: how many maximum series number have 2apx05 prod. code. <|assistant|> SELECT MAX("series_num") FROM "table1_21994729_3" WHERE "prod_code"='2APX05';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21994729_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text ); Question: What are all the title directed by reginald hudlin <|assistant|> SELECT COUNT("title") FROM "table1_21994729_3" WHERE "directed_by"='Reginald Hudlin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21994729_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text ); Question: reginald hudlin directed how many written by. <|assistant|> SELECT "written_by" FROM "table1_21994729_3" WHERE "directed_by"='Reginald Hudlin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21994729_2" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text ); Question: Who wore the episode with the production code of 1apx11? <|assistant|> SELECT "written_by" FROM "table1_21994729_2" WHERE "prod_code"='1APX11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21994729_2" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text ); Question: Who wrote the episode titled "heroes"? <|assistant|> SELECT "written_by" FROM "table1_21994729_2" WHERE "title"='\"Heroes\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "college" ( "rank" real, "school" text, "basic_elements" text, "tumbling" text, "stunts" text, "tosses" text, "pyramids" text, "deductions" text, "total" text ); Question: If the rank is 11, what is the total amount? <|assistant|> SELECT "total" FROM "college" WHERE "rank"=11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "college" ( "rank" real, "school" text, "basic_elements" text, "tumbling" text, "stunts" text, "tosses" text, "pyramids" text, "deductions" text, "total" text ); Question: If the school is Central Colleges of the Philippines CCP Bobcats, what is the stunts number? <|assistant|> SELECT "stunts" FROM "college" WHERE "school"='Central Colleges of the Philippines CCP Bobcats';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "pos" real, "team" text, "07_pts" real, "08_pts" real, "09_pts" real, "total_pts" real, "total_pld" real, "avg" text ); Question: What is the 07 points minimum if the 08 points is 50? <|assistant|> SELECT MIN("07_pts") FROM "relegation" WHERE "08_pts"=50;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "pos" real, "team" text, "07_pts" real, "08_pts" real, "09_pts" real, "total_pts" real, "total_pld" real, "avg" text ); Question: If the POS is 3, what is the 08 points? <|assistant|> SELECT "08_pts" FROM "relegation" WHERE "pos"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "pos" real, "team" text, "07_pts" real, "08_pts" real, "09_pts" real, "total_pts" real, "total_pld" real, "avg" text ); Question: If the team is Rubio ñú, what is the 08 points? <|assistant|> SELECT "08_pts" FROM "relegation" WHERE "team"='Rubio Ñú';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "pos" real, "team" text, "07_pts" real, "08_pts" real, "09_pts" real, "total_pts" real, "total_pld" real, "avg" text ); Question: If the average is 1.2803, what is the total points maximum? <|assistant|> SELECT MAX("total_pts") FROM "relegation" WHERE "avg"='1.2803';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "pos" real, "team" text, "07_pts" real, "08_pts" real, "09_pts" real, "total_pts" real, "total_pld" real, "avg" text ); Question: If the POS is 4, what is the total PLD? <|assistant|> SELECT "total_pld" FROM "relegation" WHERE "pos"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "open_qualifiers" ( "rank" real, "team_name" text, "basic_elements" text, "tumbling" text, "stunts" text, "tosses_pyramids" text, "deductions" text, "total" text ); Question: What is the team name when 243 is the total? <|assistant|> SELECT "team_name" FROM "open_qualifiers" WHERE "total"='243';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "open_qualifiers" ( "rank" real, "team_name" text, "basic_elements" text, "tumbling" text, "stunts" text, "tosses_pyramids" text, "deductions" text, "total" text ); Question: Which team names have 44.5 for tumbling? <|assistant|> SELECT "team_name" FROM "open_qualifiers" WHERE "tumbling"='44.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "open_qualifiers" ( "rank" real, "team_name" text, "basic_elements" text, "tumbling" text, "stunts" text, "tosses_pyramids" text, "deductions" text, "total" text ); Question: What is the total if 44 is tosses/pyramids? <|assistant|> SELECT "total" FROM "open_qualifiers" WHERE "tosses_pyramids"='44';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "open_qualifiers" ( "rank" real, "team_name" text, "basic_elements" text, "tumbling" text, "stunts" text, "tosses_pyramids" text, "deductions" text, "total" text ); Question: How many deductions have 56.5 as tosses/pyramids? <|assistant|> SELECT "deductions" FROM "open_qualifiers" WHERE "tosses_pyramids"='56.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "open_qualifiers" ( "rank" real, "team_name" text, "basic_elements" text, "tumbling" text, "stunts" text, "tosses_pyramids" text, "deductions" text, "total" text ); Question: What is the rank when 36.5 is tumbling? <|assistant|> SELECT COUNT("rank") FROM "open_qualifiers" WHERE "tumbling"='36.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "open_qualifiers" ( "rank" real, "team_name" text, "basic_elements" text, "tumbling" text, "stunts" text, "tosses_pyramids" text, "deductions" text, "total" text ); Question: What is the rank when 64.5 is tosses/pyramids? <|assistant|> SELECT MAX("rank") FROM "open_qualifiers" WHERE "tosses_pyramids"='64.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_s_doubles_16_10_titles_6_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: How many different outcomes of the French Championships were there? <|assistant|> SELECT COUNT("outcome") FROM "men_s_doubles_16_10_titles_6_runner_ups" WHERE "championship"='French Championships';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_s_doubles_16_10_titles_6_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: How many different final scores were there in 1963? <|assistant|> SELECT COUNT("score_in_the_final") FROM "men_s_doubles_16_10_titles_6_runner_ups" WHERE "year"=1963;<|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, "title_in_the_original_language" text, "director" text, "result" text ); Question: Who directed the film titled 'Steam of Life'? <|assistant|> SELECT "director" FROM "submissions" WHERE "film_title_used_in_nomination"='Steam of Life';<|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, "title_in_the_original_language" text, "director" text, "result" text ); Question: What year was the ceremony where the film 'Tummien Perhosten Koti' was submitted? <|assistant|> SELECT "year_ceremony" FROM "submissions" WHERE "title_in_the_original_language"='Tummien perhosten koti';<|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, "title_in_the_original_language" text, "director" text, "result" text ); Question: What are the results for the film titled 'Joki'? <|assistant|> SELECT COUNT("result") FROM "submissions" WHERE "title_in_the_original_language"='Joki';<|endoftext|>