output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "type_of_game" FROM "1973" WHERE "results"='1:0';
## Task Generate a SQL query to answer the following question: `what type of game has the resuts of 1:0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1973" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); ### SQL Given the database schema, here is the SQL query that answers `what type of game has the resuts of 1:0?`: ```sql
SELECT AVG("games") FROM "all_time_most_appearances" WHERE "years"='1965–1981' AND "ranking">4;
## Task Generate a SQL query to answer the following question: `What is the average Games for 1965–1981, and a Ranking larger than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time_most_appearances" ( "ranking" real, "nationality" text, "name" text, "games" real, "years" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Games for 1965–1981, and a Ranking larger than 4?`: ```sql
SELECT "years" FROM "all_time_most_appearances" WHERE "games"=550;
## Task Generate a SQL query to answer the following question: `What is the Years when games shows 550?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time_most_appearances" ( "ranking" real, "nationality" text, "name" text, "games" real, "years" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Years when games shows 550?`: ```sql
SELECT "nationality" FROM "all_time_most_appearances" WHERE "ranking"=4;
## Task Generate a SQL query to answer the following question: `What is the Nationality that shows 4 as the ranking?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time_most_appearances" ( "ranking" real, "nationality" text, "name" text, "games" real, "years" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Nationality that shows 4 as the ranking?`: ```sql
SELECT "location" FROM "rotavirus_genes_and_proteins" WHERE "copies_per_particle"='0' AND "protein"='nsp3';
## Task Generate a SQL query to answer the following question: `Which location has a copies per particle of 0 and a protein of nsp3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rotavirus_genes_and_proteins" ( "rna_segment_gene" real, "size_s_base_pair" real, "protein" text, "molecular_weight_k_da" text, "location" text, "copies_per_particle" text ); ### SQL Given the database schema, here is the SQL query that answers `Which location has a copies per particle of 0 and a protein of nsp3?`: ```sql
SELECT "copies_per_particle" FROM "rotavirus_genes_and_proteins" WHERE "protein"='nsp2';
## Task Generate a SQL query to answer the following question: `How many copies per particle does the protein nsp2 have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rotavirus_genes_and_proteins" ( "rna_segment_gene" real, "size_s_base_pair" real, "protein" text, "molecular_weight_k_da" text, "location" text, "copies_per_particle" text ); ### SQL Given the database schema, here is the SQL query that answers `How many copies per particle does the protein nsp2 have?`: ```sql
SELECT MAX("rna_segment_gene") FROM "rotavirus_genes_and_proteins" WHERE "protein"='vp2' AND "size_s_base_pair">2690;
## Task Generate a SQL query to answer the following question: `What is the highest RNA segment having a protein of vp2 and a base pair size over 2690?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rotavirus_genes_and_proteins" ( "rna_segment_gene" real, "size_s_base_pair" real, "protein" text, "molecular_weight_k_da" text, "location" text, "copies_per_particle" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest RNA segment having a protein of vp2 and a base pair size over 2690?`: ```sql
SELECT "copies_per_particle" FROM "rotavirus_genes_and_proteins" WHERE "location"='nonstructural' AND "rna_segment_gene">5 AND "size_s_base_pair"<751;
## Task Generate a SQL query to answer the following question: `What is the number of copies per particle having a nonstructural location, an RNA segment over 5 and a base pair size under 751?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rotavirus_genes_and_proteins" ( "rna_segment_gene" real, "size_s_base_pair" real, "protein" text, "molecular_weight_k_da" text, "location" text, "copies_per_particle" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of copies per particle having a nonstructural location, an RNA segment over 5 and a base pair size under 751?`: ```sql
SELECT "bronze" FROM "individual" WHERE "location"='hiroshima';
## Task Generate a SQL query to answer the following question: `Who won the bronze medal in Hiroshima?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won the bronze medal in Hiroshima?`: ```sql
SELECT "silver" FROM "individual" WHERE "bronze"='hong chia-yuh';
## Task Generate a SQL query to answer the following question: `Who won the silver medal in the games where Hong Chia-yuh took home bronze?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won the silver medal in the games where Hong Chia-yuh took home bronze?`: ```sql
SELECT "location" FROM "individual" WHERE "bronze"='michael eric bibat';
## Task Generate a SQL query to answer the following question: `Where did Michael Eric Bibat win bronze?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); ### SQL Given the database schema, here is the SQL query that answers `Where did Michael Eric Bibat win bronze?`: ```sql
SELECT "gold" FROM "individual" WHERE "silver"='pan cheng-tsung';
## Task Generate a SQL query to answer the following question: `Who won gold in the games where Pan Cheng-Tsung won silver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won gold in the games where Pan Cheng-Tsung won silver?`: ```sql
SELECT SUM("bronze") FROM "medal_table" WHERE "silver"=0 AND "gold"=0 AND "nation"='denmark' AND "total">1;
## Task Generate a SQL query to answer the following question: `How many Bronzes that has a Silver of 0, and a Gold of 0, and a Nation of denmark, and a Total larger than 1?` ### 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 `How many Bronzes that has a Silver of 0, and a Gold of 0, and a Nation of denmark, and a Total larger than 1?`: ```sql
SELECT MAX("bronze") FROM "medal_table" WHERE "nation"='italy';
## Task Generate a SQL query to answer the following question: `How many Bronzes that has a Nation of italy?` ### 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 `How many Bronzes that has a Nation of italy?`: ```sql
SELECT SUM("silver") FROM "medal_table" WHERE "gold"<1 AND "rank"='9' AND "total"<1;
## Task Generate a SQL query to answer the following question: `How many Silvers that has a Gold smaller than 1, and a Rank of 9, and a Total smaller than 1?` ### 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 `How many Silvers that has a Gold smaller than 1, and a Rank of 9, and a Total smaller than 1?`: ```sql
SELECT MAX("bronze") FROM "medal_table" WHERE "nation"='spain';
## Task Generate a SQL query to answer the following question: `Which Bronze has a Nation of spain?` ### 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 `Which Bronze has a Nation of spain?`: ```sql
SELECT "opponent" FROM "members" WHERE "venue"='jeonju';
## Task Generate a SQL query to answer the following question: `Who was the opponent at the competition held at Jeonju?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members" ( "name" text, "date" text, "goals" real, "assists" real, "team" text, "venue" text, "opponent" text, "competition" text, "total_goals" real, "total_assists" real ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent at the competition held at Jeonju?`: ```sql
SELECT COUNT("january") FROM "schedule_and_results" WHERE "record"='22-15-6';
## Task Generate a SQL query to answer the following question: `How many Januarys had records of 22-15-6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Januarys had records of 22-15-6?`: ```sql
SELECT "date" FROM "calendar" WHERE "event_circuit"='barbagallo raceway';
## Task Generate a SQL query to answer the following question: `what is the date of barbagallo raceway?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "event_circuit" text, "city_state" text, "date" text, "format" text, "winner" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the date of barbagallo raceway?`: ```sql
SELECT "city_state" FROM "calendar" WHERE "event_circuit"='hidden valley raceway';
## Task Generate a SQL query to answer the following question: `What city is the hidden valley raceway in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "event_circuit" text, "city_state" text, "date" text, "format" text, "winner" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What city is the hidden valley raceway in?`: ```sql
SELECT "score" FROM "april" WHERE "game_num"=81;
## Task Generate a SQL query to answer the following question: `What was the score in game 81?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "april" ( "game_num" real, "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the score in game 81?`: ```sql
SELECT "record" FROM "april" WHERE "game_num"=79;
## Task Generate a SQL query to answer the following question: `What was the record after game 79?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "april" ( "game_num" real, "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the record after game 79?`: ```sql
SELECT "home" FROM "april" WHERE "date"='april 15';
## Task Generate a SQL query to answer the following question: `Who was the home team on April 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "april" ( "game_num" real, "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Who was the home team on April 15?`: ```sql
SELECT "hanyu_pinyin" FROM "administrative_divisions" WHERE "hanzi"='依兰县';
## Task Generate a SQL query to answer the following question: `What is the Pinyin for 依兰县?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "administrative_divisions" ( "name" text, "hanzi" text, "hanyu_pinyin" text, "population_2010_11_01" text, "area_km" text, "density_km" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Pinyin for 依兰县?`: ```sql
SELECT "hanyu_pinyin" FROM "administrative_divisions" WHERE "density_km"='77';
## Task Generate a SQL query to answer the following question: `What is the Pinyin for the item that has a density of 77?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "administrative_divisions" ( "name" text, "hanzi" text, "hanyu_pinyin" text, "population_2010_11_01" text, "area_km" text, "density_km" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Pinyin for the item that has a density of 77?`: ```sql
SELECT "population_2010_11_01" FROM "administrative_divisions" WHERE "hanzi"='延寿县';
## Task Generate a SQL query to answer the following question: `What is the population for the area that has a Hanzi of 延寿县?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "administrative_divisions" ( "name" text, "hanzi" text, "hanyu_pinyin" text, "population_2010_11_01" text, "area_km" text, "density_km" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the population for the area that has a Hanzi of 延寿县?`: ```sql
SELECT "population_2010_11_01" FROM "administrative_divisions" WHERE "name"='bayan county';
## Task Generate a SQL query to answer the following question: `What is the population as of 11-01-2010 for Bayan County?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "administrative_divisions" ( "name" text, "hanzi" text, "hanyu_pinyin" text, "population_2010_11_01" text, "area_km" text, "density_km" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the population as of 11-01-2010 for Bayan County?`: ```sql
SELECT "hanzi" FROM "administrative_divisions" WHERE "hanyu_pinyin"='píngfáng qū';
## Task Generate a SQL query to answer the following question: `What is the Hanzi for píngfáng qū?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "administrative_divisions" ( "name" text, "hanzi" text, "hanyu_pinyin" text, "population_2010_11_01" text, "area_km" text, "density_km" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Hanzi for píngfáng qū?`: ```sql
SELECT "slalom" FROM "season_standings" WHERE "overall"='25' AND "season"=2009;
## Task Generate a SQL query to answer the following question: `Which Slalom has an overall of 25 in the 2009 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_standings" ( "season" real, "overall" text, "slalom" text, "giant_slalom" text, "super_g" text, "combined" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Slalom has an overall of 25 in the 2009 season?`: ```sql
SELECT MIN("season") FROM "season_standings" WHERE "giant_slalom"='5';
## Task Generate a SQL query to answer the following question: `What is the earliest season with a Giant Slalom of 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_standings" ( "season" real, "overall" text, "slalom" text, "giant_slalom" text, "super_g" text, "combined" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the earliest season with a Giant Slalom of 5?`: ```sql
SELECT "combined" FROM "season_standings" WHERE "overall"='8';
## Task Generate a SQL query to answer the following question: `Which combined score has an overall of 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_standings" ( "season" real, "overall" text, "slalom" text, "giant_slalom" text, "super_g" text, "combined" text ); ### SQL Given the database schema, here is the SQL query that answers `Which combined score has an overall of 8?`: ```sql
SELECT "super_g" FROM "season_standings" WHERE "overall"='missed season due to injury';
## Task Generate a SQL query to answer the following question: `Which Super Ghas a missed season due to injury?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_standings" ( "season" real, "overall" text, "slalom" text, "giant_slalom" text, "super_g" text, "combined" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Super Ghas a missed season due to injury?`: ```sql
SELECT MAX("events") FROM "summary" WHERE "cuts_made">6 AND "top_25">30;
## Task Generate a SQL query to answer the following question: `Name the most events with cuts made more than 6 and top 25 more than 30` ### 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 `Name the most events with cuts made more than 6 and top 25 more than 30`: ```sql
SELECT "top_10" FROM "summary" WHERE "top_5"<1;
## Task Generate a SQL query to answer the following question: `Name the top-10 with top-5 less than 1` ### 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 `Name the top-10 with top-5 less than 1`: ```sql
SELECT AVG("top_25") FROM "summary" WHERE "events"<0;
## Task Generate a SQL query to answer the following question: `Name the averae top 25 with events less than 0` ### 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 `Name the averae top 25 with events less than 0`: ```sql
SELECT COUNT("top_10") FROM "summary" WHERE "top_25"<2 AND "top_5">0;
## Task Generate a SQL query to answer the following question: `Name the total number of top 10 with top 25 less than 2 and top 5 more than 0` ### 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 `Name the total number of top 10 with top 25 less than 2 and top 5 more than 0`: ```sql
SELECT "year" FROM "0_6_0_0_6_0_garratt_production_list_all_" WHERE "gauge"='2 ft 6 in';
## Task Generate a SQL query to answer the following question: `In what Year is the Gauge 2 ft 6 in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "0_6_0_0_6_0_garratt_production_list_all_" ( "gauge" text, "railway" text, "works_no" text, "year" text, "builder" text ); ### SQL Given the database schema, here is the SQL query that answers `In what Year is the Gauge 2 ft 6 in?`: ```sql
SELECT "year" FROM "0_6_0_0_6_0_garratt_production_list_all_" WHERE "works_no"='2040-2049';
## Task Generate a SQL query to answer the following question: `In what Year is the Works No. 2040-2049?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "0_6_0_0_6_0_garratt_production_list_all_" ( "gauge" text, "railway" text, "works_no" text, "year" text, "builder" text ); ### SQL Given the database schema, here is the SQL query that answers `In what Year is the Works No. 2040-2049?`: ```sql
SELECT "year" FROM "0_6_0_0_6_0_garratt_production_list_all_" WHERE "works_no"='2040-2049';
## Task Generate a SQL query to answer the following question: `In what Year is the Works no. 2040-2049?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "0_6_0_0_6_0_garratt_production_list_all_" ( "gauge" text, "railway" text, "works_no" text, "year" text, "builder" text ); ### SQL Given the database schema, here is the SQL query that answers `In what Year is the Works no. 2040-2049?`: ```sql
SELECT "gauge" FROM "0_6_0_0_6_0_garratt_production_list_all_" WHERE "builder"='beyer, peacock';
## Task Generate a SQL query to answer the following question: `What is the Gauge of Builder Beyer, Peacock?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "0_6_0_0_6_0_garratt_production_list_all_" ( "gauge" text, "railway" text, "works_no" text, "year" text, "builder" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Gauge of Builder Beyer, Peacock?`: ```sql
SELECT "round" FROM "mixed_martial_arts_record" WHERE "record"='5-0';
## Task Generate a SQL query to answer the following question: `Which round has the record of 5-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text ); ### SQL Given the database schema, here is the SQL query that answers `Which round has the record of 5-0?`: ```sql
SELECT "method" FROM "mixed_martial_arts_record" WHERE "record"='11-1';
## Task Generate a SQL query to answer the following question: `Which method has the record of 11-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text ); ### SQL Given the database schema, here is the SQL query that answers `Which method has the record of 11-1?`: ```sql
SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='ufc 44';
## Task Generate a SQL query to answer the following question: `The UFC 44 event has what method?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text ); ### SQL Given the database schema, here is the SQL query that answers `The UFC 44 event has what method?`: ```sql
SELECT "event" FROM "mixed_martial_arts_record" WHERE "record"='12-1';
## Task Generate a SQL query to answer the following question: `Which event has 12-1 as a record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text ); ### SQL Given the database schema, here is the SQL query that answers `Which event has 12-1 as a record?`: ```sql
SELECT "round" FROM "mixed_martial_arts_record" WHERE "res"='loss' AND "record"='12-3';
## Task Generate a SQL query to answer the following question: `What round was a loss with a record of 12-3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text ); ### SQL Given the database schema, here is the SQL query that answers `What round was a loss with a record of 12-3?`: ```sql
SELECT "method" FROM "mixed_martial_arts_record" WHERE "record"='11-1';
## Task Generate a SQL query to answer the following question: `The record of 11-1 used what method?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text ); ### SQL Given the database schema, here is the SQL query that answers `The record of 11-1 used what method?`: ```sql
SELECT "surface" FROM "doubles_11_5_6" WHERE "date"='november 6, 1982';
## Task Generate a SQL query to answer the following question: `What surface was the match on November 6, 1982 played on?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_11_5_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What surface was the match on November 6, 1982 played on?`: ```sql
SELECT COUNT("placing") FROM "teams_and_standings" WHERE "team"='russia';
## Task Generate a SQL query to answer the following question: `What place did russia finish in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams_and_standings" ( "team" text, "players" text, "placing" real, "round_robin_w_l" text, "matches_w_l" text, "sets_w_l" text ); ### SQL Given the database schema, here is the SQL query that answers `What place did russia finish in?`: ```sql
SELECT COUNT("w_chmp") FROM "by_class" WHERE "race">42 AND "pole">11;
## Task Generate a SQL query to answer the following question: `What's the WChmp of the race greater than 42 and pole greater than 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_class" ( "class" text, "season" text, "race" real, "podiums" real, "pole" real, "f_lap" real, "w_chmp" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the WChmp of the race greater than 42 and pole greater than 11?`: ```sql
SELECT MIN("w_chmp") FROM "by_class" WHERE "podiums"=26;
## Task Generate a SQL query to answer the following question: `If podiums are 26, what's the lowest WChmp?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_class" ( "class" text, "season" text, "race" real, "podiums" real, "pole" real, "f_lap" real, "w_chmp" real ); ### SQL Given the database schema, here is the SQL query that answers `If podiums are 26, what's the lowest WChmp?`: ```sql
SELECT COUNT("podiums") FROM "by_class" WHERE "class"='total';
## Task Generate a SQL query to answer the following question: `If the class is total, what is the total number of podiums?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_class" ( "class" text, "season" text, "race" real, "podiums" real, "pole" real, "f_lap" real, "w_chmp" real ); ### SQL Given the database schema, here is the SQL query that answers `If the class is total, what is the total number of podiums?`: ```sql
SELECT MAX("podiums") FROM "by_class" WHERE "race"=14;
## Task Generate a SQL query to answer the following question: `During race 14, what's the podiums?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_class" ( "class" text, "season" text, "race" real, "podiums" real, "pole" real, "f_lap" real, "w_chmp" real ); ### SQL Given the database schema, here is the SQL query that answers `During race 14, what's the podiums?`: ```sql
SELECT "call_sign" FROM "the_good_news_network_in_spanish" WHERE "city_of_license"='higgston, ga';
## Task Generate a SQL query to answer the following question: `What Call sign has a City of license of higgston, ga?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_good_news_network_in_spanish" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `What Call sign has a City of license of higgston, ga?`: ```sql
SELECT "city_of_license" FROM "the_good_news_network_in_spanish" WHERE "erp_w"='2,000';
## Task Generate a SQL query to answer the following question: `What City of license has a ERP W of 2,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_good_news_network_in_spanish" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `What City of license has a ERP W of 2,000?`: ```sql
SELECT "class" FROM "the_good_news_network_in_spanish" WHERE "city_of_license"='lake oconee, ga';
## Task Generate a SQL query to answer the following question: `What is the Class where City of license is lake oconee, ga?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_good_news_network_in_spanish" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Class where City of license is lake oconee, ga?`: ```sql
SELECT "chassis" FROM "indianapolis_500" WHERE "year"=2012;
## Task Generate a SQL query to answer the following question: `What chassis has 2012 as the year?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_500" ( "year" real, "chassis" text, "engine" text, "start" real, "finish" real, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What chassis has 2012 as the year?`: ```sql
SELECT "engine" FROM "indianapolis_500" WHERE "start"<7 AND "finish"=23;
## Task Generate a SQL query to answer the following question: `What engine has a start less than 7, and 23 as a finish?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_500" ( "year" real, "chassis" text, "engine" text, "start" real, "finish" real, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What engine has a start less than 7, and 23 as a finish?`: ```sql
SELECT AVG("finish") FROM "indianapolis_500" WHERE "start">3 AND "engine"='honda' AND "year"=2011;
## Task Generate a SQL query to answer the following question: `What is the average finish that has a start greater than 3, with honda as the engine, and 2011 as the year?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_500" ( "year" real, "chassis" text, "engine" text, "start" real, "finish" real, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average finish that has a start greater than 3, with honda as the engine, and 2011 as the year?`: ```sql
SELECT SUM("start") FROM "indianapolis_500" WHERE "year"<2012 AND "team"='team penske' AND "finish">27;
## Task Generate a SQL query to answer the following question: `How many starts have a year prior to 2012, and team penske as the team, with a finish greater than 27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_500" ( "year" real, "chassis" text, "engine" text, "start" real, "finish" real, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `How many starts have a year prior to 2012, and team penske as the team, with a finish greater than 27?`: ```sql
SELECT "start" FROM "indianapolis_500" WHERE "year">2010 AND "team"='chip ganassi racing';
## Task Generate a SQL query to answer the following question: `What start has a year later than 2010, and chip ganassi racing as the team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_500" ( "year" real, "chassis" text, "engine" text, "start" real, "finish" real, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What start has a year later than 2010, and chip ganassi racing as the team?`: ```sql
SELECT "opponents" FROM "penalty_shootouts" WHERE "competition"='football league trophy';
## Task Generate a SQL query to answer the following question: `Who was the opponent at the Football League Trophy competition?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "penalty_shootouts" ( "date" text, "competition" text, "opponents" text, "venue" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent at the Football League Trophy competition?`: ```sql
SELECT "opponents" FROM "penalty_shootouts" WHERE "venue"='home' AND "competition"='league play offs';
## Task Generate a SQL query to answer the following question: `What was the opponent at the League Play Offs at home?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "penalty_shootouts" ( "date" text, "competition" text, "opponents" text, "venue" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the opponent at the League Play Offs at home?`: ```sql
SELECT "venue" FROM "penalty_shootouts" WHERE "opponents"='queens park rangers';
## Task Generate a SQL query to answer the following question: `What venue held that game against the Queens Park Rangers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "penalty_shootouts" ( "date" text, "competition" text, "opponents" text, "venue" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What venue held that game against the Queens Park Rangers?`: ```sql
SELECT "opponents" FROM "penalty_shootouts" WHERE "venue"='away' AND "score"='5-4';
## Task Generate a SQL query to answer the following question: `Who was the opponent at the away game with a score of 5-4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "penalty_shootouts" ( "date" text, "competition" text, "opponents" text, "venue" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent at the away game with a score of 5-4?`: ```sql
SELECT "opponents" FROM "penalty_shootouts" WHERE "competition"='league cup' AND "score"='3-1';
## Task Generate a SQL query to answer the following question: `Who was the opponent at the League Cup competition with a score of 3-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "penalty_shootouts" ( "date" text, "competition" text, "opponents" text, "venue" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent at the League Cup competition with a score of 3-1?`: ```sql
SELECT "team_classification" FROM "classification_leadership" WHERE "stage"='20';
## Task Generate a SQL query to answer the following question: `Name the team classification for stage of 20` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "team_classification" text, "combativity_award" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the team classification for stage of 20`: ```sql
SELECT "winner" FROM "classification_leadership" WHERE "mountains_classification"='franco pellizotti' AND "combativity_award"='martijn maaskant';
## Task Generate a SQL query to answer the following question: `Name the winner with mountains classification of franco pellizotti and combativity award of martijn maaskant` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "team_classification" text, "combativity_award" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the winner with mountains classification of franco pellizotti and combativity award of martijn maaskant`: ```sql
SELECT "general_classification" FROM "classification_leadership" WHERE "young_rider_classification"='roman kreuziger' AND "points_classification"='fabian cancellara';
## Task Generate a SQL query to answer the following question: `Name the general classification with roman kreuziger and points classification of fabian cancellara` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "team_classification" text, "combativity_award" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the general classification with roman kreuziger and points classification of fabian cancellara`: ```sql
SELECT "combativity_award" FROM "classification_leadership" WHERE "winner"='luis león sánchez';
## Task Generate a SQL query to answer the following question: `Name the combativity award with winner of luis león sánchez` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "team_classification" text, "combativity_award" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the combativity award with winner of luis león sánchez`: ```sql
SELECT SUM("18_49") FROM "season_two" WHERE "air_date"='june 25, 2009' AND "order">29;
## Task Generate a SQL query to answer the following question: `What is the sum of numbers listed in 18-49 for the episode that aired on June 25, 2009 with an order larger than 29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_two" ( "order" real, "episode" text, "air_date" text, "u_s_timeslot_est" text, "18_49" real, "viewers" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of numbers listed in 18-49 for the episode that aired on June 25, 2009 with an order larger than 29?`: ```sql
SELECT COUNT("18_49") FROM "season_two" WHERE "air_date"='july 2, 2009' AND "viewers">3.5;
## Task Generate a SQL query to answer the following question: `What is the total 18-49 for the episode that aired on July 2, 2009 with more than 3.5 viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_two" ( "order" real, "episode" text, "air_date" text, "u_s_timeslot_est" text, "18_49" real, "viewers" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total 18-49 for the episode that aired on July 2, 2009 with more than 3.5 viewers?`: ```sql
SELECT "u_s_timeslot_est" FROM "season_two" WHERE "episode"='\"the farm\"';
## Task Generate a SQL query to answer the following question: `What was the timeslot in the US for the episode, "the farm"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_two" ( "order" real, "episode" text, "air_date" text, "u_s_timeslot_est" text, "18_49" real, "viewers" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the timeslot in the US for the episode, "the farm"?`: ```sql
SELECT AVG("18_49") FROM "season_two" WHERE "viewers"<3.5 AND "order">35;
## Task Generate a SQL query to answer the following question: `What is the average 18-49 for the episode that had an order number higher than 35 and less than 3.5 viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_two" ( "order" real, "episode" text, "air_date" text, "u_s_timeslot_est" text, "18_49" real, "viewers" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average 18-49 for the episode that had an order number higher than 35 and less than 3.5 viewers?`: ```sql
SELECT "episode" FROM "season_two" WHERE "air_date"='july 23, 2009' AND "viewers">3.31;
## Task Generate a SQL query to answer the following question: `What is the episode name that aired on July 23, 2009 with more than 3.31 viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_two" ( "order" real, "episode" text, "air_date" text, "u_s_timeslot_est" text, "18_49" real, "viewers" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the episode name that aired on July 23, 2009 with more than 3.31 viewers?`: ```sql
SELECT AVG("year") FROM "studio_albums" WHERE "copies_sold"='1,695,900+' AND "oricon_position">1;
## Task Generate a SQL query to answer the following question: `What year sold 1,695,900+ copies with an Oricon position larger than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "studio_albums" ( "year" real, "album" text, "oricon_position" real, "1st_week_sales" text, "copies_sold" text ); ### SQL Given the database schema, here is the SQL query that answers `What year sold 1,695,900+ copies with an Oricon position larger than 1?`: ```sql
SELECT "copies_sold" FROM "studio_albums" WHERE "oricon_position">1 AND "year"=1988;
## Task Generate a SQL query to answer the following question: `How many copies were sold where the position is lager than 1 in 1988?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "studio_albums" ( "year" real, "album" text, "oricon_position" real, "1st_week_sales" text, "copies_sold" text ); ### SQL Given the database schema, here is the SQL query that answers `How many copies were sold where the position is lager than 1 in 1988?`: ```sql
SELECT "copies_sold" FROM "studio_albums" WHERE "1st_week_sales"='4,590+';
## Task Generate a SQL query to answer the following question: `How many copies were sold when the 1st week sales were 4,590+?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "studio_albums" ( "year" real, "album" text, "oricon_position" real, "1st_week_sales" text, "copies_sold" text ); ### SQL Given the database schema, here is the SQL query that answers `How many copies were sold when the 1st week sales were 4,590+?`: ```sql
SELECT "winning_score" FROM "lpga_tour_wins_7" WHERE "date"='may 29, 1977';
## Task Generate a SQL query to answer the following question: `What was the Winning Score on May 29, 1977?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Winning Score on May 29, 1977?`: ```sql
SELECT "date" FROM "lpga_tour_wins_7" WHERE "runner_s_up"='patty sheehan';
## Task Generate a SQL query to answer the following question: `On what Date was Patty Sheehan Runner(s)-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `On what Date was Patty Sheehan Runner(s)-up?`: ```sql
SELECT "date" FROM "lpga_tour_wins_7" WHERE "runner_s_up"='judy rankin';
## Task Generate a SQL query to answer the following question: `On what Date was Judy Rankin Runner(s)-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `On what Date was Judy Rankin Runner(s)-up?`: ```sql
SELECT "date" FROM "lpga_tour_wins_7" WHERE "winning_score"='–8 (69-72-70-69=280)';
## Task Generate a SQL query to answer the following question: `On what Date was the Winning score –8 (69-72-70-69=280)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `On what Date was the Winning score –8 (69-72-70-69=280)?`: ```sql
SELECT "date" FROM "lpga_tour_wins_7" WHERE "margin_of_victory"='1 stroke' AND "runner_s_up"='carole charbonnier';
## Task Generate a SQL query to answer the following question: `On what Date was Carole Charbonnier a Runner(s)-up with a 1 stroke Margin of victory?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `On what Date was Carole Charbonnier a Runner(s)-up with a 1 stroke Margin of victory?`: ```sql
SELECT "tournament" FROM "lpga_tour_wins_7" WHERE "winning_score"='+3 (71-72-70=213)';
## Task Generate a SQL query to answer the following question: `What Tournament has a Winning score of +3 (71-72-70=213)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What Tournament has a Winning score of +3 (71-72-70=213)?`: ```sql
SELECT "date" FROM "february" WHERE "home"='toronto';
## Task Generate a SQL query to answer the following question: `What date did the team play home in Toronto?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What date did the team play home in Toronto?`: ```sql
SELECT SUM("attendance") FROM "february" WHERE "visitor"='cleveland' AND "leading_scorer"='larry hughes(33)';
## Task Generate a SQL query to answer the following question: `How many people attended the game when Larry Hughes(33) was the leading scorer and cleveland was visiting?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people attended the game when Larry Hughes(33) was the leading scorer and cleveland was visiting?`: ```sql
SELECT "date" FROM "february" WHERE "home"='utah';
## Task Generate a SQL query to answer the following question: `When did they play Utah at home?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `When did they play Utah at home?`: ```sql
SELECT "opponent" FROM "regular_season" WHERE "stadium"='balboa stadium';
## Task Generate a SQL query to answer the following question: `What opponent has balboa stadium as the opponent?` ### 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, "stadium" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What opponent has balboa stadium as the opponent?`: ```sql
SELECT MAX("attendance") FROM "regular_season" WHERE "opponent"='oakland raiders' AND "week">9;
## Task Generate a SQL query to answer the following question: `What is the highest attendance that has oakland raiders as the opponent, with a week greater than 9?` ### 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, "stadium" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest attendance that has oakland raiders as the opponent, with a week greater than 9?`: ```sql
SELECT "headquarters" FROM "1999" WHERE "primary_industry"='conglomerate';
## Task Generate a SQL query to answer the following question: `Where is the headquarter of the conglomerate industry?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1999" ( "rank" real, "name" text, "headquarters" text, "primary_industry" text, "market_value_usd_million" real ); ### SQL Given the database schema, here is the SQL query that answers `Where is the headquarter of the conglomerate industry?`: ```sql
SELECT "date" FROM "international_goals" WHERE "venue"='hrazdan stadium, yerevan, armenia';
## Task Generate a SQL query to answer the following question: `What date was the game played at the venue of Hrazdan Stadium, Yerevan, Armenia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the game played at the venue of Hrazdan Stadium, Yerevan, Armenia?`: ```sql
SELECT "bronze" FROM "individual" WHERE "location"='busan';
## Task Generate a SQL query to answer the following question: `Who was the bronze medal when the Asian Games were held in Busan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the bronze medal when the Asian Games were held in Busan?`: ```sql
SELECT "gold" FROM "individual" WHERE "bronze"='kim hyang-mi';
## Task Generate a SQL query to answer the following question: `Who won the gold when Kim Hyang-Mi won the bronze?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won the gold when Kim Hyang-Mi won the bronze?`: ```sql
SELECT MIN("year") FROM "individual" WHERE "gold"='park jung-ah';
## Task Generate a SQL query to answer the following question: `What was the earliest year that Park Jung-Ah won the gold?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the earliest year that Park Jung-Ah won the gold?`: ```sql
SELECT "bronze" FROM "individual" WHERE "location"='doha';
## Task Generate a SQL query to answer the following question: `Who won the bronze when the Asian Games were in Doha?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won the bronze when the Asian Games were in Doha?`: ```sql
SELECT SUM("attendance") FROM "schedule" WHERE "date"='november 29, 1953';
## Task Generate a SQL query to answer the following question: `What was the Attendance on November 29, 1953?` ### 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 was the Attendance on November 29, 1953?`: ```sql
SELECT "result" FROM "schedule" WHERE "attendance">'22,057' AND "week">5;
## Task Generate a SQL query to answer the following question: `After Week 5, what was the Result of the game with Attendance greater than 22,057?` ### 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 `After Week 5, what was the Result of the game with Attendance greater than 22,057?`: ```sql
SELECT "nfl_team" FROM "nfl_draft" WHERE "player"='patrick collins';
## Task Generate a SQL query to answer the following question: `Which NFL team picked Patrick Collins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which NFL team picked Patrick Collins?`: ```sql
SELECT "nfl_team" FROM "nfl_draft" WHERE "position"='wide receiver';
## Task Generate a SQL query to answer the following question: `Which NFL team picked a player for the Wide Receiver position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which NFL team picked a player for the Wide Receiver position?`: ```sql
SELECT "result" FROM "achievements" WHERE "year">2002;
## Task Generate a SQL query to answer the following question: `What result has a year after 2002?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); ### SQL Given the database schema, here is the SQL query that answers `What result has a year after 2002?`: ```sql
SELECT "tournament" FROM "achievements" WHERE "year"<2001;
## Task Generate a SQL query to answer the following question: `What tournament has a year prior to 2001?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); ### SQL Given the database schema, here is the SQL query that answers `What tournament has a year prior to 2001?`: ```sql