text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20246201_9" ( "candidate" text, "office" text, "home_state" text, "popular_vote" real, "states_first_place" real, "states_second_place" real, "states_third_place" text ); Question: H...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20246201_9" ( "candidate" text, "office" text, "home_state" text, "popular_vote" real, "states_first_place" real, "states_second_place" real, "states_third_place" text ); Question: W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20246201_9" ( "candidate" text, "office" text, "home_state" text, "popular_vote" real, "states_first_place" real, "states_second_place" real, "states_third_place" text ); Question: H...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20246201_9" ( "candidate" text, "office" text, "home_state" text, "popular_vote" real, "states_first_place" real, "states_second_place" real, "states_third_place" text ); Question: W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20246201_9" ( "candidate" text, "office" text, "home_state" text, "popular_vote" real, "states_first_place" real, "states_second_place" real, "states_third_place" text ); Question: H...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "post_war_1946_1974" ( "date" text, "venue" text, "home_team" text, "score" text, "away_team" text, "competition" text, "winner" text, "head_to_head" text ); Question: Name the competition...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2026548_1" ( "rank_by_time_in_office" real, "order_in_office" real, "vice_president" text, "length_of_term_in_days" real, "explanation" text ); Question: Name the explanation by rank is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2026548_1" ( "rank_by_time_in_office" real, "order_in_office" real, "vice_president" text, "length_of_term_in_days" real, "explanation" text ); Question: Name the order in office for spi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2026548_1" ( "rank_by_time_in_office" real, "order_in_office" real, "vice_president" text, "length_of_term_in_days" real, "explanation" text ); Question: Name the explanation for alben w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obama_pct" text, "obama_num" real, "mc_cain_pct" text, "mc_cain_num" real, "others_pct" text, "others_num" real ); Question: What percentage of people voted for...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obama_pct" text, "obama_num" real, "mc_cain_pct" text, "mc_cain_num" real, "others_pct" text, "others_num" real ); Question: What percentage of voters choise Mc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obama_pct" text, "obama_num" real, "mc_cain_pct" text, "mc_cain_num" real, "others_pct" text, "others_num" real ); Question: What percentage of voters voted for...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obama_pct" text, "obama_num" real, "mc_cain_pct" text, "mc_cain_num" real, "others_pct" text, "others_num" real ); Question: What percentage of voters chose McC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obama_pct" text, "obama_num" real, "mc_cain_pct" text, "mc_cain_num" real, "others_pct" text, "others_num" real ); Question: What percentage of voters chose McC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obama_pct" text, "obama_num" real, "mc_cain_pct" text, "mc_cain_num" real, "others_pct" text, "others_num" real ); Question: What county had 915 third party vot...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20297668_1" ( "standard_yarn_weight_system" text, "yarn_type_us" text, "ply_uk_nz_au" text, "m_100g" text, "wraps_per_inch_wpi" text ); Question: Name the ply (uk, nz, au) for fingering ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20297668_1" ( "standard_yarn_weight_system" text, "yarn_type_us" text, "ply_uk_nz_au" text, "m_100g" text, "wraps_per_inch_wpi" text ); Question: Name the wraps per inch for 120-240 <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20297668_1" ( "standard_yarn_weight_system" text, "yarn_type_us" text, "ply_uk_nz_au" text, "m_100g" text, "wraps_per_inch_wpi" text ); Question: Name the ply uk, nz, au for wraps per in...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20297668_1" ( "standard_yarn_weight_system" text, "yarn_type_us" text, "ply_uk_nz_au" text, "m_100g" text, "wraps_per_inch_wpi" text ); Question: Name the yarn type for standard yarn wei...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20297668_1" ( "standard_yarn_weight_system" text, "yarn_type_us" text, "ply_uk_nz_au" text, "m_100g" text, "wraps_per_inch_wpi" text ); Question: Name the standard yarn weight system for...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20297668_1" ( "standard_yarn_weight_system" text, "yarn_type_us" text, "ply_uk_nz_au" text, "m_100g" text, "wraps_per_inch_wpi" text ); Question: Name the standard yarn weight system for...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kuopio" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_nt_points" text, "overall_wc_points_rank" text ); Question: Name the overall nt...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "oberstdorf" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_wc_points_rank" text ); Question: when 1st (m) is 218.0, what were all of the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "oberstdorf" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_wc_points_rank" text ); Question: when 1st (m) is 212.5 what are the overall ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "details" ( "lms_1932_3_no" real, "lms_1946_no" real, "br_no" real, "date_built" text, "date_motor_gear_fitted" text, "withdrawn" text ); Question: When was the motor gear of the LMS 1946 no. ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text ); Question: how many mat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text ); Question: what is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "division_championships" ( "season" real, "division" text, "coach" text, "overall_record" text, "conference_record" text, "result" text, "attendance" real ); Question: How many different res...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "division_championships" ( "season" real, "division" text, "coach" text, "overall_record" text, "conference_record" text, "result" text, "attendance" real ); Question: Who coached the team i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "division_championships" ( "season" real, "division" text, "coach" text, "overall_record" text, "conference_record" text, "result" text, "attendance" real ); Question: How many different con...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "division_championships" ( "season" real, "division" text, "coach" text, "overall_record" text, "conference_record" text, "result" text, "attendance" real ); Question: How did the season wit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "division_championships" ( "season" real, "division" text, "coach" text, "overall_record" text, "conference_record" text, "result" text, "attendance" real ); Question: In what season was the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_country_tally" ( "rank" real, "country_territory" text, "mister_international" real, "1st_runner_up" real, "2nd_runner_up" real, "3rd_runner_up" real, "4th_runner_up" real, "semifinalis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_country_tally" ( "rank" real, "country_territory" text, "mister_international" real, "1st_runner_up" real, "2nd_runner_up" real, "3rd_runner_up" real, "4th_runner_up" real, "semifinalis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_country_tally" ( "rank" real, "country_territory" text, "mister_international" real, "1st_runner_up" real, "2nd_runner_up" real, "3rd_runner_up" real, "4th_runner_up" real, "semifinalis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_country_tally" ( "rank" real, "country_territory" text, "mister_international" real, "1st_runner_up" real, "2nd_runner_up" real, "3rd_runner_up" real, "4th_runner_up" real, "semifinalis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_aver...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_aver...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_aver...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_aver...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_aver...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kollam_era_calendar" ( "malayalam_name" text, "transliteration" text, "concurrent_gregorian_months" text, "sanskrit_word_and_meaning" text, "zodiac_sign" text ); Question: Name the sanskrit wor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kollam_era_calendar" ( "malayalam_name" text, "transliteration" text, "concurrent_gregorian_months" text, "sanskrit_word_and_meaning" text, "zodiac_sign" text ); Question: Name the zodiac for ക...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kollam_era_calendar" ( "malayalam_name" text, "transliteration" text, "concurrent_gregorian_months" text, "sanskrit_word_and_meaning" text, "zodiac_sign" text ); Question: Name the malayalam na...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kollam_era_calendar" ( "malayalam_name" text, "transliteration" text, "concurrent_gregorian_months" text, "sanskrit_word_and_meaning" text, "zodiac_sign" text ); Question: Name the transliterat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "total" real ); Question: How many votes did McCain get in the county where Obama got 50.7%...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "total" real ); Question: Where did McCain get 20226 votes? <|assistant|> SELECT "county" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "total" real ); Question: How many people voted in Cabarrus county? <|assistant|> SELECT MI...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "total" real ); Question: How many different results were there for the number of votes fro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20360535_3" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "television_order" text ); Question: How...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20360535_3" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "television_order" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20360535_3" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "television_order" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: who won mens doubles when zhou mi won wo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: who won mixed doubles when zhou mi won w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: state the earliest year li xuerui won wo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: state the earliest year li xuerui won wo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: who won womens doubles in 2010 <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: who won mixed doubles when wang yihan wo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_parliamentary_parties" ( "english_party_name" text, "norwegian_party_name" text, "associated_ideology" text, "current_leader" text, "international_affiliation" text, "2013_parliamentary_el...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_parliamentary_parties" ( "english_party_name" text, "norwegian_party_name" text, "associated_ideology" text, "current_leader" text, "international_affiliation" text, "2013_parliamentary_el...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_parliamentary_parties" ( "english_party_name" text, "norwegian_party_name" text, "associated_ideology" text, "current_leader" text, "international_affiliation" text, "2013_parliamentary_el...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_locomotives" ( "ltsr_no" real, "ltsr_name" text, "builder" text, "built" real, "mr_no" real, "lms_1930_no" real, "br_no" real, "withdrawn" real ); Question: Name the most withdraw...
<|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, "points_difference" text, "bonus_points" text, "points" ...
<|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, "points_difference" text, "bonus_points" text, "points" ...
<|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, "points_difference" text, "bonus_points" text, "points" ...
<|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, "points_difference" text, "bonus_points" text, "points" ...
<|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, "points_difference" text, "bonus_points" text, "points" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "mc_cain_num" real, "mc_cain_pct" text, "obama_num" real, "obama_pct" text ); Question: what is the mccain % where obama got 19.3% <|assistant|> SELECT "mc_cain_pct"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "mc_cain_num" real, "mc_cain_pct" text, "obama_num" real, "obama_pct" text ); Question: what is the highest mccain # where obama got 33.7% <|assistant|> SELECT MAX("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "mc_cain_num" real, "mc_cain_pct" text, "obama_num" real, "obama_pct" text ); Question: where did obama get 39.8% <|assistant|> SELECT "county" FROM "by_county" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "mc_cain_num" real, "mc_cain_pct" text, "obama_num" real, "obama_pct" text ); Question: what is the obama # in carson city <|assistant|> SELECT "obama_num" FROM "by_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "mc_cain_num" real, "mc_cain_pct" text, "obama_num" real, "obama_pct" text ); Question: where did obama get 41.3% <|assistant|> SELECT "county" FROM "by_county" WHER...
<|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: Name t...
<|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: Name t...
<|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: Name t...
<|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: Namet ...
<|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: Name t...
<|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, "spanish_title" text, "director" text, "result" text ); Question: What is the Spanish title of the film whose title us...
<|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, "spanish_title" text, "director" text, "result" text ); Question: Who was the director of the film that was not nomina...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" text ); Question: How many couples have an average of 25.3?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" text ); Question: How many different numbers of total dance...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" text ); Question: What couple has an average of 17.2? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" text ); Question: What's the minimal number of dances a cou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" text ); Question: What's the highest number a couple has ra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total_affected_and_damaged_in_bihar_due_" ( "year" real, "district" real, "blocks" real, "panchayat" real, "village" real, "human_in_lakh" text, "animal_in_lakh" text, "total_area_in_lakh_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total_affected_and_damaged_in_bihar_due_" ( "year" real, "district" real, "blocks" real, "panchayat" real, "village" real, "human_in_lakh" text, "animal_in_lakh" text, "total_area_in_lakh_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total_affected_and_damaged_in_bihar_due_" ( "year" real, "district" real, "blocks" real, "panchayat" real, "village" real, "human_in_lakh" text, "animal_in_lakh" text, "total_area_in_lakh_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total_affected_and_damaged_in_bihar_due_" ( "year" real, "district" real, "blocks" real, "panchayat" real, "village" real, "human_in_lakh" text, "animal_in_lakh" text, "total_area_in_lakh_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total_affected_and_damaged_in_bihar_due_" ( "year" real, "district" real, "blocks" real, "panchayat" real, "village" real, "human_in_lakh" text, "animal_in_lakh" text, "total_area_in_lakh_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "otherspct" text, "others" real, "total" real ); Question: Where did Obama get 37.1%? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "otherspct" text, "others" real, "total" real ); Question: What's the county where McCa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "otherspct" text, "others" real, "total" real ); Question: What's the number of McCain ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "otherspct" text, "others" real, "total" real ); Question: How many votes did Obama get...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "otherspct" text, "others" real, "total" real ); Question: How many people voted for ot...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text ); Question: How many pla...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text ); Question: How many 140...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text ); Question: What is Phil...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2006_07" ( "date" text, "presenter" text, "guest_1" text, "guest_2" text, "guest_3" text, "guest_4" text ); Question: Who is the guest 3 in the show where guest 4 is Jill Douglas? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2006_07" ( "date" text, "presenter" text, "guest_1" text, "guest_2" text, "guest_3" text, "guest_4" text ); Question: Who is the guest 2 in the episode where guest 4 is Iyare Igiehon a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2006_07" ( "date" text, "presenter" text, "guest_1" text, "guest_2" text, "guest_3" text, "guest_4" text ); Question: Who is the guest 1 in the episode where guest 4 is Jill Douglas? <...