output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "elimination" FROM "six_man_elimination_tag_team_match" WHERE "eliminated_by"='sonjay dutt';
## Task Generate a SQL query to answer the following question: `What Elimination number is listed againt Eliminated by Sonjay Dutt?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "six_man_elimination_tag_team_match" ( "elimination" text, "wrestler" text, "eliminated_by" text, "elimination_move" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What Elimination number is listed againt Eliminated by Sonjay Dutt?`: ```sql
SELECT "time" FROM "six_man_elimination_tag_team_match" WHERE "wrestler"='jimmy rave';
## Task Generate a SQL query to answer the following question: `What time is listed against the Wrestler Jimmy Rave?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "six_man_elimination_tag_team_match" ( "elimination" text, "wrestler" text, "eliminated_by" text, "elimination_move" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What time is listed against the Wrestler Jimmy Rave?`: ```sql
SELECT "wrestler" FROM "six_man_elimination_tag_team_match" WHERE "elimination"='5';
## Task Generate a SQL query to answer the following question: `Which Wrestler has an Elimination of 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "six_man_elimination_tag_team_match" ( "elimination" text, "wrestler" text, "eliminated_by" text, "elimination_move" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Wrestler has an Elimination of 5?`: ```sql
SELECT "time" FROM "six_man_elimination_tag_team_match" WHERE "elimination"='2';
## Task Generate a SQL query to answer the following question: `What time is listed against Elimination number 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "six_man_elimination_tag_team_match" ( "elimination" text, "wrestler" text, "eliminated_by" text, "elimination_move" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What time is listed against Elimination number 2?`: ```sql
SELECT "score" FROM "final_round" WHERE "place"='2';
## Task Generate a SQL query to answer the following question: `What score has 2 as the place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What score has 2 as the place?`: ```sql
SELECT AVG("money") FROM "final_round" WHERE "to_par"='+8' AND "score"='73-72-72-71=288';
## Task Generate a SQL query to answer the following question: `What is the average money (£) that has +8 as the to par, with 73-72-72-71=288 as the score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average money (£) that has +8 as the to par, with 73-72-72-71=288 as the score?`: ```sql
SELECT "place" FROM "final_round" WHERE "money">'17,333' AND "to_par"='+8' AND "player"='seve ballesteros';
## Task Generate a SQL query to answer the following question: `What place has money (£) greater than 17,333 with +8 as the to par, and seve ballesteros as the player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What place has money (£) greater than 17,333 with +8 as the to par, and seve ballesteros as the player?`: ```sql
SELECT "country" FROM "final_round" WHERE "place"='t6' AND "player"='seve ballesteros';
## Task Generate a SQL query to answer the following question: `What country has t6 as the place, with seve ballesteros as the player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What country has t6 as the place, with seve ballesteros as the player?`: ```sql
SELECT AVG("year") FROM "singles_champions" WHERE "champion"='john mcenroe';
## Task Generate a SQL query to answer the following question: `What year weas John McEnroe the champion?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_champions" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What year weas John McEnroe the champion?`: ```sql
SELECT "runner_up" FROM "singles_champions" WHERE "champion"='björn borg' AND "year">1978;
## Task Generate a SQL query to answer the following question: `Who was the runner-up, when the champion was Björn Borg after 1978?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_champions" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the runner-up, when the champion was Björn Borg after 1978?`: ```sql
SELECT "champion" FROM "singles_champions" WHERE "runner_up"='jimmy connors' AND "year"<1978;
## Task Generate a SQL query to answer the following question: `Who was the champion earlier than 1978 when the runner-up was Jimmy Connors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_champions" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the champion earlier than 1978 when the runner-up was Jimmy Connors?`: ```sql
SELECT "municipality" FROM "references" WHERE "code"=2401;
## Task Generate a SQL query to answer the following question: `Which municipality has the code 2401?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "code" real, "municipality" text, "county" text, "population" real, "total_area" text, "density_per_km_2_land" real ); ### SQL Given the database schema, here is the SQL query that answers `Which municipality has the code 2401?`: ```sql
SELECT COUNT("population") FROM "references" WHERE "county"='stockholm county' AND "municipality"='danderyd municipality' AND "code"<162;
## Task Generate a SQL query to answer the following question: `What is the population of Danderyd municipality in Stockholm County with a code lower than 162?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "code" real, "municipality" text, "county" text, "population" real, "total_area" text, "density_per_km_2_land" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the population of Danderyd municipality in Stockholm County with a code lower than 162?`: ```sql
SELECT "total_area" FROM "references" WHERE "code"<1862 AND "density_per_km_2_land"=21.6;
## Task Generate a SQL query to answer the following question: `What is the total area for a code less than 1862 and a density (per km 2 land) of 21.6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "code" real, "municipality" text, "county" text, "population" real, "total_area" text, "density_per_km_2_land" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total area for a code less than 1862 and a density (per km 2 land) of 21.6?`: ```sql
SELECT MIN("total") FROM "missed_the_cut" WHERE "to_par"='e';
## Task Generate a SQL query to answer the following question: `what total was the lowest and had a to par of e?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `what total was the lowest and had a to par of e?`: ```sql
SELECT "player" FROM "missed_the_cut" WHERE "country"='united states' AND "total"=144;
## Task Generate a SQL query to answer the following question: `Which player played in the united states and scored a total of 144 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player played in the united states and scored a total of 144 points?`: ```sql
SELECT "trailing_party_pct_votes" FROM "members_of_parliament" WHERE "party_won"='bharatiya janta party' AND "trailing_party"='indian national congress';
## Task Generate a SQL query to answer the following question: `What is Trailing Party % Votes, when Party Won is "Bharatiya Janta Party", and when Trailing Party is "Indian National Congress"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members_of_parliament" ( "year" real, "lok_sabha" text, "members_of_parliament" text, "party_won" text, "winner_s_pct_votes" text, "trailing_party" text, "trailing_party_pct_votes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Trailing Party % Votes, when Party Won is "Bharatiya Janta Party", and when Trailing Party is "Indian National Congress"?`: ```sql
SELECT COUNT("year") FROM "members_of_parliament" WHERE "trailing_party"='indian national congress' AND "trailing_party_pct_votes"='27.42%';
## Task Generate a SQL query to answer the following question: `What is the total number of Year(s), when Trailing Party is "Indian National Congress", and when Trailing Party % Votes is "27.42%"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members_of_parliament" ( "year" real, "lok_sabha" text, "members_of_parliament" text, "party_won" text, "winner_s_pct_votes" text, "trailing_party" text, "trailing_party_pct_votes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of Year(s), when Trailing Party is "Indian National Congress", and when Trailing Party % Votes is "27.42%"?`: ```sql
SELECT "members_of_parliament" FROM "members_of_parliament" WHERE "trailing_party"='bharatiya lok dal';
## Task Generate a SQL query to answer the following question: `What is Members of Parliament, when Trailing Party is "Bharatiya Lok Dal"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members_of_parliament" ( "year" real, "lok_sabha" text, "members_of_parliament" text, "party_won" text, "winner_s_pct_votes" text, "trailing_party" text, "trailing_party_pct_votes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Members of Parliament, when Trailing Party is "Bharatiya Lok Dal"?`: ```sql
SELECT "trailing_party" FROM "members_of_parliament" WHERE "party_won"='janata dal' AND "year"=1996;
## Task Generate a SQL query to answer the following question: `What is Trailing Party, when Party Won is "Janata Dal", and when Year is "1996"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members_of_parliament" ( "year" real, "lok_sabha" text, "members_of_parliament" text, "party_won" text, "winner_s_pct_votes" text, "trailing_party" text, "trailing_party_pct_votes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Trailing Party, when Party Won is "Janata Dal", and when Year is "1996"?`: ```sql
SELECT MIN("year") FROM "members_of_parliament" WHERE "lok_sabha"='4th lok sabha';
## Task Generate a SQL query to answer the following question: `What is the lowest Year, when Lok Sabha is "4th Lok Sabha"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members_of_parliament" ( "year" real, "lok_sabha" text, "members_of_parliament" text, "party_won" text, "winner_s_pct_votes" text, "trailing_party" text, "trailing_party_pct_votes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Year, when Lok Sabha is "4th Lok Sabha"?`: ```sql
SELECT "members_of_parliament" FROM "members_of_parliament" WHERE "winner_s_pct_votes"='50.54%';
## Task Generate a SQL query to answer the following question: `What is Members of Parliament, when Winner's % Votes is "50.54%"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members_of_parliament" ( "year" real, "lok_sabha" text, "members_of_parliament" text, "party_won" text, "winner_s_pct_votes" text, "trailing_party" text, "trailing_party_pct_votes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Members of Parliament, when Winner's % Votes is "50.54%"?`: ```sql
SELECT "player" FROM "first_round" WHERE "score"=68;
## Task Generate a SQL query to answer the following question: `Who scored a 68?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Who scored a 68?`: ```sql
SELECT SUM("grid") FROM "superbike_race_1_classification" WHERE "rider"='ryuichi kiyonari';
## Task Generate a SQL query to answer the following question: `How many Grid has a Rider of ryuichi kiyonari?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Grid has a Rider of ryuichi kiyonari?`: ```sql
SELECT MIN("grid") FROM "superbike_race_1_classification" WHERE "bike"='ducati 1098 rs 08' AND "rider"='max biaggi';
## Task Generate a SQL query to answer the following question: `Name the lowest Grid which has a Bike of ducati 1098 rs 08 and a Rider of max biaggi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the lowest Grid which has a Bike of ducati 1098 rs 08 and a Rider of max biaggi?`: ```sql
SELECT "rider" FROM "superbike_race_1_classification" WHERE "time"='+59.304';
## Task Generate a SQL query to answer the following question: `Name the Rider which has a Time of +59.304?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the Rider which has a Time of +59.304?`: ```sql
SELECT "rider" FROM "superbike_race_1_classification" WHERE "laps"<11 AND "bike"='kawasaki zx-10r' AND "grid"=8;
## Task Generate a SQL query to answer the following question: `Name the Rider which has Laps smaller than 11 and a Bike of kawasaki zx-10r, and a Grid of 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the Rider which has Laps smaller than 11 and a Bike of kawasaki zx-10r, and a Grid of 8?`: ```sql
SELECT COUNT("total") FROM "missed_the_cut" WHERE "player"='karrie webb';
## Task Generate a SQL query to answer the following question: `What is the total for player karrie webb?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total for player karrie webb?`: ```sql
SELECT "year_s_won" FROM "missed_the_cut" WHERE "total">157;
## Task Generate a SQL query to answer the following question: `What years did the player with a total larger than 157 have wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `What years did the player with a total larger than 157 have wins?`: ```sql
SELECT SUM("to_par") FROM "missed_the_cut" WHERE "player"='meg mallon' AND "total">157;
## Task Generate a SQL query to answer the following question: `What is the sum of the to par of player meg mallon, who had a total greater than 157?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of the to par of player meg mallon, who had a total greater than 157?`: ```sql
SELECT MAX("total") FROM "missed_the_cut" WHERE "to_par"=7;
## Task Generate a SQL query to answer the following question: `What is the highest total of the player with a 7 to par?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest total of the player with a 7 to par?`: ```sql
SELECT "assists" FROM "club_statistics" WHERE "player"='steve walker';
## Task Generate a SQL query to answer the following question: `How many assists did Steve Walker have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "club_statistics" ( "player" text, "seasons" text, "games" text, "goals" text, "assists" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many assists did Steve Walker have?`: ```sql
SELECT "goals" FROM "club_statistics" WHERE "assists"='33' AND "games"='85';
## Task Generate a SQL query to answer the following question: `How many goals did the player score who had 33 assists in 85 games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "club_statistics" ( "player" text, "seasons" text, "games" text, "goals" text, "assists" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many goals did the player score who had 33 assists in 85 games?`: ```sql
SELECT "points" FROM "club_statistics" WHERE "player"='denis pederson';
## Task Generate a SQL query to answer the following question: `How many points did Denis Pederson have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "club_statistics" ( "player" text, "seasons" text, "games" text, "goals" text, "assists" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points did Denis Pederson have?`: ```sql
SELECT "xenon" FROM "phase_changes_and_critical_properties" WHERE "helium"='5.1';
## Task Generate a SQL query to answer the following question: `Which Xenon has a Helium of 5.1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "phase_changes_and_critical_properties" ( "physical_property" text, "helium" text, "neon" text, "argon" text, "krypton" text, "xenon" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Xenon has a Helium of 5.1?`: ```sql
SELECT "neon" FROM "phase_changes_and_critical_properties" WHERE "argon"='−189.6';
## Task Generate a SQL query to answer the following question: `Which Neon has a Argon of −189.6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "phase_changes_and_critical_properties" ( "physical_property" text, "helium" text, "neon" text, "argon" text, "krypton" text, "xenon" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Neon has a Argon of −189.6?`: ```sql
SELECT "physical_property" FROM "phase_changes_and_critical_properties" WHERE "helium"='0.0693';
## Task Generate a SQL query to answer the following question: `Which Physical property has a Helium of 0.0693?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "phase_changes_and_critical_properties" ( "physical_property" text, "helium" text, "neon" text, "argon" text, "krypton" text, "xenon" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Physical property has a Helium of 0.0693?`: ```sql
SELECT "argon" FROM "phase_changes_and_critical_properties" WHERE "neon"='0.484';
## Task Generate a SQL query to answer the following question: `Name the Argon which has a Neon of 0.484?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "phase_changes_and_critical_properties" ( "physical_property" text, "helium" text, "neon" text, "argon" text, "krypton" text, "xenon" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Argon which has a Neon of 0.484?`: ```sql
SELECT "krypton" FROM "phase_changes_and_critical_properties" WHERE "physical_property"='critical pressure (atm)';
## Task Generate a SQL query to answer the following question: `Which Krypton has a Physical property of critical pressure (atm)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "phase_changes_and_critical_properties" ( "physical_property" text, "helium" text, "neon" text, "argon" text, "krypton" text, "xenon" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Krypton has a Physical property of critical pressure (atm)?`: ```sql
SELECT "helium" FROM "phase_changes_and_critical_properties" WHERE "argon"='−189.6';
## Task Generate a SQL query to answer the following question: `which Helium has a Argon of −189.6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "phase_changes_and_critical_properties" ( "physical_property" text, "helium" text, "neon" text, "argon" text, "krypton" text, "xenon" text ); ### SQL Given the database schema, here is the SQL query that answers `which Helium has a Argon of −189.6?`: ```sql
SELECT "venue" FROM "2000" WHERE "opposing_teams"='south africa' AND "date"='17/06/2000';
## Task Generate a SQL query to answer the following question: `What is Venue, when Opposing Teams is "South Africa", and when Date is "17/06/2000"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Venue, when Opposing Teams is "South Africa", and when Date is "17/06/2000"?`: ```sql
SELECT SUM("against") FROM "2000" WHERE "opposing_teams"='south africa' AND "status"='first test';
## Task Generate a SQL query to answer the following question: `What is the sum of Against, when Opposing Teams is "South Africa", and when Status is "First Test"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of Against, when Opposing Teams is "South Africa", and when Status is "First Test"?`: ```sql
SELECT "opposing_teams" FROM "2000" WHERE "status"='test match' AND "date"='25/11/2000';
## Task Generate a SQL query to answer the following question: `What is Opposing Teams, when Status is "Test Match", and when Date is "25/11/2000"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Opposing Teams, when Status is "Test Match", and when Date is "25/11/2000"?`: ```sql
SELECT "against" FROM "2000" WHERE "venue"='twickenham , london' AND "date"='04/03/2000';
## Task Generate a SQL query to answer the following question: `What is Against, when Venue is "Twickenham , London", and when Date is "04/03/2000"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Against, when Venue is "Twickenham , London", and when Date is "04/03/2000"?`: ```sql
SELECT "status" FROM "2000" WHERE "venue"='stadio flaminio , rome';
## Task Generate a SQL query to answer the following question: `What is the Statue, when Venue is "Stadio Flaminio , Rome"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Statue, when Venue is "Stadio Flaminio , Rome"?`: ```sql
SELECT "h_a" FROM "fa_cup" WHERE "date"='24 january 2009';
## Task Generate a SQL query to answer the following question: `What is the H/A of the game on 24 january 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fa_cup" ( "date" text, "round" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the H/A of the game on 24 january 2009?`: ```sql
SELECT "year" FROM "junior_career_history" WHERE "rank_final"='6';
## Task Generate a SQL query to answer the following question: `What year was the rank final of 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "junior_career_history" ( "year" real, "competition_description" text, "location" text, "apparatus" text, "rank_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was the rank final of 6?`: ```sql
SELECT "rank_final" FROM "junior_career_history" WHERE "year"<2007;
## Task Generate a SQL query to answer the following question: `What was the rank final before 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "junior_career_history" ( "year" real, "competition_description" text, "location" text, "apparatus" text, "rank_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the rank final before 2007?`: ```sql
SELECT "district" FROM "massachusetts" WHERE "incumbent"='richard neal';
## Task Generate a SQL query to answer the following question: `What is District, when Incumbent is "Richard Neal"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "massachusetts" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `What is District, when Incumbent is "Richard Neal"?`: ```sql
SELECT MIN("first_elected") FROM "massachusetts" WHERE "district"='massachusetts 10';
## Task Generate a SQL query to answer the following question: `What is the lowest First Elected, when District is "Massachusetts 10"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "massachusetts" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest First Elected, when District is "Massachusetts 10"?`: ```sql
SELECT AVG("first_elected") FROM "massachusetts" WHERE "district"='massachusetts 3';
## Task Generate a SQL query to answer the following question: `What is the average First Elected, when District is "Massachusetts 3"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "massachusetts" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average First Elected, when District is "Massachusetts 3"?`: ```sql
SELECT "lost" FROM "league_table" WHERE "tries_against"='30';
## Task Generate a SQL query to answer the following question: `What team lost with 30 tries against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); ### SQL Given the database schema, here is the SQL query that answers `What team lost with 30 tries against?`: ```sql
SELECT "lost" FROM "league_table" WHERE "points_for"='142';
## Task Generate a SQL query to answer the following question: `Who lost with 142 points for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); ### SQL Given the database schema, here is the SQL query that answers `Who lost with 142 points for?`: ```sql
SELECT "tries_against" FROM "league_table" WHERE "tries_for"='67';
## Task Generate a SQL query to answer the following question: `How many tries against for the team with 67 tries for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); ### SQL Given the database schema, here is the SQL query that answers `How many tries against for the team with 67 tries for?`: ```sql
SELECT "club" FROM "league_table" WHERE "tries_for"='101';
## Task Generate a SQL query to answer the following question: `Which club has 101 tries for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); ### SQL Given the database schema, here is the SQL query that answers `Which club has 101 tries for?`: ```sql
SELECT "try_bonus" FROM "league_table" WHERE "tries_for"='67';
## Task Generate a SQL query to answer the following question: `What is the try bonus for the team with 67 tries for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the try bonus for the team with 67 tries for?`: ```sql
SELECT "lost" FROM "league_table" WHERE "tries_against"='77';
## Task Generate a SQL query to answer the following question: `What is the team that lost with 77 tries against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the team that lost with 77 tries against?`: ```sql
SELECT SUM("p_desc") FROM "relegation_table" WHERE "p_2007"='0,00' AND "p_ap_2008"<'30,00' AND "p_cl_2008">'10,56';
## Task Generate a SQL query to answer the following question: `What is the sum of P desc with a P 2007 of 0,00 and a P, Ap 2008 less than 30,00, and a P CL 2008 that is more than 10,56?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation_table" ( "team" text, "p_desc" real, "p_2007" real, "p_ap_2008" real, "p_cl_2008" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of P desc with a P 2007 of 0,00 and a P, Ap 2008 less than 30,00, and a P CL 2008 that is more than 10,56?`: ```sql
SELECT AVG("fighting_spirit") FROM "most_special_prizes" WHERE "name"='tsurugamine' AND "technique"<10;
## Task Generate a SQL query to answer the following question: `Which Fighting Spirit has a Name of tsurugamine, and a Technique smaller than 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_special_prizes" ( "name" text, "total" real, "outstanding_performance" real, "fighting_spirit" real, "technique" real, "years" text, "highest_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Fighting Spirit has a Name of tsurugamine, and a Technique smaller than 10?`: ```sql
SELECT COUNT("technique") FROM "most_special_prizes" WHERE "highest_rank"='yokozuna' AND "total">11;
## Task Generate a SQL query to answer the following question: `How much Technique has the Highest rank of yokozuna, and a Total larger than 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_special_prizes" ( "name" text, "total" real, "outstanding_performance" real, "fighting_spirit" real, "technique" real, "years" text, "highest_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `How much Technique has the Highest rank of yokozuna, and a Total larger than 11?`: ```sql
SELECT SUM("fighting_spirit") FROM "most_special_prizes" WHERE "total"=13 AND "technique"<1;
## Task Generate a SQL query to answer the following question: `How much Fighting Spirit has a Total of 13, and a Technique smaller than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_special_prizes" ( "name" text, "total" real, "outstanding_performance" real, "fighting_spirit" real, "technique" real, "years" text, "highest_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `How much Fighting Spirit has a Total of 13, and a Technique smaller than 1?`: ```sql
SELECT "years" FROM "most_special_prizes" WHERE "name"='asashio';
## Task Generate a SQL query to answer the following question: `What are asashio's years?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_special_prizes" ( "name" text, "total" real, "outstanding_performance" real, "fighting_spirit" real, "technique" real, "years" text, "highest_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What are asashio's years?`: ```sql
SELECT "county" FROM "u_s_house_district_11" WHERE "precincts"='33/33';
## Task Generate a SQL query to answer the following question: `Which County has a Precincts of 33/33?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_house_district_11" ( "county" text, "precincts" text, "e_greenberg" text, "g_hager" text, "t_wyka" text ); ### SQL Given the database schema, here is the SQL query that answers `Which County has a Precincts of 33/33?`: ```sql
SELECT "t_wyka" FROM "u_s_house_district_11" WHERE "precincts"='51/55';
## Task Generate a SQL query to answer the following question: `Name the T. Wyka has a Precincts of 51/55?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_house_district_11" ( "county" text, "precincts" text, "e_greenberg" text, "g_hager" text, "t_wyka" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the T. Wyka has a Precincts of 51/55?`: ```sql
SELECT "precincts" FROM "u_s_house_district_11" WHERE "g_hager"='2,260 (15%)';
## Task Generate a SQL query to answer the following question: `Which Precincts has a G. Hager of 2,260 (15%)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_house_district_11" ( "county" text, "precincts" text, "e_greenberg" text, "g_hager" text, "t_wyka" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Precincts has a G. Hager of 2,260 (15%)?`: ```sql
SELECT "g_hager" FROM "u_s_house_district_11" WHERE "e_greenberg"='266 (14%)';
## Task Generate a SQL query to answer the following question: `Name the G. Hager of E. Greenberg of 266 (14%)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_house_district_11" ( "county" text, "precincts" text, "e_greenberg" text, "g_hager" text, "t_wyka" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the G. Hager of E. Greenberg of 266 (14%)?`: ```sql
SELECT "precincts" FROM "u_s_house_district_11" WHERE "county"='passaic';
## Task Generate a SQL query to answer the following question: `Which Precincts has a County of passaic?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_house_district_11" ( "county" text, "precincts" text, "e_greenberg" text, "g_hager" text, "t_wyka" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Precincts has a County of passaic?`: ```sql
SELECT "e_greenberg" FROM "u_s_house_district_11" WHERE "t_wyka"='10,793 (70%)';
## Task Generate a SQL query to answer the following question: `Which E. Greenberg has a T. Wyka of 10,793 (70%)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_house_district_11" ( "county" text, "precincts" text, "e_greenberg" text, "g_hager" text, "t_wyka" text ); ### SQL Given the database schema, here is the SQL query that answers `Which E. Greenberg has a T. Wyka of 10,793 (70%)?`: ```sql
SELECT "player" FROM "made_the_cut" WHERE "finish"='t41' AND "country"='england';
## Task Generate a SQL query to answer the following question: `Which player from England finished in T41?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player from England finished in T41?`: ```sql
SELECT "country" FROM "made_the_cut" WHERE "year_s_won"='1998';
## Task Generate a SQL query to answer the following question: `From which country is the player that won in 1998?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `From which country is the player that won in 1998?`: ```sql
SELECT "total" FROM "made_the_cut" WHERE "year_s_won"='1997';
## Task Generate a SQL query to answer the following question: `In 1997, what was the final total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `In 1997, what was the final total?`: ```sql
SELECT "to_par" FROM "made_the_cut" WHERE "player"='justin leonard';
## Task Generate a SQL query to answer the following question: `What was the To Par score for player Justin Leonard?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the To Par score for player Justin Leonard?`: ```sql
SELECT "points" FROM "club_statistics" WHERE "games"='348';
## Task Generate a SQL query to answer the following question: `How many points were scored by the player who played 348 games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "club_statistics" ( "player" text, "seasons" text, "games" text, "goals" text, "assists" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points were scored by the player who played 348 games?`: ```sql
SELECT "points" FROM "club_statistics" WHERE "games"='363';
## Task Generate a SQL query to answer the following question: `How many points were scored by the player who played 363 games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "club_statistics" ( "player" text, "seasons" text, "games" text, "goals" text, "assists" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points were scored by the player who played 363 games?`: ```sql
SELECT "replaced_by" FROM "managerial_changes" WHERE "manner_of_departure"='end of contract' AND "date_of_appointment"='dec. 16, 2008';
## Task Generate a SQL query to answer the following question: `What kind of Replaced has a Manner of departure of end of contract on dec. 16, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); ### SQL Given the database schema, here is the SQL query that answers `What kind of Replaced has a Manner of departure of end of contract on dec. 16, 2008?`: ```sql
SELECT "replaced_by" FROM "managerial_changes" WHERE "outgoing_manager"='guillermo sanguinetti';
## Task Generate a SQL query to answer the following question: `What kind of Replaced has a Outgoing manager of guillermo sanguinetti?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); ### SQL Given the database schema, here is the SQL query that answers `What kind of Replaced has a Outgoing manager of guillermo sanguinetti?`: ```sql
SELECT "replaced_by" FROM "managerial_changes" WHERE "team"='gimnasia y esgrima (lp)';
## Task Generate a SQL query to answer the following question: `What kind of Replaced has a Team of gimnasia y esgrima (lp)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); ### SQL Given the database schema, here is the SQL query that answers `What kind of Replaced has a Team of gimnasia y esgrima (lp)?`: ```sql
SELECT "team" FROM "managerial_changes" WHERE "position_in_table"='15th (c)';
## Task Generate a SQL query to answer the following question: `Which Team has a Position in table of 15th (c)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Team has a Position in table of 15th (c)?`: ```sql
SELECT "team" FROM "managerial_changes" WHERE "position_in_table"='15th (a)' AND "outgoing_manager"='claudio borghi';
## Task Generate a SQL query to answer the following question: `Which Team that has a Position in table of 15th (a) and a Outgoing manager of claudio borghi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Team that has a Position in table of 15th (a) and a Outgoing manager of claudio borghi?`: ```sql
SELECT "team" FROM "managerial_changes" WHERE "date_of_appointment"='sep. 20, 2008';
## Task Generate a SQL query to answer the following question: `Which Team has a Date of appointment on sep. 20, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Team has a Date of appointment on sep. 20, 2008?`: ```sql
SELECT MAX("losses") FROM "group_i" WHERE "position"<6 AND "wins">11 AND "points"=36 AND "played">30;
## Task Generate a SQL query to answer the following question: `What was the highest number of losses for a position less than 6, with more than 11 wins and 36 points, with a played entry of more than 30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_i" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest number of losses for a position less than 6, with more than 11 wins and 36 points, with a played entry of more than 30?`: ```sql
SELECT COUNT("wins") FROM "group_i" WHERE "goals_against"<49 AND "draws"=9 AND "goals_for"=39 AND "points"<31;
## Task Generate a SQL query to answer the following question: `What is the total number of wins for the entry that has fewer than 49 goals against, 39 goals for, 9 draws, and fewer than 31 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_i" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of wins for the entry that has fewer than 49 goals against, 39 goals for, 9 draws, and fewer than 31 points?`: ```sql
SELECT AVG("goals_for") FROM "group_i" WHERE "losses">12 AND "wins">10 AND "points"<29 AND "draws">3;
## Task Generate a SQL query to answer the following question: `What is the average number of goals for entries with more than 12 losses, more than 10 wins, more than 3 draws, and fewer than 29 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_i" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average number of goals for entries with more than 12 losses, more than 10 wins, more than 3 draws, and fewer than 29 points?`: ```sql
SELECT MAX("wins") FROM "group_i" WHERE "draws">4 AND "club"='cd orense' AND "points">36;
## Task Generate a SQL query to answer the following question: `What is the highest number of wins for club Cd Orense, with points greater than 36 and more than 4 draws?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_i" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of wins for club Cd Orense, with points greater than 36 and more than 4 draws?`: ```sql
SELECT SUM("played") FROM "group_i" WHERE "position"<1;
## Task Generate a SQL query to answer the following question: `What is the total number of played for the entry with a position of less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_i" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of played for the entry with a position of less than 1?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='3:53';
## Task Generate a SQL query to answer the following question: `For the match that lasted 3:53 minutes, what was the final record?` ### 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 `For the match that lasted 3:53 minutes, what was the final record?`: ```sql
SELECT "location" FROM "mixed_martial_arts_record" WHERE "event"='ufc 154';
## Task Generate a SQL query to answer the following question: `Where was the UFC 154 match held?` ### 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 `Where was the UFC 154 match held?`: ```sql
SELECT "1st_leg" FROM "playoffs_12" WHERE "team_1"='rc cannes';
## Task Generate a SQL query to answer the following question: `What is the 1st leg that has a Rc Cannes Team 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs_12" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1st leg that has a Rc Cannes Team 1?`: ```sql
SELECT MIN("position") FROM "2_lyga_zone_north" WHERE "points">40 AND "wins"=16 AND "loses"<3;
## Task Generate a SQL query to answer the following question: `What is the lowest positioned club with points greater than 40, 16 wins and losses less than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2_lyga_zone_north" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest positioned club with points greater than 40, 16 wins and losses less than 3?`: ```sql
SELECT MIN("position") FROM "2_lyga_zone_north" WHERE "wins"=2 AND "loses">13;
## Task Generate a SQL query to answer the following question: `What is the lowest positioned team with 2 wins and losses greater than 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2_lyga_zone_north" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest positioned team with 2 wins and losses greater than 13?`: ```sql
SELECT MIN("wins") FROM "2_lyga_zone_north" WHERE "goals_conceded"<26 AND "draws"=1 AND "goals_scored"<74;
## Task Generate a SQL query to answer the following question: `What is the smallest number of wins where goals conceded are below 26, draws are 1 and goals scored are below 74?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2_lyga_zone_north" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest number of wins where goals conceded are below 26, draws are 1 and goals scored are below 74?`: ```sql
SELECT MIN("wins") FROM "2_lyga_zone_north" WHERE "points"<25 AND "goals_scored"=22 AND "club"='minija kretinga' AND "goals_conceded"<39;
## Task Generate a SQL query to answer the following question: `For the club Minija Kretinga, what's the lowest number of wins with points smaller than 25, goals at 22 and goals conceded below 39?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2_lyga_zone_north" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `For the club Minija Kretinga, what's the lowest number of wins with points smaller than 25, goals at 22 and goals conceded below 39?`: ```sql
SELECT "place" FROM "world_championships_men" WHERE "silver"='valeri postoianov ( urs )' AND "year">1969 AND "bronze"='alexander gazov ( urs )';
## Task Generate a SQL query to answer the following question: `In which Place was the Silver won by valeri postoianov ( urs ) later than 1969 and the Bronze won by alexander gazov ( urs )?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_championships_men" ( "year" real, "place" text, "gold" text, "silver" text, "bronze" text ); ### SQL Given the database schema, here is the SQL query that answers `In which Place was the Silver won by valeri postoianov ( urs ) later than 1969 and the Bronze won by alexander gazov ( urs )?`: ```sql
SELECT "bronze" FROM "world_championships_men" WHERE "place"='melbourne';
## Task Generate a SQL query to answer the following question: `Who won the Bronze at Melbourne?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_championships_men" ( "year" real, "place" text, "gold" text, "silver" text, "bronze" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won the Bronze at Melbourne?`: ```sql
SELECT "place" FROM "world_championships_men" WHERE "silver"='vladimir vesselov ( urs )';
## Task Generate a SQL query to answer the following question: `In what Place was the Silver won by vladimir vesselov ( urs )?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_championships_men" ( "year" real, "place" text, "gold" text, "silver" text, "bronze" text ); ### SQL Given the database schema, here is the SQL query that answers `In what Place was the Silver won by vladimir vesselov ( urs )?`: ```sql
SELECT "6_30_pm" FROM "winter_1997_1998" WHERE "3_30_pm"='beetleborgs metallix';
## Task Generate a SQL query to answer the following question: `WHAT IS THE 6:30PM WITH BEETLEBORGS METALLIX AT 3:30PM?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winter_1997_1998" ( "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE 6:30PM WITH BEETLEBORGS METALLIX AT 3:30PM?`: ```sql
SELECT "1_00_pm" FROM "winter_1997_1998" WHERE "3_00_pm"='local programs';
## Task Generate a SQL query to answer the following question: `WHAT IS THE 1:00PM WITH LOCAL PROGRAMS AT 3:00PM?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winter_1997_1998" ( "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE 1:00PM WITH LOCAL PROGRAMS AT 3:00PM?`: ```sql
SELECT "8_00_am" FROM "winter_1997_1998" WHERE "3_00_pm"='local programs';
## Task Generate a SQL query to answer the following question: `WHAT IS THE 8:00AM WITH LOCAL PROGRAMS AT 3:00PM?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winter_1997_1998" ( "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE 8:00AM WITH LOCAL PROGRAMS AT 3:00PM?`: ```sql
SELECT "11_00_am" FROM "winter_1997_1998" WHERE "1_30_pm"='local programs';
## Task Generate a SQL query to answer the following question: `WHAT IS THE 11:00AM WITH LOCAL PROGRAMS AT 1:30PM?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winter_1997_1998" ( "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE 11:00AM WITH LOCAL PROGRAMS AT 1:30PM?`: ```sql
SELECT "2_00_pm" FROM "winter_1997_1998" WHERE "noon"='sunset beach';
## Task Generate a SQL query to answer the following question: `WHAT IS THE 2:00PM WITH SUNSET BEACH AT NOON?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winter_1997_1998" ( "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE 2:00PM WITH SUNSET BEACH AT NOON?`: ```sql