text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); Question: Name the season for position 4th <|assistant|> SELECT COUNT("season") FROM "career_summary" WHERE "position"='4th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); Question: Name the least f/laps <|assistant|> SELECT MIN("f_laps") FROM "career_summary";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); Question: Name the least podiums for 9th position <|assistant|> SELECT MIN("podiums") FROM "career_summary" WHERE "position"='9th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin_standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); Question: How many results are listed for shot PCT Where PA is 79? <|assistant|> SELECT COUNT("shot_pct") FROM "round_robin_standings" WHERE "pa"=79;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin_standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); Question: Where were stolen ends recorded as 15? <|assistant|> SELECT "locale" FROM "round_robin_standings" WHERE "stolen_ends"=15;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "karaikudi_ssa_bsnl" ( "sl_no" real, "name_of_the_city" text, "address" text, "contact_person" text, "telephone_no" text, "facilities_offered" text ); Question: What was the SlNo no of contact person SDE (P), Thiruppattur? <|assistant|> SELECT "sl_no" FROM "karaikudi_ssa_bsnl" WHERE "contact_person"='SDE (P), Thiruppattur';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25390694_2" ( "series_num" real, "title" text, "director" text, "writer" text, "air_date" text, "production_code" real ); Question: When did the episode "rowley 1898" air? <|assistant|> SELECT "air_date" FROM "table1_25390694_2" WHERE "title"='\"Rowley 1898\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25390694_2" ( "series_num" real, "title" text, "director" text, "writer" text, "air_date" text, "production_code" real ); Question: What was the production code of the episode written by Brendan Cowell? <|assistant|> SELECT "production_code" FROM "table1_25390694_2" WHERE "writer"='Brendan Cowell';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: How many f/laps did Pedro Nunes have when he was in 20th position? <|assistant|> SELECT COUNT("f_laps") FROM "career_summary" WHERE "position"='20th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: How many f/laps did Pedro Nunes have when he was at the gp3 series? <|assistant|> SELECT "f_laps" FROM "career_summary" WHERE "series"='GP3 Series';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: What is the fewest number of races Pedro Nunes completed in any series? <|assistant|> SELECT MIN("races") FROM "career_summary";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: What is the most podiums Pedro Nunes had when in 17th position? <|assistant|> SELECT MAX("podiums") FROM "career_summary" WHERE "position"='17th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jewish" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text ); Question: What was the founding university of the organization Tau Epsilon Phi 1? <|assistant|> SELECT "founding_university" FROM "jewish" WHERE "organization"='Tau Epsilon Phi 1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jewish" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text ); Question: What was the founding date for the "AEPI"? <|assistant|> SELECT "founding_date" FROM "jewish" WHERE "nickname"='\"AEPi\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jewish" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text ); Question: What type is σαεπ? <|assistant|> SELECT "type" FROM "jewish" WHERE "letters"='ΣΑΕΠ';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jewish" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text ); Question: What was the founding university of αεφ? <|assistant|> SELECT "founding_university" FROM "jewish" WHERE "letters"='ΑΕΦ';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lgbt" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text ); Question: What is the type if the organization name is Gamma RHO Lambda 1? <|assistant|> SELECT "type" FROM "lgbt" WHERE "organization"='Gamma Rho Lambda 1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lgbt" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text ); Question: If the letters is φαν, what is the founding date? <|assistant|> SELECT "founding_date" FROM "lgbt" WHERE "letters"='ΦΑΝ';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lgbt" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text ); Question: If the founding university is in Charlotte, NC, what is the nickname? <|assistant|> SELECT "nickname" FROM "lgbt" WHERE "founding_university"='Charlotte, NC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lgbt" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text ); Question: What is the founding date if the nickname is '"Canes", "k-psis", "Diamonds", or "Angels"? <|assistant|> SELECT "founding_date" FROM "lgbt" WHERE "nickname"='\"Canes\", \"K-PSIs\", \"Diamonds\", or \"Angels\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lgbt" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text ); Question: What is the founding date if the letters are κψκ? <|assistant|> SELECT "founding_date" FROM "lgbt" WHERE "letters"='ΚΨΚ';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lgbt" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text ); Question: If the founding university is in Washington, D.C., what was the founding date? <|assistant|> SELECT "founding_date" FROM "lgbt" WHERE "founding_university"='Washington, D.C.';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "averages" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" text ); Question: What is the rank by average for the team who averaged 22.8? <|assistant|> SELECT MIN("rank_by_average") FROM "averages" WHERE "average"='22.8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "averages" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" text ); Question: What is the number of dances for the team that averages 20.6? <|assistant|> SELECT "number_of_dances" FROM "averages" WHERE "average"='20.6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "averages" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" text ); Question: What couple averaged 15.5? <|assistant|> SELECT "couple" FROM "averages" WHERE "average"='15.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "averages" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" text ); Question: What is the smallest rank by average for a team averaging 22.8? <|assistant|> SELECT MIN("rank_by_average") FROM "averages" WHERE "average"='22.8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25401_15" ( "english" text, "latin" text, "proto_italo_western_1" text, "conservative_central_italian_1" text, "italian" text, "spanish" text, "catalan" text, "old_french" text ); Question: What is every value for Italian when the part is English? <|assistant|> SELECT "italian" FROM "table1_25401_15" WHERE "english"='part';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25401_15" ( "english" text, "latin" text, "proto_italo_western_1" text, "conservative_central_italian_1" text, "italian" text, "spanish" text, "catalan" text, "old_french" text ); Question: What is every entry for Proto-Italo-Western 1 when door is English? <|assistant|> SELECT "proto_italo_western_1" FROM "table1_25401_15" WHERE "english"='door';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25401_15" ( "english" text, "latin" text, "proto_italo_western_1" text, "conservative_central_italian_1" text, "italian" text, "spanish" text, "catalan" text, "old_french" text ); Question: How many entries for Italian correspond to the Conservative Central Italian of Unu? <|assistant|> SELECT COUNT("italian") FROM "table1_25401_15" WHERE "conservative_central_italian_1"='unu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25401_15" ( "english" text, "latin" text, "proto_italo_western_1" text, "conservative_central_italian_1" text, "italian" text, "spanish" text, "catalan" text, "old_french" text ); Question: What is every entry for Latin when Catalan is Mar? <|assistant|> SELECT "latin" FROM "table1_25401_15" WHERE "catalan"='mar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012" ( "date" text, "tournament" text, "location" text, "opponent" text, "stadium" text, "score" text, "indian_scorers" text ); Question: If the Indian Scorers is Chinadorai Sabeeth, what is the name of the stadium? <|assistant|> SELECT "stadium" FROM "2011_2012" WHERE "indian_scorers"='Chinadorai Sabeeth';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012" ( "date" text, "tournament" text, "location" text, "opponent" text, "stadium" text, "score" text, "indian_scorers" text ); Question: If the stadium name is the Thuwunna Stadium, what is the date? <|assistant|> SELECT "date" FROM "2011_2012" WHERE "stadium"='Thuwunna Stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012" ( "date" text, "tournament" text, "location" text, "opponent" text, "stadium" text, "score" text, "indian_scorers" text ); Question: If the Indian scorers is the Chinadorai Sabeeth, what is the score? <|assistant|> SELECT "score" FROM "2011_2012" WHERE "indian_scorers"='Chinadorai Sabeeth';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012" ( "date" text, "tournament" text, "location" text, "opponent" text, "stadium" text, "score" text, "indian_scorers" text ); Question: If the location is Yangon, Myanmar, what is the opponent total number? <|assistant|> SELECT COUNT("opponent") FROM "2011_2012" WHERE "location"='Yangon, Myanmar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_provincial_level_divisions" ( "gb" text, "iso" text, "province" text, "chinese_name" text, "capital" text, "population" real, "density" text, "area" real, "abbreviation_symbol" text ); Question: How many provinces are named 青海省 qīnghǎi shěng? <|assistant|> SELECT COUNT("iso") FROM "list_of_provincial_level_divisions" WHERE "chinese_name"='青海省 Qīnghǎi Shěng';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_provincial_level_divisions" ( "gb" text, "iso" text, "province" text, "chinese_name" text, "capital" text, "population" real, "density" text, "area" real, "abbreviation_symbol" text ); Question: What is the area of the province with a density of 533.59? <|assistant|> SELECT MAX("area") FROM "list_of_provincial_level_divisions" WHERE "density"='533.59';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_provincial_level_divisions" ( "gb" text, "iso" text, "province" text, "chinese_name" text, "capital" text, "population" real, "density" text, "area" real, "abbreviation_symbol" text ); Question: How many provinces have a density of 165.81? <|assistant|> SELECT COUNT("iso") FROM "list_of_provincial_level_divisions" WHERE "density"='165.81';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_provincial_level_divisions" ( "gb" text, "iso" text, "province" text, "chinese_name" text, "capital" text, "population" real, "density" text, "area" real, "abbreviation_symbol" text ); Question: What is the abbreviation/symbol of 辽宁省 liáoníng shěng? <|assistant|> SELECT "abbreviation_symbol" FROM "list_of_provincial_level_divisions" WHERE "chinese_name"='辽宁省 Liáoníng Shěng';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_provincial_level_divisions" ( "gb" text, "iso" text, "province" text, "chinese_name" text, "capital" text, "population" real, "density" text, "area" real, "abbreviation_symbol" text ); Question: How many gb's have an iso number of cn-65? <|assistant|> SELECT COUNT("gb") FROM "list_of_provincial_level_divisions" WHERE "iso"='CN-65';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_provincial_level_divisions" ( "gb" text, "iso" text, "province" text, "chinese_name" text, "capital" text, "population" real, "density" text, "area" real, "abbreviation_symbol" text ); Question: What is the chinese name of the province whose capital is hangzhou? <|assistant|> SELECT "chinese_name" FROM "list_of_provincial_level_divisions" WHERE "capital"='Hangzhou';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team_name" text, "races" real, "wins" real, "points" text, "final_placing" text ); Question: What is the fewest amount of races in any season? <|assistant|> SELECT MIN("races") FROM "career_summary";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team_name" text, "races" real, "wins" real, "points" text, "final_placing" text ); Question: How many races were there when Sigachev had 38 points? <|assistant|> SELECT MIN("races") FROM "career_summary" WHERE "points"='38';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team_name" text, "races" real, "wins" real, "points" text, "final_placing" text ); Question: What team was Sigachev on when he had 38 points? <|assistant|> SELECT "team_name" FROM "career_summary" WHERE "points"='38';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team_name" text, "races" real, "wins" real, "points" text, "final_placing" text ); Question: In what season was the final placing NC† and the team SL Formula Racing? <|assistant|> SELECT "season" FROM "career_summary" WHERE "final_placing"='NC†' AND "team_name"='SL Formula Racing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finishing_order" ( "position" text, "number" real, "horse" text, "jockey" text, "age" real, "handicap" text, "sp" text, "distance" text ); Question: what is distance for the 7th position? <|assistant|> SELECT COUNT("distance") FROM "finishing_order" WHERE "position"='7th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finishing_order" ( "position" text, "number" real, "horse" text, "jockey" text, "age" real, "handicap" text, "sp" text, "distance" text ); Question: who isthe jockey in 10th position? <|assistant|> SELECT "jockey" FROM "finishing_order" WHERE "position"='10th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finishing_order" ( "position" text, "number" real, "horse" text, "jockey" text, "age" real, "handicap" text, "sp" text, "distance" text ); Question: what position is number 22? <|assistant|> SELECT "position" FROM "finishing_order" WHERE "number"=22;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finishing_order" ( "position" text, "number" real, "horse" text, "jockey" text, "age" real, "handicap" text, "sp" text, "distance" text ); Question: what horse is in the 6th position? <|assistant|> SELECT "horse" FROM "finishing_order" WHERE "position"='6th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finishing_order" ( "position" text, "number" real, "horse" text, "jockey" text, "age" real, "handicap" text, "sp" text, "distance" text ); Question: what position has a handicap of 10-2? <|assistant|> SELECT "position" FROM "finishing_order" WHERE "handicap"='10-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finishing_order" ( "position" text, "number" real, "horse" text, "jockey" text, "age" real, "handicap" text, "sp" text, "distance" text ); Question: what is the handicap where the distance is 9 lengths? <|assistant|> SELECT "handicap" FROM "finishing_order" WHERE "distance"='9 lengths';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_results" ( "22_06_2008" text, "indonesia_super_series_2008" text, "s_series" text, "7800_00" text, "runner_up" text ); Question: Which series occurred when the 7800 was 5040.00? <|assistant|> SELECT "indonesia_super_series_2008" FROM "other_results" WHERE "7800_00"='5040.00';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_results" ( "22_06_2008" text, "indonesia_super_series_2008" text, "s_series" text, "7800_00" text, "runner_up" text ); Question: Which series occurred in which the semi-finalist was runner-up and the 7800.00 was 6420.00? <|assistant|> SELECT "indonesia_super_series_2008" FROM "other_results" WHERE "runner_up"='Semi-Finalist' AND "7800_00"='6420.00';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_results" ( "22_06_2008" text, "indonesia_super_series_2008" text, "s_series" text, "7800_00" text, "runner_up" text ); Question: Which s.series occurred on 06/05/2007? <|assistant|> SELECT "s_series" FROM "other_results" WHERE "22_06_2008"='06/05/2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25438110_5" ( "casinos" real, "county" text, "road" text, "1_jul_08" real, "fy07_millions" text, "fy08_millions" text, "fy09_millions" text ); Question: What road is associated with Carson Valley county? <|assistant|> SELECT "road" FROM "table1_25438110_5" WHERE "county"='Carson Valley';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25438110_5" ( "casinos" real, "county" text, "road" text, "1_jul_08" real, "fy07_millions" text, "fy08_millions" text, "fy09_millions" text ); Question: How many casinos are associated with a July 1, 2008 value of 1865746? <|assistant|> SELECT "casinos" FROM "table1_25438110_5" WHERE "1_jul_08"=1865746;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25438110_5" ( "casinos" real, "county" text, "road" text, "1_jul_08" real, "fy07_millions" text, "fy08_millions" text, "fy09_millions" text ); Question: What county has exactly 17 casinos? <|assistant|> SELECT "county" FROM "table1_25438110_5" WHERE "casinos"=17;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25438110_5" ( "casinos" real, "county" text, "road" text, "1_jul_08" real, "fy07_millions" text, "fy08_millions" text, "fy09_millions" text ); Question: How many casinos are associated with a FY2009 $mil value of exactly $279? <|assistant|> SELECT COUNT("casinos") FROM "table1_25438110_5" WHERE "fy09_millions"='$279';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25438110_5" ( "casinos" real, "county" text, "road" text, "1_jul_08" real, "fy07_millions" text, "fy08_millions" text, "fy09_millions" text ); Question: What is the FY2008 $mil value associated with a FY2007 $mil value of exactly $120? <|assistant|> SELECT "fy08_millions" FROM "table1_25438110_5" WHERE "fy07_millions"='$120';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_delegates" ( "country" text, "contestant" text, "age" real, "height_cm" real, "height_ft" text, "hometown" text ); Question: What country was Danissa Zurek from? <|assistant|> SELECT "country" FROM "official_delegates" WHERE "contestant"='Danissa Zurek';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_delegates" ( "country" text, "contestant" text, "age" real, "height_cm" real, "height_ft" text, "hometown" text ); Question: What is the smallest height associated with Honduras? <|assistant|> SELECT MIN("height_cm") FROM "official_delegates" WHERE "country"='Honduras';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_delegates" ( "country" text, "contestant" text, "age" real, "height_cm" real, "height_ft" text, "hometown" text ); Question: What is the height associated with Paraguay? <|assistant|> SELECT "height_ft" FROM "official_delegates" WHERE "country"='Paraguay';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_delegates" ( "country" text, "contestant" text, "age" real, "height_cm" real, "height_ft" text, "hometown" text ); Question: What is the number of contestants who are aged exactly 18? <|assistant|> SELECT COUNT("contestant") FROM "official_delegates" WHERE "age"=18;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_delegates" ( "country" text, "contestant" text, "age" real, "height_cm" real, "height_ft" text, "hometown" text ); Question: What is the number of contestants who are 5'7" and exactly 26 years of age? <|assistant|> SELECT COUNT("contestant") FROM "official_delegates" WHERE "height_ft"='5''7\"' AND "age"=26;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "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 on November 17? <|assistant|> SELECT "high_points" FROM "schedule" WHERE "date"='November 17';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "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 final score when the Temple Owls beat Virginia Tech? <|assistant|> SELECT "score" FROM "schedule" WHERE "team"='Virginia Tech';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "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 games were played on november 27? <|assistant|> SELECT COUNT("record") FROM "schedule" WHERE "date"='November 27';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "supporting" text ); Question: Who got the pole position if the supporting is USAC National Midget Series? <|assistant|> SELECT "pole_position" FROM "race_calendar_and_results" WHERE "supporting"='USAC National Midget Series';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "supporting" text ); Question: Who won the fastest lap if Anders Krohn won the pole position? <|assistant|> SELECT "fastest_lap" FROM "race_calendar_and_results" WHERE "pole_position"='Anders Krohn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "supporting" text ); Question: How many rounds did João Victor Horto achieved the fastest lap? <|assistant|> SELECT COUNT("round") FROM "race_calendar_and_results" WHERE "fastest_lap"='João Victor Horto';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "supporting" text ); Question: What circuit was used on August 21? <|assistant|> SELECT "circuit" FROM "race_calendar_and_results" WHERE "date"='August 21';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "supporting" text ); Question: How many rounds did Alex Ardoin achieved a fastest lap? <|assistant|> SELECT COUNT("round") FROM "race_calendar_and_results" WHERE "fastest_lap"='Alex Ardoin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010" ( "date_of_issue" text, "theme" text, "denomination" text, "design" text, "illustration" text, "quantity" text, "printing_process" text, "paper_type" text, "first_day_cover_cancellation" text ); Question: What is the design when quantity is 5,000,000? <|assistant|> SELECT "design" FROM "2010" WHERE "quantity"='5,000,000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010" ( "date_of_issue" text, "theme" text, "denomination" text, "design" text, "illustration" text, "quantity" text, "printing_process" text, "paper_type" text, "first_day_cover_cancellation" text ); Question: How many time is the theme rotary international : 100 years in canada? <|assistant|> SELECT COUNT("printing_process") FROM "2010" WHERE "theme"='Rotary International : 100 Years in Canada';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010" ( "date_of_issue" text, "theme" text, "denomination" text, "design" text, "illustration" text, "quantity" text, "printing_process" text, "paper_type" text, "first_day_cover_cancellation" text ); Question: What is the paper type for the date of issue July 8? <|assistant|> SELECT "paper_type" FROM "2010" WHERE "date_of_issue"='July 8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010" ( "date_of_issue" text, "theme" text, "denomination" text, "design" text, "illustration" text, "quantity" text, "printing_process" text, "paper_type" text, "first_day_cover_cancellation" text ); Question: What is the theme when the printing process is litho in 3 cols and intaglio? <|assistant|> SELECT "theme" FROM "2010" WHERE "printing_process"='Litho in 3 cols and intaglio';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010" ( "date_of_issue" text, "theme" text, "denomination" text, "design" text, "illustration" text, "quantity" text, "printing_process" text, "paper_type" text, "first_day_cover_cancellation" text ); Question: How many times is the theme roadside attractions: wawa goose? <|assistant|> SELECT COUNT("quantity") FROM "2010" WHERE "theme"='Roadside Attractions: Wawa Goose';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010" ( "date_of_issue" text, "theme" text, "denomination" text, "design" text, "illustration" text, "quantity" text, "printing_process" text, "paper_type" text, "first_day_cover_cancellation" text ); Question: What is the theme when the date of issue is 11 january 2010? <|assistant|> SELECT "theme" FROM "2010" WHERE "date_of_issue"='11 January 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: When did they play Dayton? <|assistant|> SELECT "date" FROM "schedule" WHERE "team"='Dayton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25474825_1" ( "software" text, "description" text, "platform" text, "license" text, "developer" text ); Question: What is the platform of Geworkbench? <|assistant|> SELECT "platform" FROM "table1_25474825_1" WHERE "software"='GeWorkbench';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25474825_1" ( "software" text, "description" text, "platform" text, "license" text, "developer" text ); Question: What is the description of the license for GNU GPL v2 or Ruby license? <|assistant|> SELECT "description" FROM "table1_25474825_1" WHERE "license"='GNU GPL v2 or Ruby license';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25474825_1" ( "software" text, "description" text, "platform" text, "license" text, "developer" text ); Question: What is the license that is described as a tool for designing and executing workflows? <|assistant|> SELECT "license" FROM "table1_25474825_1" WHERE "description"='Tool for designing and executing workflows';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25474825_1" ( "software" text, "description" text, "platform" text, "license" text, "developer" text ); Question: What is the description of the intact software? <|assistant|> SELECT "description" FROM "table1_25474825_1" WHERE "software"='IntAct';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "revised_electricity_tariffs_effective_fr" ( "user" text, "unit_k_wh_time_range" text, "tariff_rs_k_wh" text, "fixed_charge_rs_k_wh" text, "fuel_adjustment_charge_pct_of_total_energy_charge" text, "max_demand_charge_rs_k_va" text ); Question: What user had a max demand charge of 1,100 and a unit/time range of h-2: off-peak (22:30-05:30)? <|assistant|> SELECT "user" FROM "revised_electricity_tariffs_effective_fr" WHERE "max_demand_charge_rs_k_va"='1,100' AND "unit_k_wh_time_range"='H-2: Off-peak (22:30-05:30)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "revised_electricity_tariffs_effective_fr" ( "user" text, "unit_k_wh_time_range" text, "tariff_rs_k_wh" text, "fixed_charge_rs_k_wh" text, "fuel_adjustment_charge_pct_of_total_energy_charge" text, "max_demand_charge_rs_k_va" text ); Question: What is the fixed charge for the user who had a tariff of 11.30? <|assistant|> SELECT "fixed_charge_rs_k_wh" FROM "revised_electricity_tariffs_effective_fr" WHERE "tariff_rs_k_wh"='11.30';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "revised_electricity_tariffs_effective_fr" ( "user" text, "unit_k_wh_time_range" text, "tariff_rs_k_wh" text, "fixed_charge_rs_k_wh" text, "fuel_adjustment_charge_pct_of_total_energy_charge" text, "max_demand_charge_rs_k_va" text ); Question: What is the fixed charge for the user with a unit/time range of i-2: peak (18:30-22:30)? <|assistant|> SELECT "fixed_charge_rs_k_wh" FROM "revised_electricity_tariffs_effective_fr" WHERE "unit_k_wh_time_range"='I-2: Peak (18:30-22:30)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "revised_electricity_tariffs_effective_fr" ( "user" text, "unit_k_wh_time_range" text, "tariff_rs_k_wh" text, "fixed_charge_rs_k_wh" text, "fuel_adjustment_charge_pct_of_total_energy_charge" text, "max_demand_charge_rs_k_va" text ); Question: What was the max demand charge for the user with a tariff of 8.85? <|assistant|> SELECT "max_demand_charge_rs_k_va" FROM "revised_electricity_tariffs_effective_fr" WHERE "tariff_rs_k_wh"='8.85';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); Question: How many picks are there with an affiliation is the University of California Norcal Lamorinda United? <|assistant|> SELECT COUNT("pick_num") FROM "round_two" WHERE "affiliation"='University of California NorCal Lamorinda United';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); Question: What team does Seth Sinovic play for? <|assistant|> SELECT "mls_team" FROM "round_two" WHERE "player"='Seth Sinovic';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); Question: How many players have an affiliation with University of Maryland? <|assistant|> SELECT COUNT("player") FROM "round_two" WHERE "affiliation"='University of Maryland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fed_cup_doubles_performances_10" ( "edition" real, "zone" text, "round" text, "against" text, "surface" text, "partner" text, "opponents" text, "outcome" text, "result" text ); Question: in what round types did the opponent come from south africa? <|assistant|> SELECT "round" FROM "fed_cup_doubles_performances_10" WHERE "against"='South Africa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fed_cup_doubles_performances_10" ( "edition" real, "zone" text, "round" text, "against" text, "surface" text, "partner" text, "opponents" text, "outcome" text, "result" text ); Question: How did the match end when she played with caroline wozniacki? <|assistant|> SELECT "outcome" FROM "fed_cup_doubles_performances_10" WHERE "partner"='Caroline Wozniacki';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: When was the University founded that joined in 1978? <|assistant|> SELECT MAX("founded") FROM "current_members" WHERE "joined"=1978;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: When was Piedmont College founded? <|assistant|> SELECT MAX("founded") FROM "current_members" WHERE "institution"='Piedmont College';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: When were the Avenging Angels founded? <|assistant|> SELECT MAX("founded") FROM "current_members" WHERE "nickname"='Avenging Angels';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: What institution joined in 1988? <|assistant|> SELECT "institution" FROM "current_members" WHERE "joined"=1988;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real, "left" real, "current_conference" text ); Question: What location is nicknamed the 49ers? <|assistant|> SELECT "location" FROM "former_members" WHERE "nickname"='49ers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real, "left" real, "current_conference" text ); Question: Where is the University of North Carolina at Greensboro located? <|assistant|> SELECT "location" FROM "former_members" WHERE "institution"='University of North Carolina at Greensboro';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real, "left" real, "current_conference" text ); Question: Where is the University of North Carolina at Greensboro located? <|assistant|> SELECT "location" FROM "former_members" WHERE "institution"='University of North Carolina at Greensboro';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "triangles_and_their_sides" ( "number" real, "name" text, "vertices" text, "hypotenuse_0_c" text, "vertical_0_b" text, "horizontal_0_a" text ); Question: Name the hypotenuse for vertices 月山泛 δymf <|assistant|> SELECT "hypotenuse_0_c" FROM "triangles_and_their_sides" WHERE "vertices"='月山泛 ΔYMF';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "triangles_and_their_sides" ( "number" real, "name" text, "vertices" text, "hypotenuse_0_c" text, "vertical_0_b" text, "horizontal_0_a" text ); Question: Name the vertical for 边 bian <|assistant|> SELECT "vertical_0_b" FROM "triangles_and_their_sides" WHERE "name"='边 BIAN';<|endoftext|>