output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("points") FROM "campeonato_paulista" WHERE "drawn"<2 AND "team"='paulistano' AND "against"<15;
## Task Generate a SQL query to answer the following question: `What number of Points are shown for Team Paulistano where the Drawn is less than 2 and the Against is less than 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( ...
SELECT MIN("lost") FROM "campeonato_paulista" WHERE "played">10 AND "team"='ypiranga-sp' AND "against">50;
## Task Generate a SQL query to answer the following question: `What is the Lowest lost for Team Ypiranga-SP where the games Played is more than 10 and the goals Against is greater than 50?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_pau...
SELECT MAX("played") FROM "campeonato_paulista" WHERE "position"<2 AND "drawn"<4;
## Task Generate a SQL query to answer the following question: `What is the highest number of Played games with a Position smaller than 2 and Drawn games less than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position" r...
SELECT AVG("runner_up") FROM "number_of_championships_by_school" WHERE "university"='national university' AND "total_championships">2;
## Task Generate a SQL query to answer the following question: `What is the average number of runner-up that National University, which has more than 2 total championships, has?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "number_of_championships_by...
SELECT MIN("total_championships") FROM "number_of_championships_by_school" WHERE "men_s"=2 AND "women_s">2;
## Task Generate a SQL query to answer the following question: `What is the lowest number of total championships of the university with 2 men's and more than 2 women's?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "number_of_championships_by_school" ...
SELECT "runner_up" FROM "number_of_championships_by_school" WHERE "men_s">0 AND "total_championships"<4;
## Task Generate a SQL query to answer the following question: `How many runner-ups does the university with more than 0 men's and less than 4 total championships have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "number_of_championships_by_school" ...
SELECT AVG("total_championships") FROM "number_of_championships_by_school" WHERE "women_s">0 AND "runner_up"<4 AND "men_s"<0;
## Task Generate a SQL query to answer the following question: `What is the average total championships of the university with more than 0 women's, less than 4 runner-ups, and less than 0 men's?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "number_of...
SELECT MIN("total_championships") FROM "number_of_championships_by_school" WHERE "university"='university of santo tomas' AND "men_s"<2;
## Task Generate a SQL query to answer the following question: `What is the lowest number of total championships of the University of Santo Tomas, which has less than 2 men's?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "number_of_championships_by_s...
SELECT "progressive_ticket" FROM "1916_state_election_results" WHERE "democratic_ticket"='john t. norton';
## Task Generate a SQL query to answer the following question: `Who was on the Progressive ticket when John T. Norton was on the Democratic ticket?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1916_state_election_results" ( "office" text, "repub...
SELECT "socialist_ticket" FROM "1916_state_election_results" WHERE "democratic_ticket"='thomas j. kreuzer';
## Task Generate a SQL query to answer the following question: `What name is under the Socialist ticket when Thomas J. Kreuzer was on the Democratic ticket?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1916_state_election_results" ( "office" text,...
SELECT "republican_ticket" FROM "1916_state_election_results" WHERE "progressive_ticket"='frank h. hiscock';
## Task Generate a SQL query to answer the following question: `Who ran under the Republican ticket when Frank H. Hiscock ran under the Progressive ticket?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1916_state_election_results" ( "office" text, ...
SELECT "prohibition_ticket" FROM "1916_state_election_results" WHERE "progressive_ticket"='eugene m. travis';
## Task Generate a SQL query to answer the following question: `What name ran for the Prohibition ticket when the Progressive ticket was Eugene M. Travis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1916_state_election_results" ( "office" text, ...
SELECT "independence_league_ticket" FROM "1916_state_election_results" WHERE "prohibition_ticket"='coleridge a. hart';
## Task Generate a SQL query to answer the following question: `When Coleridge A. Hart ran under the Prohibition ticket who ran under the Independence League ticket?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1916_state_election_results" ( "offi...
SELECT "progressive_ticket" FROM "1916_state_election_results" WHERE "republican_ticket"='frank m. williams';
## Task Generate a SQL query to answer the following question: `With the Republican ticket of Frank M. Williams who was the Progressive ticket?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1916_state_election_results" ( "office" text, "republica...
SELECT "prohibition_ticket" FROM "1898_state_election_results" WHERE "office"='lieutenant governor';
## Task Generate a SQL query to answer the following question: `What kind of Prohibition ticket that has a Office of lieutenant governor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1898_state_election_results" ( "office" text, "republican_tick...
SELECT "socialist_labor_ticket" FROM "1898_state_election_results" WHERE "office"='secretary of state';
## Task Generate a SQL query to answer the following question: `Which Socialist Labor ticket has a Office of secretary of state?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1898_state_election_results" ( "office" text, "republican_ticket" text,...
SELECT "independent_citizens_ticket" FROM "1898_state_election_results" WHERE "republican_ticket"='william j. morgan';
## Task Generate a SQL query to answer the following question: `What kind of Independent Citizens' ticket that has a Republican ticket of william j. morgan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1898_state_election_results" ( "office" text,...
SELECT "republican_ticket" FROM "1898_state_election_results" WHERE "prohibition_ticket"='stephen mead wing';
## Task Generate a SQL query to answer the following question: `What kind of Republican ticket has a Prohibition ticket of stephen mead wing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1898_state_election_results" ( "office" text, "republican_...
SELECT "democratic_ticket" FROM "1898_state_election_results" WHERE "office"='comptroller';
## Task Generate a SQL query to answer the following question: `What is the kind of Democratic ticket has a Office of comptroller?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1898_state_election_results" ( "office" text, "republican_ticket" tex...
SELECT "prohibition_ticket" FROM "1898_state_election_results" WHERE "socialist_labor_ticket"='joseph smith';
## Task Generate a SQL query to answer the following question: `Which Prohibition ticket has a Socialist Labor ticket of joseph smith?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1898_state_election_results" ( "office" text, "republican_ticket"...
SELECT MIN("grid") FROM "moto_gp_classification" WHERE "rider"='colin edwards';
## Task Generate a SQL query to answer the following question: `What is the lowest grid number when Colin Edwards is the rider?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" re...
SELECT "time_retired" FROM "moto_gp_classification" WHERE "laps"<22 AND "manufacturer"='honda';
## Task Generate a SQL query to answer the following question: `What is the time/retired when there are less than 22 laps and honda is the manufacturer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufa...
SELECT AVG("laps") FROM "moto_gp_classification" WHERE "grid"=9;
## Task Generate a SQL query to answer the following question: `What is the average number of laps when the grid number is 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real...
SELECT MAX("laps") FROM "moto_gp_classification" WHERE "manufacturer"='honda' AND "grid"=12;
## Task Generate a SQL query to answer the following question: `What is the highest number of laps when honda is the manufacturer and the grid number is 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "ma...
SELECT "rider" FROM "moto_gp_classification" WHERE "grid"=3;
## Task Generate a SQL query to answer the following question: `Who is the rider when the grid number is 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired"...
SELECT COUNT("laps") FROM "moto_gp_classification" WHERE "time_retired"='+44.284';
## Task Generate a SQL query to answer the following question: `How many laps were driven when the time/retired is +44.284?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, ...
SELECT "value" FROM "coins" WHERE "composition"='cupronickel' AND "weight"='10.5 g';
## Task Generate a SQL query to answer the following question: `What is the value of the coin weighing 10.5 g and made of cupronickel?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "coins" ( "value" text, "equiv" text, "diameter" text, "weight...
SELECT "composition" FROM "coins" WHERE "equiv"='0.30';
## Task Generate a SQL query to answer the following question: `What is the coin with a € equivalency of 0.30 made of?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "coins" ( "value" text, "equiv" text, "diameter" text, "weight" text, "compo...
SELECT "composition" FROM "coins" WHERE "weight"='3 g';
## Task Generate a SQL query to answer the following question: `What is the coin that weighs 3 g made of?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "coins" ( "value" text, "equiv" text, "diameter" text, "weight" text, "composition" text ...
SELECT "diameter" FROM "coins" WHERE "equiv"='0.60';
## Task Generate a SQL query to answer the following question: `What is the diameter of the coin with a € equivalence of 0.60?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "coins" ( "value" text, "equiv" text, "diameter" text, "weight" text, ...
SELECT "weight" FROM "coins" WHERE "diameter"='14mm';
## Task Generate a SQL query to answer the following question: `How much does the coin with a 14mm diameter weigh?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "coins" ( "value" text, "equiv" text, "diameter" text, "weight" text, "compositi...
SELECT "coverage" FROM "monster_radio_stations" WHERE "frequency"='99.5mhz';
## Task Generate a SQL query to answer the following question: `What is the coverage for the 99.5mhz frequency?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "monster_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "power...
SELECT "power_k_w" FROM "monster_radio_stations" WHERE "coverage"='general santos';
## Task Generate a SQL query to answer the following question: `What is the power in kW corresponding to the station that covers General Santos?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "monster_radio_stations" ( "branding" text, "callsign" t...
SELECT "branding" FROM "monster_radio_stations" WHERE "frequency"='93.1mhz' AND "coverage"='zamboanga';
## Task Generate a SQL query to answer the following question: `What is the branding for the station with a frequency of 93.1mhz and a coverage of Zamboanga?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "monster_radio_stations" ( "branding" text, ...
SELECT "frequency" FROM "monster_radio_stations" WHERE "power_k_w"='10kw' AND "callsign"='dxez';
## Task Generate a SQL query to answer the following question: `What is the frequency for the 10kw station with DXEZ as its callsign?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "monster_radio_stations" ( "branding" text, "callsign" text, "fre...
SELECT "frequency" FROM "monster_radio_stations" WHERE "callsign"='dybt';
## Task Generate a SQL query to answer the following question: `What is the frequency for the station with DYBT as its callsign?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "monster_radio_stations" ( "branding" text, "callsign" text, "frequenc...
SELECT "branding" FROM "monster_radio_stations" WHERE "frequency"='93.1mhz' AND "callsign"='dwrx';
## Task Generate a SQL query to answer the following question: `What is the branding for the station with a frequency of 93.1mhz and a callsign of DWRX?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "monster_radio_stations" ( "branding" text, "cal...
SELECT "women_s_doubles" FROM "past_winners" WHERE "year"=2007;
## Task Generate a SQL query to answer the following question: `What is Women's Doubles, when Year is 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_double...
SELECT MIN("rank") FROM "brazil_s_15_busiest_airports_by_passenge" WHERE "capacity_in_use"='93.6%' AND "total_passengers">'4,679,457';
## Task Generate a SQL query to answer the following question: `Can you tell me lowest Rank that has the Capacity in use of 93.6%, and the Total Passengers larger than 4,679,457?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "brazil_s_15_busiest_airpo...
SELECT MIN("total_passengers") FROM "brazil_s_15_busiest_airports_by_passenge" WHERE "location"='salvador' AND "rank">5;
## Task Generate a SQL query to answer the following question: `Can you tell me the lowest Total Passengers than has the Location of salvador, and the Rank larger than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "brazil_s_15_busiest_airports_by_p...
SELECT "annual_change" FROM "brazil_s_15_busiest_airports_by_passenge" WHERE "location"='manaus';
## Task Generate a SQL query to answer the following question: `Can you tell me the Annual change that has the Location of manaus?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" ( "rank" real, "location" t...
SELECT AVG("cuts_made") FROM "lpga_tour_career_summary" WHERE "tournaments_played">2 AND "year"=2011;
## Task Generate a SQL query to answer the following question: `What is the average number of cuts made when there were more than 2 tournaments played in 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_career_summary" ( "year" real, ...
SELECT COUNT("wins") FROM "lpga_tour_career_summary" WHERE "cuts_made"=10 AND "scoring_average"<74.09;
## Task Generate a SQL query to answer the following question: `What is the total number of wins with 10 cuts made and a score average under 74.09?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournament...
SELECT "shot_pct" FROM "standings" WHERE "skip"='madeleine dupont';
## Task Generate a SQL query to answer the following question: `What is Madeleine Dupont's shot pct.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "locale" text, "skip" text, "ends_won" real, "ends_lost" real, "blank_ends" rea...
SELECT "score" FROM "game_log" WHERE "high_assists"='rafer alston (8)';
## Task Generate a SQL query to answer the following question: `Can you tell me the Score that has the High assists of rafer alston (8)?` ### 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" ...
SELECT "high_points" FROM "game_log" WHERE "high_rebounds"='rafer alston (9)';
## Task Generate a SQL query to answer the following question: `Can you tell me the High points that has the High rebounds of rafer alston (9)?` ### 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, "...
SELECT "score" FROM "game_log" WHERE "date"='april 8';
## Task Generate a SQL query to answer the following question: `Can you tell me the Score that has the Date of april 8?` ### 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_poi...
SELECT "school" FROM "member_schools" WHERE "boys_girls"='boys' AND "year_entered_competition"=1929 AND "school_colors"='royal blue and gold';
## Task Generate a SQL query to answer the following question: `Which boys' school wears Royal Blue and Gold and entered the competition in 1929?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "member_schools" ( "school" text, "location" text, "e...
SELECT MAX("attendance") FROM "preseason" WHERE "game_site"='arrowhead stadium';
## Task Generate a SQL query to answer the following question: `What's the highest attendance for a game the Texan's played at Arrowhead Stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "preseason" ( "week" text, "date" text, "opponent" te...
SELECT "opponent" FROM "preseason" WHERE "week"='4';
## Task Generate a SQL query to answer the following question: `Who did the Texan's play on Week 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "preseason" ( "week" text, "date" text, "opponent" text, "result" text, "game_site" text, "re...
SELECT "date" FROM "preseason" WHERE "week"='hof';
## Task Generate a SQL query to answer the following question: `What's the date for HOF week?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "preseason" ( "week" text, "date" text, "opponent" text, "result" text, "game_site" text, "record" ...
SELECT "total" FROM "top_goalscorers" WHERE "fa_cup"='1 0 (3)';
## Task Generate a SQL query to answer the following question: `What is Total, when FA Cup is 1 0 (3)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_goalscorers" ( "name" text, "league" text, "fa_cup" text, "league_cup" text, "football_...
SELECT MIN("delegates") FROM "results" WHERE "candidate"='john mccain' AND "counties"<45;
## Task Generate a SQL query to answer the following question: `What is the lowest number of delegates when John McCain was the candidate with less than 45 candidates?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "candidate" text, "vo...
SELECT SUM("counties") FROM "results" WHERE "votes"='701,761' AND "delegates"<57;
## Task Generate a SQL query to answer the following question: `What is the sum of Counties when there were 701,761 votes and less than 57 delegates?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "candidate" text, "votes" real, "perc...
SELECT MAX("counties") FROM "results" WHERE "candidate"='mitt romney' AND "delegates"<0;
## Task Generate a SQL query to answer the following question: `What is the highest Counties when Mitt Romney was the candidate with less than 0 delegates?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "candidate" text, "votes" real, ...
SELECT "candidate" FROM "results" WHERE "votes">'4,060' AND "delegates">0;
## Task Generate a SQL query to answer the following question: `What is the name of the candidate with more than 4,060 votes and more than 0 delegates?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "candidate" text, "votes" real, "pe...
SELECT COUNT("votes") FROM "results" WHERE "candidate"='ron paul' AND "counties"<0;
## Task Generate a SQL query to answer the following question: `What is the number of votes when Ron Paul is the candidate with less than 0 counties?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "candidate" text, "votes" real, "perc...
SELECT SUM("total") FROM "top_scorers" WHERE "uefa_cup"=4;
## Task Generate a SQL query to answer the following question: `What is the sum of totals associated with a UEFA Cup score of 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_scorers" ( "player" text, "position" text, "premier_league" real,...
SELECT SUM("total") FROM "top_scorers" WHERE "fa_cup"<0;
## Task Generate a SQL query to answer the following question: `What is the sum of totals for FA Cup values of 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_scorers" ( "player" text, "position" text, "premier_league" real, "fa_cup" rea...
SELECT "hometown_previous_school" FROM "roster" WHERE "height"='5''8\"';
## Task Generate a SQL query to answer the following question: `What is the Hometown of the person with a height of 5'8"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "name" text, "pos" text, "height" text, "weight" real, "year" ...
SELECT AVG("weight") FROM "roster" WHERE "height"='6''9\"';
## Task Generate a SQL query to answer the following question: `What is the average Weight of the person who is 6'9"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "name" text, "pos" text, "height" text, "weight" real, "year" text...
SELECT "hometown_previous_school" FROM "roster" WHERE "name"='tim williams';
## Task Generate a SQL query to answer the following question: `What is the Hometown of Tim Williams?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "name" text, "pos" text, "height" text, "weight" real, "year" text, "hometown_pr...
SELECT "year" FROM "roster" WHERE "height"='6''1\"' AND "weight">165;
## Task Generate a SQL query to answer the following question: `What is the Year of the person who is 6'1", and weighs more than 165?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "name" text, "pos" text, "height" text, "weight" rea...
SELECT "player" FROM "fide_april_2008_top_ten" WHERE "rating">2746 AND "prev"<4 AND "chng"='+4';
## Task Generate a SQL query to answer the following question: `What player has a rating greater than 2746, with a prev less than 4, and +4 as the chng?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fide_april_2008_top_ten" ( "rank" real, "prev" ...
SELECT "chng" FROM "fide_april_2008_top_ten" WHERE "rank">6 AND "prev"=12;
## Task Generate a SQL query to answer the following question: `What chng has a rank greater than 6, with 12 as a prev?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fide_april_2008_top_ten" ( "rank" real, "prev" real, "player" text, "rating"...
SELECT MAX("prev") FROM "fide_april_2008_top_ten" WHERE "rank"=9 AND "rating"<2746;
## Task Generate a SQL query to answer the following question: `What is the highest prev that has 9 as the rank, with a rating less than 2746?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fide_april_2008_top_ten" ( "rank" real, "prev" real, "p...
SELECT SUM("block") FROM "volleyball_at_the_2004_summer_olympics_m" WHERE "weight">82 AND "height"<199;
## Task Generate a SQL query to answer the following question: `How many blocks have a weight greater than 82, and a height less than 199?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "volleyball_at_the_2004_summer_olympics_m" ( "name" text, "dat...
SELECT MIN("block") FROM "volleyball_at_the_2004_summer_olympics_m" WHERE "spike"=328 AND "height"<186;
## Task Generate a SQL query to answer the following question: `What is the lowest block that has 328 as the spike, and a height less than 186?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "volleyball_at_the_2004_summer_olympics_m" ( "name" text, ...
SELECT MIN("block") FROM "volleyball_at_the_2004_summer_olympics_m" WHERE "height"<202 AND "date_of_birth"='19.06.1980' AND "weight">76;
## Task Generate a SQL query to answer the following question: `What is the lowest block that has a height less than 202, 19.06.1980 as the date of birth, and a weight greater than 76?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "volleyball_at_the_2...
SELECT MAX("block") FROM "volleyball_at_the_2004_summer_olympics_m" WHERE "date_of_birth"='15.09.1981' AND "height">202;
## Task Generate a SQL query to answer the following question: `What is the highest block that has 15.09.1981 as the date, and a height greater than 202?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "volleyball_at_the_2004_summer_olympics_m" ( "nam...
SELECT "city" FROM "2010_11_teams" WHERE "stadium"='estadio san cristóbal';
## Task Generate a SQL query to answer the following question: `Which City has a Stadium of estadio san cristóbal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_11_teams" ( "club" text, "city" text, "stadium" text, "2009_season" text, ...
SELECT "2009_season" FROM "2010_11_teams" WHERE "group"='group b' AND "stadium"='cancha del mystic' AND "club"='el tecal';
## Task Generate a SQL query to answer the following question: `When in 2009 season has a Group of group b, and cancha del mystic with a Club of el tecal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_11_teams" ( "club" text, "city" text, ...
SELECT "club" FROM "2010_11_teams" WHERE "city"='colón';
## Task Generate a SQL query to answer the following question: `WHich Club has a City of colón?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_11_teams" ( "club" text, "city" text, "stadium" text, "2009_season" text, "group" text ); ###...
SELECT "2009_season" FROM "2010_11_teams" WHERE "city"='panama city' AND "group"='group b';
## Task Generate a SQL query to answer the following question: `WHat kind of 2009 season has a City of panama city, and a Group of group b?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_11_teams" ( "club" text, "city" text, "stadium" text,...
SELECT "city" FROM "2010_11_teams" WHERE "club"='suntracs f.c.';
## Task Generate a SQL query to answer the following question: `Which City has a Club of suntracs f.c.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_11_teams" ( "club" text, "city" text, "stadium" text, "2009_season" text, "group" tex...
SELECT "stadium" FROM "2010_11_teams" WHERE "city"='panama city' AND "group"='group a' AND "2009_season"='1st in lna (champion)';
## Task Generate a SQL query to answer the following question: `Which Stadium has a City of panama city, and a Group of group a, and a 2009 season of 1st in lna (champion)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_11_teams" ( "club" text,...
SELECT MAX("matches") FROM "calendar" WHERE "prize_money"='£5,000';
## Task Generate a SQL query to answer the following question: `What is the highest Matches, when Prize Money is £5,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" text, "date" text, "matches" real, "clubs" text, "pri...
SELECT "date" FROM "calendar" WHERE "matches"<32 AND "round"='fifth round proper';
## Task Generate a SQL query to answer the following question: `What is Date, when Matches is less than 32, and when Round is Fifth Round Proper?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" text, "date" text, "matches" rea...
SELECT AVG("matches") FROM "calendar" WHERE "round"='third qualifying round';
## Task Generate a SQL query to answer the following question: `What is the average Matches, when Round is Third Qualifying Round?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" text, "date" text, "matches" real, "clubs" te...
SELECT COUNT("matches") FROM "calendar" WHERE "clubs"='588 → 406';
## Task Generate a SQL query to answer the following question: `What is the total number of Matches, when Clubs is 588 → 406?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" text, "date" text, "matches" real, "clubs" text, ...
SELECT "prize_money" FROM "calendar" WHERE "matches"<73 AND "round"='third round proper';
## Task Generate a SQL query to answer the following question: `What is Prize Money, when Matches is less than 73, and when Round is Third Round Proper?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" text, "date" text, "match...
SELECT "opponent_in_the_final" FROM "singles_wins_5" WHERE "surface"='hard' AND "score"='walkover';
## Task Generate a SQL query to answer the following question: `For the tournament played on a hard surface and ending with a score of Walkover, who was the Finals opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_wins_5" ( "date" tex...
SELECT "opponent_in_the_final" FROM "singles_wins_5" WHERE "date"='september 25, 1995';
## Task Generate a SQL query to answer the following question: `For the tournament played on September 25, 1995, who was the Finals opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_wins_5" ( "date" text, "tournament" text, "surfa...
SELECT "tournament" FROM "singles_wins_5" WHERE "date"='september 25, 1995';
## Task Generate a SQL query to answer the following question: `Which tournament was played on September 25, 1995?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_wins_5" ( "date" text, "tournament" text, "surface" text, "opponent_in_th...
SELECT "time" FROM "mixed_martial_arts_record" WHERE "round"<3 AND "opponent"='amanda lavoy';
## Task Generate a SQL query to answer the following question: `What was the time for the bout against Amanda Lavoy, which went under 3 rounds?` ### 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, ...
SELECT "notes" FROM "players_out_on_loan" WHERE "app_l_c_e"='13 (7/2/4)';
## Task Generate a SQL query to answer the following question: `What is Notes, when App(L/C/E) is 13 (7/2/4)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players_out_on_loan" ( "nat" text, "name" text, "since" real, "app_l_c_e" text, "goa...
SELECT "nat" FROM "players_out_on_loan" WHERE "ends">2010 AND "since"=2006 AND "name"='paligeorgos';
## Task Generate a SQL query to answer the following question: `What is Nat., when Ends is greater than 2010, when Since is 2006, and when Name is Paligeorgos?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players_out_on_loan" ( "nat" text, "name...
SELECT MIN("since") FROM "players_out_on_loan" WHERE "notes"='to anagennisi karditsa' AND "app_l_c_e"='0 (0/0/0)';
## Task Generate a SQL query to answer the following question: `What is the lowest Since, when Notes is To Anagennisi Karditsa, and when App(L/C/E) is 0 (0/0/0)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players_out_on_loan" ( "nat" text, "na...
SELECT "time_retired" FROM "race" WHERE "laps"<51 AND "team"='newman-haas racing';
## Task Generate a SQL query to answer the following question: `What is the Time/Retired of the Newman-Haas Racing team in under 51 laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_ret...
SELECT MIN("laps") FROM "race" WHERE "team"='forsythe racing' AND "driver"='alex tagliani';
## Task Generate a SQL query to answer the following question: `What are the lowest laps Alex Tagliani did for the Forsythe Racing team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_reti...
SELECT "event" FROM "grand_slam_record" WHERE "2007_08"='dnp';
## Task Generate a SQL query to answer the following question: `What is the Event when DNP shows for 2007–08?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_record" ( "event" text, "2007_08" text, "2008_09" text, "2009_10" text, "...
SELECT "2008_09" FROM "grand_slam_record" WHERE "2009_10"='q';
## Task Generate a SQL query to answer the following question: `What is the 2008–09 when the 2009–10 shows q?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_record" ( "event" text, "2007_08" text, "2008_09" text, "2009_10" text, "...
SELECT "2009_10" FROM "grand_slam_record" WHERE "2007_08"='n/a' AND "event"='colonial square ladies classic';
## Task Generate a SQL query to answer the following question: `What is the 2009–10 when the 2007–08 shows n/a, and an Event of colonial square ladies classic?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_record" ( "event" text, "2007...
SELECT "event" FROM "grand_slam_record" WHERE "2008_09"='sf';
## Task Generate a SQL query to answer the following question: `What is the Event when the 2008–09 is sf?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_record" ( "event" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010...
SELECT "2010_11" FROM "grand_slam_record" WHERE "event"='colonial square ladies classic';
## Task Generate a SQL query to answer the following question: `What is the 2010–11 when the Event is colonial square ladies classic?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_record" ( "event" text, "2007_08" text, "2008_09" tex...
SELECT "2007_08" FROM "grand_slam_record" WHERE "event"='autumn gold';
## Task Generate a SQL query to answer the following question: `What is the 2007–08 when the event was autumn gold?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_record" ( "event" text, "2007_08" text, "2008_09" text, "2009_10" tex...
SELECT COUNT("cultural_and_educational_panel") FROM "composition_of_the_15th_seanad" WHERE "labour_panel">5 AND "industrial_and_commercial_panel">9;
## Task Generate a SQL query to answer the following question: `Which Cultural and Educational Panel has a Labour Panel larger than 5, and an Industrial and Commercial Panel larger than 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "composition_of_...
SELECT MIN("administrative_panel") FROM "composition_of_the_15th_seanad" WHERE "nominated_by_the_taoiseach"<0;
## Task Generate a SQL query to answer the following question: `Which Administrative Panel has a Nominated by the Taoiseach smaller than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "composition_of_the_15th_seanad" ( "administrative_panel" real,...
SELECT AVG("labour_panel") FROM "composition_of_the_15th_seanad" WHERE "industrial_and_commercial_panel"=9 AND "university_of_dublin"<3;
## Task Generate a SQL query to answer the following question: `Which Labour Panel has an Industrial and Commercial Panel of 9, and a University of Dublin smaller than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "composition_of_the_15th_seanad" (...
SELECT COUNT("total") FROM "composition_of_the_15th_seanad" WHERE "labour_panel"<5 AND "administrative_panel"<1 AND "national_university_of_ireland"<2;
## Task Generate a SQL query to answer the following question: `Which Total has a Labour Panel smaller than 5, an Administrative Panel smaller than 1, and a National University of Ireland smaller than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "...