output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "report" FROM "round_16" WHERE "home_team"='geelong';
## Task Generate a SQL query to answer the following question: `what report was in geelong` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `what report was in geelong`: ```sql
SELECT "date" FROM "schedule" WHERE "attendance">'35,000' AND "week"=8;
## Task Generate a SQL query to answer the following question: `What is the date for the game played on week 8, with an attendance of more than 35,000?` ### 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 date for the game played on week 8, with an attendance of more than 35,000?`: ```sql
SELECT "town_city" FROM "defunct_museums" WHERE "name"='nana museum of the arctic';
## Task Generate a SQL query to answer the following question: `In what Town/City is Nana Museum of The Arctic located?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defunct_museums" ( "name" text, "town_city" text, "borough" text, "region" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `In what Town/City is Nana Museum of The Arctic located?`: ```sql
SELECT "name" FROM "defunct_museums" WHERE "town_city"='anchorage' AND "type"='multiple';
## Task Generate a SQL query to answer the following question: `What is the Name of the Multiple Type museum in Anchorage?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defunct_museums" ( "name" text, "town_city" text, "borough" text, "region" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Name of the Multiple Type museum in Anchorage?`: ```sql
SELECT "name" FROM "defunct_museums" WHERE "borough"='anchorage' AND "type"='natural history';
## Task Generate a SQL query to answer the following question: `In what Borough is the Anchorage museum of Natural History?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defunct_museums" ( "name" text, "town_city" text, "borough" text, "region" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `In what Borough is the Anchorage museum of Natural History?`: ```sql
SELECT "region" FROM "defunct_museums" WHERE "type"='native american' AND "town_city"='anchorage';
## Task Generate a SQL query to answer the following question: `In what Region is the Native American museum in Anchorage?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defunct_museums" ( "name" text, "town_city" text, "borough" text, "region" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `In what Region is the Native American museum in Anchorage?`: ```sql
SELECT "type" FROM "defunct_museums" WHERE "name"='valdez museum';
## Task Generate a SQL query to answer the following question: `What Type of museum is the Valdez museum?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defunct_museums" ( "name" text, "town_city" text, "borough" text, "region" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What Type of museum is the Valdez museum?`: ```sql
SELECT "borough" FROM "defunct_museums" WHERE "type"='history' AND "name"='fairbanks community museum';
## Task Generate a SQL query to answer the following question: `In what Borough is the History Type Fairbanks Community Museum?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defunct_museums" ( "name" text, "town_city" text, "borough" text, "region" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `In what Borough is the History Type Fairbanks Community Museum?`: ```sql
SELECT "zip_code_prefix_es" FROM "counties" WHERE "county_seat"='boonville';
## Task Generate a SQL query to answer the following question: `what is the zip code of boonville` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "counties" ( "in_no" real, "county_name" text, "county_seat" text, "time_zone" text, "population_2010_rank" text, "area_sq_mi_km_2_rank" text, "twps" real, "zip_code_prefix_es" text, "pct_of_boundary_by_water" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the zip code of boonville`: ```sql
SELECT "tournament" FROM "european_tour_wins_14" WHERE "date"='9 jun 2002';
## Task Generate a SQL query to answer the following question: `Which tournament was held on 9 Jun 2002?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_tour_wins_14" ( "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 `Which tournament was held on 9 Jun 2002?`: ```sql
SELECT "winning_score" FROM "european_tour_wins_14" WHERE "margin_of_victory"='4 strokes' AND "tournament"='nec invitational';
## Task Generate a SQL query to answer the following question: `What is the winning score with a margin of victory of 4 strokes for the NEC Invitational tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_tour_wins_14" ( "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 is the winning score with a margin of victory of 4 strokes for the NEC Invitational tournament?`: ```sql
SELECT "runner_s_up" FROM "european_tour_wins_14" WHERE "winning_score"='–8 (71-69-67-73=280)';
## Task Generate a SQL query to answer the following question: `Who is the runner-up where the winning score is –8 (71-69-67-73=280)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_tour_wins_14" ( "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 `Who is the runner-up where the winning score is –8 (71-69-67-73=280)?`: ```sql
SELECT "winning_score" FROM "european_tour_wins_14" WHERE "margin_of_victory"='1 stroke' AND "tournament"='linde german masters';
## Task Generate a SQL query to answer the following question: `What is the winning score for Tournament of linde german masters with a margin of victory of 1 stroke?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_tour_wins_14" ( "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 is the winning score for Tournament of linde german masters with a margin of victory of 1 stroke?`: ```sql
SELECT "runner_s_up" FROM "european_tour_wins_14" WHERE "margin_of_victory"='3 strokes' AND "winning_score"='–6 (65-70-70-69=274)';
## Task Generate a SQL query to answer the following question: `Who is runner-up where the winning score is –6 (65-70-70-69=274) and the margin of victory is 3 strokes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_tour_wins_14" ( "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 `Who is runner-up where the winning score is –6 (65-70-70-69=274) and the margin of victory is 3 strokes?`: ```sql
SELECT "winning_score" FROM "european_tour_wins_14" WHERE "margin_of_victory"='1 stroke' AND "runner_s_up"='robert-jan derksen';
## Task Generate a SQL query to answer the following question: `What is the winning score where the runner-up is Robert-Jan Derksen and the margin of victory is 1 stroke?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_tour_wins_14" ( "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 is the winning score where the runner-up is Robert-Jan Derksen and the margin of victory is 1 stroke?`: ```sql
SELECT "high_rebounds" FROM "game_log" WHERE "team"='@ charlotte';
## Task Generate a SQL query to answer the following question: `What are the high rebounds of team @ Charlotte?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the high rebounds of team @ Charlotte?`: ```sql
SELECT "high_rebounds" FROM "game_log" WHERE "game"=68;
## Task Generate a SQL query to answer the following question: `What is the high rebounds of game 68?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the high rebounds of game 68?`: ```sql
SELECT "score" FROM "game_log" WHERE "game"<61 AND "team"='new york';
## Task Generate a SQL query to answer the following question: `What is the score of New York team before game 61?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of New York team before game 61?`: ```sql
SELECT "tier" FROM "singles_wins" WHERE "opponent_in_the_final"='david mcnamara';
## Task Generate a SQL query to answer the following question: `When David McNamara was the opponent in the final, what was the tier?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_wins" ( "date" text, "tournament" text, "tier" text, "surface" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `When David McNamara was the opponent in the final, what was the tier?`: ```sql
SELECT "international_tourist_arrivals_2011" FROM "the_americas" WHERE "international_tourist_arrivals_2012"='23.4 million';
## Task Generate a SQL query to answer the following question: `In 2011, how many tourists visited the country that had 23.4 million tourists in 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_americas" ( "rank" real, "country" text, "international_tourist_arrivals_2012" text, "international_tourist_arrivals_2011" text, "change_2011_to_2012" text, "change_2010_to_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `In 2011, how many tourists visited the country that had 23.4 million tourists in 2012?`: ```sql
SELECT "international_tourist_arrivals_2012" FROM "the_americas" WHERE "international_tourist_arrivals_2011"='2.5 million';
## Task Generate a SQL query to answer the following question: `How many tourists visited the country that had 2.5 million tourists in 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_americas" ( "rank" real, "country" text, "international_tourist_arrivals_2012" text, "international_tourist_arrivals_2011" text, "change_2011_to_2012" text, "change_2010_to_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `How many tourists visited the country that had 2.5 million tourists in 2011?`: ```sql
SELECT "distance" FROM "achievements" WHERE "venue"='seoul, south korea';
## Task Generate a SQL query to answer the following question: `How far Venue of seoul, south korea is?` ### 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, "distance" text ); ### SQL Given the database schema, here is the SQL query that answers `How far Venue of seoul, south korea is?`: ```sql
SELECT "venue" FROM "achievements" WHERE "tournament"='olympic games' AND "result"='4th';
## Task Generate a SQL query to answer the following question: `Which Venue has a Tournament of olympic games with a Result of 4th?` ### 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, "distance" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Venue has a Tournament of olympic games with a Result of 4th?`: ```sql
SELECT "result" FROM "achievements" WHERE "venue"='edmonton, canada';
## Task Generate a SQL query to answer the following question: `What is the Result of Venue of edmonton, canada?` ### 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, "distance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Result of Venue of edmonton, canada?`: ```sql
SELECT "1st_leg" FROM "round_of_16" WHERE "team_2"='psv eindhoven';
## Task Generate a SQL query to answer the following question: `What is the 1st leg of Team 2 PSV Eindhoven?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1st leg of Team 2 PSV Eindhoven?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "game_site"='forbes field' AND "week">4;
## Task Generate a SQL query to answer the following question: `Which opponent was played at Forbes Field after week 4?` ### 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, "game_site" text ); ### SQL Given the database schema, here is the SQL query that answers `Which opponent was played at Forbes Field after week 4?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "week"=9;
## Task Generate a SQL query to answer the following question: `Which opponent was played on week 9?` ### 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, "game_site" text ); ### SQL Given the database schema, here is the SQL query that answers `Which opponent was played on week 9?`: ```sql
SELECT "date" FROM "schedule" WHERE "game_site"='fenway park';
## Task Generate a SQL query to answer the following question: `What was the date of the game played at Fenway Park?` ### 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, "game_site" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of the game played at Fenway Park?`: ```sql
SELECT "opponents" FROM "inter_cities_fairs_cup_uefa_cup_uefa_eur" WHERE "year"='1998–99' AND "team"='aston villa';
## Task Generate a SQL query to answer the following question: `Which Opponents have a Year of 1998–99, and a Team of aston villa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "inter_cities_fairs_cup_uefa_cup_uefa_eur" ( "year" text, "team" text, "progress" text, "score" text, "opponents" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Opponents have a Year of 1998–99, and a Team of aston villa?`: ```sql
SELECT "score" FROM "inter_cities_fairs_cup_uefa_cup_uefa_eur" WHERE "opponents"='valencia' AND "year"='2011–12';
## Task Generate a SQL query to answer the following question: `Which Score has Opponents of valencia, and a Year of 2011–12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "inter_cities_fairs_cup_uefa_cup_uefa_eur" ( "year" text, "team" text, "progress" text, "score" text, "opponents" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Score has Opponents of valencia, and a Year of 2011–12?`: ```sql
SELECT "opponents" FROM "inter_cities_fairs_cup_uefa_cup_uefa_eur" WHERE "team"='arsenal' AND "year"='1963–64';
## Task Generate a SQL query to answer the following question: `Which Opponents have a Team of arsenal, and a Year of 1963–64?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "inter_cities_fairs_cup_uefa_cup_uefa_eur" ( "year" text, "team" text, "progress" text, "score" text, "opponents" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Opponents have a Team of arsenal, and a Year of 1963–64?`: ```sql
SELECT "opponents" FROM "inter_cities_fairs_cup_uefa_cup_uefa_eur" WHERE "year"='1999–2000' AND "team"='leeds united';
## Task Generate a SQL query to answer the following question: `Which Opponents have a Year of 1999–2000, and a Team of leeds united?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "inter_cities_fairs_cup_uefa_cup_uefa_eur" ( "year" text, "team" text, "progress" text, "score" text, "opponents" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Opponents have a Year of 1999–2000, and a Team of leeds united?`: ```sql
SELECT "opponents" FROM "inter_cities_fairs_cup_uefa_cup_uefa_eur" WHERE "score"='1–2' AND "team"='arsenal' AND "progress"='first round';
## Task Generate a SQL query to answer the following question: `Which Opponents have a Score of 1–2, and a Team of arsenal, and Progress of first round?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "inter_cities_fairs_cup_uefa_cup_uefa_eur" ( "year" text, "team" text, "progress" text, "score" text, "opponents" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Opponents have a Score of 1–2, and a Team of arsenal, and Progress of first round?`: ```sql
SELECT COUNT("rank") FROM "bischofshofen_5_january" WHERE "name"='simon ammann' AND "2nd_m">139;
## Task Generate a SQL query to answer the following question: `How much Rank has a Name of simon ammann, and a 2nd (m) larger than 139?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bischofshofen_5_january" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_fht_points" text, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `How much Rank has a Name of simon ammann, and a 2nd (m) larger than 139?`: ```sql
SELECT COUNT("rank") FROM "bischofshofen_5_january" WHERE "points">282.5;
## Task Generate a SQL query to answer the following question: `How much Rank has Points larger than 282.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bischofshofen_5_january" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_fht_points" text, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `How much Rank has Points larger than 282.5?`: ```sql
SELECT MAX("rank") FROM "bischofshofen_5_january" WHERE "points"<256.6;
## Task Generate a SQL query to answer the following question: `Which Rank is the highest one that has Points smaller than 256.6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bischofshofen_5_january" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_fht_points" text, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Rank is the highest one that has Points smaller than 256.6?`: ```sql
SELECT MAX("2nd_m") FROM "bischofshofen_5_january" WHERE "nationality"='sui' AND "rank"<3;
## Task Generate a SQL query to answer the following question: `Which 2nd (m) is the highest one that has a Nationality of sui, and a Rank smaller than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bischofshofen_5_january" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_fht_points" text, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2nd (m) is the highest one that has a Nationality of sui, and a Rank smaller than 3?`: ```sql
SELECT "uk_broadcast_date" FROM "series_3_1996" WHERE "presenter"='chris bonington';
## Task Generate a SQL query to answer the following question: `What is the UK broadcast date of the episode where Chris Bonington was the presenter?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_3_1996" ( "episode_no" text, "episode_title" text, "uk_broadcast_date" text, "presenter" text, "countries_visited" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the UK broadcast date of the episode where Chris Bonington was the presenter?`: ```sql
SELECT "episode_title" FROM "series_3_1996" WHERE "presenter"='ben okri';
## Task Generate a SQL query to answer the following question: `What is the episode title of the episode with Ben Okri as the presenter?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_3_1996" ( "episode_no" text, "episode_title" text, "uk_broadcast_date" text, "presenter" text, "countries_visited" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the episode title of the episode with Ben Okri as the presenter?`: ```sql
SELECT "presenter" FROM "series_3_1996" WHERE "uk_broadcast_date"='1996-09-25';
## Task Generate a SQL query to answer the following question: `Who is the presenter of the episode broadcast in the UK on 1996-09-25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_3_1996" ( "episode_no" text, "episode_title" text, "uk_broadcast_date" text, "presenter" text, "countries_visited" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the presenter of the episode broadcast in the UK on 1996-09-25?`: ```sql
SELECT "uk_broadcast_date" FROM "series_3_1996" WHERE "presenter"='ben okri';
## Task Generate a SQL query to answer the following question: `What is the UK broadcast date of the episode with Ben Okri as the presenter?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_3_1996" ( "episode_no" text, "episode_title" text, "uk_broadcast_date" text, "presenter" text, "countries_visited" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the UK broadcast date of the episode with Ben Okri as the presenter?`: ```sql
SELECT "score" FROM "february" WHERE "home"='bobcats';
## Task Generate a SQL query to answer the following question: `What was the score when the team played at the bobcats?` ### 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, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score when the team played at the bobcats?`: ```sql
SELECT "score" FROM "february" WHERE "record"='43-13';
## Task Generate a SQL query to answer the following question: `What was the score when the Spurs' record was 43-13?` ### 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, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score when the Spurs' record was 43-13?`: ```sql
SELECT "country_name" FROM "gost_7_67_94" WHERE "numeric_code"<246 AND "latin_3_letter_code"='slv';
## Task Generate a SQL query to answer the following question: `What is the country's name with a numeric code less than 246 and a Latin 3-letter code of slv?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gost_7_67_94" ( "country_name" text, "russian_name" text, "cyrillic_code" text, "latin_3_letter_code" text, "latin_2_letter_code" text, "numeric_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the country's name with a numeric code less than 246 and a Latin 3-letter code of slv?`: ```sql
SELECT "russian_name" FROM "gost_7_67_94" WHERE "latin_3_letter_code"='lbr';
## Task Generate a SQL query to answer the following question: `What is the Russian name with lbr as the Latin 3-letter code?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gost_7_67_94" ( "country_name" text, "russian_name" text, "cyrillic_code" text, "latin_3_letter_code" text, "latin_2_letter_code" text, "numeric_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Russian name with lbr as the Latin 3-letter code?`: ```sql
SELECT "country_name" FROM "gost_7_67_94" WHERE "numeric_code"<580 AND "latin_2_letter_code"='dk';
## Task Generate a SQL query to answer the following question: `What is the country name with a numeric code less than 580 and a dk Latin 2-letter code?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gost_7_67_94" ( "country_name" text, "russian_name" text, "cyrillic_code" text, "latin_3_letter_code" text, "latin_2_letter_code" text, "numeric_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the country name with a numeric code less than 580 and a dk Latin 2-letter code?`: ```sql
SELECT "cyrillic_code" FROM "gost_7_67_94" WHERE "latin_2_letter_code"='cu';
## Task Generate a SQL query to answer the following question: `What is the Cyrillic code with a cu Latin 2-letter code?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gost_7_67_94" ( "country_name" text, "russian_name" text, "cyrillic_code" text, "latin_3_letter_code" text, "latin_2_letter_code" text, "numeric_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Cyrillic code with a cu Latin 2-letter code?`: ```sql
SELECT MIN("place") FROM "dansk_melodi_grand_prix_2008" WHERE "draw">3 AND "points"=8;
## Task Generate a SQL query to answer the following question: `Name the least place for draw more than 3 and points of 8` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "dansk_melodi_grand_prix_2008" ( "draw" real, "artist" text, "song" text, "points" real, "place" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the least place for draw more than 3 and points of 8`: ```sql
SELECT "song" FROM "dansk_melodi_grand_prix_2008" WHERE "points"<16 AND "draw"<3;
## Task Generate a SQL query to answer the following question: `Name the song for points less than 16 and draw less than 3` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "dansk_melodi_grand_prix_2008" ( "draw" real, "artist" text, "song" text, "points" real, "place" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the song for points less than 16 and draw less than 3`: ```sql
SELECT "single" FROM "longest_run_at_number_one" WHERE "artist"='queen';
## Task Generate a SQL query to answer the following question: `what is the single of the queen` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "longest_run_at_number_one" ( "position" text, "artist" text, "single" text, "year" text, "weeks" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the single of the queen`: ```sql
SELECT "artist" FROM "longest_run_at_number_one" WHERE "year"='1953';
## Task Generate a SQL query to answer the following question: `what artist won in 1953` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "longest_run_at_number_one" ( "position" text, "artist" text, "single" text, "year" text, "weeks" text ); ### SQL Given the database schema, here is the SQL query that answers `what artist won in 1953`: ```sql
SELECT "year" FROM "longest_run_at_number_one" WHERE "artist"='david whitfield';
## Task Generate a SQL query to answer the following question: `what year did david whitfield win` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "longest_run_at_number_one" ( "position" text, "artist" text, "single" text, "year" text, "weeks" text ); ### SQL Given the database schema, here is the SQL query that answers `what year did david whitfield win`: ```sql
SELECT AVG("rank") FROM "garmisch_partenkirchen" WHERE "points"<274.4 AND "name"='roman koudelka';
## Task Generate a SQL query to answer the following question: `What is the average rank of Roman Koudelka, who has less than 274.4 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "garmisch_partenkirchen" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_fht_points" text, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average rank of Roman Koudelka, who has less than 274.4 points?`: ```sql
SELECT MIN("rank") FROM "garmisch_partenkirchen" WHERE "nationality"='aut' AND "1st_m">132;
## Task Generate a SQL query to answer the following question: `What is the lowest rank of the player from Aut with a 1st greater than 132?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "garmisch_partenkirchen" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_fht_points" text, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest rank of the player from Aut with a 1st greater than 132?`: ```sql
SELECT "overall_wc_points_rank" FROM "garmisch_partenkirchen" WHERE "nationality"='pol';
## Task Generate a SQL query to answer the following question: `What is the overall WC points of the player from Pol?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "garmisch_partenkirchen" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_fht_points" text, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the overall WC points of the player from Pol?`: ```sql
SELECT AVG("rank") FROM "garmisch_partenkirchen" WHERE "name"='gregor schlierenzauer' AND "1st_m">132;
## Task Generate a SQL query to answer the following question: `What is the average rank of Gregor Schlierenzauer, who had a 1st greater than 132?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "garmisch_partenkirchen" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_fht_points" text, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average rank of Gregor Schlierenzauer, who had a 1st greater than 132?`: ```sql
SELECT "winner_s_share" FROM "tournament_results" WHERE "tournament"='atlanta classic';
## Task Generate a SQL query to answer the following question: `What is the winners share ($) that has atlanta classic as the tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "winner_s_share" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the winners share ($) that has atlanta classic as the tournament?`: ```sql
SELECT "winner_s_share" FROM "tournament_results" WHERE "tournament"='u.s. open';
## Task Generate a SQL query to answer the following question: `What is the winners share ($) that has u.s. open as the tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "winner_s_share" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the winners share ($) that has u.s. open as the tournament?`: ```sql
SELECT SUM("points") FROM "regular_season" WHERE "game"<14;
## Task Generate a SQL query to answer the following question: `How many points was before game 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many points was before game 14?`: ```sql
SELECT AVG("points") FROM "regular_season" WHERE "november"=6;
## Task Generate a SQL query to answer the following question: `What is the average points on November 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average points on November 6?`: ```sql
SELECT AVG("against") FROM "torneio_rio_s_o_paulo" WHERE "difference"='2' AND "lost"=5;
## Task Generate a SQL query to answer the following question: `Which average's against score has 2 as a difference and a lost of 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); ### SQL Given the database schema, here is the SQL query that answers `Which average's against score has 2 as a difference and a lost of 5?`: ```sql
SELECT COUNT("position") FROM "torneio_rio_s_o_paulo" WHERE "difference"='- 4' AND "against"<24;
## Task Generate a SQL query to answer the following question: `How many positions had a difference of - 4 and an against of less than 24?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); ### SQL Given the database schema, here is the SQL query that answers `How many positions had a difference of - 4 and an against of less than 24?`: ```sql
SELECT MIN("lost") FROM "torneio_rio_s_o_paulo" WHERE "position">6 AND "drawn"=7 AND "points"<15;
## Task Generate a SQL query to answer the following question: `What is the smallest lost when position is larger than 6, drawn is 7, and the points stat is less than 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest lost when position is larger than 6, drawn is 7, and the points stat is less than 15?`: ```sql
SELECT MAX("played") FROM "torneio_rio_s_o_paulo" WHERE "difference"='- 8' AND "position">8;
## Task Generate a SQL query to answer the following question: `What is the largest played number when the difference is - 8 and position is more than 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest played number when the difference is - 8 and position is more than 8?`: ```sql
SELECT AVG("drawn") FROM "torneio_rio_s_o_paulo" WHERE "difference"='0' AND "against">31;
## Task Generate a SQL query to answer the following question: `What is the mean drawn when the difference is 0 and the against stat is more than 31?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the mean drawn when the difference is 0 and the against stat is more than 31?`: ```sql
SELECT "owner" FROM "winners_of_the_orchid_handicap_since_199" WHERE "winner"='meridiana';
## Task Generate a SQL query to answer the following question: `what is the winner of meridiana` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_of_the_orchid_handicap_since_199" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the winner of meridiana`: ```sql
SELECT MAX("weight") FROM "roster" WHERE "number"=13;
## Task Generate a SQL query to answer the following question: `Number of 13 that has what highest weight?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "number" real, "name" text, "position" text, "height" text, "weight" real, "class" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `Number of 13 that has what highest weight?`: ```sql
SELECT "class" FROM "roster" WHERE "weight"=220;
## Task Generate a SQL query to answer the following question: `Weight of 220 has what class?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "number" real, "name" text, "position" text, "height" text, "weight" real, "class" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `Weight of 220 has what class?`: ```sql
SELECT AVG("number") FROM "roster" WHERE "name"='byron geis' AND "weight"<195;
## Task Generate a SQL query to answer the following question: `Name of byron geis, and a Weight smaller than 195 involves what average number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "number" real, "name" text, "position" text, "height" text, "weight" real, "class" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `Name of byron geis, and a Weight smaller than 195 involves what average number?`: ```sql
SELECT "record" FROM "march" WHERE "date"='march 22';
## Task Generate a SQL query to answer the following question: `What was the record on March 22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record on March 22?`: ```sql
SELECT AVG("february") FROM "schedule_and_results" WHERE "game"=53;
## Task Generate a SQL query to answer the following question: `What day in february was game 53?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What day in february was game 53?`: ```sql
SELECT "record" FROM "schedule_and_results" WHERE "february"=23;
## Task Generate a SQL query to answer the following question: `What is the team's record on februrary 23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the team's record on februrary 23?`: ```sql
SELECT MIN("place") FROM "malta_in_the_eurovision_song_contest_200" WHERE "total"<24 AND "draw">7;
## Task Generate a SQL query to answer the following question: `Which Place is the lowest one that has a Total smaller than 24, and a Draw larger than 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "malta_in_the_eurovision_song_contest_200" ( "draw" real, "artist" text, "song" text, "jury" real, "televote" real, "total" real, "place" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Place is the lowest one that has a Total smaller than 24, and a Draw larger than 7?`: ```sql
SELECT "entrant" FROM "complete_international_formula_3000_resu" WHERE "points"<7 AND "chassis"='lola t86/50';
## Task Generate a SQL query to answer the following question: `with lola t86/50 chassis and less than 7 points what is the entrant?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_international_formula_3000_resu" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `with lola t86/50 chassis and less than 7 points what is the entrant?`: ```sql
SELECT MAX("points") FROM "complete_international_formula_3000_resu" WHERE "entrant"='first racing' AND "year">1987;
## Task Generate a SQL query to answer the following question: `after 1987 and entrant of first racing what is the highest points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_international_formula_3000_resu" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `after 1987 and entrant of first racing what is the highest points?`: ```sql
SELECT COUNT("points") FROM "complete_international_formula_3000_resu" WHERE "year">1988;
## Task Generate a SQL query to answer the following question: `with year greater than 1988 what is the total number of points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_international_formula_3000_resu" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `with year greater than 1988 what is the total number of points?`: ```sql
SELECT SUM("points") FROM "complete_international_formula_3000_resu" WHERE "entrant"='forti corse';
## Task Generate a SQL query to answer the following question: `what is the points total for forti corse?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_international_formula_3000_resu" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the points total for forti corse?`: ```sql
SELECT "parts_per_example" FROM "iupap_s_uno_proposal" WHERE "value_of_quantity"='2Γ—10 βˆ’6';
## Task Generate a SQL query to answer the following question: `What is the Parts-per example of 2Γ—10 βˆ’6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "iupap_s_uno_proposal" ( "coefficient" text, "parts_per_example" text, "uno_equiv" text, "symbol_form" text, "value_of_quantity" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Parts-per example of 2Γ—10 βˆ’6?`: ```sql
SELECT "coefficient" FROM "iupap_s_uno_proposal" WHERE "parts_per_example"='2 ppt';
## Task Generate a SQL query to answer the following question: `What is the Coefficient of 2 ppt?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "iupap_s_uno_proposal" ( "coefficient" text, "parts_per_example" text, "uno_equiv" text, "symbol_form" text, "value_of_quantity" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Coefficient of 2 ppt?`: ```sql
SELECT "format" FROM "release_history" WHERE "catalog"='865 821-1';
## Task Generate a SQL query to answer the following question: `what is the format of catalog 865 821-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the format of catalog 865 821-1?`: ```sql
SELECT "season" FROM "all_japan_university_rugby_championships" WHERE "winner"='kanto gakuin university' AND "attendance"='n/a' AND "title"='37th';
## Task Generate a SQL query to answer the following question: `What season had Kanto Gakuin University as the winner, with an attendance of n/a, and a title of 37th?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_japan_university_rugby_championships" ( "title" text, "season" text, "winner" text, "score" text, "runner_up" text, "venue" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What season had Kanto Gakuin University as the winner, with an attendance of n/a, and a title of 37th?`: ```sql
SELECT "title" FROM "all_japan_university_rugby_championships" WHERE "attendance"='n/a' AND "runner_up"='waseda' AND "season"='1995-6 details';
## Task Generate a SQL query to answer the following question: `What was the title for the game with an attendance of n/a with the runner-up being Waseda, and a season of 1995-6 details?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_japan_university_rugby_championships" ( "title" text, "season" text, "winner" text, "score" text, "runner_up" text, "venue" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the title for the game with an attendance of n/a with the runner-up being Waseda, and a season of 1995-6 details?`: ```sql
SELECT "season" FROM "all_japan_university_rugby_championships" WHERE "runner_up"='waseda' AND "title"='47th';
## Task Generate a SQL query to answer the following question: `What season has a runner-up of waseda, and a title of 47th?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_japan_university_rugby_championships" ( "title" text, "season" text, "winner" text, "score" text, "runner_up" text, "venue" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What season has a runner-up of waseda, and a title of 47th?`: ```sql
SELECT "winner" FROM "all_japan_university_rugby_championships" WHERE "runner_up"='teikyo';
## Task Generate a SQL query to answer the following question: `Who was the winner in the game that had Teikyo as the runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_japan_university_rugby_championships" ( "title" text, "season" text, "winner" text, "score" text, "runner_up" text, "venue" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the winner in the game that had Teikyo as the runner-up?`: ```sql
SELECT "winner" FROM "all_japan_university_rugby_championships" WHERE "runner_up"='waseda' AND "title"='32nd';
## Task Generate a SQL query to answer the following question: `Who was the winner in the game that had a title of 32nd, and Waseda as the runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_japan_university_rugby_championships" ( "title" text, "season" text, "winner" text, "score" text, "runner_up" text, "venue" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the winner in the game that had a title of 32nd, and Waseda as the runner-up?`: ```sql
SELECT "date" FROM "schedule" WHERE "week"=6;
## Task Generate a SQL query to answer the following question: `what is the date on week 6` ### 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, "record" text, "game_site" text, "tv_time" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the date on week 6`: ```sql
SELECT "city" FROM "main_transmitters" WHERE "erp_analog_digital"='600kw 500kw';
## Task Generate a SQL query to answer the following question: `Which City has 600kw 500kw ERP (Analog/ Digital)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_transmitters" ( "region_served" text, "city" text, "channels_analog_digital" text, "first_air_date" text, "erp_analog_digital" text, "haat_analog_digital_1" text, "transmitter_location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which City has 600kw 500kw ERP (Analog/ Digital)?`: ```sql
SELECT "region_served" FROM "main_transmitters" WHERE "haat_analog_digital_1"='1176 m 1190 m';
## Task Generate a SQL query to answer the following question: `Which Region served has of 1176 m 1190 m HAAT (Analog/ Digital) 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_transmitters" ( "region_served" text, "city" text, "channels_analog_digital" text, "first_air_date" text, "erp_analog_digital" text, "haat_analog_digital_1" text, "transmitter_location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Region served has of 1176 m 1190 m HAAT (Analog/ Digital) 1?`: ```sql
SELECT "city" FROM "main_transmitters" WHERE "erp_analog_digital"='600kw 500kw';
## Task Generate a SQL query to answer the following question: `Which City has 600kw 500kw ERP ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_transmitters" ( "region_served" text, "city" text, "channels_analog_digital" text, "first_air_date" text, "erp_analog_digital" text, "haat_analog_digital_1" text, "transmitter_location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which City has 600kw 500kw ERP ?`: ```sql
SELECT "city" FROM "main_transmitters" WHERE "erp_analog_digital"='360kw 90kw';
## Task Generate a SQL query to answer the following question: `Which City has a 360kw 90kw ERP?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_transmitters" ( "region_served" text, "city" text, "channels_analog_digital" text, "first_air_date" text, "erp_analog_digital" text, "haat_analog_digital_1" text, "transmitter_location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which City has a 360kw 90kw ERP?`: ```sql
SELECT "series" FROM "playoffs" WHERE "game">4;
## Task Generate a SQL query to answer the following question: `What was the series standing for games over 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the series standing for games over 4?`: ```sql
SELECT AVG("game") FROM "playoffs" WHERE "date"='may 20';
## Task Generate a SQL query to answer the following question: `What is the game number held on May 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the game number held on May 20?`: ```sql
SELECT "score" FROM "game_log" WHERE "record"='55-51';
## Task Generate a SQL query to answer the following question: `What was the score of the game when the Indians ended up with a record of 55-51?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the game when the Indians ended up with a record of 55-51?`: ```sql
SELECT "date" FROM "game_log" WHERE "record"='67-58';
## Task Generate a SQL query to answer the following question: `On which date did the Indians have a record of 67-58` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `On which date did the Indians have a record of 67-58`: ```sql
SELECT "work" FROM "awards_and_nominations" WHERE "result"='nominated' AND "award"='contigo award' AND "year"<2002;
## Task Generate a SQL query to answer the following question: `Which Work has a Result of nominated, and an Award of contigo award, and a Year smaller than 2002?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "award" text, "year" real, "category" text, "work" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Work has a Result of nominated, and an Award of contigo award, and a Year smaller than 2002?`: ```sql
SELECT COUNT("year") FROM "awards_and_nominations" WHERE "award"='press award';
## Task Generate a SQL query to answer the following question: `How many years have an Award of press award?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "award" text, "year" real, "category" text, "work" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years have an Award of press award?`: ```sql
SELECT "award" FROM "awards_and_nominations" WHERE "year"<2004 AND "work"='the clone' AND "result"='won' AND "category"='favourite actress';
## Task Generate a SQL query to answer the following question: `Which Award has a Year smaller than 2004, and a Work of the clone, and a Result of won, and a Category of favourite actress?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "award" text, "year" real, "category" text, "work" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Award has a Year smaller than 2004, and a Work of the clone, and a Result of won, and a Category of favourite actress?`: ```sql
SELECT MAX("year") FROM "awards_and_nominations" WHERE "work"='the clone' AND "award"='contigo award';
## Task Generate a SQL query to answer the following question: `Which Year is the highest one that has a Work of the clone, and an Award of contigo award?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "award" text, "year" real, "category" text, "work" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Year is the highest one that has a Work of the clone, and an Award of contigo award?`: ```sql
SELECT "time_elapsed" FROM "1990s" WHERE "destination"='jupiter' AND "closest_approach"='4 february 2004';
## Task Generate a SQL query to answer the following question: `With the Destination of Jupiter and the Closest approach of 4 February 2004, what is the Time elapsed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1990s" ( "spacecraft" text, "destination" text, "launched" text, "closest_approach" text, "time_elapsed" text ); ### SQL Given the database schema, here is the SQL query that answers `With the Destination of Jupiter and the Closest approach of 4 February 2004, what is the Time elapsed?`: ```sql
SELECT "time_elapsed" FROM "1990s" WHERE "launched"='15 october 1997' AND "closest_approach"='24 june 1999';
## Task Generate a SQL query to answer the following question: `What Time elapsed has both the Launched of 15 October 1997 and the Closest approach of 24 June 1999?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1990s" ( "spacecraft" text, "destination" text, "launched" text, "closest_approach" text, "time_elapsed" text ); ### SQL Given the database schema, here is the SQL query that answers `What Time elapsed has both the Launched of 15 October 1997 and the Closest approach of 24 June 1999?`: ```sql