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