output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "country" FROM "third_round" WHERE "place"='1';
## Task Generate a SQL query to answer the following question: `What is the Country of the Player in Place 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Country of the Player in Place 1?`: ```sql
SELECT "place" FROM "third_round" WHERE "to_par"='–10' AND "score"='67-67-66=200';
## Task Generate a SQL query to answer the following question: `What is the Place of the Player with a To par of –10 and a Score of 67-67-66=200?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Place of the Player with a To par of –10 and a Score of 67-67-66=200?`: ```sql
SELECT COUNT("rank") FROM "most_points_in_a_la_liga_season_at_least" WHERE "points">99 AND "club"='barcelona';
## Task Generate a SQL query to answer the following question: `Can you tell me the total number of Rank that has the Points larger than 99, and the Club of barcelona?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_points_in_a_la_liga_season_at_least" ( "rank" real, "club" text, "season" text, "points" real, "apps" real ); ### SQL Given the database schema, here is the SQL query that answers `Can you tell me the total number of Rank that has the Points larger than 99, and the Club of barcelona?`: ```sql
SELECT AVG("attendance") FROM "replays" WHERE "tie_no"<8 AND "away_team"='eastwood town';
## Task Generate a SQL query to answer the following question: `How many people on average attended when Eastwood Town was the away team, and the tie number was less than 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "replays" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `How many people on average attended when Eastwood Town was the away team, and the tie number was less than 8?`: ```sql
SELECT "score" FROM "replays" WHERE "attendance"<848 AND "home_team"='crowborough athletic';
## Task Generate a SQL query to answer the following question: `The game with home team Crowborough Athletic, with an attendance less than 848 had what as the score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "replays" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `The game with home team Crowborough Athletic, with an attendance less than 848 had what as the score?`: ```sql
SELECT MAX("attendance") FROM "replays" WHERE "home_team"='bashley';
## Task Generate a SQL query to answer the following question: `The game with Bashley as the home team had what maximum attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "replays" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `The game with Bashley as the home team had what maximum attendance?`: ```sql
SELECT COUNT("tie_no") FROM "replays" WHERE "away_team"='harlow town';
## Task Generate a SQL query to answer the following question: `What is the tie number total when Harlow Town is the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "replays" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the tie number total when Harlow Town is the away team?`: ```sql
SELECT "artist" FROM "results" WHERE "draw">15;
## Task Generate a SQL query to answer the following question: `Which artist has a draw greater than 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "place" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which artist has a draw greater than 15?`: ```sql
SELECT MAX("place") FROM "results" WHERE "artist"='jacques raymond' AND "draw">14;
## Task Generate a SQL query to answer the following question: `What was the highest place a song by Jacques Raymond reached, with a draw over 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "place" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest place a song by Jacques Raymond reached, with a draw over 14?`: ```sql
SELECT "craft" FROM "donald_campbell_s_unlimited_world_water_" WHERE "location"='coniston water';
## Task Generate a SQL query to answer the following question: `What is the Craft used at Coniston Water?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "donald_campbell_s_unlimited_world_water_" ( "speed" text, "craft" text, "pilot" text, "location" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Craft used at Coniston Water?`: ```sql
SELECT "speed" FROM "donald_campbell_s_unlimited_world_water_" WHERE "location"='lake mead';
## Task Generate a SQL query to answer the following question: `What is the Speed at Lake Mead?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "donald_campbell_s_unlimited_world_water_" ( "speed" text, "craft" text, "pilot" text, "location" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Speed at Lake Mead?`: ```sql
SELECT "goals" FROM "top_ten_goalscorers_still_active_primera" WHERE "ratio"=0.29;
## Task Generate a SQL query to answer the following question: `Which Goals have a Ratio of 0.29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_ten_goalscorers_still_active_primera" ( "rank" real, "name" text, "years" text, "current_club" text, "goals" real, "apps" real, "ratio" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Goals have a Ratio of 0.29?`: ```sql
SELECT MAX("goals") FROM "top_ten_goalscorers_still_active_primera" WHERE "current_club"='real madrid' AND "ratio"<1.08 AND "rank"<5;
## Task Generate a SQL query to answer the following question: `Which Goals have a Current Club of real madrid, and a Ratio smaller than 1.08, and a Rank smaller than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_ten_goalscorers_still_active_primera" ( "rank" real, "name" text, "years" text, "current_club" text, "goals" real, "apps" real, "ratio" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Goals have a Current Club of real madrid, and a Ratio smaller than 1.08, and a Rank smaller than 5?`: ```sql
SELECT "current_club" FROM "top_ten_goalscorers_still_active_primera" WHERE "rank"=4;
## Task Generate a SQL query to answer the following question: `Which Current Club has a Rank of 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_ten_goalscorers_still_active_primera" ( "rank" real, "name" text, "years" text, "current_club" text, "goals" real, "apps" real, "ratio" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Current Club has a Rank of 4?`: ```sql
SELECT "second_party" FROM "m_ps_1832_1885" WHERE "first_party"='conservative' AND "election"='1834';
## Task Generate a SQL query to answer the following question: `What is the second party that has a conservative first party in the 1834 election?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "m_ps_1832_1885" ( "election" text, "first_member" text, "first_party" text, "second_member" text, "second_party" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the second party that has a conservative first party in the 1834 election?`: ```sql
SELECT "second_member" FROM "m_ps_1832_1885" WHERE "first_member"='sir rowland hill, bt' AND "second_party"='conservative';
## Task Generate a SQL query to answer the following question: `Who is the second member with first member Sir Rowland Hill, BT, and a conservative second party?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "m_ps_1832_1885" ( "election" text, "first_member" text, "first_party" text, "second_member" text, "second_party" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the second member with first member Sir Rowland Hill, BT, and a conservative second party?`: ```sql
SELECT "first_party" FROM "m_ps_1832_1885" WHERE "second_member"='hon. rowland hill' AND "election"='1857';
## Task Generate a SQL query to answer the following question: `What is the first party with second member Hon. Rowland Hill, in the 1857 election?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "m_ps_1832_1885" ( "election" text, "first_member" text, "first_party" text, "second_member" text, "second_party" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the first party with second member Hon. Rowland Hill, in the 1857 election?`: ```sql
SELECT "second_member" FROM "m_ps_1832_1885" WHERE "second_party"='whig' AND "election"='1834';
## Task Generate a SQL query to answer the following question: `Who is the second member that is a second party Whig in the 1834 election?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "m_ps_1832_1885" ( "election" text, "first_member" text, "first_party" text, "second_member" text, "second_party" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the second member that is a second party Whig in the 1834 election?`: ```sql
SELECT "second_party" FROM "m_ps_1832_1885" WHERE "first_party"='conservative' AND "second_member"='john cotes';
## Task Generate a SQL query to answer the following question: `What is the second party that has a conservative first party and second member John Cotes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "m_ps_1832_1885" ( "election" text, "first_member" text, "first_party" text, "second_member" text, "second_party" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the second party that has a conservative first party and second member John Cotes?`: ```sql
SELECT "place" FROM "second_round" WHERE "score"='69-68=137';
## Task Generate a SQL query to answer the following question: `What place is the player with a score of 69-68=137?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What place is the player with a score of 69-68=137?`: ```sql
SELECT "score" FROM "second_round" WHERE "place"='t10' AND "country"='zimbabwe';
## Task Generate a SQL query to answer the following question: `What's the score for the t10 player from zimbabwe?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the score for the t10 player from zimbabwe?`: ```sql
SELECT "score" FROM "second_round" WHERE "place"='t10' AND "country"='australia';
## Task Generate a SQL query to answer the following question: `What's the score of the t10 player from australia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the score of the t10 player from australia?`: ```sql
SELECT "score" FROM "second_round" WHERE "player"='bob tway';
## Task Generate a SQL query to answer the following question: `What's bob tway's score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What's bob tway's score?`: ```sql
SELECT "player" FROM "second_round" WHERE "place"='t10' AND "country"='united states' AND "score"='67-73=140';
## Task Generate a SQL query to answer the following question: `What Player has a Place of t10, a Country of united states, and a Score of 67-73=140?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What Player has a Place of t10, a Country of united states, and a Score of 67-73=140?`: ```sql
SELECT "place" FROM "second_round" WHERE "player"='seve ballesteros';
## Task Generate a SQL query to answer the following question: `What Place has a Player of seve ballesteros?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What Place has a Player of seve ballesteros?`: ```sql
SELECT "country" FROM "second_round" WHERE "player"='nick faldo';
## Task Generate a SQL query to answer the following question: `What Country has a Player of nick faldo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What Country has a Player of nick faldo?`: ```sql
SELECT "to_par" FROM "second_round" WHERE "place"='t10' AND "score"='67-73=140';
## Task Generate a SQL query to answer the following question: `What To par has a Place of t10, and a Score of 67-73=140?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What To par has a Place of t10, and a Score of 67-73=140?`: ```sql
SELECT "score" FROM "second_round" WHERE "place"='t6' AND "country"='united states' AND "player"='fred couples';
## Task Generate a SQL query to answer the following question: `What Score has a Place of t6, a Country of united states, and a Player of fred couples?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What Score has a Place of t6, a Country of united states, and a Player of fred couples?`: ```sql
SELECT "to_par" FROM "second_round" WHERE "score"='68-66=134';
## Task Generate a SQL query to answer the following question: `What To par has a Score of 68-66=134?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What To par has a Score of 68-66=134?`: ```sql
SELECT "provider" FROM "current_providers" WHERE "free_or_pay"='pay' AND "years"='2006–' AND "transmission"='iptv and digital terrestrial';
## Task Generate a SQL query to answer the following question: `Name the Provider that has a pay in 2006–, and a Transmission of iptv and digital terrestrial?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_providers" ( "provider" text, "years" text, "free_or_pay" text, "transmission" text, "on_demand" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Provider that has a pay in 2006–, and a Transmission of iptv and digital terrestrial?`: ```sql
SELECT "years" FROM "current_providers" WHERE "transmission"='digital satellite' AND "on_demand"='no' AND "free_or_pay"='free + ppv';
## Task Generate a SQL query to answer the following question: `Name the Years which have Transmission of digital satellite, an On demand of no, and a Free or pay of free + ppv?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_providers" ( "provider" text, "years" text, "free_or_pay" text, "transmission" text, "on_demand" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Years which have Transmission of digital satellite, an On demand of no, and a Free or pay of free + ppv?`: ```sql
SELECT "free_or_pay" FROM "current_providers" WHERE "years"='2006–' AND "provider"='bt tv (formerly bt vision)';
## Task Generate a SQL query to answer the following question: `What kind of Free or pay has Years of 2006– and a Provider of bt tv (formerly bt vision)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_providers" ( "provider" text, "years" text, "free_or_pay" text, "transmission" text, "on_demand" text ); ### SQL Given the database schema, here is the SQL query that answers `What kind of Free or pay has Years of 2006– and a Provider of bt tv (formerly bt vision)?`: ```sql
SELECT "years" FROM "current_providers" WHERE "free_or_pay"='free + pay';
## Task Generate a SQL query to answer the following question: `Name the Years that have a free + pay?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_providers" ( "provider" text, "years" text, "free_or_pay" text, "transmission" text, "on_demand" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Years that have a free + pay?`: ```sql
SELECT "on_demand" FROM "current_providers" WHERE "free_or_pay"='free' AND "provider"='freesat';
## Task Generate a SQL query to answer the following question: `Which On demandhas a Free or pay of free and a Provider of freesat?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_providers" ( "provider" text, "years" text, "free_or_pay" text, "transmission" text, "on_demand" text ); ### SQL Given the database schema, here is the SQL query that answers `Which On demandhas a Free or pay of free and a Provider of freesat?`: ```sql
SELECT "on_demand" FROM "current_providers" WHERE "free_or_pay"='pay' AND "provider"='virgin media (formerly ntl:telewest)';
## Task Generate a SQL query to answer the following question: `Which On demand has a pay and a Provider of virgin media (formerly ntl:telewest)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_providers" ( "provider" text, "years" text, "free_or_pay" text, "transmission" text, "on_demand" text ); ### SQL Given the database schema, here is the SQL query that answers `Which On demand has a pay and a Provider of virgin media (formerly ntl:telewest)?`: ```sql
SELECT "region" FROM "regional_free_to_air_dvb_t_television_ch" WHERE "name"='tv uskana';
## Task Generate a SQL query to answer the following question: `What is the region for tv uskana?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regional_free_to_air_dvb_t_television_ch" ( "name" text, "region" text, "programming" text, "type" text, "encryption" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the region for tv uskana?`: ```sql
SELECT "region" FROM "regional_free_to_air_dvb_t_television_ch" WHERE "name"='tv vtv';
## Task Generate a SQL query to answer the following question: `What is the region for tv vtv?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regional_free_to_air_dvb_t_television_ch" ( "name" text, "region" text, "programming" text, "type" text, "encryption" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the region for tv vtv?`: ```sql
SELECT MAX("week") FROM "regular_season" WHERE "opponent"='buffalo bills';
## Task Generate a SQL query to answer the following question: `What is the highest Week with the Opponent Buffalo Bills?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest Week with the Opponent Buffalo Bills?`: ```sql
SELECT "opponent" FROM "regular_season" WHERE "attendance">'14,431' AND "game_site"='bears stadium' AND "week"=3;
## Task Generate a SQL query to answer the following question: `Which Opponent has an Attendance greater than 14,431 during Week 3 at Bears Stadium Game site?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Opponent has an Attendance greater than 14,431 during Week 3 at Bears Stadium Game site?`: ```sql
SELECT "date" FROM "2000s" WHERE "attendance">'1,000' AND "competition"='world cup' AND "venue"='dublin';
## Task Generate a SQL query to answer the following question: `Which Attendance is larger than 1,000, with a Competition of world cup, and a Venue of dublin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "date" text, "result" text, "competition" text, "venue" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Attendance is larger than 1,000, with a Competition of world cup, and a Venue of dublin?`: ```sql
SELECT "venue" FROM "2000s" WHERE "attendance">'1,000' AND "result"='scotland 12-20 samoa';
## Task Generate a SQL query to answer the following question: `Which Venue that has an Attendance larger than 1,000, and a Result of scotland 12-20 samoa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "date" text, "result" text, "competition" text, "venue" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Venue that has an Attendance larger than 1,000, and a Result of scotland 12-20 samoa?`: ```sql
SELECT "competition" FROM "2000s" WHERE "result"='france 46-16 scotland';
## Task Generate a SQL query to answer the following question: `Which Competition has a Result of france 46-16 scotland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "date" text, "result" text, "competition" text, "venue" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Competition has a Result of france 46-16 scotland?`: ```sql
SELECT "percentage" FROM "results" WHERE "district">2 AND "party"='independent';
## Task Generate a SQL query to answer the following question: `Which Percentage has a District larger than 2, and a Party of independent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "district" real, "seat" text, "candidate" text, "party" text, "vote" real, "percentage" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Percentage has a District larger than 2, and a Party of independent?`: ```sql
SELECT COUNT("vote") FROM "results" WHERE "seat"='house a' AND "percentage"='75.44%' AND "district"<11;
## Task Generate a SQL query to answer the following question: `How many votes have a Seat of house A, and a Percentage of 75.44%, and a District smaller than 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "district" real, "seat" text, "candidate" text, "party" text, "vote" real, "percentage" text ); ### SQL Given the database schema, here is the SQL query that answers `How many votes have a Seat of house A, and a Percentage of 75.44%, and a District smaller than 11?`: ```sql
SELECT "nation" FROM "medal_table" WHERE "bronze">1 AND "silver"<3;
## Task Generate a SQL query to answer the following question: `What nation has more than 1 bronze and less than 3 silver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What nation has more than 1 bronze and less than 3 silver?`: ```sql
SELECT MAX("silver") FROM "medal_table" WHERE "bronze"=9 AND "total"<27;
## Task Generate a SQL query to answer the following question: `What's the highest number of silver for 9 bronze and less than 27 total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the highest number of silver for 9 bronze and less than 27 total?`: ```sql
SELECT "market_share" FROM "tier_i_financial_institutions" WHERE "assets_usd_millions"=25 AND "rank"='23';
## Task Generate a SQL query to answer the following question: `What is the Market Share that has Assets of 25 Million and a rank of 23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tier_i_financial_institutions" ( "rank" text, "bank" text, "assets_usd_millions" real, "market_share" text, "number_of_branches" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Market Share that has Assets of 25 Million and a rank of 23?`: ```sql
SELECT MAX("assets_usd_millions") FROM "tier_i_financial_institutions" WHERE "bank"='equity bank' AND "number_of_branches"<44;
## Task Generate a SQL query to answer the following question: `What is the highest Assets (USD) Millions from Equity Bank and less than 44 branches?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tier_i_financial_institutions" ( "rank" text, "bank" text, "assets_usd_millions" real, "market_share" text, "number_of_branches" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest Assets (USD) Millions from Equity Bank and less than 44 branches?`: ```sql
SELECT "score" FROM "replays" WHERE "attendance"='349';
## Task Generate a SQL query to answer the following question: `What is Score, when Attendance is "349"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "replays" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Score, when Attendance is "349"?`: ```sql
SELECT "score" FROM "replays" WHERE "away_team"='newcastle benfield';
## Task Generate a SQL query to answer the following question: `What is Score, when Away Team is "Newcastle Benfield"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "replays" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Score, when Away Team is "Newcastle Benfield"?`: ```sql
SELECT "score" FROM "replays" WHERE "tie_no"='30';
## Task Generate a SQL query to answer the following question: `What is Score, when Tie No is "30"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "replays" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Score, when Tie No is "30"?`: ```sql
SELECT "score" FROM "replays" WHERE "tie_no"='109';
## Task Generate a SQL query to answer the following question: `What is Score, when Tie No is "109"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "replays" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Score, when Tie No is "109"?`: ```sql
SELECT "away_team" FROM "replays" WHERE "tie_no"='37';
## Task Generate a SQL query to answer the following question: `What is Away Team, when Tie No is "37"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "replays" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Away Team, when Tie No is "37"?`: ```sql
SELECT "australian" FROM "vowel_plus_consonant_cluster" WHERE "american"='ɑ';
## Task Generate a SQL query to answer the following question: `What is the Australian for the American ɑ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vowel_plus_consonant_cluster" ( "letter" text, "american" text, "british" text, "australian" text, "examples" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Australian for the American ɑ?`: ```sql
SELECT "australian" FROM "vowel_plus_consonant_cluster" WHERE "letter"='i /ɪ/';
## Task Generate a SQL query to answer the following question: `What is the Australian equivalent to i /ɪ/?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vowel_plus_consonant_cluster" ( "letter" text, "american" text, "british" text, "australian" text, "examples" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Australian equivalent to i /ɪ/?`: ```sql
SELECT "british" FROM "vowel_plus_consonant_cluster" WHERE "australian"='ɔ';
## Task Generate a SQL query to answer the following question: `What is the British for the Australian ɔ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vowel_plus_consonant_cluster" ( "letter" text, "american" text, "british" text, "australian" text, "examples" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the British for the Australian ɔ?`: ```sql
SELECT "american" FROM "vowel_plus_consonant_cluster" WHERE "british"='ə';
## Task Generate a SQL query to answer the following question: `What is the American version of the British ə?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vowel_plus_consonant_cluster" ( "letter" text, "american" text, "british" text, "australian" text, "examples" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the American version of the British ə?`: ```sql
SELECT "examples" FROM "vowel_plus_consonant_cluster" WHERE "australian"='æ';
## Task Generate a SQL query to answer the following question: `What are the examples for the Australian æ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vowel_plus_consonant_cluster" ( "letter" text, "american" text, "british" text, "australian" text, "examples" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the examples for the Australian æ?`: ```sql
SELECT "letter" FROM "vowel_plus_consonant_cluster" WHERE "british"='ɒ';
## Task Generate a SQL query to answer the following question: `What is the letter for the Brisish ɒ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vowel_plus_consonant_cluster" ( "letter" text, "american" text, "british" text, "australian" text, "examples" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the letter for the Brisish ɒ?`: ```sql
SELECT "7_00_am" FROM "spring_2001" WHERE "6_30_pm"='local programs' AND "7_30_am"='local programs';
## Task Generate a SQL query to answer the following question: `What's the 7am show that has local programs at 7:30am and 6:30pm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spring_2001" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "10_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, "4_00_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the 7am show that has local programs at 7:30am and 6:30pm?`: ```sql
SELECT "3_00_pm" FROM "spring_2001" WHERE "7_00_am"='men in black (mon-thu) pokémon (fri)';
## Task Generate a SQL query to answer the following question: `What is the 3pm show that has Men In Black (mon-thu) Pokémon (fri) at 7am?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spring_2001" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "10_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, "4_00_pm" text, "4_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 3pm show that has Men In Black (mon-thu) Pokémon (fri) at 7am?`: ```sql
SELECT "7_00_am" FROM "spring_2001" WHERE "1_30_pm"='all my children';
## Task Generate a SQL query to answer the following question: `What is the 7am show that has All My Children at 1:30pm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spring_2001" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "10_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, "4_00_pm" text, "4_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 7am show that has All My Children at 1:30pm?`: ```sql
SELECT "8_00_am" FROM "spring_2001" WHERE "2_00_pm"='passions';
## Task Generate a SQL query to answer the following question: `What is the 8am show that has Passions showing at 2pm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spring_2001" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "10_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, "4_00_pm" text, "4_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 8am show that has Passions showing at 2pm?`: ```sql
SELECT "6_30_pm" FROM "spring_2001" WHERE "9_00_am"='local programs' AND "8_00_am"='the early show';
## Task Generate a SQL query to answer the following question: `What is the 6:30pm show that has The Early Show at 8am and Local Programs at 9am?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spring_2001" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "10_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, "4_00_pm" text, "4_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 show that has The Early Show at 8am and Local Programs at 9am?`: ```sql
SELECT "1_00_pm" FROM "spring_2001" WHERE "2_00_pm"='local programs' AND "4_30_pm"='digimon: digital monsters';
## Task Generate a SQL query to answer the following question: `What is the 1pm show that has Local Programs at 2pm and Digimon: Digital Monsters at 4:30pm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spring_2001" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "10_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, "4_00_pm" text, "4_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 1pm show that has Local Programs at 2pm and Digimon: Digital Monsters at 4:30pm?`: ```sql
SELECT "1st_member" FROM "parliaments_of_queen_mary_i" WHERE "2nd_member"='thomas leigh' AND "elected"='1557/58';
## Task Generate a SQL query to answer the following question: `Who was the 1st member with 2nd member Thomas Leigh and was elected in 1557/58?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "parliaments_of_queen_mary_i" ( "summoned" text, "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the 1st member with 2nd member Thomas Leigh and was elected in 1557/58?`: ```sql
SELECT "2nd_member" FROM "parliaments_of_queen_mary_i" WHERE "elected"='1555';
## Task Generate a SQL query to answer the following question: `Who is the second member that was elected in 1555?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "parliaments_of_queen_mary_i" ( "summoned" text, "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the second member that was elected in 1555?`: ```sql
SELECT "dissolved" FROM "parliaments_of_queen_mary_i" WHERE "elected"='1553';
## Task Generate a SQL query to answer the following question: `Who was dissolved that was elected in 1553?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "parliaments_of_queen_mary_i" ( "summoned" text, "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was dissolved that was elected in 1553?`: ```sql
SELECT COUNT("pick") FROM "draft_picks" WHERE "nationality"='canada' AND "player"='dennis maxwell';
## Task Generate a SQL query to answer the following question: `Which Pick has a Nationality of canada, and a Player of dennis maxwell?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "draft" real, "round" text, "pick" real, "player" text, "nationality" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Pick has a Nationality of canada, and a Player of dennis maxwell?`: ```sql
SELECT "player" FROM "draft_picks" WHERE "draft"=1994 AND "pick">8 AND "round"='10' AND "nationality"='canada';
## Task Generate a SQL query to answer the following question: `Which Player has a Draft of 1994, a Pick larger than 8, a Round of 10, and a Nationality of canada?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "draft" real, "round" text, "pick" real, "player" text, "nationality" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Player has a Draft of 1994, a Pick larger than 8, a Round of 10, and a Nationality of canada?`: ```sql
SELECT "player" FROM "draft_picks" WHERE "round"='7' AND "pick">187 AND "nationality"='united states' AND "draft">2000;
## Task Generate a SQL query to answer the following question: `Which Player has a Round of 7, a Pick larger than 187, a Nationality of united states, and a Draft larger than 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "draft" real, "round" text, "pick" real, "player" text, "nationality" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Player has a Round of 7, a Pick larger than 187, a Nationality of united states, and a Draft larger than 2000?`: ```sql
SELECT "player" FROM "draft_picks" WHERE "round"='9' AND "pick"=263;
## Task Generate a SQL query to answer the following question: `Which Player has a Round of 9, and a Pick of 263?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "draft" real, "round" text, "pick" real, "player" text, "nationality" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Player has a Round of 9, and a Pick of 263?`: ```sql
SELECT AVG("draft") FROM "draft_picks" WHERE "round"='1' AND "nationality"='canada' AND "pick"=1 AND "player"='vincent lecavalier';
## Task Generate a SQL query to answer the following question: `Which Draft has a Round of 1, a Nationality of canada, a Pick of 1, and a Player of vincent lecavalier?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "draft" real, "round" text, "pick" real, "player" text, "nationality" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Draft has a Round of 1, a Nationality of canada, a Pick of 1, and a Player of vincent lecavalier?`: ```sql
SELECT "penalties" FROM "round_robin_results" WHERE "p_i_m"='34.5';
## Task Generate a SQL query to answer the following question: `What penalties has P.I.M. of 34.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_robin_results" ( "team" text, "wins" text, "losses" text, "points" text, "w_pct" text, "g_f" text, "g_a" text, "assists" text, "penalties" text, "p_i_m" text ); ### SQL Given the database schema, here is the SQL query that answers `What penalties has P.I.M. of 34.5?`: ```sql
SELECT "wins" FROM "round_robin_results" WHERE "w_pct"='0.2';
## Task Generate a SQL query to answer the following question: `What wins has WPct of 0.2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_robin_results" ( "team" text, "wins" text, "losses" text, "points" text, "w_pct" text, "g_f" text, "g_a" text, "assists" text, "penalties" text, "p_i_m" text ); ### SQL Given the database schema, here is the SQL query that answers `What wins has WPct of 0.2?`: ```sql
SELECT "w_pct" FROM "round_robin_results" WHERE "wins"='wins';
## Task Generate a SQL query to answer the following question: `What WPct has wins of wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_robin_results" ( "team" text, "wins" text, "losses" text, "points" text, "w_pct" text, "g_f" text, "g_a" text, "assists" text, "penalties" text, "p_i_m" text ); ### SQL Given the database schema, here is the SQL query that answers `What WPct has wins of wins?`: ```sql
SELECT "assists" FROM "round_robin_results" WHERE "points"='10';
## Task Generate a SQL query to answer the following question: `What assists has points of 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_robin_results" ( "team" text, "wins" text, "losses" text, "points" text, "w_pct" text, "g_f" text, "g_a" text, "assists" text, "penalties" text, "p_i_m" text ); ### SQL Given the database schema, here is the SQL query that answers `What assists has points of 10?`: ```sql
SELECT "losses" FROM "round_robin_results" WHERE "team"='japan';
## Task Generate a SQL query to answer the following question: `What losses consist of the team of japan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_robin_results" ( "team" text, "wins" text, "losses" text, "points" text, "w_pct" text, "g_f" text, "g_a" text, "assists" text, "penalties" text, "p_i_m" text ); ### SQL Given the database schema, here is the SQL query that answers `What losses consist of the team of japan?`: ```sql
SELECT SUM("wins") FROM "starters_for_3_different_teams" WHERE "teams"='chiefs' AND "losses">1;
## Task Generate a SQL query to answer the following question: `How many wins have more than 1 loss and a team of chiefs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "starters_for_3_different_teams" ( "quarterback" text, "games" real, "teams" text, "wins" real, "losses" real, "percent" real ); ### SQL Given the database schema, here is the SQL query that answers `How many wins have more than 1 loss and a team of chiefs?`: ```sql
SELECT MIN("loss") FROM "rushing" WHERE "name"='antwon bailey' AND "gain">227;
## Task Generate a SQL query to answer the following question: `What was the total yards lost by antwon bailey when he gained 227?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rushing" ( "name" text, "gp_gs" text, "gain" real, "loss" real, "long" text, "avg_g" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the total yards lost by antwon bailey when he gained 227?`: ```sql
SELECT COUNT("wins") FROM "league_standings" WHERE "points">51 AND "goals_against">23 AND "losses"=5;
## Task Generate a SQL query to answer the following question: `How many wins when points are more than 51, goals against are more than 23 and losses are 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_standings" ( "position" real, "club" text, "played" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "points" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `How many wins when points are more than 51, goals against are more than 23 and losses are 5?`: ```sql
SELECT SUM("wins") FROM "league_standings" WHERE "points">19 AND "position"<12 AND "played"<30;
## Task Generate a SQL query to answer the following question: `How many wins when there are more than 19 points, place smaller than 12, and fewer than 30 played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_standings" ( "position" real, "club" text, "played" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "points" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `How many wins when there are more than 19 points, place smaller than 12, and fewer than 30 played?`: ```sql
SELECT AVG("played") FROM "league_standings" WHERE "position">16;
## Task Generate a SQL query to answer the following question: `What is the number played by the team in place greater than 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_standings" ( "position" real, "club" text, "played" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "points" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the number played by the team in place greater than 16?`: ```sql
SELECT "2nd_round" FROM "round_of_16" WHERE "team_2"='girondins de bordeaux (d1)';
## Task Generate a SQL query to answer the following question: `What are the 2nd round results for the match with Girondins de Bordeaux (d1) as Team 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "team_1" text, "score" text, "team_2" text, "1st_round" text, "2nd_round" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the 2nd round results for the match with Girondins de Bordeaux (d1) as Team 2?`: ```sql
SELECT "1st_round" FROM "round_of_16" WHERE "team_2"='us valenciennes (d1)';
## Task Generate a SQL query to answer the following question: `What was the 1st round result that had US Valenciennes (d1) as Team 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "team_1" text, "score" text, "team_2" text, "1st_round" text, "2nd_round" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the 1st round result that had US Valenciennes (d1) as Team 2?`: ```sql
SELECT "score" FROM "round_of_16" WHERE "team_2"='usl dunkerque (d2)';
## Task Generate a SQL query to answer the following question: `What was the Score of the match with USL Dunkerque (d2) as Team 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "team_1" text, "score" text, "team_2" text, "1st_round" text, "2nd_round" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Score of the match with USL Dunkerque (d2) as Team 2?`: ```sql
SELECT "club" FROM "team_summaries" WHERE "head_coach"='manuel fernandes';
## Task Generate a SQL query to answer the following question: `What club does Manuel Fernandes coach?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_summaries" ( "club" text, "head_coach" text, "city" text, "stadium" text, "2003_2004_season" text ); ### SQL Given the database schema, here is the SQL query that answers `What club does Manuel Fernandes coach?`: ```sql
SELECT "head_coach" FROM "team_summaries" WHERE "city"='estoril';
## Task Generate a SQL query to answer the following question: `Who is the head coach for the club from Estoril?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_summaries" ( "club" text, "head_coach" text, "city" text, "stadium" text, "2003_2004_season" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the head coach for the club from Estoril?`: ```sql
SELECT "head_coach" FROM "team_summaries" WHERE "city"='aveiro';
## Task Generate a SQL query to answer the following question: `Who is the head coach for the club from Aveiro?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_summaries" ( "club" text, "head_coach" text, "city" text, "stadium" text, "2003_2004_season" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the head coach for the club from Aveiro?`: ```sql
SELECT "team_1" FROM "1_8_finals" WHERE "team_2"='iskra odintsovo';
## Task Generate a SQL query to answer the following question: `What is Team 1, when Team 2 is "Iskra Odintsovo"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1_8_finals" ( "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 Team 1, when Team 2 is "Iskra Odintsovo"?`: ```sql
SELECT "1st_leg" FROM "1_8_finals" WHERE "team_1"='portol palma mallorca';
## Task Generate a SQL query to answer the following question: `What is 1st Leg, when Team 1 is "Portol Palma Mallorca"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1_8_finals" ( "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 1st Leg, when Team 1 is "Portol Palma Mallorca"?`: ```sql
SELECT "agg" FROM "1_8_finals" WHERE "team_1"='noliko maaseik';
## Task Generate a SQL query to answer the following question: `What is Agg., when Team 1 is "Noliko Maaseik"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1_8_finals" ( "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 Agg., when Team 1 is "Noliko Maaseik"?`: ```sql
SELECT "position" FROM "players" WHERE "players"='jake johnson';
## Task Generate a SQL query to answer the following question: `What is Jake Johnson's position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players" ( "players" text, "position" text, "year" text, "ht_wt" text, "bats_throws" text, "hometown_last_school" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Jake Johnson's position?`: ```sql
SELECT "bats_throws" FROM "players" WHERE "players"='clayton allison';
## Task Generate a SQL query to answer the following question: `What side does Clayton Allison Bat/Throw from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players" ( "players" text, "position" text, "year" text, "ht_wt" text, "bats_throws" text, "hometown_last_school" text ); ### SQL Given the database schema, here is the SQL query that answers `What side does Clayton Allison Bat/Throw from?`: ```sql
SELECT "bats_throws" FROM "players" WHERE "players"='ryan overland';
## Task Generate a SQL query to answer the following question: `What side does Ryan Overland Bat/Throws from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players" ( "players" text, "position" text, "year" text, "ht_wt" text, "bats_throws" text, "hometown_last_school" text ); ### SQL Given the database schema, here is the SQL query that answers `What side does Ryan Overland Bat/Throws from?`: ```sql
SELECT "2nd_leg" FROM "eighth_finals" WHERE "team_2"='pelister';
## Task Generate a SQL query to answer the following question: `What is the 2nd leg of pelister team 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "eighth_finals" ( "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 2nd leg of pelister team 2?`: ```sql
SELECT "team_1" FROM "eighth_finals" WHERE "team_2"='cementarnica';
## Task Generate a SQL query to answer the following question: `What is the team 1 with cementarnica as team 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "eighth_finals" ( "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 team 1 with cementarnica as team 2?`: ```sql
SELECT "team_2" FROM "eighth_finals" WHERE "team_1"='turnovo';
## Task Generate a SQL query to answer the following question: `What is the team 2 with turnovo as team 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "eighth_finals" ( "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 team 2 with turnovo as team 1?`: ```sql
SELECT "team_1" FROM "eighth_finals" WHERE "team_2"='tikveš';
## Task Generate a SQL query to answer the following question: `What is the team 1 with tikveš as team 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "eighth_finals" ( "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 team 1 with tikveš as team 2?`: ```sql
SELECT "place" FROM "second_round" WHERE "score"='69-69=138' AND "country"='united states';
## Task Generate a SQL query to answer the following question: `What is Place, when Score is "69-69=138", and when Country is "United States"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Place, when Score is "69-69=138", and when Country is "United States"?`: ```sql