output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT AVG("cuts_made") FROM "summary" WHERE "top_5"=3 AND "top_10"<5;
## Task Generate a SQL query to answer the following question: `What's the listed average of Cuts made that has a Top-5 of 3, and a Top-10 that's smaller than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the listed average of Cuts made that has a Top-5 of 3, and a Top-10 that's smaller than 5?`: ```sql
SELECT COUNT("top_25") FROM "summary" WHERE "events"<10;
## Task Generate a SQL query to answer the following question: `What's the sum of Top-25 that has an Events that is smaller than 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the sum of Top-25 that has an Events that is smaller than 10?`: ```sql
SELECT COUNT("top_10") FROM "summary" WHERE "events">16 AND "top_5">5;
## Task Generate a SQL query to answer the following question: `What's the sum of Top-10 that has Events that's larger than 16, and has a Top-5 that's also larger than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the sum of Top-10 that has Events that's larger than 16, and has a Top-5 that's also larger than 5?`: ```sql
SELECT MIN("cuts_made") FROM "summary" WHERE "tournament"='pga championship' AND "top_5"<2;
## Task Generate a SQL query to answer the following question: `What is the lowest Cuts made that has a Tournament of PGA Championship, and has a Top-5 that is smaller than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Cuts made that has a Tournament of PGA Championship, and has a Top-5 that is smaller than 2?`: ```sql
SELECT "episode" FROM "humanitas_prize" WHERE "year"<2004 AND "nominee_s"='john wells';
## Task Generate a SQL query to answer the following question: `When the nominee(s) is john wells what is the episode for a year before 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "humanitas_prize" ( "year" real, "category" text, "nominee_s" text, "episode" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `When the nominee(s) is john wells what is the episode for a year before 2004?`: ```sql
SELECT "result" FROM "humanitas_prize" WHERE "nominee_s"='janine sherman';
## Task Generate a SQL query to answer the following question: `What is the result when the nominee(s) of janine sherman?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "humanitas_prize" ( "year" real, "category" text, "nominee_s" text, "episode" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result when the nominee(s) of janine sherman?`: ```sql
SELECT "result" FROM "humanitas_prize" WHERE "year">2003 AND "nominee_s"='john wells';
## Task Generate a SQL query to answer the following question: `What is the result for a year after 2003, when the nominee(s) is john wells?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "humanitas_prize" ( "year" real, "category" text, "nominee_s" text, "episode" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result for a year after 2003, when the nominee(s) is john wells?`: ```sql
SELECT MIN("year") FROM "humanitas_prize" WHERE "result"='nominated' AND "nominee_s"='john wells' AND "episode"='\"makemba\"';
## Task Generate a SQL query to answer the following question: `What is the earliest year with a result of nominated, and a nominee(s) of john wells, for an episode of "makemba"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "humanitas_prize" ( "year" real, "category" text, "nominee_s" text, "episode" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the earliest year with a result of nominated, and a nominee(s) of john wells, for an episode of "makemba"?`: ```sql
SELECT "purse" FROM "winners_of_the_allaire_du_pont_distaff_s" WHERE "distance"='1-1/16' AND "year"=2003;
## Task Generate a SQL query to answer the following question: `What is the purse in 2003, which had a 1-1/16 distance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_of_the_allaire_du_pont_distaff_s" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "distance" text, "time" text, "purse" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the purse in 2003, which had a 1-1/16 distance?`: ```sql
SELECT "trainer" FROM "winners_of_the_allaire_du_pont_distaff_s" WHERE "winner"='skylighter';
## Task Generate a SQL query to answer the following question: `Who is the trainer of the winner skylighter?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_of_the_allaire_du_pont_distaff_s" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "distance" text, "time" text, "purse" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the trainer of the winner skylighter?`: ```sql
SELECT "distance" FROM "winners_of_the_allaire_du_pont_distaff_s" WHERE "time"='1:46.32';
## Task Generate a SQL query to answer the following question: `What is the distance with a 1:46.32 time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_of_the_allaire_du_pont_distaff_s" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "distance" text, "time" text, "purse" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the distance with a 1:46.32 time?`: ```sql
SELECT AVG("year") FROM "winners_of_the_allaire_du_pont_distaff_s" WHERE "time"='1:42.85';
## Task Generate a SQL query to answer the following question: `What is the average year with a 1:42.85 time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_of_the_allaire_du_pont_distaff_s" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "distance" text, "time" text, "purse" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average year with a 1:42.85 time?`: ```sql
SELECT "distance" FROM "winners_of_the_allaire_du_pont_distaff_s" WHERE "year"=2006;
## Task Generate a SQL query to answer the following question: `What is the distance in 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_of_the_allaire_du_pont_distaff_s" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "distance" text, "time" text, "purse" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the distance in 2006?`: ```sql
SELECT "director" FROM "1937" WHERE "title"='clean pastures';
## Task Generate a SQL query to answer the following question: `Who was the director of Clean Pastures?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1937" ( "title" text, "series" text, "director" text, "production_num" text, "release_date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the director of Clean Pastures?`: ```sql
SELECT "release_date" FROM "1937" WHERE "production_num"='8181';
## Task Generate a SQL query to answer the following question: `What was the release date for Production Number 8181?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1937" ( "title" text, "series" text, "director" text, "production_num" text, "release_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the release date for Production Number 8181?`: ```sql
SELECT "series" FROM "1937" WHERE "director"='frank tashlin' AND "production_num"='8053';
## Task Generate a SQL query to answer the following question: `What series was directed by Frank Tashlin and has the production number, 8053?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1937" ( "title" text, "series" text, "director" text, "production_num" text, "release_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What series was directed by Frank Tashlin and has the production number, 8053?`: ```sql
SELECT "series" FROM "1937" WHERE "title"='egghead rides again';
## Task Generate a SQL query to answer the following question: `What series was called Egghead Rides Again?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1937" ( "title" text, "series" text, "director" text, "production_num" text, "release_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What series was called Egghead Rides Again?`: ```sql
SELECT "tie_no" FROM "first_round_proper" WHERE "away_team"='port vale';
## Task Generate a SQL query to answer the following question: `What is the Tie no of the Port Vale Away game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Tie no of the Port Vale Away game?`: ```sql
SELECT "score" FROM "first_round_proper" WHERE "home_team"='halifax town';
## Task Generate a SQL query to answer the following question: `What is the Score of the Halifax Town Home game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Score of the Halifax Town Home game?`: ```sql
SELECT "score" FROM "first_round_proper" WHERE "home_team"='scarborough';
## Task Generate a SQL query to answer the following question: `What is the Score of the Scarborough Home game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Score of the Scarborough Home game?`: ```sql
SELECT "college" FROM "seventeenth_round" WHERE "team"='boston patriots';
## Task Generate a SQL query to answer the following question: `Which college did the player who went to the Boston Patriots go to?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seventeenth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which college did the player who went to the Boston Patriots go to?`: ```sql
SELECT MAX("pick") FROM "seventeenth_round" WHERE "college"='lsu';
## Task Generate a SQL query to answer the following question: `What was the highest pick number of the player who went to LSU in college?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seventeenth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest pick number of the player who went to LSU in college?`: ```sql
SELECT "college" FROM "seventeenth_round" WHERE "pick"=136;
## Task Generate a SQL query to answer the following question: `Which college did the player picked number 136 go to?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seventeenth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which college did the player picked number 136 go to?`: ```sql
SELECT "college" FROM "seventeenth_round" WHERE "pick">130 AND "team"='new york jets';
## Task Generate a SQL query to answer the following question: `Which college did the player picked larger than 130 by the New York Jets go to?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seventeenth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which college did the player picked larger than 130 by the New York Jets go to?`: ```sql
SELECT COUNT("lane") FROM "semifinal_2" WHERE "name"='emily seebohm';
## Task Generate a SQL query to answer the following question: `What lane was Emily Seebohm in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What lane was Emily Seebohm in?`: ```sql
SELECT "quantity" FROM "passenger_and_express_train_locomotives" WHERE "railway_number_s"='263';
## Task Generate a SQL query to answer the following question: `What is the quantity for railway 263?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "passenger_and_express_train_locomotives" ( "class" text, "railway_number_s" text, "quantity" real, "year_s_of_manufacture" text, "axle_arrangement" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the quantity for railway 263?`: ```sql
SELECT "year_s_of_manufacture" FROM "passenger_and_express_train_locomotives" WHERE "railway_number_s"='26 (ii) …63 (ii) , 188–193';
## Task Generate a SQL query to answer the following question: `What are the year(s) of manufacture for railway number(s) 26 (ii) …63 (ii) , 188–193?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "passenger_and_express_train_locomotives" ( "class" text, "railway_number_s" text, "quantity" real, "year_s_of_manufacture" text, "axle_arrangement" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the year(s) of manufacture for railway number(s) 26 (ii) …63 (ii) , 188–193?`: ```sql
SELECT "railway_number_s" FROM "passenger_and_express_train_locomotives" WHERE "year_s_of_manufacture"='1905–1906';
## Task Generate a SQL query to answer the following question: `What are the railway number(s) for year(s) of manufacture of 1905–1906?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "passenger_and_express_train_locomotives" ( "class" text, "railway_number_s" text, "quantity" real, "year_s_of_manufacture" text, "axle_arrangement" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the railway number(s) for year(s) of manufacture of 1905–1906?`: ```sql
SELECT "player" FROM "first_round" WHERE "position"='rb' AND "team"='oakland';
## Task Generate a SQL query to answer the following question: `Who is the rb player from team oakland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the rb player from team oakland?`: ```sql
SELECT "team" FROM "first_round" WHERE "college"='ohio state';
## Task Generate a SQL query to answer the following question: `What is the team of the player from ohio state?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the team of the player from ohio state?`: ```sql
SELECT MAX("rank") FROM "round_1" WHERE "country"='uzbekistan' AND "time">11.44;
## Task Generate a SQL query to answer the following question: `What is the highest rank in Uzbekistan with a time larger than 11.44?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "rank" real, "heat" real, "athlete" text, "country" text, "time" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest rank in Uzbekistan with a time larger than 11.44?`: ```sql
SELECT AVG("heat") FROM "round_1" WHERE "rank"=30;
## Task Generate a SQL query to answer the following question: `What is the average heat ranked at 30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "rank" real, "heat" real, "athlete" text, "country" text, "time" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average heat ranked at 30?`: ```sql
SELECT AVG("time") FROM "round_1" WHERE "rank"=61;
## Task Generate a SQL query to answer the following question: `What is the average time in a rank of 61?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "rank" real, "heat" real, "athlete" text, "country" text, "time" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average time in a rank of 61?`: ```sql
SELECT COUNT("capacity") FROM "rookie_rallye_modern_competition" WHERE "vehicle"='2003 holden commodore ute';
## Task Generate a SQL query to answer the following question: `How much Capacity has a Vehicle of 2003 holden commodore ute?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rookie_rallye_modern_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text ); ### SQL Given the database schema, here is the SQL query that answers `How much Capacity has a Vehicle of 2003 holden commodore ute?`: ```sql
SELECT "navigator" FROM "rookie_rallye_modern_competition" WHERE "total_time"='08:29';
## Task Generate a SQL query to answer the following question: `Which Navigator has a Total Time of 08:29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rookie_rallye_modern_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Navigator has a Total Time of 08:29?`: ```sql
SELECT MIN("capacity") FROM "rookie_rallye_modern_competition" WHERE "class"='cm22' AND "vehicle"='1999 subaru impreza wrx sti';
## Task Generate a SQL query to answer the following question: `Which Capacity has a Class of cm22, and a Vehicle of 1999 subaru impreza wrx sti?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rookie_rallye_modern_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Capacity has a Class of cm22, and a Vehicle of 1999 subaru impreza wrx sti?`: ```sql
SELECT "driver" FROM "rookie_rallye_modern_competition" WHERE "capacity"<5700 AND "total_time"='08:29';
## Task Generate a SQL query to answer the following question: `Which Driver has a Capacity smaller than 5700, and a Total Time of 08:29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rookie_rallye_modern_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Driver has a Capacity smaller than 5700, and a Total Time of 08:29?`: ```sql
SELECT COUNT("losses") FROM "2009_ladder" WHERE "byes">0;
## Task Generate a SQL query to answer the following question: `What is the total number of losses for teams with more than 0 byes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_ladder" ( "sunrayia_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of losses for teams with more than 0 byes?`: ```sql
SELECT SUM("draws") FROM "2009_ladder" WHERE "against"=1731 AND "losses"<10;
## Task Generate a SQL query to answer the following question: `What is the sum of draws for teams with against of 1731 and under 10 losses?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_ladder" ( "sunrayia_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of draws for teams with against of 1731 and under 10 losses?`: ```sql
SELECT "release_date" FROM "1956" WHERE "director"='friz freleng' AND "title"='tree cornered tweety';
## Task Generate a SQL query to answer the following question: `When was Tree Cornered Tweety, directed by Friz Freleng, released?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1956" ( "title" text, "series" text, "director" text, "release_date" text, "reissue" text ); ### SQL Given the database schema, here is the SQL query that answers `When was Tree Cornered Tweety, directed by Friz Freleng, released?`: ```sql
SELECT "release_date" FROM "1956" WHERE "title"='too hop to handle';
## Task Generate a SQL query to answer the following question: `When was Too Hop to Handle released?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1956" ( "title" text, "series" text, "director" text, "release_date" text, "reissue" text ); ### SQL Given the database schema, here is the SQL query that answers `When was Too Hop to Handle released?`: ```sql
SELECT "series" FROM "1956" WHERE "title"='barbary coast bunny';
## Task Generate a SQL query to answer the following question: `From which series is the title Barbary Coast Bunny?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1956" ( "title" text, "series" text, "director" text, "release_date" text, "reissue" text ); ### SQL Given the database schema, here is the SQL query that answers `From which series is the title Barbary Coast Bunny?`: ```sql
SELECT "lyrics_l_music_m" FROM "online_voting_19_30_january_2009" WHERE "place"='23';
## Task Generate a SQL query to answer the following question: `Who did the Lyrics (l) / Music (m) for the song in 23 Place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "online_voting_19_30_january_2009" ( "artist" text, "song" text, "lyrics_l_music_m" text, "votes" text, "place" text ); ### SQL Given the database schema, here is the SQL query that answers `Who did the Lyrics (l) / Music (m) for the song in 23 Place?`: ```sql
SELECT "votes" FROM "online_voting_19_30_january_2009" WHERE "artist"='filipa batista';
## Task Generate a SQL query to answer the following question: `What are the Votes for the Song by Artist Filipa Batista?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "online_voting_19_30_january_2009" ( "artist" text, "song" text, "lyrics_l_music_m" text, "votes" text, "place" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the Votes for the Song by Artist Filipa Batista?`: ```sql
SELECT "votes" FROM "online_voting_19_30_january_2009" WHERE "place"='9';
## Task Generate a SQL query to answer the following question: `What is the Votes for the Song in Place 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "online_voting_19_30_january_2009" ( "artist" text, "song" text, "lyrics_l_music_m" text, "votes" text, "place" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Votes for the Song in Place 9?`: ```sql
SELECT "artist" FROM "online_voting_19_30_january_2009" WHERE "song"='\"procuro-me em mim\"';
## Task Generate a SQL query to answer the following question: `What is the Artist of the Song "Procuro-Me Em Mim"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "online_voting_19_30_january_2009" ( "artist" text, "song" text, "lyrics_l_music_m" text, "votes" text, "place" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Artist of the Song "Procuro-Me Em Mim"?`: ```sql
SELECT "artist" FROM "online_voting_19_30_january_2009" WHERE "place"='withdrawn';
## Task Generate a SQL query to answer the following question: `What is the Artist of the Song with a Place of withdrawn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "online_voting_19_30_january_2009" ( "artist" text, "song" text, "lyrics_l_music_m" text, "votes" text, "place" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Artist of the Song with a Place of withdrawn?`: ```sql
SELECT "week" FROM "schedule" WHERE "result"='l 38-21';
## Task Generate a SQL query to answer the following question: `Which week had a result of L 38-21?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Which week had a result of L 38-21?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "week">8 AND "attendance"='72,190';
## Task Generate a SQL query to answer the following question: `Who was the opponent after week 8 that had 72,190 people in attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent after week 8 that had 72,190 people in attendance?`: ```sql
SELECT "gold" FROM "world_championships_men" WHERE "year">1982 AND "place"='moscow';
## Task Generate a SQL query to answer the following question: `Who won the Gold Medal in Moscow after the year 1982?` ### 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 Gold Medal in Moscow after the year 1982?`: ```sql
SELECT MIN("total") FROM "women" WHERE "rank"<8 AND "silver">6 AND "bronze"=20;
## Task Generate a SQL query to answer the following question: `What is the lowest total that has a rank less than 8, a silver greater than 6, and 20 as the bronze?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest total that has a rank less than 8, a silver greater than 6, and 20 as the bronze?`: ```sql
SELECT AVG("silver") FROM "women" WHERE "gold">3 AND "nation"='soviet union (urs)' AND "bronze">26;
## Task Generate a SQL query to answer the following question: `What is the average silver that has a gold greater than 3, with soviet union (urs) as the nation, and a bronze greater than 26?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average silver that has a gold greater than 3, with soviet union (urs) as the nation, and a bronze greater than 26?`: ```sql
SELECT MAX("silver") FROM "women" WHERE "total"=57 AND "bronze">20;
## Task Generate a SQL query to answer the following question: `What is the highest silver that has 57 as the total, with a bronze greater than 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest silver that has 57 as the total, with a bronze greater than 20?`: ```sql
SELECT "rank" FROM "women" WHERE "gold">0 AND "bronze"=0 AND "nation"='germany (ger)';
## Task Generate a SQL query to answer the following question: `What rank has a gold greater than 0, 0 as the bronze, with germany (ger) as the nation?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What rank has a gold greater than 0, 0 as the bronze, with germany (ger) as the nation?`: ```sql
SELECT COUNT("bronze") FROM "women" WHERE "total"=1 AND "nation"='spain (esp)' AND "gold">0;
## Task Generate a SQL query to answer the following question: `How many bronzes have 1 as the total, with spain (esp) as the nation, and a gold greater than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many bronzes have 1 as the total, with spain (esp) as the nation, and a gold greater than 0?`: ```sql
SELECT AVG("prominence_m") FROM "the_31_s_ultra_prominent_summit_of_papua" WHERE "peak"='nakanai mountains high point' AND "elevation_m"<'2,316';
## Task Generate a SQL query to answer the following question: `Which Prominence (m) has a Peak of nakanai mountains high point, and an Elevation (m) smaller than 2,316?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_31_s_ultra_prominent_summit_of_papua" ( "rank" real, "peak" text, "country" text, "island" text, "elevation_m" real, "prominence_m" real, "col_m" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Prominence (m) has a Peak of nakanai mountains high point, and an Elevation (m) smaller than 2,316?`: ```sql
SELECT COUNT("col_m") FROM "the_31_s_ultra_prominent_summit_of_papua" WHERE "prominence_m">'1,897' AND "rank"<6;
## Task Generate a SQL query to answer the following question: `How much Col (m) has a Prominence (m) larger than 1,897, and a Rank smaller than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_31_s_ultra_prominent_summit_of_papua" ( "rank" real, "peak" text, "country" text, "island" text, "elevation_m" real, "prominence_m" real, "col_m" real ); ### SQL Given the database schema, here is the SQL query that answers `How much Col (m) has a Prominence (m) larger than 1,897, and a Rank smaller than 6?`: ```sql
SELECT "position" FROM "supplemental_first_round_selections" WHERE "player"='jason fitzgerald';
## Task Generate a SQL query to answer the following question: `What position Jason Fitzgerald played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `What position Jason Fitzgerald played?`: ```sql
SELECT "team" FROM "supplemental_first_round_selections" WHERE "player"='jason romano';
## Task Generate a SQL query to answer the following question: `Jason Romano played for what team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `Jason Romano played for what team?`: ```sql
SELECT "dimensions" FROM "current_amplifier_models" WHERE "output"='180w';
## Task Generate a SQL query to answer the following question: `What are the dimensions of the amp with a 180W output?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_amplifier_models" ( "model" text, "poweramp" text, "dimensions" text, "mass" text, "form_factor_s" text, "output" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the dimensions of the amp with a 180W output?`: ```sql
SELECT AVG("average") FROM "top_scorers" WHERE "total"=22 AND "county"='fermanagh';
## Task Generate a SQL query to answer the following question: `Which player was from Fermanagh and had an average score of 22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_scorers" ( "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `Which player was from Fermanagh and had an average score of 22?`: ```sql
SELECT COUNT("total") FROM "top_scorers" WHERE "player"='oisin mcconville' AND "matches"<5;
## Task Generate a SQL query to answer the following question: `How many total points did Oisin McConville have from his 5 matches?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_scorers" ( "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `How many total points did Oisin McConville have from his 5 matches?`: ```sql
SELECT COUNT("attendance") FROM "schedule" WHERE "date"='october 30, 1977' AND "week">7;
## Task Generate a SQL query to answer the following question: `How many attendances have October 30, 1977 as the date, with a week greater than 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `How many attendances have October 30, 1977 as the date, with a week greater than 7?`: ```sql
SELECT MIN("attendance") FROM "schedule" WHERE "result"='l 42-35' AND "week"<13;
## Task Generate a SQL query to answer the following question: `What is the lowest attendance that has l 42-35 as the result, with a week less than 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest attendance that has l 42-35 as the result, with a week less than 13?`: ```sql
SELECT "name" FROM "heats" WHERE "heat"<3 AND "nationality"='south korea';
## Task Generate a SQL query to answer the following question: `Who is from south korea and has a heat less than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is from south korea and has a heat less than 3?`: ```sql
SELECT MAX("heat") FROM "heats" WHERE "nationality"='spain' AND "lane"<7;
## Task Generate a SQL query to answer the following question: `What is the highest heat of the athlete from spain with a lane less than 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest heat of the athlete from spain with a lane less than 7?`: ```sql
SELECT AVG("lane") FROM "heats" WHERE "nationality"='japan' AND "time"='4:37.35' AND "heat"<3;
## Task Generate a SQL query to answer the following question: `What is the average lane of the athlete from japan with a time of 4:37.35 and a heat less than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average lane of the athlete from japan with a time of 4:37.35 and a heat less than 3?`: ```sql
SELECT MIN("gold") FROM "medal_table_by_country" WHERE "bronze"=4 AND "silver">5;
## Task Generate a SQL query to answer the following question: `What is the lowest Gold count if the Bronze is 4 and Silver is greater than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table_by_country" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Gold count if the Bronze is 4 and Silver is greater than 5?`: ```sql
SELECT AVG("silver") FROM "medal_table_by_country" WHERE "gold">17;
## Task Generate a SQL query to answer the following question: `What is the Average for Silver medals that have more than 17 Golds?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table_by_country" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Average for Silver medals that have more than 17 Golds?`: ```sql
SELECT MAX("silver") FROM "medal_table_by_country" WHERE "total">14 AND "bronze">15;
## Task Generate a SQL query to answer the following question: `What is the highest number of Silver medals with a Total greater than 14 and more than 15 Bronze medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table_by_country" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of Silver medals with a Total greater than 14 and more than 15 Bronze medals?`: ```sql
SELECT "music_director" FROM "best_songs_in_telugu" WHERE "co_singer"='hemachandra' AND "film"='khaleja';
## Task Generate a SQL query to answer the following question: `Who is the music-director for the song from the film khaleja who had a co-singer of hemachandra?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "best_songs_in_telugu" ( "year" real, "song_title" text, "film" text, "co_singer" text, "music_director" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the music-director for the song from the film khaleja who had a co-singer of hemachandra?`: ```sql
SELECT "film" FROM "best_songs_in_telugu" WHERE "year"=2013 AND "co_singer"='solo' AND "song_title"='\"neetho edo\"';
## Task Generate a SQL query to answer the following question: `What is the film from 2013 with a song title of "neetho edo" with a solo co-singer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "best_songs_in_telugu" ( "year" real, "song_title" text, "film" text, "co_singer" text, "music_director" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the film from 2013 with a song title of "neetho edo" with a solo co-singer?`: ```sql
SELECT "score" FROM "past_winners" WHERE "att"=354;
## Task Generate a SQL query to answer the following question: `What was the score for the matchup having attendance of 354?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "past_winners" ( "year" real, "date" text, "winners" text, "score" text, "runners_up" text, "att" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the score for the matchup having attendance of 354?`: ```sql
SELECT "nation" FROM "medalists_per_nation" WHERE "total"<10 AND "bronze"<1 AND "rank"='11';
## Task Generate a SQL query to answer the following question: `What nation had a medal total of less than 10, less than 1 bronze medal, in rank 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medalists_per_nation" ( "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 had a medal total of less than 10, less than 1 bronze medal, in rank 11?`: ```sql
SELECT "gold" FROM "medalists_per_nation" WHERE "silver"=3 AND "total"=10;
## Task Generate a SQL query to answer the following question: `How many gold medals did the team that won a total of 10 medals and 3 silver medals win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medalists_per_nation" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many gold medals did the team that won a total of 10 medals and 3 silver medals win?`: ```sql
SELECT COUNT("total") FROM "medalists_per_nation" WHERE "bronze">11;
## Task Generate a SQL query to answer the following question: `What is the total number of medals won by teams that won more than 11 bronze medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medalists_per_nation" ( "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 is the total number of medals won by teams that won more than 11 bronze medals?`: ```sql
SELECT MIN("react") FROM "semifinal_1" WHERE "country"='united states' AND "lane"<4;
## Task Generate a SQL query to answer the following question: `What is the lowest react of the athlete from the United States who has a lane less than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "athlete" text, "country" text, "time" real, "react" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest react of the athlete from the United States who has a lane less than 4?`: ```sql
SELECT MIN("react") FROM "semifinal_1" WHERE "country"='sri lanka' AND "lane">8;
## Task Generate a SQL query to answer the following question: `What is the lowest of the athlete from sri lanka who has a lane greater than 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "athlete" text, "country" text, "time" real, "react" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest of the athlete from sri lanka who has a lane greater than 8?`: ```sql
SELECT AVG("react") FROM "semifinal_1" WHERE "athlete"='muna lee' AND "rank">3;
## Task Generate a SQL query to answer the following question: `What is the average react of athlete muna lee, who is ranked greater than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "athlete" text, "country" text, "time" real, "react" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average react of athlete muna lee, who is ranked greater than 3?`: ```sql
SELECT AVG("lane") FROM "semifinal_1" WHERE "time">22.57 AND "react"<0.245 AND "country"='cuba';
## Task Generate a SQL query to answer the following question: `What is the average lane of the athlete from cuba who has a time greater than 22.57 and react less than 0.245?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "athlete" text, "country" text, "time" real, "react" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average lane of the athlete from cuba who has a time greater than 22.57 and react less than 0.245?`: ```sql
SELECT AVG("react") FROM "semifinal_1" WHERE "time"<22.29 AND "rank">1;
## Task Generate a SQL query to answer the following question: `What is the average react of the athlete with a time less than 22.29 and a rank greater than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "athlete" text, "country" text, "time" real, "react" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average react of the athlete with a time less than 22.29 and a rank greater than 1?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "date"='december 7, 2003';
## Task Generate a SQL query to answer the following question: `Who is the Opponent on December 7, 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the Opponent on December 7, 2003?`: ```sql
SELECT "tv_time" FROM "schedule" WHERE "attendance"='73,578';
## Task Generate a SQL query to answer the following question: `What is the Tv Time of the game with an Attendance of 73,578?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Tv Time of the game with an Attendance of 73,578?`: ```sql
SELECT MAX("result") FROM "final" WHERE "name"='wallace spearmon' AND "reaction_time">0.167;
## Task Generate a SQL query to answer the following question: `What is the highest result for Wallace Spearmon when the reaction time is greater than 0.167?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final" ( "lane" real, "name" text, "nationality" text, "reaction_time" real, "result" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest result for Wallace Spearmon when the reaction time is greater than 0.167?`: ```sql
SELECT "result" FROM "final" WHERE "lane"=3;
## Task Generate a SQL query to answer the following question: `What was the result for Lane 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final" ( "lane" real, "name" text, "nationality" text, "reaction_time" real, "result" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the result for Lane 3?`: ```sql
SELECT MIN("result") FROM "final" WHERE "reaction_time">0.185 AND "name"='christian malcolm' AND "lane">3;
## Task Generate a SQL query to answer the following question: `What is the lowest result for Christian Malcolm with a reaction time greater than 0.185 and a lane higher than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final" ( "lane" real, "name" text, "nationality" text, "reaction_time" real, "result" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest result for Christian Malcolm with a reaction time greater than 0.185 and a lane higher than 3?`: ```sql
SELECT MIN("conceded") FROM "torneo_clausura" WHERE "draws"=1 AND "scored">14;
## Task Generate a SQL query to answer the following question: `What are the lowest conceded with 1 draw, and a score larger than 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the lowest conceded with 1 draw, and a score larger than 14?`: ```sql
SELECT MIN("losses") FROM "torneo_clausura" WHERE "scored">13 AND "draws">7;
## Task Generate a SQL query to answer the following question: `What are the lowest losses with more than 13 scored, and more than 7 draws?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the lowest losses with more than 13 scored, and more than 7 draws?`: ```sql
SELECT AVG("played") FROM "torneo_clausura" WHERE "points"<8;
## Task Generate a SQL query to answer the following question: `What is the average played for less than 8 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average played for less than 8 points?`: ```sql
SELECT "competition" FROM "hong_kong" WHERE "result"='1–2';
## Task Generate a SQL query to answer the following question: `What competition has a Result of 1–2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hong_kong" ( "date" text, "venue" text, "result" text, "scored" real, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What competition has a Result of 1–2?`: ```sql
SELECT "moving_from" FROM "in" WHERE "country"='hun';
## Task Generate a SQL query to answer the following question: `What is moving from fee in Hun country?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `What is moving from fee in Hun country?`: ```sql
SELECT "type" FROM "in" WHERE "country"='aut';
## Task Generate a SQL query to answer the following question: `What is thr type in Aut country?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `What is thr type in Aut country?`: ```sql
SELECT "owner" FROM "radio" WHERE "format"='adult hits';
## Task Generate a SQL query to answer the following question: `Who is the owner of the radio station that plays adult hits?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the owner of the radio station that plays adult hits?`: ```sql
SELECT "call_sign" FROM "radio" WHERE "owner"='astral media';
## Task Generate a SQL query to answer the following question: `What is the call sign for the radio owned by astral media?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the call sign for the radio owned by astral media?`: ```sql
SELECT "frequency" FROM "radio" WHERE "owner"='bell media' AND "call_sign"='chsu-fm';
## Task Generate a SQL query to answer the following question: `What is the frequency for the radio owned by bell media with a call sign of chsu-fm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the frequency for the radio owned by bell media with a call sign of chsu-fm?`: ```sql
SELECT "branding" FROM "radio" WHERE "frequency"='1150 am';
## Task Generate a SQL query to answer the following question: `What is the branding for the radio with a frequency of 1150 am?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the branding for the radio with a frequency of 1150 am?`: ```sql
SELECT "format" FROM "radio" WHERE "frequency"='00 96.3 fm';
## Task Generate a SQL query to answer the following question: `What was the format for the radio with a frequency of 00 96.3 fm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the format for the radio with a frequency of 00 96.3 fm?`: ```sql
SELECT "owner" FROM "radio" WHERE "frequency"='0 101.5 fm';
## Task Generate a SQL query to answer the following question: `Who is the owner of the radio frequency of 0 101.5 fm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the owner of the radio frequency of 0 101.5 fm?`: ```sql
SELECT COUNT("time") FROM "semifinal_2" WHERE "name"='matt targett' AND "lane">7;
## Task Generate a SQL query to answer the following question: `how many times is the name matt targett and the lane higher than 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); ### SQL Given the database schema, here is the SQL query that answers `how many times is the name matt targett and the lane higher than 7?`: ```sql
SELECT MAX("time") FROM "semifinal_2" WHERE "rank"<5 AND "name"='eamon sullivan';
## Task Generate a SQL query to answer the following question: `what is the highest time when the rank is less than 5 and the name is eamon sullivan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the highest time when the rank is less than 5 and the name is eamon sullivan?`: ```sql