output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "notes" FROM "birds" WHERE "authors"='zhou & zhang';
## Task Generate a SQL query to answer the following question: `What are the notes where the authors are Zhou & Zhang?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "birds" ( "name" text, "novelty" text, "status" text, "authors" text, "unit"...
SELECT "status" FROM "birds" WHERE "notes"='possible jr synonym of sapeornis';
## Task Generate a SQL query to answer the following question: `What is the status where the notes are possible jr synonym of sapeornis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "birds" ( "name" text, "novelty" text, "status" text, "autho...
SELECT AVG("top_5") FROM "summary" WHERE "top_10"=2 AND "top_25">4;
## Task Generate a SQL query to answer the following question: `What is the average Top-5 finishes with 2 as the Top-10 and a greater than 4 Top-25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5...
SELECT MIN("top_5") FROM "summary" WHERE "events">18;
## Task Generate a SQL query to answer the following question: `What are the least Top-5 finish when the events are greater than 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_1...
SELECT SUM("wins") FROM "summary" WHERE "events"<3;
## Task Generate a SQL query to answer the following question: `What is the total of wins when the evens is less than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "...
SELECT COUNT("cuts_made") FROM "summary" WHERE "top_10">1 AND "wins">0 AND "top_5">2 AND "events">18;
## Task Generate a SQL query to answer the following question: `How many cuts made when the Top-10 is larger than 1, and the wins greater than 0, and a Top-5 greater than 2, when the events is greater than 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE T...
SELECT "season" FROM "s" WHERE "name"='omar sneed';
## Task Generate a SQL query to answer the following question: `What years did Omar Sneed play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s" ( "name" text, "position" text, "number" real, "school_club_team" text, "season" text, "acqui...
SELECT "season" FROM "s" WHERE "name"='jovy sese';
## Task Generate a SQL query to answer the following question: `Which season did Jovy Sese play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s" ( "name" text, "position" text, "number" real, "school_club_team" text, "season" text, "acqu...
SELECT "acquisition_via" FROM "s" WHERE "position"='forward' AND "school_club_team"='manuel luis quezon';
## Task Generate a SQL query to answer the following question: `How did the School/Club Team of Manuel Luis Quezon acquire their Forward?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s" ( "name" text, "position" text, "number" real, "school_...
SELECT "school_club_team" FROM "s" WHERE "acquisition_via"='trade' AND "name"='jondan salvador';
## Task Generate a SQL query to answer the following question: `Which School/ Club Team acquired Jondan Salvador via trade?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s" ( "name" text, "position" text, "number" real, "school_club_team" tex...
SELECT COUNT("points") FROM "apea_s_campeonato_paulista" WHERE "played">14;
## Task Generate a SQL query to answer the following question: `What is the Points with a Played larger than 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "apea_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played"...
SELECT AVG("points") FROM "apea_s_campeonato_paulista" WHERE "against"<16;
## Task Generate a SQL query to answer the following question: `What is the Points with an Against smaller than 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "apea_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "play...
SELECT "team" FROM "apea_s_campeonato_paulista" WHERE "lost">2 AND "position"<7 AND "drawn"<2 AND "points"=22;
## Task Generate a SQL query to answer the following question: `Which Team has a Lost larger than 2, and a Position smaller than 7, and a Drawn smaller than 2, and a Points of 22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "apea_s_campeonato_paulis...
SELECT MAX("points") FROM "apea_s_campeonato_paulista" WHERE "position"=3 AND "drawn"<2;
## Task Generate a SQL query to answer the following question: `Which Points has a Position of 3, and a Drawn smaller than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "apea_s_campeonato_paulista" ( "position" real, "team" text, "points" rea...
SELECT AVG("played") FROM "apea_s_campeonato_paulista" WHERE "points"=2 AND "position"<8;
## Task Generate a SQL query to answer the following question: `Which Played has a Points of 2, and a Position smaller than 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "apea_s_campeonato_paulista" ( "position" real, "team" text, "points" re...
SELECT AVG("played") FROM "campeonato_paulista" WHERE "points">14 AND "against">17;
## Task Generate a SQL query to answer the following question: `How many average plays have points greater than 14, with an against greater than 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position" real, "team" text...
SELECT AVG("against") FROM "campeonato_paulista" WHERE "lost"<1;
## Task Generate a SQL query to answer the following question: `Which average against has a lost less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "...
SELECT MAX("drawn") FROM "campeonato_paulista" WHERE "played"<10;
## Task Generate a SQL query to answer the following question: `Which of the highest drawn has a played less than 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" r...
SELECT COUNT("played") FROM "campeonato_paulista" WHERE "drawn"=3 AND "position">4;
## Task Generate a SQL query to answer the following question: `How many played have 3 as the drawn, and a position greater than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real...
SELECT "performer_s" FROM "most_played_songs" WHERE "composer_s"='mariah carey and walter afanasieff';
## Task Generate a SQL query to answer the following question: `Who sang the song composed by Mariah Carey and Walter Afanasieff?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_played_songs" ( "rank" real, "song_title" text, "composer_s" te...
SELECT COUNT("year") FROM "most_played_songs" WHERE "performer_s"='louis armstrong';
## Task Generate a SQL query to answer the following question: `How many years was Louis Armstrong performing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_played_songs" ( "rank" real, "song_title" text, "composer_s" text, "performer_s"...
SELECT "runner_s_up" FROM "champions_tour_wins_8" WHERE "winning_score"='−16 (66-68-70-68=272)';
## Task Generate a SQL query to answer the following question: `Who were the Runner(s)-up with the winning score of −16 (66-68-70-68=272)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions_tour_wins_8" ( "date" text, "tournament" text, "w...
SELECT "tournament" FROM "champions_tour_wins_8" WHERE "winning_score"='−27 (64-64-61=189)';
## Task Generate a SQL query to answer the following question: `What tournament had a winning score of −27 (64-64-61=189)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions_tour_wins_8" ( "date" text, "tournament" text, "winning_score" te...
SELECT "tournament" FROM "champions_tour_wins_8" WHERE "runner_s_up"='scott hoch & kenny perry';
## Task Generate a SQL query to answer the following question: `What tournament had a runner(s)-up of Scott Hoch & Kenny Perry?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions_tour_wins_8" ( "date" text, "tournament" text, "winning_scor...
SELECT "tournament" FROM "champions_tour_wins_8" WHERE "runner_s_up"='tom kite';
## Task Generate a SQL query to answer the following question: `What tournament had a Runner(s)-up of Tom Kite?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "marg...
SELECT "date" FROM "champions_tour_wins_8" WHERE "tournament"='outback steakhouse pro-am';
## Task Generate a SQL query to answer the following question: `What is the date of the Outback Steakhouse Pro-Am Tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions_tour_wins_8" ( "date" text, "tournament" text, "winning_score"...
SELECT "tournament" FROM "champions_tour_wins_8" WHERE "runner_s_up"='gary mccord';
## Task Generate a SQL query to answer the following question: `Which tournament has a Runner(s)-up of Gary McCord?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "...
SELECT "location" FROM "2011_fixtures_and_results" WHERE "score"='2:3';
## Task Generate a SQL query to answer the following question: `What was the location of the game with a score of 2:3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_fixtures_and_results" ( "date" text, "tournament" text, "location" text, ...
SELECT "location" FROM "2011_fixtures_and_results" WHERE "home_team"='slovakia';
## Task Generate a SQL query to answer the following question: `What was the location of the home game for Slovakia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_fixtures_and_results" ( "date" text, "tournament" text, "location" text, "...
SELECT "tournament" FROM "2011_fixtures_and_results" WHERE "away_team"='mexico' AND "home_team"='japan';
## Task Generate a SQL query to answer the following question: `What was the tournament where Japan was the home team and Mexico was the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_fixtures_and_results" ( "date" text, "tournamen...
SELECT "location" FROM "2011_fixtures_and_results" WHERE "home_team"='japan';
## Task Generate a SQL query to answer the following question: `What was the location of the home game for Japan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_fixtures_and_results" ( "date" text, "tournament" text, "location" text, "hom...
SELECT "runner_up" FROM "tournaments" WHERE "location"='hossegor';
## Task Generate a SQL query to answer the following question: `Who was the Runner-up in Hossegor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournaments" ( "date" text, "location" text, "country" text, "event" text, "winner" text, "ru...
SELECT "date" FROM "tournaments" WHERE "location"='gold coast';
## Task Generate a SQL query to answer the following question: `On what Date was the Tournament in Gold Coast?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournaments" ( "date" text, "location" text, "country" text, "event" text, "winner"...
SELECT "winner" FROM "tournaments" WHERE "event"='billabong pro' AND "country"='french polynesia';
## Task Generate a SQL query to answer the following question: `Who was the Winner of the French Polynesia Billabong Pro Event?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournaments" ( "date" text, "location" text, "country" text, "event"...
SELECT "2010" FROM "doubles_performance_timeline" WHERE "2007"='a' AND "2004"='2r';
## Task Generate a SQL query to answer the following question: `What shows for 2010 when 2007 is a and 2004 is 2r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2002" text, "2003" text, "200...
SELECT "2005" FROM "doubles_performance_timeline" WHERE "2008"='grand slam tournaments';
## Task Generate a SQL query to answer the following question: `What is the 2005 when the 2008 shows grand slam tournaments?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2002" text, "2003" te...
SELECT "2002" FROM "doubles_performance_timeline" WHERE "2010"='69';
## Task Generate a SQL query to answer the following question: `What shows for 2002 when 2010 shows 69?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2002" text, "2003" text, "2004" text, ...
SELECT "2010" FROM "doubles_performance_timeline" WHERE "2005"='1r';
## Task Generate a SQL query to answer the following question: `What shows for 2010 when 2005 shows 1r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2002" text, "2003" text, "2004" text, ...
SELECT MAX("drawn") FROM "laf_s_campeonato_paulista" WHERE "points">15 AND "against"=19 AND "lost"<3;
## Task Generate a SQL query to answer the following question: `What is the highest number of draws with more than 15 points, an against of 19, and less than 3 losses?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laf_s_campeonato_paulista" ( "posi...
SELECT "stage_winner" FROM "jersey_progress" WHERE "general_classification"='thor hushovd' AND "young_rider_classification"='trent lowe';
## Task Generate a SQL query to answer the following question: `What stage (winner) has thor hushovd as a general classification, and trent lowe as a rider classification?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jersey_progress" ( "stage_winn...
SELECT "stage_winner" FROM "jersey_progress" WHERE "team_classification"='quick step' AND "young_rider_classification"='trent lowe';
## Task Generate a SQL query to answer the following question: `What stage (winner) has quick step as the team classification, and trent lowe as the young rider classification?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jersey_progress" ( "stage...
SELECT "2000_2001_team" FROM "list_of_united_states_national_ice_hocke" WHERE "jersey_num"=19;
## Task Generate a SQL query to answer the following question: `What is the 2000-2001 Team with a Jersey # that is 19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position" text, "jersey_num" real, ...
SELECT AVG("tied") FROM "performance_summary_in_indian_premier_le" WHERE "wins">19;
## Task Generate a SQL query to answer the following question: `What is the average number of ties for years with more than 19 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_summary_in_indian_premier_le" ( "year" text, "matches" ...
SELECT COUNT("losses") FROM "performance_summary_in_indian_premier_le" WHERE "wins"<9;
## Task Generate a SQL query to answer the following question: `What is the total number of losses for years with fewer than 9 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_summary_in_indian_premier_le" ( "year" text, "matches" ...
SELECT COUNT("division") FROM "career_statistics" WHERE "team"='chongqing lifan' AND "apps">9;
## Task Generate a SQL query to answer the following question: `What is the total number of Division(s), when Team is Chongqing Lifan, and when Apps is greater than 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_statistics" ( "season" text...
SELECT "season" FROM "career_statistics" WHERE "country"='china' AND "team"='dalian shide' AND "apps">8 AND "goals"=2;
## Task Generate a SQL query to answer the following question: `What is Season, when Country is China, when Team is Dalian Shide, when Apps is greater than 8, and when Goals is 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_statistics" ( "...
SELECT MAX("apps") FROM "career_statistics" WHERE "goals">5;
## Task Generate a SQL query to answer the following question: `What is the highest Apps, when Goals are greater than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_statistics" ( "season" text, "team" text, "country" text, "division"...
SELECT "season" FROM "career_statistics" WHERE "country"='china' AND "team"='dalian shide' AND "goals"=0;
## Task Generate a SQL query to answer the following question: `What Season, when Country is China, when Team is Dalian Shide, and when Goals are 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_statistics" ( "season" text, "team" text, ...
SELECT COUNT("division") FROM "career_statistics" WHERE "country"='china' AND "apps">9 AND "season"='2008';
## Task Generate a SQL query to answer the following question: `What is the total number of Division(s), when Country is China, when Apps is greater than 9, and when Season is 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_statistics" ( ...
SELECT MIN("division") FROM "career_statistics" WHERE "goals"<10 AND "team"='dalian shide' AND "apps"<17 AND "season"='2007';
## Task Generate a SQL query to answer the following question: `What is the lowest Division, when Goals are less than 10, when Team is Dalian Shide, when Apps are less than 17, and when Season is 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ca...
SELECT MIN("area") FROM "by_area" WHERE "density">234.77 AND "rank"=32 AND "population"<'965,040';
## Task Generate a SQL query to answer the following question: `What is the lowest area when the density is greater than 234.77, the population is less than 965,040, and the rank is 32?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_area" ( "rank...
SELECT MIN("rank") FROM "by_area" WHERE "population">'59,544' AND "area"='1,395.5';
## Task Generate a SQL query to answer the following question: `What is the lowest rank when the population is greater than 59,544 and the area is 1,395.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_area" ( "rank" real, "province" text, "...
SELECT MIN("population") FROM "by_area" WHERE "area"<'1,788.4' AND "density">234.77 AND "province"='la romana' AND "rank">30;
## Task Generate a SQL query to answer the following question: `What is the lowest population total in La Romana when the area is less than 1,788.4, the density is greater than 234.77, and a rank greater than 30` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE...
SELECT "home" FROM "round_eight" WHERE "time"='14:00';
## Task Generate a SQL query to answer the following question: `What is the Home with a Time that is 14:00?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eight" ( "date" text, "time" text, "home" text, "away" text, "score" text, "gr...
SELECT "score" FROM "round_eight" WHERE "away"='high park demons';
## Task Generate a SQL query to answer the following question: `What is the Score with an Away that is high park demons?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eight" ( "date" text, "time" text, "home" text, "away" text, "score...
SELECT "score" FROM "round_eight" WHERE "home"='etobicoke kangaroos';
## Task Generate a SQL query to answer the following question: `What is the Score with a Hoe that is etobicoke kangaroos?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eight" ( "date" text, "time" text, "home" text, "away" text, "scor...
SELECT "date" FROM "round_eight" WHERE "score"='46-77';
## Task Generate a SQL query to answer the following question: `What is the Date with a Score that is 46-77?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eight" ( "date" text, "time" text, "home" text, "away" text, "score" text, "g...
SELECT "pavilion_depth" FROM "proportions" WHERE "crown_angle"='34.0–34.7°';
## Task Generate a SQL query to answer the following question: `Which Pavilion depth has a Crown angle of 34.0–34.7°?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "proportions" ( "benchmark" text, "crown_height" text, "pavilion_depth" text, "...
SELECT "brilliance_grade" FROM "proportions" WHERE "benchmark"='practical fine cut';
## Task Generate a SQL query to answer the following question: `Which Brilliance Grade has a Benchmark of practical fine cut?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "proportions" ( "benchmark" text, "crown_height" text, "pavilion_depth" t...
SELECT "table_diameter" FROM "proportions" WHERE "crown_height"='14.45%';
## Task Generate a SQL query to answer the following question: `Which Table diameter has a Crown height of 14.45%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "proportions" ( "benchmark" text, "crown_height" text, "pavilion_depth" text, "tab...
SELECT "brilliance_grade" FROM "proportions" WHERE "crown_angle"='41.1°';
## Task Generate a SQL query to answer the following question: `Which Brilliance Grade has a Crown angle of 41.1°?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "proportions" ( "benchmark" text, "crown_height" text, "pavilion_depth" text, "tab...
SELECT "pavilion_depth" FROM "proportions" WHERE "brilliance_grade"='100%' AND "pavilion_angle"='n/a';
## Task Generate a SQL query to answer the following question: `Which Pavilion depth has a Brilliance Grade of 100% and a Pavilion angle of n/a?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "proportions" ( "benchmark" text, "crown_height" text, ...
SELECT COUNT("lost") FROM "north_group" WHERE "points"=2;
## Task Generate a SQL query to answer the following question: `What is the number of lost with 2 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "north_group" ( "team" text, "match" real, "points" real, "draw" real, "lost" real ); ###...
SELECT "agg" FROM "preliminary_round" WHERE "team_2"='kenya';
## Task Generate a SQL query to answer the following question: `What was the aggregate for the match with a team 2 of Kenya?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg...
SELECT "agg" FROM "preliminary_round" WHERE "team_1"='sierra leone';
## Task Generate a SQL query to answer the following question: `What was the aggregate for the match with Sierra Leone as team 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1s...
SELECT "1st_leg" FROM "preliminary_round" WHERE "team_1"='lesotho';
## Task Generate a SQL query to answer the following question: `What was the 1st leg score for the match with Lesotho as team 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st...
SELECT "2nd_leg" FROM "preliminary_round" WHERE "team_1"='lesotho';
## Task Generate a SQL query to answer the following question: `What was the 2nd leg score for the match with Lesotho as team 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st...
SELECT COUNT("rank") FROM "ladies" WHERE "silver"<3 AND "total"<2 AND "bronze">0;
## Task Generate a SQL query to answer the following question: `What is the total number of ladies ranked who had less than 3 silvers, less than 2 total medals, and more than 0 bronze medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ladies" ( ...
SELECT COUNT("gold") FROM "ladies" WHERE "bronze"<3 AND "rank"<11 AND "silver">0;
## Task Generate a SQL query to answer the following question: `What is the total number of gold medals for the skater with less than 3 bronze medals, more than 0 silver medals and a rank smaller than 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE ...
SELECT "award" FROM "original_broadway_production" WHERE "nominee"='matthew warchus';
## Task Generate a SQL query to answer the following question: `What was Matthew Warchus' Award?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "original_broadway_production" ( "year" real, "award" text, "category" text, "nominee" text, "resu...
SELECT "format" FROM "radio" WHERE "notes"='french' AND "call_sign"='ckrl-fm';
## Task Generate a SQL query to answer the following question: `What is the Format of the French Frequency with a Call sign of CKRL-FM?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "format" text, ...
SELECT "format" FROM "radio" WHERE "owner"='laval university';
## Task Generate a SQL query to answer the following question: `What is the Format of the Frequency owned by Laval University?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "format" text, "owner" t...
SELECT "notes" FROM "radio" WHERE "format"='talk radio';
## Task Generate a SQL query to answer the following question: `What is the Notes of the Frequency with Format of talk radio?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "format" text, "owner" te...
SELECT "notes" FROM "radio" WHERE "format"='soft adult contemporary';
## Task Generate a SQL query to answer the following question: `What is the Notes of the Frequency with a Format of soft adult contemporary?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "format" tex...
SELECT COUNT("chart_run") FROM "taiwan" WHERE "debut_position">7 AND "peak_position"=11;
## Task Generate a SQL query to answer the following question: `How many chart runs had a debut position of more than 7 when peak position was 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "taiwan" ( "chart" text, "single_title" text, "debut...
SELECT "spoofed_title" FROM "1960s" WHERE "artist"='mort drucker' AND "issue"=88;
## Task Generate a SQL query to answer the following question: `Which Spoofed title had Mort Drucker as the artist in issue 88?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1960s" ( "spoofed_title" text, "writer" text, "artist" text, "issue"...
SELECT "artist" FROM "1960s" WHERE "issue">74 AND "spoofed_title"='genteel ben';
## Task Generate a SQL query to answer the following question: `Who was the artist for Spoofed title Genteel Ben in an issue later than 74?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1960s" ( "spoofed_title" text, "writer" text, "artist" tex...
SELECT SUM("issue") FROM "1960s" WHERE "artist"='mort drucker' AND "spoofed_title"='route 67';
## Task Generate a SQL query to answer the following question: `Which issue was the Spoofed title Route 67 for which Mort Drucker was the artist?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1960s" ( "spoofed_title" text, "writer" text, "artis...
SELECT MIN("issue") FROM "1960s" WHERE "writer"='arnie kogen' AND "date"='december 1964';
## Task Generate a SQL query to answer the following question: `What is the earliest issue Arnie Kogen wrote for in December 1964?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1960s" ( "spoofed_title" text, "writer" text, "artist" text, "iss...
SELECT MAX("points") FROM "campeonato_paulista" WHERE "difference"='8' AND "position"<4;
## Task Generate a SQL query to answer the following question: `What are the highest points that have a difference of 8, with a position less than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position" real, "team" tex...
SELECT SUM("lost") FROM "campeonato_paulista" WHERE "team"='corinthians' AND "against">26;
## Task Generate a SQL query to answer the following question: `How many losses have corinthians as the team, with an against greater than 26?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "p...
SELECT COUNT("points") FROM "campeonato_paulista" WHERE "difference"='23' AND "drawn"<5;
## Task Generate a SQL query to answer the following question: `How many points have a difference of 23, with a drawn less than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real,...
SELECT SUM("position") FROM "campeonato_paulista" WHERE "points"=15 AND "drawn"<3;
## Task Generate a SQL query to answer the following question: `How many positions have 15 for the points, with a drawn less than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" rea...
SELECT "result" FROM "kickboxing_record" WHERE "record"='7-0-0';
## Task Generate a SQL query to answer the following question: `What was the result of the match held when his record was 7-0-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, ...
SELECT "notes" FROM "kickboxing_record" WHERE "date"='1989 may 7';
## Task Generate a SQL query to answer the following question: `What do the notes say for 1989 May 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "date" te...
SELECT "method" FROM "kickboxing_record" WHERE "opponent"='alberto rodriguez';
## Task Generate a SQL query to answer the following question: `How did he beat Alberto Rodriguez?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "date" text,...
SELECT "record" FROM "kickboxing_record" WHERE "date"='1987';
## Task Generate a SQL query to answer the following question: `What was his record in 1987?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "date" text, "ro...
SELECT MIN("total") FROM "all_time_medal_table" WHERE "nation"='barbados' AND "bronze">0;
## Task Generate a SQL query to answer the following question: `What is the lowest total that has barbados as the nation with a bronze greater than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time_medal_table" ( "nation" text, "gold" rea...
SELECT COUNT("silver") FROM "all_time_medal_table" WHERE "gold">2 AND "bronze"<35 AND "nation"='china' AND "total">26;
## Task Generate a SQL query to answer the following question: `How many silvers have a gold greater than 2, a bronze less than 35, china as the nation, with a total greater than 26?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time_medal_table"...
SELECT MAX("total") FROM "all_time_medal_table" WHERE "gold"<0;
## Task Generate a SQL query to answer the following question: `What is the largest total that has a gold less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time_medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" r...
SELECT COUNT("gold") FROM "all_time_medal_table" WHERE "silver">1 AND "nation"='vietnam' AND "bronze"<3;
## Task Generate a SQL query to answer the following question: `How many golds have a silver greater than 1, vietnam as the nation, with a bronze less than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time_medal_table" ( "nation" text, "g...
SELECT MIN("wins") FROM "champions_by_nationality" WHERE "country"='new zealand' AND "last_title">1968;
## Task Generate a SQL query to answer the following question: `Which Wins has a Country of new zealand and a Last title larger than 1968?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions_by_nationality" ( "rank" text, "country" text, "w...
SELECT COUNT("last_title") FROM "champions_by_nationality" WHERE "wins"<71 AND "first_title">1968 AND "country"='fiji';
## Task Generate a SQL query to answer the following question: `What is the total of Last title that has Wins smaller than 71 and a First title larger than 1968 and a Country of fiji?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions_by_nationa...
SELECT COUNT("first_title") FROM "champions_by_nationality" WHERE "wins"<8 AND "country"='canada';
## Task Generate a SQL query to answer the following question: `Which First title has Wins smaller than 8 and in Canada?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions_by_nationality" ( "rank" text, "country" text, "wins" real, "winn...
SELECT AVG("winners") FROM "champions_by_nationality" WHERE "wins"=1 AND "country"='fiji' AND "first_title"<2004;
## Task Generate a SQL query to answer the following question: `How many Winners have Wins of 1 and a Country of fiji and a First title smaller than 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions_by_nationality" ( "rank" text, "cou...
SELECT MAX("opened") FROM "stadiums" WHERE "city"='glasgow, scotland';
## Task Generate a SQL query to answer the following question: `What is the latest opened year of the team in Glasgow, Scotland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stadiums" ( "team" text, "stadium" text, "capacity" real, "opened" ...
SELECT AVG("opened") FROM "stadiums" WHERE "city"='barcelona, spain' AND "stadium"='mini estadi';
## Task Generate a SQL query to answer the following question: `What is the average opened year of Mini Estadi stadium in Barcelona, Spain?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stadiums" ( "team" text, "stadium" text, "capacity" real, ...
SELECT MIN("winning_pct") FROM "season_by_season_results" WHERE "lost">23 AND "goals_for">386;
## Task Generate a SQL query to answer the following question: `What is the lowest win percentage for teams with more than 23 losses and more than 386 goals for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_by_season_results" ( "season" tex...
SELECT COUNT("lost") FROM "season_by_season_results" WHERE "tied"<5 AND "goals_for">330;
## Task Generate a SQL query to answer the following question: `What is the total number of losses for teams with less than 5 ties and more than 330 goals for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_by_season_results" ( "season" text,...
SELECT "score" FROM "goals_for_senior_national_team" WHERE "result"='5-0';
## Task Generate a SQL query to answer the following question: `What is the Score of the Competition with a Result of 5-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "goals_for_senior_national_team" ( "date" text, "venue" text, "score" text, ...