text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "population_total" real, "caboolture" real, "pine_rivers" real, "redcliffe" real ); Question: What is the average Caboolture population with a Redcliffe population greater than 27,327, a Pine Rivers population greater than 119,236, and a total population greater than 344,878 after 1971? <|assistant|> SELECT AVG("caboolture") FROM "population" WHERE "redcliffe">'27,327' AND "pine_rivers">'119,236' AND "year">1971 AND "population_total">'344,878';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: In which place is Emmet French? <|assistant|> SELECT "place" FROM "first_round" WHERE "player"='emmet french';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1995" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text ); Question: What is the result for Gold Coast when Melbourne and Adelaide are yes, but Perth is no? <|assistant|> SELECT "gold_coast" FROM "1995" WHERE "melbourne"='yes' AND "perth"='no' AND "adelaide"='yes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1995" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text ); Question: What is the result for Melbourne when Adelaide, Sydney, and Perth are yes, and Gold Coast is no? <|assistant|> SELECT "melbourne" FROM "1995" WHERE "adelaide"='yes' AND "sydney"='yes' AND "perth"='yes' AND "gold_coast"='no';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1995" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text ); Question: What is the result for Melbourne when Gold Coast, Perth, Auckland, and Sydney are no? <|assistant|> SELECT "melbourne" FROM "1995" WHERE "gold_coast"='no' AND "perth"='no' AND "auckland"='no' AND "sydney"='no';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1995" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text ); Question: What is the result for Gold Coast when Adelaide and Perth are yes, but Auckland is no? <|assistant|> SELECT "gold_coast" FROM "1995" WHERE "adelaide"='yes' AND "auckland"='no' AND "perth"='yes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1995" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text ); Question: What is the result for Gold Coast when Melbourne and Sydney are yes, while Auckland and Perth are no? <|assistant|> SELECT "gold_coast" FROM "1995" WHERE "melbourne"='yes' AND "sydney"='yes' AND "auckland"='no' AND "perth"='no';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1995" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text ); Question: What is the result for Melbourne when Adelaide is no, and Auckland is yes? <|assistant|> SELECT "melbourne" FROM "1995" WHERE "adelaide"='no' AND "auckland"='yes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "stage" text, "date" text, "course" text, "distance" text, "winner" text, "race_leader" text ); Question: Who won on 3 june? <|assistant|> SELECT "winner" FROM "stage_results" WHERE "date"='3 june';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "stage" text, "date" text, "course" text, "distance" text, "winner" text, "race_leader" text ); Question: Which date has a Race Leader of hermann buse ( ger ), and a Stage of 5? <|assistant|> SELECT "date" FROM "stage_results" WHERE "race_leader"='hermann buse ( ger )' AND "stage"='5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "stage" text, "date" text, "course" text, "distance" text, "winner" text, "race_leader" text ); Question: Which race Leader has a Stage of 7? <|assistant|> SELECT "race_leader" FROM "stage_results" WHERE "stage"='7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "stage" text, "date" text, "course" text, "distance" text, "winner" text, "race_leader" text ); Question: Which date has a Stage of 12? <|assistant|> SELECT "date" FROM "stage_results" WHERE "stage"='12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "apra_awards" ( "year" real, "country" text, "nominated_work" text, "award" text, "result" text ); Question: What was the result for song of the year award in 1994? <|assistant|> SELECT "result" FROM "apra_awards" WHERE "year"=1994 AND "award"='song of the year';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "apra_awards" ( "year" real, "country" text, "nominated_work" text, "award" text, "result" text ); Question: What was the result for work made by Neil Finn? <|assistant|> SELECT "result" FROM "apra_awards" WHERE "nominated_work"='neil finn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: what is the money for argentina? <|assistant|> SELECT COUNT("money") FROM "final_round" WHERE "country"='argentina';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: what is the money for trevor immelman? <|assistant|> SELECT "money" FROM "final_round" WHERE "player"='trevor immelman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: what is the place for ireland? <|assistant|> SELECT "place" FROM "final_round" WHERE "country"='ireland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_fixtures_results" ( "date" text, "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "goals" text, "attendance" real, "report" text ); Question: What result was a date of 20/03/2008 with leeds as the opponent <|assistant|> SELECT "result" FROM "2008_fixtures_results" WHERE "opponent"='leeds' AND "date"='20/03/2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "independent_state_of_croatia" ( "date" text, "score" text, "h_t" text, "venue" text, "competition" text ); Question: What was the HT for the game at Stadio Luigi Ferraris? <|assistant|> SELECT "h_t" FROM "independent_state_of_croatia" WHERE "venue"='stadio luigi ferraris';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "independent_state_of_croatia" ( "date" text, "score" text, "h_t" text, "venue" text, "competition" text ); Question: What was the HT for the game at Zagreb, with a full-time score of 0-2? <|assistant|> SELECT "h_t" FROM "independent_state_of_croatia" WHERE "venue"='zagreb' AND "score"='0-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "independent_state_of_croatia" ( "date" text, "score" text, "h_t" text, "venue" text, "competition" text ); Question: What was the competition that was played in Zurich? <|assistant|> SELECT "competition" FROM "independent_state_of_croatia" WHERE "venue"='zurich';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rugby_russia_internationals_1994" ( "first_game" real, "played" real, "drawn" real, "lost" real, "percentage" text ); Question: When was the first game associated with over 4 losses? <|assistant|> SELECT "first_game" FROM "rugby_russia_internationals_1994" WHERE "lost">4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rugby_russia_internationals_1994" ( "first_game" real, "played" real, "drawn" real, "lost" real, "percentage" text ); Question: What is the lowest number of games drawn associated with over 39 games played? <|assistant|> SELECT MIN("drawn") FROM "rugby_russia_internationals_1994" WHERE "played">39;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rugby_russia_internationals_1994" ( "first_game" real, "played" real, "drawn" real, "lost" real, "percentage" text ); Question: What is the highest number of losses when there are under 1 games played? <|assistant|> SELECT MAX("lost") FROM "rugby_russia_internationals_1994" WHERE "played"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "game" real, "date" text, "location" text, "time" text, "attendance" real ); Question: What location has more than 2 games with 2:56? <|assistant|> SELECT "location" FROM "summary" WHERE "game">2 AND "time"='2:56';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "game" real, "date" text, "location" text, "time" text, "attendance" real ); Question: What location has October 10 as date? <|assistant|> SELECT "location" FROM "summary" WHERE "date"='october 10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "community_council" ( "parties_and_voter_communities" text, "pct_2006" real, "seats_2006" real, "pct_2001" real, "seats_2001" real ); Question: what is the seats 2006 total with %2001 of 39 and seats 2001 less than 12? <|assistant|> SELECT MAX("seats_2006") FROM "community_council" WHERE "pct_2001"=39 AND "seats_2001"<12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "community_council" ( "parties_and_voter_communities" text, "pct_2006" real, "seats_2006" real, "pct_2001" real, "seats_2001" real ); Question: what is the total number of seats 2006 that has parties and voter turnout in % and whose %2006 is greater than 51.5? <|assistant|> SELECT SUM("seats_2006") FROM "community_council" WHERE "parties_and_voter_communities"='voter turnout in %' AND "pct_2006">51.5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "community_council" ( "parties_and_voter_communities" text, "pct_2006" real, "seats_2006" real, "pct_2001" real, "seats_2001" real ); Question: what is the total number of seats 2001 with seats 2006 more than 10 and voter communities of cdu? <|assistant|> SELECT SUM("seats_2001") FROM "community_council" WHERE "parties_and_voter_communities"='cdu' AND "seats_2006">10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text, "stadium" text ); Question: What was the loss of the game when the record was 3–2? <|assistant|> SELECT "loss" FROM "game_log" WHERE "record"='3–2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text, "stadium" text ); Question: Who was the opponent at the game that had a loss of Shields (1–1)? <|assistant|> SELECT "opponent" FROM "game_log" WHERE "loss"='shields (1–1)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_individual_score" ( "runs" text, "player" text, "opponent" text, "venue" text, "season" text ); Question: Who is the opponent for Andrew Symonds in the 2004 season? <|assistant|> SELECT "opponent" FROM "highest_individual_score" WHERE "player"='andrew symonds' AND "season"='2004';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "75_million_to_79_million_records" ( "artist" text, "country_of_origin" text, "period_active" text, "release_year_of_first_charted_record" real, "genre" text, "claimed_sales" text ); Question: Name th country of origin for journey <|assistant|> SELECT "country_of_origin" FROM "75_million_to_79_million_records" WHERE "artist"='journey';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "75_million_to_79_million_records" ( "artist" text, "country_of_origin" text, "period_active" text, "release_year_of_first_charted_record" real, "genre" text, "claimed_sales" text ); Question: Name the period active for enya <|assistant|> SELECT "period_active" FROM "75_million_to_79_million_records" WHERE "artist"='enya';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "75_million_to_79_million_records" ( "artist" text, "country_of_origin" text, "period_active" text, "release_year_of_first_charted_record" real, "genre" text, "claimed_sales" text ); Question: Name the genre for release-year of firsst charted less than 1980 and origin of jamaica <|assistant|> SELECT "genre" FROM "75_million_to_79_million_records" WHERE "release_year_of_first_charted_record"<1980 AND "country_of_origin"='jamaica';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); Question: In which election was the constituency abolished? <|assistant|> SELECT "election" FROM "members_of_parliament" WHERE "1st_member"='constituency abolished';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); Question: What was the 1st party with a 1st member of John Willis Fleming? <|assistant|> SELECT "1st_party" FROM "members_of_parliament" WHERE "1st_member"='john willis fleming';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); Question: What is the 1st party when the 2nd party is constituency abolished? <|assistant|> SELECT "1st_party" FROM "members_of_parliament" WHERE "2nd_party"='constituency abolished';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); Question: Who is the 2nd member during 1885 election? <|assistant|> SELECT "2nd_member" FROM "members_of_parliament" WHERE "election"='1885';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); Question: What is the 1st party during the 1857 election? <|assistant|> SELECT "1st_party" FROM "members_of_parliament" WHERE "election"='1857';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language" ( "language" text, "number" text, "percentage_pct" text, "males" text, "females" text ); Question: Which language has the percentage of 2.54? <|assistant|> SELECT "language" FROM "language" WHERE "percentage_pct"='2.54';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language" ( "language" text, "number" text, "percentage_pct" text, "males" text, "females" text ); Question: What is the number of females that has the Polish language? <|assistant|> SELECT "females" FROM "language" WHERE "language"='polish';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language" ( "language" text, "number" text, "percentage_pct" text, "males" text, "females" text ); Question: What was the number of males that had the number females 62 331? <|assistant|> SELECT "males" FROM "language" WHERE "females"='62 331';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "season" text, "player" text, "school" text, "position" text, "class" text ); Question: Which position has a sophomore class? <|assistant|> SELECT "position" FROM "women" WHERE "class"='sophomore';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_competition_scores" ( "state" text, "preliminaries" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is the lowest Preliminary score of a contestant that has an Evening Gown score of 8.472? <|assistant|> SELECT MIN("preliminaries") FROM "final_competition_scores" WHERE "evening_gown"=8.472;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_a" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text, "report" text ); Question: Which Set 3 has a Set 1 of 25–20? <|assistant|> SELECT "set_3" FROM "pool_a" WHERE "set_1"='25–20';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_a" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text, "report" text ); Question: Which Set 3 has a Time of 10:00, and a Set 2 of 25–19? <|assistant|> SELECT "set_3" FROM "pool_a" WHERE "time"='10:00' AND "set_2"='25–19';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_a" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text, "report" text ); Question: Which Set 1 has a Set 3 of 16–25? <|assistant|> SELECT "set_1" FROM "pool_a" WHERE "set_3"='16–25';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_a" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text, "report" text ); Question: Which Set 3 has a Score of 0–3, a Time of 18:30, and a Date of july 10? <|assistant|> SELECT "set_3" FROM "pool_a" WHERE "score"='0–3' AND "time"='18:30' AND "date"='july 10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_a" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text, "report" text ); Question: Which score has a Set 2 of 17–25, and a Total of 48–75? <|assistant|> SELECT "score" FROM "pool_a" WHERE "set_2"='17–25' AND "total"='48–75';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_a" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text, "report" text ); Question: Which set 3 has a Time of 10:00, and a Score of 3–2, and a Total of 113–102? <|assistant|> SELECT "set_3" FROM "pool_a" WHERE "time"='10:00' AND "score"='3–2' AND "total"='113–102';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "discography" ( "year" real, "title" text, "role" text, "cast" text, "live_studio" text, "label" text ); Question: Is it live or studio before 1983? <|assistant|> SELECT "live_studio" FROM "discography" WHERE "year"<1983;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "winner" text, "country" text, "score" real, "to_par" text, "1st_prize" real ); Question: What is the total number of 1st prize ($) that has a United States country with a score lower than 271 and in a year after 1964 with a winner of Bobby Mitchell? <|assistant|> SELECT COUNT("1st_prize") FROM "winners" WHERE "country"='united states' AND "score"<271 AND "year">1964 AND "winner"='bobby mitchell';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is the round for marcus howard? <|assistant|> SELECT SUM("round") FROM "indianapolis_colts_draft_history" WHERE "name"='marcus howard';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is the highest laps with a 30 finish? <|assistant|> SELECT MAX("laps") FROM "indy_500_results" WHERE "finish"='30';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is the rank of the 150.163 qual? <|assistant|> SELECT "rank" FROM "indy_500_results" WHERE "qual"='150.163';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is the lowest laps with a 142.744 qual? <|assistant|> SELECT MIN("laps") FROM "indy_500_results" WHERE "qual"='142.744';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What year had less than 160 laps and a rank of 26? <|assistant|> SELECT "year" FROM "indy_500_results" WHERE "laps"<160 AND "rank"='26';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "numbers_from_0_5" ( "value" real, "khmer" real, "word_form" text, "ungegn" text, "ala_lc" text, "other" text ); Question: for the other of soun, what's the khmer? <|assistant|> SELECT "khmer" FROM "numbers_from_0_5" WHERE "other"='soun';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "numbers_from_0_5" ( "value" real, "khmer" real, "word_form" text, "ungegn" text, "ala_lc" text, "other" text ); Question: for the other of mouy, what's the khmer? <|assistant|> SELECT "khmer" FROM "numbers_from_0_5" WHERE "other"='mouy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "country" text, "film_title_used_in_nomination" text, "language" text, "original_title" text, "director" text ); Question: What is the language of the film directed by Hans Kristensen? <|assistant|> SELECT "language" FROM "references" WHERE "director"='hans kristensen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "country" text, "film_title_used_in_nomination" text, "language" text, "original_title" text, "director" text ); Question: What is the original title of the film for which Dersu Uzala was nominated? <|assistant|> SELECT "original_title" FROM "references" WHERE "film_title_used_in_nomination"='dersu uzala';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "country" text, "film_title_used_in_nomination" text, "language" text, "original_title" text, "director" text ); Question: What is Argentina's language? <|assistant|> SELECT "language" FROM "references" WHERE "country"='argentina';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "tyres" text, "points" real ); Question: What chassis did Jolly Club Spa used after 1985? <|assistant|> SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "year">1985 AND "entrant"='jolly club spa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "tyres" text, "points" real ); Question: What engine was paired with Minardi m187? <|assistant|> SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "chassis"='minardi m187';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "tyres" text, "points" real ); Question: What is the highest points with g Tyres and Minardi m187? <|assistant|> SELECT MAX("points") FROM "complete_formula_one_world_championship_" WHERE "tyres"='g' AND "chassis"='minardi m187';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "tyres" text, "points" real ); Question: What Chassis has g Tyres before 1987? <|assistant|> SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "tyres"='g' AND "year"<1987;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "tyres" text, "points" real ); Question: How many years were g Tyres and Minardi m187 used? <|assistant|> SELECT AVG("year") FROM "complete_formula_one_world_championship_" WHERE "tyres"='g' AND "chassis"='minardi m187';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_american_le_mans_series_results" ( "year" real, "entrant" text, "class" text, "chassis" text, "engine" text, "tyres" text, "rank" text, "points" real ); Question: What engine what in the vehicle when adt champion racing ranked in 1st place? <|assistant|> SELECT "engine" FROM "complete_american_le_mans_series_results" WHERE "rank"='1st' AND "entrant"='adt champion racing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_american_le_mans_series_results" ( "year" real, "entrant" text, "class" text, "chassis" text, "engine" text, "tyres" text, "rank" text, "points" real ); Question: What Chassis ranked 18th? <|assistant|> SELECT "chassis" FROM "complete_american_le_mans_series_results" WHERE "rank"='18th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_american_le_mans_series_results" ( "year" real, "entrant" text, "class" text, "chassis" text, "engine" text, "tyres" text, "rank" text, "points" real ); Question: What was the class when adt champion racing ranked 1st with an audi r8 chassis, and less than 206 points? <|assistant|> SELECT "class" FROM "complete_american_le_mans_series_results" WHERE "points"<206 AND "chassis"='audi r8' AND "entrant"='adt champion racing' AND "rank"='1st';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nickelodeon_movies" ( "year" real, "category" text, "film" text, "winner_nominee_s" text, "result" text ); Question: Who were the winner and nominees in 2001? <|assistant|> SELECT "winner_nominee_s" FROM "nickelodeon_movies" WHERE "year"=2001;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nickelodeon_movies" ( "year" real, "category" text, "film" text, "winner_nominee_s" text, "result" text ); Question: Who is nominated for the film Rugrats Go Wild? <|assistant|> SELECT "winner_nominee_s" FROM "nickelodeon_movies" WHERE "result"='nominated' AND "film"='rugrats go wild';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "season" text, "club" text, "country" text, "competition" text, "apps" real, "goals" real ); Question: How many goals did he score with under 26 appearances for werder bremen? <|assistant|> SELECT COUNT("goals") FROM "statistics" WHERE "apps"<26 AND "club"='werder bremen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "season" text, "club" text, "country" text, "competition" text, "apps" real, "goals" real ); Question: How many goals did he have in the bundesliga with under 7 appearances? <|assistant|> SELECT AVG("goals") FROM "statistics" WHERE "competition"='bundesliga' AND "apps"<7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "season" text, "club" text, "country" text, "competition" text, "apps" real, "goals" real ); Question: What season did he have 7 appearances? <|assistant|> SELECT "season" FROM "statistics" WHERE "apps"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What is the to par for the score 73-71=144? <|assistant|> SELECT "to_par" FROM "second_round" WHERE "score"='73-71=144';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What area did Julius Boros play at? <|assistant|> SELECT "place" FROM "second_round" WHERE "player"='julius boros';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What country has a score of 74-70=144 <|assistant|> SELECT "country" FROM "second_round" WHERE "score"='74-70=144';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_partnerships" ( "auckland" text, "canterbury" text, "central_districts" text, "otago" text, "wellington" text ); Question: Which of the Canterbury has a Central District of 276* M.D. Crowe & P.S. Briasco V (C) 1986/87? <|assistant|> SELECT "canterbury" FROM "highest_partnerships" WHERE "central_districts"='276* m.d. crowe & p.s. briasco v (c) 1986/87';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_partnerships" ( "auckland" text, "canterbury" text, "central_districts" text, "otago" text, "wellington" text ); Question: What is Auckland thats got Otago of 184 R.C. Blunt & W. Hawksworth V (C) 1931/32? <|assistant|> SELECT "auckland" FROM "highest_partnerships" WHERE "otago"='184 r.c. blunt & w. hawksworth v (c) 1931/32';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text ); Question: What tournament was after 2009? <|assistant|> SELECT "tournament" FROM "achievements" WHERE "year">2009;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text ); Question: What event was held in Chihuahua, Mexico? <|assistant|> SELECT "event" FROM "achievements" WHERE "venue"='chihuahua, mexico';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "with_population_above_1_million" ( "rank" real, "country_region" text, "population" real, "area_km_2" real, "density_pop_per_km_2" real ); Question: Can you tell me the total number of Rank that has the Area (km 2) smaller than 2,040, and the Population smaller than 1,234,596? <|assistant|> SELECT COUNT("rank") FROM "with_population_above_1_million" WHERE "area_km_2"<'2,040' AND "population"<'1,234,596';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "with_population_above_1_million" ( "rank" real, "country_region" text, "population" real, "area_km_2" real, "density_pop_per_km_2" real ); Question: Can you tell me the sun of Population that has the Country/Region of hong kong, and the Rank smaller than 2? <|assistant|> SELECT SUM("population") FROM "with_population_above_1_million" WHERE "country_region"='hong kong' AND "rank"<2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "personnel_and_kits" ( "team" text, "manager_1" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text ); Question: Who is the manager with the Hewlett-Packard shirt sponsor? <|assistant|> SELECT "manager_1" FROM "personnel_and_kits" WHERE "shirt_sponsor"='hewlett-packard';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "personnel_and_kits" ( "team" text, "manager_1" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text ); Question: Who is the captain of the team that has a kit manufacturer of Fox Leisure? <|assistant|> SELECT "captain" FROM "personnel_and_kits" WHERE "kit_manufacturer"='fox leisure';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "personnel_and_kits" ( "team" text, "manager_1" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text ); Question: One2one is the shirt sponsor for the captain of what team? <|assistant|> SELECT "captain" FROM "personnel_and_kits" WHERE "shirt_sponsor"='one2one';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "personnel_and_kits" ( "team" text, "manager_1" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text ); Question: What company is the kit manufacturer that Gareth Southgate belongs to? <|assistant|> SELECT "kit_manufacturer" FROM "personnel_and_kits" WHERE "captain"='gareth southgate';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_honours" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text ); Question: for the tournament of world amateur championship what was the result in 2010? <|assistant|> SELECT "result" FROM "awards_and_honours" WHERE "year"=2010 AND "tournament"='world amateur championship';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "junior_under_20_men" ( "rank" real, "fastest_time_s" real, "wind_m_s" real, "athlete" text, "country" text, "date" text, "location" text ); Question: Which location had a race that took place on 22 July 2011 and has a rank greater than 8? <|assistant|> SELECT "location" FROM "junior_under_20_men" WHERE "rank">8 AND "date"='22 july 2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "percussion_scholastic_open_class" ( "ensemble" text, "gold_medals" real, "silver_medals" real, "bronze_medals" real, "total_medals" real ); Question: How many gold medals for the school with 2 total medals and under 0 bronzes? <|assistant|> SELECT COUNT("gold_medals") FROM "percussion_scholastic_open_class" WHERE "total_medals"=2 AND "bronze_medals"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "percussion_scholastic_open_class" ( "ensemble" text, "gold_medals" real, "silver_medals" real, "bronze_medals" real, "total_medals" real ); Question: How many gold medals for bellbrook HS with less than 1 silver? <|assistant|> SELECT COUNT("gold_medals") FROM "percussion_scholastic_open_class" WHERE "ensemble"='bellbrook hs' AND "silver_medals"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "percussion_scholastic_open_class" ( "ensemble" text, "gold_medals" real, "silver_medals" real, "bronze_medals" real, "total_medals" real ); Question: How many silvers for a school with 2 golds and over 2 total? <|assistant|> SELECT "silver_medals" FROM "percussion_scholastic_open_class" WHERE "gold_medals"=2 AND "total_medals">2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "percussion_scholastic_open_class" ( "ensemble" text, "gold_medals" real, "silver_medals" real, "bronze_medals" real, "total_medals" real ); Question: How many gold medals for the school with less than 1 total? <|assistant|> SELECT COUNT("gold_medals") FROM "percussion_scholastic_open_class" WHERE "total_medals"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "formula_one_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" text ); Question: What is the entrant for 1967? <|assistant|> SELECT "entrant" FROM "formula_one_world_championship_results" WHERE "year"=1967;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "formula_one_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" text ); Question: What ist he entrant later than 1963 with an eagle MK1 chassis? <|assistant|> SELECT "entrant" FROM "formula_one_world_championship_results" WHERE "year">1963 AND "chassis"='eagle mk1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "formula_one_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" text ); Question: What is the entrant that has 0 points? <|assistant|> SELECT "entrant" FROM "formula_one_world_championship_results" WHERE "pts"='0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "formula_one_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" text ); Question: What is the earliest year with 16 points? <|assistant|> SELECT MIN("year") FROM "formula_one_world_championship_results" WHERE "pts"='16';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "biggest_wins" ( "margin" real, "score" text, "opponent" text, "venue" text, "year" real ); Question: Name the venue for margin less than 66 and opponent of north queensland cowboys <|assistant|> SELECT "venue" FROM "biggest_wins" WHERE "margin"<66 AND "opponent"='north queensland cowboys';<|endoftext|>