text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text ); Question: Which DOB has Bats of s, and a Position of inf? <|assistant|> SELECT "d_o_b" FROM "player_roster" WHERE "bats"='s' AND "position"='inf';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "geneva_race_track_switzerland" ( "date" text, "race" text, "race_track" text, "category" text, "lap_length" text ); Question: What is the Lap Length of the race with a Grand Prix Fia Category? <|assistant|> SELECT "lap_length" FROM "geneva_race_track_switzerland" WHERE "category"='grand prix fia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "geneva_race_track_switzerland" ( "date" text, "race" text, "race_track" text, "category" text, "lap_length" text ); Question: What is the Race on July 30, 1950 with a Formula 2 Fia, non-championship? <|assistant|> SELECT "race" FROM "geneva_race_track_switzerland" WHERE "category"='formula 2 fia, non-championship' AND "date"='july 30, 1950';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: What was his record when the match went for 3:05? <|assistant|> SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='3:05';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: How many rounds did the match go for the Bellator 72 event? <|assistant|> SELECT SUM("round") FROM "mixed_martial_arts_record" WHERE "event"='bellator 72';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings" ( "air_date" text, "rating" real, "share" real, "18_49" text, "viewers_live_m" real, "viewers_dvr_7_m" text ); Question: What is the rating that has live viewers over 3.06 and DVR viewers of 5.36? <|assistant|> SELECT "rating" FROM "ratings" WHERE "viewers_live_m">3.06 AND "viewers_dvr_7_m"='5.36';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings" ( "air_date" text, "rating" real, "share" real, "18_49" text, "viewers_live_m" real, "viewers_dvr_7_m" text ); Question: What is the sum of the live viewers for episodes with share over 5? <|assistant|> SELECT SUM("viewers_live_m") FROM "ratings" WHERE "share">5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings" ( "air_date" text, "rating" real, "share" real, "18_49" text, "viewers_live_m" real, "viewers_dvr_7_m" text ); Question: What is the sum of the ratings for episodes with live viewers of 2.96? <|assistant|> SELECT SUM("rating") FROM "ratings" WHERE "viewers_live_m"=2.96;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "long_range_am_stations" ( "frequency" real, "callsign" text, "brand" text, "city_of_license" text, "website" text, "webcast" text ); Question: Which Callsign includes a frequency under 1210, Newsradio 740 KTRH, and webcasts with listen live? <|assistant|> SELECT "callsign" FROM "long_range_am_stations" WHERE "webcast"='listen live' AND "frequency"<1210 AND "brand"='newsradio 740 ktrh';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "long_range_am_stations" ( "frequency" real, "callsign" text, "brand" text, "city_of_license" text, "website" text, "webcast" text ); Question: Which website includes a webcast of listen live, a frequency under 1050, and is licensed in the city of Monterrey? <|assistant|> SELECT "website" FROM "long_range_am_stations" WHERE "city_of_license"='monterrey' AND "webcast"='listen live' AND "frequency"<1050;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "long_range_am_stations" ( "frequency" real, "callsign" text, "brand" text, "city_of_license" text, "website" text, "webcast" text ); Question: The KTRH.com website includes which type of webcast? <|assistant|> SELECT "webcast" FROM "long_range_am_stations" WHERE "website"='ktrh.com';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "long_range_am_stations" ( "frequency" real, "callsign" text, "brand" text, "city_of_license" text, "website" text, "webcast" text ); Question: Which website includes a webcast of listen live, a frequency under 680, and was licensed in the city of San Antonio. <|assistant|> SELECT "website" FROM "long_range_am_stations" WHERE "city_of_license"='san antonio' AND "webcast"='listen live' AND "frequency"=680;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "long_range_am_stations" ( "frequency" real, "callsign" text, "brand" text, "city_of_license" text, "website" text, "webcast" text ); Question: Which long range AM station has the lowest frequency and includes a webcast of listen live, was licensed in the city of Monterrey, and uses the Callsign of xet? <|assistant|> SELECT MIN("frequency") FROM "long_range_am_stations" WHERE "webcast"='listen live' AND "city_of_license"='monterrey' AND "callsign"='xet';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_1" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: Which Games is the highest one that has a Drawn smaller than 0? <|assistant|> SELECT MAX("games") FROM "group_1" WHERE "drawn"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What is the score for game 6? <|assistant|> SELECT "score" FROM "game_log" WHERE "game"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2000" text ); Question: Which Position in 2000 has a Capacity larger than 10,080, and a Venue of central, rechytsa? <|assistant|> SELECT "position_in_2000" FROM "teams_and_venues" WHERE "capacity">'10,080' AND "venue"='central, rechytsa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2000" text ); Question: Which Capacity has a Location of mogilev? <|assistant|> SELECT SUM("capacity") FROM "teams_and_venues" WHERE "location"='mogilev';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text ); Question: What was the District of California 2 result? <|assistant|> SELECT "result" FROM "california" WHERE "district"='california 2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text ); Question: What was the district Incumbent Julius Kahn was in that was smaller than 1906? <|assistant|> SELECT "district" FROM "california" WHERE "first_elected"<1906 AND "incumbent"='julius kahn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text ); Question: What was the lowest re-elected result for Sylvester C. Smith? <|assistant|> SELECT MIN("first_elected") FROM "california" WHERE "result"='re-elected' AND "incumbent"='sylvester c. smith';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text ); Question: What was the result for Julius Kahn's first election of 1898? <|assistant|> SELECT "result" FROM "california" WHERE "first_elected"=1898 AND "incumbent"='julius kahn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text ); Question: Which party had a result of retired democratic hold and a first elected earlier than 1884 with an incumbent of samuel dibble? <|assistant|> SELECT "party" FROM "south_carolina" WHERE "result"='retired democratic hold' AND "first_elected"<1884 AND "incumbent"='samuel dibble';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text ); Question: Which district had a first elected in 1882 with a result of re-elected? <|assistant|> SELECT "district" FROM "south_carolina" WHERE "first_elected"=1882 AND "result"='re-elected';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_chart" ( "rank_by_average" real, "place" real, "couple" text, "total" real, "number_of_dances" real, "average" real ); Question: Which Average is the lowest one that has a Total smaller than 134, and a Number of dances smaller than 3, and a Rank by average smaller than 12? <|assistant|> SELECT MIN("average") FROM "average_chart" WHERE "total"<134 AND "number_of_dances"<3 AND "rank_by_average"<12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_chart" ( "rank_by_average" real, "place" real, "couple" text, "total" real, "number_of_dances" real, "average" real ); Question: Which Couple has a Rank by average larger than 3, and an Average larger than 16.5, and a Total smaller than 195, and a Number of dances larger than 3? <|assistant|> SELECT "couple" FROM "average_chart" WHERE "rank_by_average">3 AND "average">16.5 AND "total"<195 AND "number_of_dances">3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_chart" ( "rank_by_average" real, "place" real, "couple" text, "total" real, "number_of_dances" real, "average" real ); Question: Which Rank by average is the lowest one that has a Total of 425, and a Place larger than 1? <|assistant|> SELECT MIN("rank_by_average") FROM "average_chart" WHERE "total"=425 AND "place">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ice_dancing" ( "rank" real, "name" text, "club" text, "nation" text, "points" real ); Question: What nation are carolina hermann / daniel hermann from? <|assistant|> SELECT "nation" FROM "ice_dancing" WHERE "name"='carolina hermann / daniel hermann';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ice_dancing" ( "rank" real, "name" text, "club" text, "nation" text, "points" real ); Question: What is the rank associated with 141.48 points? <|assistant|> SELECT "rank" FROM "ice_dancing" WHERE "points"=141.48;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ice_dancing" ( "rank" real, "name" text, "club" text, "nation" text, "points" real ); Question: What competitors are scored 124.51 points? <|assistant|> SELECT "name" FROM "ice_dancing" WHERE "points"=124.51;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statewide" ( "date" text, "state" text, "george_h_w_bush" text, "bob_dole" text, "pat_robertson" text, "jack_kemp" text, "pete_du_pont" text ); Question: At what percent was Pat Robertson when George H.W. Bush had 76%? <|assistant|> SELECT "pat_robertson" FROM "statewide" WHERE "george_h_w_bush"='76%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statewide" ( "date" text, "state" text, "george_h_w_bush" text, "bob_dole" text, "pat_robertson" text, "jack_kemp" text, "pete_du_pont" text ); Question: When George H.W. Bush had 81%, and Pat Robertson had 9%, what did Bob Dole have? <|assistant|> SELECT "bob_dole" FROM "statewide" WHERE "george_h_w_bush"='81%' AND "pat_robertson"='9%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statewide" ( "date" text, "state" text, "george_h_w_bush" text, "bob_dole" text, "pat_robertson" text, "jack_kemp" text, "pete_du_pont" text ); Question: When Pat Robertson was at 16%, what did Pete du Pont have? <|assistant|> SELECT "pete_du_pont" FROM "statewide" WHERE "pat_robertson"='16%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statewide" ( "date" text, "state" text, "george_h_w_bush" text, "bob_dole" text, "pat_robertson" text, "jack_kemp" text, "pete_du_pont" text ); Question: When Bob Dole had 26%, and George H.W. Bush had 47%, what did Pat Robertson have? <|assistant|> SELECT "pat_robertson" FROM "statewide" WHERE "bob_dole"='26%' AND "george_h_w_bush"='47%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statewide" ( "date" text, "state" text, "george_h_w_bush" text, "bob_dole" text, "pat_robertson" text, "jack_kemp" text, "pete_du_pont" text ); Question: When Bob Dole had 26%, and Pete du Pont had 0%, what did Pat Robertson have? <|assistant|> SELECT "pat_robertson" FROM "statewide" WHERE "bob_dole"='26%' AND "pete_du_pont"='0%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statewide" ( "date" text, "state" text, "george_h_w_bush" text, "bob_dole" text, "pat_robertson" text, "jack_kemp" text, "pete_du_pont" text ); Question: When Pat Robertson had 19%, and Bob Dole had 26%, what did George H.W. Bush have? <|assistant|> SELECT "george_h_w_bush" FROM "statewide" WHERE "pat_robertson"='19%' AND "bob_dole"='26%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "attendance" real ); Question: Attendance larger than 45,710, and a Venue of metropolitan stadium had what highest week? <|assistant|> SELECT MAX("week") FROM "schedule" WHERE "attendance">'45,710' AND "venue"='metropolitan stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "attendance" real ); Question: Date of october 10, 1965 had what lowest attendance? <|assistant|> SELECT MIN("attendance") FROM "schedule" WHERE "date"='october 10, 1965';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "attendance" real ); Question: Opponent of chicago bears involved what date? <|assistant|> SELECT "date" FROM "schedule" WHERE "opponent"='chicago bears';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_7" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: Performer 2 of compilation 2 is what performer 1? <|assistant|> SELECT "performer_1" FROM "series_7" WHERE "performer_2"='compilation 2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_7" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: Performer 1 of greg proops, and a Date of 25 august 1995 is what performer 4? <|assistant|> SELECT "performer_4" FROM "series_7" WHERE "performer_1"='greg proops' AND "date"='25 august 1995';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_7" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: Performer 1 of greg proops, and a Performer 3 of ryan stiles, and a Date of 25 august 1995 is which average episode? <|assistant|> SELECT AVG("episode") FROM "series_7" WHERE "performer_1"='greg proops' AND "performer_3"='ryan stiles' AND "date"='25 august 1995';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_7" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: Performer 1 of Stephen Frost, and a Performer 2 of Josie Lawrence, and a Date of 15 September 1995 is what performer 3? <|assistant|> SELECT "performer_3" FROM "series_7" WHERE "performer_1"='stephen frost' AND "performer_2"='josie lawrence' AND "date"='15 september 1995';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "asian_rider_classification" text, "team_classification" text, "asian_team_classification" text ); Question: WHich Mountains classification has an Asian team classification of seoul cycling team, and a Winner of alexandre usov? <|assistant|> SELECT "mountains_classification" FROM "classification_leadership" WHERE "asian_team_classification"='seoul cycling team' AND "winner"='alexandre usov';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "asian_rider_classification" text, "team_classification" text, "asian_team_classification" text ); Question: WHo is the Asian rider classification that has ruslan ivanov on the Stage of 9? <|assistant|> SELECT "asian_rider_classification" FROM "classification_leadership" WHERE "general_classification"='ruslan ivanov' AND "stage"='9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "asian_rider_classification" text, "team_classification" text, "asian_team_classification" text ); Question: WHich General classification has an Asian rider classification of shinichi fukushima, and a Winner of jeremy hunt? <|assistant|> SELECT "general_classification" FROM "classification_leadership" WHERE "asian_rider_classification"='shinichi fukushima' AND "winner"='jeremy hunt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "asian_rider_classification" text, "team_classification" text, "asian_team_classification" text ); Question: Which Stage has a Mountains classification of filippo savini? <|assistant|> SELECT "stage" FROM "classification_leadership" WHERE "mountains_classification"='filippo savini';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "asian_rider_classification" text, "team_classification" text, "asian_team_classification" text ); Question: Which Stage has a Winner of jeremy hunt? <|assistant|> SELECT "stage" FROM "classification_leadership" WHERE "winner"='jeremy hunt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_2007" ( "date" text, "site" text, "sport" text, "winning_team" text, "series" text ); Question: Which winning team has Iowa city as the site, and december 3, 2006 as the date? <|assistant|> SELECT "winning_team" FROM "2006_2007" WHERE "site"='iowa city' AND "date"='december 3, 2006';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_2007" ( "date" text, "site" text, "sport" text, "winning_team" text, "series" text ); Question: What site has november 30, 2006 as the date? <|assistant|> SELECT "site" FROM "2006_2007" WHERE "date"='november 30, 2006';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_2007" ( "date" text, "site" text, "sport" text, "winning_team" text, "series" text ); Question: What winning team has volleyball as the sport? <|assistant|> SELECT "winning_team" FROM "2006_2007" WHERE "sport"='volleyball';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); Question: What is the total number in January when the St. Louis Blues had a game smaller than 42? <|assistant|> SELECT COUNT("january") FROM "schedule_and_results" WHERE "opponent"='st. louis blues' AND "game"<42;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); Question: What is the January sum with the record of 17-20-2 with a game smaller than 39? <|assistant|> SELECT SUM("january") FROM "schedule_and_results" WHERE "record"='17-20-2' AND "game"<39;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: What was the record when the New York Knicks played at the Boston Garden? <|assistant|> SELECT "record" FROM "game_log" WHERE "location"='boston garden' AND "opponent"='new york knicks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: When the record was 7-2, what was the score for the game? <|assistant|> SELECT "score" FROM "game_log" WHERE "record"='7-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: On what date was the record 4-2? <|assistant|> SELECT "date" FROM "game_log" WHERE "record"='4-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "males_rank" real, "females_rank" real, "state" text, "hiv_awareness_malespct" real, "females_pct" real ); Question: Which Females Rank is the highest one that has Females (%) larger than 53, and an HIV awareness (males%) smaller than 89, and a State of odisha? <|assistant|> SELECT MAX("females_rank") FROM "references" WHERE "females_pct">53 AND "hiv_awareness_malespct"<89 AND "state"='odisha';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "males_rank" real, "females_rank" real, "state" text, "hiv_awareness_malespct" real, "females_pct" real ); Question: How many Females (%) have Females Rank smaller than 21, and a State of kerala, and Males Rank larger than 1? <|assistant|> SELECT COUNT("females_pct") FROM "references" WHERE "females_rank"<21 AND "state"='kerala' AND "males_rank">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "males_rank" real, "females_rank" real, "state" text, "hiv_awareness_malespct" real, "females_pct" real ); Question: How many Females (%) have a State of karnataka, and Males Rank larger than 16? <|assistant|> SELECT COUNT("females_pct") FROM "references" WHERE "state"='karnataka' AND "males_rank">16;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "males_rank" real, "females_rank" real, "state" text, "hiv_awareness_malespct" real, "females_pct" real ); Question: Which Males Rank is the highest one that has Females (%) smaller than 40, and Females Rank smaller than 22? <|assistant|> SELECT MAX("males_rank") FROM "references" WHERE "females_pct"<40 AND "females_rank"<22;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "males_rank" real, "females_rank" real, "state" text, "hiv_awareness_malespct" real, "females_pct" real ); Question: Which Females (%) has an HIV awareness (males%) larger than 92, and Females Rank larger than 2, and Males Rank smaller than 3? <|assistant|> SELECT SUM("females_pct") FROM "references" WHERE "hiv_awareness_malespct">92 AND "females_rank">2 AND "males_rank"<3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_scorers" ( "name" text, "championship" real, "fa_cup" real, "league_cup" real, "total" real ); Question: League Cup smaller than 0 is what sum of the total? <|assistant|> SELECT SUM("total") FROM "top_scorers" WHERE "league_cup"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_scorers" ( "name" text, "championship" real, "fa_cup" real, "league_cup" real, "total" real ); Question: Championship larger than 3, and a FA Cup smaller than 3, and a Total smaller than 6 involves what highest league cup? <|assistant|> SELECT MAX("league_cup") FROM "top_scorers" WHERE "championship">3 AND "fa_cup"<3 AND "total"<6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5_4_1" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Which Opponent has a Surface of hard on 28 august 1993? <|assistant|> SELECT "opponent" FROM "singles_5_4_1" WHERE "surface"='hard' AND "date"='28 august 1993';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5_4_1" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: WHICH Outcome IS ON 18 july 1993? <|assistant|> SELECT "outcome" FROM "singles_5_4_1" WHERE "date"='18 july 1993';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5_4_1" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: WHICH Outcome has aN Opponent of pascale paradis-mangon? <|assistant|> SELECT "outcome" FROM "singles_5_4_1" WHERE "opponent"='pascale paradis-mangon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5_4_1" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Which Score has aN Outcome of winner on 4 november 1990? <|assistant|> SELECT "score" FROM "singles_5_4_1" WHERE "outcome"='winner' AND "date"='4 november 1990';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5_4_1" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Which Tournament has an Opponent of susan sloane? <|assistant|> SELECT "tournament" FROM "singles_5_4_1" WHERE "opponent"='susan sloane';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5_4_1" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Which Tournament has an Opponent of meike babel? <|assistant|> SELECT "tournament" FROM "singles_5_4_1" WHERE "opponent"='meike babel';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Game has a November of 29? <|assistant|> SELECT SUM("game") FROM "regular_season" WHERE "november"=29;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Points have a Record of 12–2–4–1, and a November larger than 22? <|assistant|> SELECT AVG("points") FROM "regular_season" WHERE "record"='12–2–4–1' AND "november">22;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Record has a Game of 19? <|assistant|> SELECT "record" FROM "regular_season" WHERE "game"=19;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "record" text, "points" real ); Question: How many Novembers have a Game larger than 14, and an Opponent of minnesota wild? <|assistant|> SELECT COUNT("november") FROM "regular_season" WHERE "game">14 AND "opponent"='minnesota wild';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which November is the lowest one that has a Record of 12–2–4–1? <|assistant|> SELECT MIN("november") FROM "regular_season" WHERE "record"='12–2–4–1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); Question: What day has a record of 25–30–13 and less than 63 points? <|assistant|> SELECT AVG("march") FROM "regular_season" WHERE "record"='25–30–13' AND "points"<63;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which opponent has 63 points? <|assistant|> SELECT "opponent" FROM "regular_season" WHERE "points"=63;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "architecture_support" ( "distribution" text, "x86_64" text, "ia64" text, "ppc64" text, "sparc32" text, "hppa" text, "mips" text, "s390" text, "s390x" text, "alpha" text, "m68k" text ); Question: Which Alpha contains ia64 with discontinued 3.5-3.8 4.1-4.7? <|assistant|> SELECT "alpha" FROM "architecture_support" WHERE "ia64"='discontinued 3.5-3.8 4.1-4.7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "architecture_support" ( "distribution" text, "x86_64" text, "ia64" text, "ppc64" text, "sparc32" text, "hppa" text, "mips" text, "s390" text, "s390x" text, "alpha" text, "m68k" text ); Question: Which s390x contains a yes ia64 and a no for alpha? <|assistant|> SELECT "s390x" FROM "architecture_support" WHERE "ia64"='yes' AND "alpha"='no';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "architecture_support" ( "distribution" text, "x86_64" text, "ia64" text, "ppc64" text, "sparc32" text, "hppa" text, "mips" text, "s390" text, "s390x" text, "alpha" text, "m68k" text ); Question: Which hppa contains a ppc64 of yes 3+, no for mips and no for alpha? <|assistant|> SELECT "hppa" FROM "architecture_support" WHERE "mips"='no' AND "alpha"='no' AND "ppc64"='yes 3+';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "korvpalli_meistriliiga_finals" ( "season" text, "winner" text, "result" text, "runner_up" text, "1st_of_regular_season" text, "record" text, "champion_s_coach" text, "finals_mvp" text ); Question: Who is the runner-up of the season with Tanel Sokk as the finals MVP and Alar Varrak as the champion's coach? <|assistant|> SELECT "runner_up" FROM "korvpalli_meistriliiga_finals" WHERE "finals_mvp"='tanel sokk' AND "champion_s_coach"='alar varrak';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text ); Question: Which 1991 has an A 1993 ? <|assistant|> SELECT "1991" FROM "women_s_doubles_performance_timeline" WHERE "1993"='a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text ); Question: Which 992 has a 1–2 of 1989 ? <|assistant|> SELECT "1992" FROM "women_s_doubles_performance_timeline" WHERE "1989"='1–2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text ); Question: WHICH 1990 has a 1993 of 1r? <|assistant|> SELECT "1990" FROM "women_s_doubles_performance_timeline" WHERE "1993"='1r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text ); Question: Which 1994 has a 1998 of 0–1? <|assistant|> SELECT "1994" FROM "women_s_doubles_performance_timeline" WHERE "1998"='0–1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text ); Question: Which 1995 has a 1993 of 3r? <|assistant|> SELECT "1995" FROM "women_s_doubles_performance_timeline" WHERE "1993"='3r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text ); Question: Which 1992 has a 1996 of sf and a 1993 of a? <|assistant|> SELECT "1992" FROM "women_s_doubles_performance_timeline" WHERE "1996"='sf' AND "1993"='a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text ); Question: Which school picked a back in round 16, after pick 89? <|assistant|> SELECT "school" FROM "nfl_draft" WHERE "pick">89 AND "position"='back' AND "round"=16;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" text, "record" text ); Question: Who was the visitor in the game that had Ottawa as the home team? <|assistant|> SELECT "visitor" FROM "regular_season" WHERE "home"='ottawa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" text, "record" text ); Question: What was the score in the game where Carolina was the home team and Niittymaki received the decision? <|assistant|> SELECT "score" FROM "regular_season" WHERE "decision"='niittymaki' AND "home"='carolina';<|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, "attendance" real, "record" text ); Question: What was the date of the game that had a loss of Johnson (9-8)? <|assistant|> SELECT "date" FROM "game_log" WHERE "loss"='johnson (9-8)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "athlete" text, "country" text, "run_1" real, "run_2" real, "run_3" real ); Question: Who had a Run 1 smaller than 51.96, a Run 2 larger than 51.13, and a Run 3 of 52.53? <|assistant|> SELECT "athlete" FROM "men" WHERE "run_1"<51.96 AND "run_2">51.13 AND "run_3"=52.53;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "athlete" text, "country" text, "run_1" real, "run_2" real, "run_3" real ); Question: Who had a run 2 of 50.67? <|assistant|> SELECT "athlete" FROM "men" WHERE "run_2"=50.67;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "athlete" text, "country" text, "run_1" real, "run_2" real, "run_3" real ); Question: What was john farrow's run 2 associated with a run 1 of greater than 52.25? <|assistant|> SELECT MAX("run_2") FROM "men" WHERE "run_1">52.25 AND "athlete"='john farrow';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "record" text, "points" real ); Question: What was the Score in the game against the Buffalo Sabres? <|assistant|> SELECT "score" FROM "regular_season" WHERE "opponent"='buffalo sabres';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assists" ( "rank" real, "name" text, "team" text, "games" real, "assists" real ); Question: Rank smaller than 4, and a Name of dalma ivΓ‘nyi involved which lowest game? <|assistant|> SELECT MIN("games") FROM "assists" WHERE "rank"<4 AND "name"='dalma ivΓ‘nyi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assists" ( "rank" real, "name" text, "team" text, "games" real, "assists" real ); Question: Name of sue bird that involves what team? <|assistant|> SELECT "team" FROM "assists" WHERE "name"='sue bird';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episodes" ( "episode" text, "season" real, "production_code" text, "original_air_date" text, "directed_by" text ); Question: Which episode was directed by Bob Anderson with a production code of KABF16 and a season before than 25? <|assistant|> SELECT "episode" FROM "episodes" WHERE "season"<25 AND "directed_by"='bob anderson' AND "production_code"='kabf16';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episodes" ( "episode" text, "season" real, "production_code" text, "original_air_date" text, "directed_by" text ); Question: Who was the director of the episode with a season after 8 and an episode of XVI? <|assistant|> SELECT "directed_by" FROM "episodes" WHERE "season">8 AND "episode"='xvi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_5_jamaican_100_m_athletes_women" ( "rank" real, "time" real, "athlete" text, "nation" text, "date" text, "location" text ); Question: Date of 7 september 1996 includes which highest rank athlete? <|assistant|> SELECT MAX("rank") FROM "top_5_jamaican_100_m_athletes_women" WHERE "date"='7 september 1996';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_5_jamaican_100_m_athletes_women" ( "rank" real, "time" real, "athlete" text, "nation" text, "date" text, "location" text ); Question: Time of 10.82 has what location? <|assistant|> SELECT "location" FROM "top_5_jamaican_100_m_athletes_women" WHERE "time"=10.82;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_5_jamaican_100_m_athletes_women" ( "rank" real, "time" real, "athlete" text, "nation" text, "date" text, "location" text ); Question: Date of 10 july 2009 includes what athlete? <|assistant|> SELECT "athlete" FROM "top_5_jamaican_100_m_athletes_women" WHERE "date"='10 july 2009';<|endoftext|>