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: How many different popular vote counts were there for the candidate Rick Perry?
<|assistant|>
SELECT COUNT("popular_vote") FROM "table1_20246201_9" WHERE "candidate"='Rick Perry';<|endoftext|>
|
<|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: Which office has 1 New Hampshire as a third place state?
<|assistant|>
SELECT "office" FROM "table1_20246201_9" WHERE "states_third_place"='1 New Hampshire';<|endoftext|>
|
<|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: How many different popular vote counts are there for Rick Perry?
<|assistant|>
SELECT COUNT("popular_vote") FROM "table1_20246201_9" WHERE "candidate"='Rick Perry';<|endoftext|>
|
<|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: What office is Jon Huntsman a candidate for?
<|assistant|>
SELECT "office" FROM "table1_20246201_9" WHERE "candidate"='Jon Huntsman';<|endoftext|>
|
<|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: How many states-first place are there for the office of Governor?
<|assistant|>
SELECT COUNT("states_first_place") FROM "table1_20246201_9" WHERE "office"='Governor';<|endoftext|>
|
<|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 for australia 13, new zealand 40, drawn 3
<|assistant|>
SELECT "competition" FROM "post_war_1946_1974" WHERE "head_to_head"='Australia 13, New Zealand 40, Drawn 3';<|endoftext|>
|
<|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 10
<|assistant|>
SELECT "explanation" FROM "table1_2026548_1" WHERE "rank_by_time_in_office"=10;<|endoftext|>
|
<|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 spiro agnew
<|assistant|>
SELECT "order_in_office" FROM "table1_2026548_1" WHERE "vice_president"='Spiro Agnew';<|endoftext|>
|
<|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. barkley
<|assistant|>
SELECT "explanation" FROM "table1_2026548_1" WHERE "vice_president"='Alben W. Barkley';<|endoftext|>
|
<|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 Obama in Burlington?
<|assistant|>
SELECT "obama_pct" FROM "by_county" WHERE "county"='Burlington';<|endoftext|>
|
<|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 McCain in Burlington?
<|assistant|>
SELECT "mc_cain_pct" FROM "by_county" WHERE "county"='Burlington';<|endoftext|>
|
<|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 a third party in the county that had 802 third party voters?
<|assistant|>
SELECT "others_pct" FROM "by_county" WHERE "others_num"=802;<|endoftext|>
|
<|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 McCain in the county where 1.1% of voters voted third party?
<|assistant|>
SELECT "mc_cain_pct" FROM "by_county" WHERE "others_pct"='1.1%';<|endoftext|>
|
<|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 McCain in the county where 2.1% of voters voted third party?
<|assistant|>
SELECT "mc_cain_pct" FROM "by_county" WHERE "others_pct"='2.1%';<|endoftext|>
|
<|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 voters?
<|assistant|>
SELECT "county" FROM "by_county" WHERE "others_num"=915;<|endoftext|>
|
<|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
<|assistant|>
SELECT "ply_uk_nz_au" FROM "table1_20297668_1" WHERE "yarn_type_us"='Fingering';<|endoftext|>
|
<|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
<|assistant|>
SELECT "wraps_per_inch_wpi" FROM "table1_20297668_1" WHERE "m_100g"='120-240';<|endoftext|>
|
<|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 inch 7 wpi
<|assistant|>
SELECT "ply_uk_nz_au" FROM "table1_20297668_1" WHERE "wraps_per_inch_wpi"='7 wpi';<|endoftext|>
|
<|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 weight system for 3 or light
<|assistant|>
SELECT "yarn_type_us" FROM "table1_20297668_1" WHERE "standard_yarn_weight_system"='3 or Light';<|endoftext|>
|
<|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 7 wpi
<|assistant|>
SELECT "standard_yarn_weight_system" FROM "table1_20297668_1" WHERE "wraps_per_inch_wpi"='7 wpi';<|endoftext|>
|
<|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 9 wpi
<|assistant|>
SELECT "standard_yarn_weight_system" FROM "table1_20297668_1" WHERE "wraps_per_inch_wpi"='9 wpi';<|endoftext|>
|
<|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 points for 2nd m 127.5
<|assistant|>
SELECT "overall_nt_points" FROM "kuopio" WHERE "2nd_m"='127.5';<|endoftext|>
|
<|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 over wc points (rank)?
<|assistant|>
SELECT "overall_wc_points_rank" FROM "oberstdorf" WHERE "1st_m"='218.0';<|endoftext|>
|
<|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 wc points (rank)?
<|assistant|>
SELECT "overall_wc_points_rank" FROM "oberstdorf" WHERE "1st_m"='212.5';<|endoftext|>
|
<|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. 1901 model fitted?
<|assistant|>
SELECT "date_motor_gear_fitted" FROM "details" WHERE "lms_1946_no"=1901;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"player" text,
"played" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" text
);
Question: how many matches did wayne mardle play
<|assistant|>
SELECT COUNT("played") FROM "statistics" WHERE "player"='Wayne Mardle';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"player" text,
"played" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" text
);
Question: what is the 3-dart average of raymond van barneveld
<|assistant|>
SELECT "3_dart_average" FROM "statistics" WHERE "player"='Raymond van Barneveld';<|endoftext|>
|
<|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 results are there for the season with a 4-3 conference record?
<|assistant|>
SELECT COUNT("result") FROM "division_championships" WHERE "conference_record"='4-3';<|endoftext|>
|
<|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 in the season with a 6-1 conference record?
<|assistant|>
SELECT "coach" FROM "division_championships" WHERE "conference_record"='6-1';<|endoftext|>
|
<|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 conference records are there for season 2006?
<|assistant|>
SELECT COUNT("conference_record") FROM "division_championships" WHERE "season"=2006;<|endoftext|>
|
<|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 with 7-2 conference record ed?
<|assistant|>
SELECT "result" FROM "division_championships" WHERE "conference_record"='7-2';<|endoftext|>
|
<|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 conference record 4-3?
<|assistant|>
SELECT MIN("season") FROM "division_championships" WHERE "conference_record"='4-3';<|endoftext|>
|
<|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,
"semifinalists" real,
"total" real
);
Question: What is the highest number of third place runners up held by any of the countries competing in the Mr. International competition?.
<|assistant|>
SELECT MAX("3rd_runner_up") FROM "by_country_tally";<|endoftext|>
|
<|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,
"semifinalists" real,
"total" real
);
Question: The country, competing in the Mr. International competition, that holds a rank of 3, has how many 2nd runners up?
<|assistant|>
SELECT COUNT("2nd_runner_up") FROM "by_country_tally" WHERE "rank"=3;<|endoftext|>
|
<|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,
"semifinalists" real,
"total" real
);
Question: For the country that holds a rank of 2, in the Mr. International Competition, what is the total number of competitors listed as 2nd runner ups?
<|assistant|>
SELECT COUNT("2nd_runner_up") FROM "by_country_tally" WHERE "rank"=2;<|endoftext|>
|
<|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,
"semifinalists" real,
"total" real
);
Question: How many competitors in total, for the Mr. International competition, does Brazil have?
<|assistant|>
SELECT MAX("total") FROM "by_country_tally" WHERE "country_territory"='Brazil';<|endoftext|>
|
<|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_average" text
);
Question: How many games did the player with 3-dart average of 66.86 play?
<|assistant|>
SELECT "played" FROM "women_s" WHERE "3_dart_average"='66.86';<|endoftext|>
|
<|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_average" text
);
Question: What's the 100+ score of the player with 6 won legs?
<|assistant|>
SELECT MAX("100") FROM "women_s" WHERE "legs_won"=6;<|endoftext|>
|
<|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_average" text
);
Question: What player has a 3-dart average of 75.76?
<|assistant|>
SELECT "player" FROM "women_s" WHERE "3_dart_average"='75.76';<|endoftext|>
|
<|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_average" text
);
Question: What's Trina Gulliver's high checkout?
<|assistant|>
SELECT "high_checkout" FROM "women_s" WHERE "player"='Trina Gulliver';<|endoftext|>
|
<|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_average" text
);
Question: How many legs has the player with high checkout of 80 won?
<|assistant|>
SELECT "legs_won" FROM "women_s" WHERE "high_checkout"=80;<|endoftext|>
|
<|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 word and meaning for aquarius
<|assistant|>
SELECT "sanskrit_word_and_meaning" FROM "kollam_era_calendar" WHERE "zodiac_sign"='Aquarius';<|endoftext|>
|
<|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 കന്നി
<|assistant|>
SELECT "zodiac_sign" FROM "kollam_era_calendar" WHERE "malayalam_name"='കന്നി';<|endoftext|>
|
<|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 name for leo
<|assistant|>
SELECT "malayalam_name" FROM "kollam_era_calendar" WHERE "zodiac_sign"='Leo';<|endoftext|>
|
<|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 transliteration for ചിങ്ങം
<|assistant|>
SELECT "transliteration" FROM "kollam_era_calendar" WHERE "malayalam_name"='ചിങ്ങം';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real,
"total" real
);
Question: How many votes did McCain get in the county where Obama got 50.7% of the votes?
<|assistant|>
SELECT MAX("mc_cainnum") FROM "by_county" WHERE "obamapct"='50.7%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real,
"total" real
);
Question: Where did McCain get 20226 votes?
<|assistant|>
SELECT "county" FROM "by_county" WHERE "mc_cainnum"=20226;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real,
"total" real
);
Question: How many people voted in Cabarrus county?
<|assistant|>
SELECT MIN("total") FROM "by_county" WHERE "county"='Cabarrus';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real,
"total" real
);
Question: How many different results were there for the number of votes fro Obama in the county where he got 27.8% of the votes?
<|assistant|>
SELECT COUNT("obamanum") FROM "by_county" WHERE "obamapct"='27.8%';<|endoftext|>
|
<|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 many episodes directed by ben jones and written by paul dini?
<|assistant|>
SELECT COUNT("no") FROM "table1_20360535_3" WHERE "directed_by"='Ben Jones' AND "written_by"='Paul Dini';<|endoftext|>
|
<|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: What is the title of S02E01?
<|assistant|>
SELECT "title" FROM "table1_20360535_3" WHERE "television_order"='S02E01';<|endoftext|>
|
<|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: What TV order is written by gail simone?
<|assistant|>
SELECT "television_order" FROM "table1_20360535_3" WHERE "written_by"='Gail Simone';<|endoftext|>
|
<|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 womens singles
<|assistant|>
SELECT "mens_doubles" FROM "past_winners" WHERE "womens_singles"='Zhou Mi';<|endoftext|>
|
<|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 womens singles
<|assistant|>
SELECT "mixed_doubles" FROM "past_winners" WHERE "womens_singles"='Zhou Mi';<|endoftext|>
|
<|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 womens singles
<|assistant|>
SELECT MIN("year") FROM "past_winners" WHERE "womens_singles"='Li Xuerui';<|endoftext|>
|
<|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 womens singles
<|assistant|>
SELECT MIN("year") FROM "past_winners" WHERE "womens_singles"='Li Xuerui';<|endoftext|>
|
<|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
<|assistant|>
SELECT "womens_doubles" FROM "past_winners" WHERE "year"=2010;<|endoftext|>
|
<|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 won womens singles
<|assistant|>
SELECT "mixed_doubles" FROM "past_winners" WHERE "womens_singles"='Wang Yihan';<|endoftext|>
|
<|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_election" text,
"county_councils_2011" real
);
Question: How many county councils for the communist party of norway
<|assistant|>
SELECT MAX("county_councils_2011") FROM "non_parliamentary_parties" WHERE "english_party_name"='Communist Party of Norway';<|endoftext|>
|
<|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_election" text,
"county_councils_2011" real
);
Question: What percent of the parliamentary election did the pensioners party receive
<|assistant|>
SELECT "2013_parliamentary_election" FROM "non_parliamentary_parties" WHERE "english_party_name"='Pensioners Party';<|endoftext|>
|
<|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_election" text,
"county_councils_2011" real
);
Question: How many parties are named the Center Alliance
<|assistant|>
SELECT COUNT("2013_parliamentary_election") FROM "non_parliamentary_parties" WHERE "english_party_name"='Center Alliance';<|endoftext|>
|
<|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 withdrawn for 37 lstr no.
<|assistant|>
SELECT MAX("withdrawn") FROM "list_of_locomotives" WHERE "ltsr_no"=37;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"bonus_points" text,
"points" text
);
Question: how many won 83 points for?
<|assistant|>
SELECT "won" FROM "2008_2009_table" WHERE "points_for"='83';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"bonus_points" text,
"points" text
);
Question: which club is listed when bonus points is bonus points
<|assistant|>
SELECT "club" FROM "2008_2009_table" WHERE "bonus_points"='Bonus Points';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"bonus_points" text,
"points" text
);
Question: when the points for is 139 is points difference?
<|assistant|>
SELECT COUNT("points_difference") FROM "2008_2009_table" WHERE "points_for"='139';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"bonus_points" text,
"points" text
);
Question: when points against is points again, which are the drawn?
<|assistant|>
SELECT "drawn" FROM "2008_2009_table" WHERE "points_against"='Points against';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"bonus_points" text,
"points" text
);
Question: when points for is 39 what is the total number of drawn
<|assistant|>
SELECT "drawn" FROM "2008_2009_table" WHERE "points_for"='39';<|endoftext|>
|
<|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" FROM "by_county" WHERE "obama_pct"='19.3%';<|endoftext|>
|
<|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("mc_cain_num") FROM "by_county" WHERE "obama_pct"='33.7%';<|endoftext|>
|
<|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" WHERE "obama_pct"='39.8%';<|endoftext|>
|
<|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_county" WHERE "county"='Carson City';<|endoftext|>
|
<|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" WHERE "obama_pct"='41.3%';<|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: Name the number of season for team bruichladdich
<|assistant|>
SELECT COUNT("season") FROM "career_summary" WHERE "team"='Team Bruichladdich';<|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: Name the least podiums for 49 points
<|assistant|>
SELECT MIN("podiums") FROM "career_summary" WHERE "points"='49';<|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: 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" text,
"position" text
);
Question: Namet he season for wins being 0 and 20 races
<|assistant|>
SELECT "season" FROM "career_summary" WHERE "wins"=0 AND "races"=20;<|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: Name the least podiums for 0 wins and 2005 season for 321 points
<|assistant|>
SELECT MIN("podiums") FROM "career_summary" WHERE "wins"=0 AND "season"=2005 AND "points"='321';<|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,
"spanish_title" text,
"director" text,
"result" text
);
Question: What is the Spanish title of the film whose title used in nomination was Ogu and Mampato in Rapa Nui?
<|assistant|>
SELECT "spanish_title" FROM "submissions" WHERE "film_title_used_in_nomination"='Ogu and Mampato in Rapa Nui';<|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,
"spanish_title" text,
"director" text,
"result" text
);
Question: Who was the director of the film that was not nominated and had the Spanish title of play?
<|assistant|>
SELECT "director" FROM "submissions" WHERE "result"='Not Nominated' AND "spanish_title"='Play';<|endoftext|>
|
<|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?
<|assistant|>
SELECT COUNT("couple") FROM "average_score_chart" WHERE "average"='25.3';<|endoftext|>
|
<|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 dances are there for the couple ranked at number 6?
<|assistant|>
SELECT COUNT("number_of_dances") FROM "average_score_chart" WHERE "place"=6;<|endoftext|>
|
<|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?
<|assistant|>
SELECT "couple" FROM "average_score_chart" WHERE "average"='17.2';<|endoftext|>
|
<|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 couple has danced?
<|assistant|>
SELECT MIN("number_of_dances") FROM "average_score_chart";<|endoftext|>
|
<|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 ranked at?
<|assistant|>
SELECT MAX("place") FROM "average_score_chart";<|endoftext|>
|
<|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_ha" text,
"cropped_area_in_lakh_ha" text,
"crop_damaged_in_lakh_inr" text,
"house_affected" real,
"public_property_damaged_in_lakh_inr" text
);
Question: How many crops were damaged when the public property damage was 1,03,049.60?
<|assistant|>
SELECT "crop_damaged_in_lakh_inr" FROM "total_affected_and_damaged_in_bihar_due_" WHERE "public_property_damaged_in_lakh_inr"='1,03,049.60';<|endoftext|>
|
<|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_ha" text,
"cropped_area_in_lakh_ha" text,
"crop_damaged_in_lakh_inr" text,
"house_affected" real,
"public_property_damaged_in_lakh_inr" text
);
Question: What is the panchayat when the public property damage was 1,03,049.60
<|assistant|>
SELECT MAX("panchayat") FROM "total_affected_and_damaged_in_bihar_due_" WHERE "public_property_damaged_in_lakh_inr"='1,03,049.60';<|endoftext|>
|
<|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_ha" text,
"cropped_area_in_lakh_ha" text,
"crop_damaged_in_lakh_inr" text,
"house_affected" real,
"public_property_damaged_in_lakh_inr" text
);
Question: What is the largest village that had 103279 houses affected?
<|assistant|>
SELECT MAX("village") FROM "total_affected_and_damaged_in_bihar_due_" WHERE "house_affected"=103279;<|endoftext|>
|
<|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_ha" text,
"cropped_area_in_lakh_ha" text,
"crop_damaged_in_lakh_inr" text,
"house_affected" real,
"public_property_damaged_in_lakh_inr" text
);
Question: What is the smallest district that had 33.25 in animals
<|assistant|>
SELECT MIN("district") FROM "total_affected_and_damaged_in_bihar_due_" WHERE "animal_in_lakh"='33.25';<|endoftext|>
|
<|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_ha" text,
"cropped_area_in_lakh_ha" text,
"crop_damaged_in_lakh_inr" text,
"house_affected" real,
"public_property_damaged_in_lakh_inr" text
);
Question: How many districts had crib damage of 1,164.50?
<|assistant|>
SELECT COUNT("district") FROM "total_affected_and_damaged_in_bihar_due_" WHERE "crop_damaged_in_lakh_inr"='1,164.50';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real,
"otherspct" text,
"others" real,
"total" real
);
Question: Where did Obama get 37.1%?
<|assistant|>
SELECT "county" FROM "by_county" WHERE "obamapct"='37.1%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real,
"otherspct" text,
"others" real,
"total" real
);
Question: What's the county where McCain got 60.6% and Obama got 37.3%?
<|assistant|>
SELECT "county" FROM "by_county" WHERE "mc_cainpct"='60.6%' AND "obamapct"='37.3%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real,
"otherspct" text,
"others" real,
"total" real
);
Question: What's the number of McCain votes in the county where Obama got 35.7% and others got 1.9% of the votes?
<|assistant|>
SELECT MIN("mc_cainnum") FROM "by_county" WHERE "obamapct"='35.7%' AND "otherspct"='1.9%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real,
"otherspct" text,
"others" real,
"total" real
);
Question: How many votes did Obama get in Geauga?
<|assistant|>
SELECT "obamanum" FROM "by_county" WHERE "county"='Geauga';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real,
"otherspct" text,
"others" real,
"total" real
);
Question: How many people voted for others in the county where McCain got 65.5% of the votes?
<|assistant|>
SELECT "others" FROM "by_county" WHERE "mc_cainpct"='65.5%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"player" text,
"played" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" text
);
Question: How many players had 6 180s?
<|assistant|>
SELECT COUNT("player") FROM "statistics" WHERE "180s"=6;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"player" text,
"played" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" text
);
Question: How many 140+ did Gary Anderson have?
<|assistant|>
SELECT "140" FROM "statistics" WHERE "player"='Gary Anderson';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"player" text,
"played" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" text
);
Question: What is Phil Taylor's 3-dart average?
<|assistant|>
SELECT "3_dart_average" FROM "statistics" WHERE "player"='Phil Taylor';<|endoftext|>
|
<|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?
<|assistant|>
SELECT "guest_3" FROM "season_2006_07" WHERE "guest_4"='Jill Douglas';<|endoftext|>
|
<|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 and guest 3 is John Oliver?
<|assistant|>
SELECT "guest_2" FROM "season_2006_07" WHERE "guest_4"='Iyare Igiehon' AND "guest_3"='John Oliver';<|endoftext|>
|
<|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?
<|assistant|>
SELECT "guest_1" FROM "season_2006_07" WHERE "guest_4"='Jill Douglas';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.