output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "nba_draft" FROM "2007_boys_team" WHERE "school"='st. mary''s high school';
## Task Generate a SQL query to answer the following question: `Which NBA draft has a School of st. mary's high school?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text ); ### SQL Given the database schema, here is the SQL query that answers `Which NBA draft has a School of st. mary's high school?`: ```sql
SELECT "school" FROM "2007_boys_team" WHERE "player"='donte greene';
## Task Generate a SQL query to answer the following question: `Which school has a Player of donte greene?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text ); ### SQL Given the database schema, here is the SQL query that answers `Which school has a Player of donte greene?`: ```sql
SELECT MAX("points") FROM "final_16_december_2007" WHERE "r_magjistari">12;
## Task Generate a SQL query to answer the following question: `For R. Magjistari scores over 12, what is the highest number of points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_16_december_2007" ( "draw" real, "artist" text, "song" text, "rank" real, "points" real, "a_krajka" real, "gj_leka" real, "b_haxhia" real, "d_tukiqi" real, "r_magjistari" real, "gj_xhuvani" real, "a_sk_nderaj" real ); ### SQL Given the database schema, here is the SQL query that answers `For R. Magjistari scores over 12, what is the highest number of points?`: ```sql
SELECT AVG("a_krajka") FROM "final_16_december_2007" WHERE "r_magjistari"<6 AND "d_tukiqi"=6 AND "rank"<5;
## Task Generate a SQL query to answer the following question: `For R. Magjistari scores under 6, D. Tukiqi scores of 6, and ranks under 5, what is the average A. Krajka score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_16_december_2007" ( "draw" real, "artist" text, "song" text, "rank" real, "points" real, "a_krajka" real, "gj_leka" real, "b_haxhia" real, "d_tukiqi" real, "r_magjistari" real, "gj_xhuvani" real, "a_sk_nderaj" real ); ### SQL Given the database schema, here is the SQL query that answers `For R. Magjistari scores under 6, D. Tukiqi scores of 6, and ranks under 5, what is the average A. Krajka score?`: ```sql
SELECT "2006_2007_season" FROM "club_information" WHERE "club"='vitória de setúbal';
## Task Generate a SQL query to answer the following question: `Where did the Vitória de Setúbal club place in the 2006-2007 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "club_information" ( "club" text, "head_coach" text, "city" text, "stadium" text, "2006_2007_season" text ); ### SQL Given the database schema, here is the SQL query that answers `Where did the Vitória de Setúbal club place in the 2006-2007 season?`: ```sql
SELECT COUNT("td_s") FROM "running_backs" WHERE "long">6 AND "car"<4;
## Task Generate a SQL query to answer the following question: `Name the total number of TD's for long more than 6 and cars less than 4` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" real, "avg" real, "td_s" real, "long" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of TD's for long more than 6 and cars less than 4`: ```sql
SELECT SUM("long") FROM "running_backs" WHERE "yards"<197 AND "player"='matt nagy';
## Task Generate a SQL query to answer the following question: `Name the sum of Long for yards less than 197 and players of matt nagy` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" real, "avg" real, "td_s" real, "long" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the sum of Long for yards less than 197 and players of matt nagy`: ```sql
SELECT "visitor" FROM "march" WHERE "home"='tampa bay';
## Task Generate a SQL query to answer the following question: `Who was the visitor team in tampa bay?` ### 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, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the visitor team in tampa bay?`: ```sql
SELECT "home" FROM "march" WHERE "record"='32-29-8';
## Task Generate a SQL query to answer the following question: `Who had a 32-29-8 record at home?` ### 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, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had a 32-29-8 record at home?`: ```sql
SELECT "home" FROM "march" WHERE "record"='33-30-8';
## Task Generate a SQL query to answer the following question: `Who had a 33-30-8 record at home?` ### 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, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had a 33-30-8 record at home?`: ```sql
SELECT "home_team_score" FROM "round_2" WHERE "away_team"='north melbourne';
## Task Generate a SQL query to answer the following question: `What was the home teams score when North Melbourne played as the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the home teams score when North Melbourne played as the away team?`: ```sql
SELECT "away_team" FROM "round_2" WHERE "venue"='windy hill';
## Task Generate a SQL query to answer the following question: `Who was the away team at Windy Hill?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the away team at Windy Hill?`: ```sql
SELECT "venue" FROM "round_2" WHERE "home_team"='fitzroy';
## Task Generate a SQL query to answer the following question: `Where did Fitzroy play as the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Where did Fitzroy play as the home team?`: ```sql
SELECT "away_team" FROM "round_10" WHERE "home_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `Who was away team at the home game of south melbourne?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was away team at the home game of south melbourne?`: ```sql
SELECT "away_team_score" FROM "round_10" WHERE "home_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `What did the away team score when they visited south melbourne?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What did the away team score when they visited south melbourne?`: ```sql
SELECT "crowd" FROM "round_10" WHERE "away_team_score"='15.18 (108)';
## Task Generate a SQL query to answer the following question: `How many people were in the crowd when the away team scored 15.18 (108)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people were in the crowd when the away team scored 15.18 (108)?`: ```sql
SELECT "away_team" FROM "round_10" WHERE "away_team_score"='12.9 (81)';
## Task Generate a SQL query to answer the following question: `Who was the away team when they scored 12.9 (81) at the game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the away team when they scored 12.9 (81) at the game?`: ```sql
SELECT MAX("crowd") FROM "round_2" WHERE "away_team"='north melbourne';
## Task Generate a SQL query to answer the following question: `What is the highest crowd with north melbourne as away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest crowd with north melbourne as away team?`: ```sql
SELECT "away_team" FROM "round_2" WHERE "home_team_score"='17.13 (115)';
## Task Generate a SQL query to answer the following question: `Which away team has a Home team score of 17.13 (115)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which away team has a Home team score of 17.13 (115)?`: ```sql
SELECT "venue" FROM "round_2" WHERE "home_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `Which venue has a Home team of south melbourne?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which venue has a Home team of south melbourne?`: ```sql
SELECT "home_team_score" FROM "round_9" WHERE "away_team"='fitzroy';
## Task Generate a SQL query to answer the following question: `What home score has an Away team of fitzroy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What home score has an Away team of fitzroy?`: ```sql
SELECT "home_team" FROM "round_9" WHERE "venue"='corio oval';
## Task Generate a SQL query to answer the following question: `Which home team has a Venue of corio oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which home team has a Venue of corio oval?`: ```sql
SELECT "home_team" FROM "round_9" WHERE "away_team_score"='7.9 (51)';
## Task Generate a SQL query to answer the following question: `Which home team an Away team score of 7.9 (51)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which home team an Away team score of 7.9 (51)?`: ```sql
SELECT "away_team" FROM "round_9" WHERE "home_team_score"='4.4 (28)';
## Task Generate a SQL query to answer the following question: `Which away team has a Home team score of 4.4 (28)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which away team has a Home team score of 4.4 (28)?`: ```sql
SELECT "home_team" FROM "round_9" WHERE "away_team"='carlton';
## Task Generate a SQL query to answer the following question: `Which team has an Away team of carlton?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team has an Away team of carlton?`: ```sql
SELECT "date" FROM "round_9" WHERE "away_team"='richmond';
## Task Generate a SQL query to answer the following question: `Which date has an Away team of richmond?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which date has an Away team of richmond?`: ```sql
SELECT COUNT("area_km") FROM "summary" WHERE "capital"='matanzas' AND "population_2005"<670427;
## Task Generate a SQL query to answer the following question: `How many regions have a capital of matanzas and a 2005 population under 670427?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "province" text, "capital" text, "population_2005" real, "population_pct" real, "area_km" real, "area_pct" real, "density" real ); ### SQL Given the database schema, here is the SQL query that answers `How many regions have a capital of matanzas and a 2005 population under 670427?`: ```sql
SELECT AVG("area_km") FROM "summary" WHERE "capital"='camagüey' AND "population_pct">7.02;
## Task Generate a SQL query to answer the following question: `What is the average area that has a Capital of camagüey, with a Population (%) larger than 7.02?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "province" text, "capital" text, "population_2005" real, "population_pct" real, "area_km" real, "area_pct" real, "density" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average area that has a Capital of camagüey, with a Population (%) larger than 7.02?`: ```sql
SELECT "score" FROM "october" WHERE "attendance">'18,630';
## Task Generate a SQL query to answer the following question: `What was the score of the Kings game attended by more than 18,630 people?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "october" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the Kings game attended by more than 18,630 people?`: ```sql
SELECT AVG("attendance") FROM "october" WHERE "record"='1–5–0';
## Task Generate a SQL query to answer the following question: `What was the average attendance for a Kings game when they had a record of 1–5–0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "october" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the average attendance for a Kings game when they had a record of 1–5–0?`: ```sql
SELECT "team" FROM "wrestling_titles_by_team" WHERE "tournament">1 AND "regular_season"='0' AND "total"=2;
## Task Generate a SQL query to answer the following question: `What team has over 1 tournament title, 0 in the regular season, and 2 total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wrestling_titles_by_team" ( "team" text, "seasons" text, "regular_season" text, "tournament" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What team has over 1 tournament title, 0 in the regular season, and 2 total?`: ```sql
SELECT AVG("total") FROM "wrestling_titles_by_team" WHERE "tournament"=3;
## Task Generate a SQL query to answer the following question: `What is the total on average for teams with 3 tournaments?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wrestling_titles_by_team" ( "team" text, "seasons" text, "regular_season" text, "tournament" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total on average for teams with 3 tournaments?`: ```sql
SELECT MIN("grid") FROM "race" WHERE "laps">7 AND "driver"='rubens barrichello';
## Task Generate a SQL query to answer the following question: `what is the lowest grid when the laps is more than 7 and the driver is rubens barrichello?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the lowest grid when the laps is more than 7 and the driver is rubens barrichello?`: ```sql
SELECT "grid" FROM "race" WHERE "laps">0 AND "time_retired"='engine' AND "driver"='pedro de la rosa';
## Task Generate a SQL query to answer the following question: `what is the grid when the laps is more than 0, the time/retired is engine and the driver is pedro de la rosa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the grid when the laps is more than 0, the time/retired is engine and the driver is pedro de la rosa?`: ```sql
SELECT "driver" FROM "race" WHERE "grid"=13;
## Task Generate a SQL query to answer the following question: `who is the driver with the grid of 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `who is the driver with the grid of 13?`: ```sql
SELECT SUM("championships") FROM "professional_sports" WHERE "established"=1976;
## Task Generate a SQL query to answer the following question: `How many championships did the team or teams established in 1976 win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_sports" ( "club" text, "sport" text, "league" text, "venue" text, "established" real, "championships" real ); ### SQL Given the database schema, here is the SQL query that answers `How many championships did the team or teams established in 1976 win?`: ```sql
SELECT MAX("established") FROM "professional_sports" WHERE "league"='wnba' AND "championships">2;
## Task Generate a SQL query to answer the following question: `Which WNBA team that won at least 2 championships was established most recently?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_sports" ( "club" text, "sport" text, "league" text, "venue" text, "established" real, "championships" real ); ### SQL Given the database schema, here is the SQL query that answers `Which WNBA team that won at least 2 championships was established most recently?`: ```sql
SELECT "venue" FROM "professional_sports" WHERE "league"='wnba';
## Task Generate a SQL query to answer the following question: `What are the venues that host WNBA games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_sports" ( "club" text, "sport" text, "league" text, "venue" text, "established" real, "championships" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the venues that host WNBA games?`: ```sql
SELECT "bowling_style" FROM "zimbabwe" WHERE "date_of_birth"='16 march 1974';
## Task Generate a SQL query to answer the following question: `Name the bowling style of the player born 16 march 1974` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "zimbabwe" ( "player" text, "date_of_birth" text, "batting_style" text, "bowling_style" text, "first_class_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the bowling style of the player born 16 march 1974`: ```sql
SELECT "batting_style" FROM "zimbabwe" WHERE "player"='heath streak';
## Task Generate a SQL query to answer the following question: `Name the batting style for heath streak` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "zimbabwe" ( "player" text, "date_of_birth" text, "batting_style" text, "bowling_style" text, "first_class_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the batting style for heath streak`: ```sql
SELECT "name" FROM "timeline_of_tallest_buildings" WHERE "floors"=52;
## Task Generate a SQL query to answer the following question: `What is the name of a building that has 52 floors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of a building that has 52 floors?`: ```sql
SELECT COUNT("floors") FROM "timeline_of_tallest_buildings" WHERE "name"='custom house tower';
## Task Generate a SQL query to answer the following question: `How many floors does the Custom House Tower have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); ### SQL Given the database schema, here is the SQL query that answers `How many floors does the Custom House Tower have?`: ```sql
SELECT MAX("floors") FROM "timeline_of_tallest_buildings" WHERE "street_address"='800 boylston street';
## Task Generate a SQL query to answer the following question: `How many floors does the building on 800 Boylston Street have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); ### SQL Given the database schema, here is the SQL query that answers `How many floors does the building on 800 Boylston Street have?`: ```sql
SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "name"='prudential tower';
## Task Generate a SQL query to answer the following question: `What is the street address for the Prudential Tower building?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the street address for the Prudential Tower building?`: ```sql
SELECT SUM("floors") FROM "timeline_of_tallest_buildings" WHERE "street_address"='800 boylston street';
## Task Generate a SQL query to answer the following question: `There is a building at 800 Boylston Street, how many floors does it have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); ### SQL Given the database schema, here is the SQL query that answers `There is a building at 800 Boylston Street, how many floors does it have?`: ```sql
SELECT MAX("number_of_jews_wjc") FROM "metropolitan_areas_with_largest_jewish_p" WHERE "rank_wjc"=6 AND "rank_arda">8;
## Task Generate a SQL query to answer the following question: `What was the highest number of WJC Jews that had a WJC rank of 6 and a ARDA rank of more than 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "metropolitan_areas_with_largest_jewish_p" ( "rank_wjc" real, "rank_arda" real, "metro_area" text, "number_of_jews_wjc" real, "number_of_jews_asarb" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest number of WJC Jews that had a WJC rank of 6 and a ARDA rank of more than 8?`: ```sql
SELECT AVG("rank_wjc") FROM "metropolitan_areas_with_largest_jewish_p" WHERE "number_of_jews_asarb"<'261,100' AND "metro_area"='san francisco' AND "number_of_jews_wjc">'210,000';
## Task Generate a SQL query to answer the following question: `What was the WJC rank in San Francisco metro area with the ASARB Jews less than 261,100 and WJC Jews of more than 210,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "metropolitan_areas_with_largest_jewish_p" ( "rank_wjc" real, "rank_arda" real, "metro_area" text, "number_of_jews_wjc" real, "number_of_jews_asarb" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the WJC rank in San Francisco metro area with the ASARB Jews less than 261,100 and WJC Jews of more than 210,000?`: ```sql
SELECT "number_of_jews_wjc" FROM "metropolitan_areas_with_largest_jewish_p" WHERE "rank_wjc"=6;
## Task Generate a SQL query to answer the following question: `What was the number of WJC Jews with a WJC rank of 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "metropolitan_areas_with_largest_jewish_p" ( "rank_wjc" real, "rank_arda" real, "metro_area" text, "number_of_jews_wjc" real, "number_of_jews_asarb" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the number of WJC Jews with a WJC rank of 6?`: ```sql
SELECT COUNT("rank_wjc") FROM "metropolitan_areas_with_largest_jewish_p" WHERE "rank_arda"<2 AND "number_of_jews_asarb"<'2,028,200';
## Task Generate a SQL query to answer the following question: `What was the total number of WJC rank when the ARDA rank was less than 2 and ASARB Jews less than 2,028,200?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "metropolitan_areas_with_largest_jewish_p" ( "rank_wjc" real, "rank_arda" real, "metro_area" text, "number_of_jews_wjc" real, "number_of_jews_asarb" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the total number of WJC rank when the ARDA rank was less than 2 and ASARB Jews less than 2,028,200?`: ```sql
SELECT SUM("number_of_jews_wjc") FROM "metropolitan_areas_with_largest_jewish_p" WHERE "metro_area"='los angeles' AND "rank_arda">2;
## Task Generate a SQL query to answer the following question: `How many number of WJC Jews in the Los Angeles Metro Area has a ARDA rank of more than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "metropolitan_areas_with_largest_jewish_p" ( "rank_wjc" real, "rank_arda" real, "metro_area" text, "number_of_jews_wjc" real, "number_of_jews_asarb" real ); ### SQL Given the database schema, here is the SQL query that answers `How many number of WJC Jews in the Los Angeles Metro Area has a ARDA rank of more than 2?`: ```sql
SELECT "driver" FROM "classification" WHERE "laps"<19 AND "time_retired"='ignition';
## Task Generate a SQL query to answer the following question: `Who drove during the race with less than 19 laps and a time listed as ignition?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `Who drove during the race with less than 19 laps and a time listed as ignition?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "round">2 AND "event"='raging wolf 6: mayhem in the mist';
## Task Generate a SQL query to answer the following question: `What is his record for fights that went over 2 rounds in the Event of raging wolf 6: mayhem in the mist?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is his record for fights that went over 2 rounds in the Event of raging wolf 6: mayhem in the mist?`: ```sql
SELECT "venue" FROM "round_17" WHERE "home_team_score"='16.19 (115)';
## Task Generate a SQL query to answer the following question: `Where was the game played when the home team scored 16.19 (115)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the game played when the home team scored 16.19 (115)?`: ```sql
SELECT MAX("crowd") FROM "round_17" WHERE "venue"='moorabbin oval';
## Task Generate a SQL query to answer the following question: `What is the highest number of people that attended a game at Moorabbin Oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of people that attended a game at Moorabbin Oval?`: ```sql
SELECT "home_team_score" FROM "round_17" WHERE "crowd">'14,922' AND "home_team"='hawthorn';
## Task Generate a SQL query to answer the following question: `What did the home team Hawthorn score in the game attended by more than 14,922 people?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What did the home team Hawthorn score in the game attended by more than 14,922 people?`: ```sql
SELECT MIN("crowd") FROM "round_17" WHERE "away_team"='essendon';
## Task Generate a SQL query to answer the following question: `What is the least amount of people that attended a game when Essendon was the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the least amount of people that attended a game when Essendon was the away team?`: ```sql
SELECT "date" FROM "round_17" WHERE "away_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `Which date did South Melbourne play as the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which date did South Melbourne play as the away team?`: ```sql
SELECT "constructor" FROM "list_of_winners_by_year" WHERE "driver"='jackie stewart';
## Task Generate a SQL query to answer the following question: `What is the constructor for Jackie Stewart's car?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_winners_by_year" ( "year" text, "driver" text, "constructor" text, "location" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the constructor for Jackie Stewart's car?`: ```sql
SELECT "location" FROM "list_of_winners_by_year" WHERE "driver"='denny hulme';
## Task Generate a SQL query to answer the following question: `What is the location where Denny Hulme was the driver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_winners_by_year" ( "year" text, "driver" text, "constructor" text, "location" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the location where Denny Hulme was the driver?`: ```sql
SELECT "train_no" FROM "train_services" WHERE "origin"='secunderabad junction';
## Task Generate a SQL query to answer the following question: `What is number of the train that originated in Secunderabad Junction?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "train_services" ( "train_no" text, "train_name" text, "origin" text, "destination" text, "frequency" text ); ### SQL Given the database schema, here is the SQL query that answers `What is number of the train that originated in Secunderabad Junction?`: ```sql
SELECT "origin" FROM "train_services" WHERE "destination"='anand vihar terminal';
## Task Generate a SQL query to answer the following question: `From where did the train that arrived in the Anand Vihar Terminal originate?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "train_services" ( "train_no" text, "train_name" text, "origin" text, "destination" text, "frequency" text ); ### SQL Given the database schema, here is the SQL query that answers `From where did the train that arrived in the Anand Vihar Terminal originate?`: ```sql
SELECT "origin" FROM "train_services" WHERE "train_no"='15929/30';
## Task Generate a SQL query to answer the following question: `From where did Train No. 15929/30 originate?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "train_services" ( "train_no" text, "train_name" text, "origin" text, "destination" text, "frequency" text ); ### SQL Given the database schema, here is the SQL query that answers `From where did Train No. 15929/30 originate?`: ```sql
SELECT "frequency" FROM "train_services" WHERE "destination"='bangalore';
## Task Generate a SQL query to answer the following question: `What is the frequency of the train to Bangalore?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "train_services" ( "train_no" text, "train_name" text, "origin" text, "destination" text, "frequency" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the frequency of the train to Bangalore?`: ```sql
SELECT "frequency" FROM "train_services" WHERE "destination"='dibrugarh' AND "train_name"='chennai egmore dibrugarh express';
## Task Generate a SQL query to answer the following question: `What is the frequency of the Chennai Egmore Dibrugarh Express to Dibrugarh?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "train_services" ( "train_no" text, "train_name" text, "origin" text, "destination" text, "frequency" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the frequency of the Chennai Egmore Dibrugarh Express to Dibrugarh?`: ```sql
SELECT COUNT("norwegian_americans_2009") FROM "norwegian_americans_by_state" WHERE "norwegian_americans_2000"='109,744';
## Task Generate a SQL query to answer the following question: `How many Norwegian Americans have Norwegian Americans (2000) of 109,744?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "norwegian_americans_by_state" ( "state" text, "norwegian_americans_2000" real, "percent_2000" text, "norwegian_americans_2009" real, "percent_2009" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Norwegian Americans have Norwegian Americans (2000) of 109,744?`: ```sql
SELECT "state" FROM "norwegian_americans_by_state" WHERE "percent_2009"='6.2%';
## Task Generate a SQL query to answer the following question: `Which state has a Percent (2009) of 6.2%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "norwegian_americans_by_state" ( "state" text, "norwegian_americans_2000" real, "percent_2000" text, "norwegian_americans_2009" real, "percent_2009" text ); ### SQL Given the database schema, here is the SQL query that answers `Which state has a Percent (2009) of 6.2%?`: ```sql
SELECT "holding" FROM "origins_in_corporate_strategy" WHERE "component"='customers';
## Task Generate a SQL query to answer the following question: `What is the holding of the customers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "origins_in_corporate_strategy" ( "component" text, "integrated" text, "allied_related" text, "allied_unrelated" text, "holding" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the holding of the customers?`: ```sql
SELECT "allied_unrelated" FROM "origins_in_corporate_strategy" WHERE "allied_related"='common';
## Task Generate a SQL query to answer the following question: `What Allied-Unrelated is labeled as "common"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "origins_in_corporate_strategy" ( "component" text, "integrated" text, "allied_related" text, "allied_unrelated" text, "holding" text ); ### SQL Given the database schema, here is the SQL query that answers `What Allied-Unrelated is labeled as "common"?`: ```sql
SELECT "integrated" FROM "origins_in_corporate_strategy" WHERE "allied_related"='some shared';
## Task Generate a SQL query to answer the following question: `Which integrated has an allied-related of some shared?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "origins_in_corporate_strategy" ( "component" text, "integrated" text, "allied_related" text, "allied_unrelated" text, "holding" text ); ### SQL Given the database schema, here is the SQL query that answers `Which integrated has an allied-related of some shared?`: ```sql
SELECT "integrated" FROM "origins_in_corporate_strategy" WHERE "allied_related"='centralized';
## Task Generate a SQL query to answer the following question: `What integrated has an allied-related of centralized?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "origins_in_corporate_strategy" ( "component" text, "integrated" text, "allied_related" text, "allied_unrelated" text, "holding" text ); ### SQL Given the database schema, here is the SQL query that answers `What integrated has an allied-related of centralized?`: ```sql
SELECT "component" FROM "origins_in_corporate_strategy" WHERE "integrated"='one';
## Task Generate a SQL query to answer the following question: `What component has an integrated of one?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "origins_in_corporate_strategy" ( "component" text, "integrated" text, "allied_related" text, "allied_unrelated" text, "holding" text ); ### SQL Given the database schema, here is the SQL query that answers `What component has an integrated of one?`: ```sql
SELECT COUNT("candidates") FROM "electoral_results_1990_2008" WHERE "pct_of_vote"=0 AND "election"=1999 AND "seats_won">0;
## Task Generate a SQL query to answer the following question: `How many candidates had 0 percent of the vote in 1999?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "electoral_results_1990_2008" ( "election" real, "candidates" real, "seats_won" real, "votes" real, "pct_of_vote" real ); ### SQL Given the database schema, here is the SQL query that answers `How many candidates had 0 percent of the vote in 1999?`: ```sql
SELECT "score" FROM "february" WHERE "leading_scorer"='manu ginóbili (44)';
## Task Generate a SQL query to answer the following question: `What is the score of the game with Manu ginóbili (44) as the leading scorer?` ### 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 is the score of the game with Manu ginóbili (44) as the leading scorer?`: ```sql
SELECT "record" FROM "february" WHERE "date"='february 21, 2008';
## Task Generate a SQL query to answer the following question: `What is the record of the game on February 21, 2008?` ### 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 is the record of the game on February 21, 2008?`: ```sql
SELECT "home" FROM "february" WHERE "leading_scorer"='manu ginóbili (34)';
## Task Generate a SQL query to answer the following question: `Who was the home team of the game with manu ginóbili (34) as the leading scorer?` ### 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 `Who was the home team of the game with manu ginóbili (34) as the leading scorer?`: ```sql
SELECT "record" FROM "february" WHERE "date"='february 25, 2008';
## Task Generate a SQL query to answer the following question: `What is the record of the game on February 25, 2008?` ### 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 is the record of the game on February 25, 2008?`: ```sql
SELECT "type" FROM "out" WHERE "moving_to"='valenciennes';
## Task Generate a SQL query to answer the following question: `What type is shown with a moving to of valenciennes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `What type is shown with a moving to of valenciennes?`: ```sql
SELECT "transfer_window" FROM "out" WHERE "transfer_fee"='n/a' AND "moving_to"='free agent' AND "name"='joe sagar';
## Task Generate a SQL query to answer the following question: `What is the transfer window with n/a as the Transfer fee, free agent for the Moving to, and Joe Sagar as the name?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the transfer window with n/a as the Transfer fee, free agent for the Moving to, and Joe Sagar as the name?`: ```sql
SELECT "name" FROM "out" WHERE "type"='end of contract' AND "nat"='sco' AND "moving_to"='cardiff city';
## Task Generate a SQL query to answer the following question: `What is the name of the person with a type of end of contract, nat of sco, and the Moving to is cardiff city?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the person with a type of end of contract, nat of sco, and the Moving to is cardiff city?`: ```sql
SELECT "transfer_window" FROM "out" WHERE "transfer_fee"='free' AND "moving_to"='derby county';
## Task Generate a SQL query to answer the following question: `What Transfer window that has a Transfer fee of free, with a Moving to of derby county?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `What Transfer window that has a Transfer fee of free, with a Moving to of derby county?`: ```sql
SELECT MIN("game") FROM "nl_los_angeles_dodgers_4_vs_al_new_york_" WHERE "attendance"='56,505';
## Task Generate a SQL query to answer the following question: `What is the first game number that had attendance of 56,505?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nl_los_angeles_dodgers_4_vs_al_new_york_" ( "game" real, "score" text, "date" text, "location" text, "attendance" real, "time_of_game" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the first game number that had attendance of 56,505?`: ```sql
SELECT "crowd" FROM "round_21" WHERE "away_team"='footscray';
## Task Generate a SQL query to answer the following question: `What was the crowd size for the away team footscray?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_21" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the crowd size for the away team footscray?`: ```sql
SELECT "date" FROM "round_21" WHERE "away_team_score"='10.12 (72)';
## Task Generate a SQL query to answer the following question: `On what date did the away team score 10.12 (72)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_21" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date did the away team score 10.12 (72)?`: ```sql
SELECT "race_name" FROM "non_championship_race_results" WHERE "circuit"='goodwood';
## Task Generate a SQL query to answer the following question: `Which Race Name has Goodwood in the Curcuit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_championship_race_results" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Race Name has Goodwood in the Curcuit?`: ```sql
SELECT "constructor" FROM "non_championship_race_results" WHERE "winning_driver"='jim clark' AND "circuit"='syracuse';
## Task Generate a SQL query to answer the following question: `Which Constructor has the Winning Driver, Jim Clark and the Circuit, Syracuse?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_championship_race_results" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Constructor has the Winning Driver, Jim Clark and the Circuit, Syracuse?`: ```sql
SELECT "constructor" FROM "non_championship_race_results" WHERE "winning_driver"='jo siffert';
## Task Generate a SQL query to answer the following question: `Which Constructor has the Winning Driver, Jo Siffert?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_championship_race_results" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Constructor has the Winning Driver, Jo Siffert?`: ```sql
SELECT "constructor" FROM "non_championship_race_results" WHERE "circuit"='pergusa';
## Task Generate a SQL query to answer the following question: `Which Constructor has Pergusa in the Circuit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_championship_race_results" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Constructor has Pergusa in the Circuit?`: ```sql
SELECT MIN("crowd") FROM "round_1" WHERE "away_team_score"='14.19 (103)';
## Task Generate a SQL query to answer the following question: `What is the smallest crowd that attended a game where the away team scored 14.19 (103)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest crowd that attended a game where the away team scored 14.19 (103)?`: ```sql
SELECT "date" FROM "round_1" WHERE "venue"='mcg';
## Task Generate a SQL query to answer the following question: `On what date was a game played at MCG?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date was a game played at MCG?`: ```sql
SELECT AVG("total") FROM "medal_table" WHERE "gold"=2 AND "silver"<1;
## Task Generate a SQL query to answer the following question: `What is the average total medals of the team with 2 gold and less than 1 silver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average total medals of the team with 2 gold and less than 1 silver?`: ```sql
SELECT MIN("silver") FROM "medal_table" WHERE "nation"='iceland' AND "total"<87;
## Task Generate a SQL query to answer the following question: `What is the lowest amount of silver medals Iceland, who has less than 87 medals, has?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest amount of silver medals Iceland, who has less than 87 medals, has?`: ```sql
SELECT MIN("bronze") FROM "medal_table" WHERE "nation"='andorra' AND "total">6;
## Task Generate a SQL query to answer the following question: `What is the least amount of bronze Andorra, who has more than 6 total medals, has?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the least amount of bronze Andorra, who has more than 6 total medals, has?`: ```sql
SELECT MIN("bronze") FROM "medal_table" WHERE "nation"='liechtenstein' AND "gold">11;
## Task Generate a SQL query to answer the following question: `What is the lowest amount of bronze Liechtenstein, who has more than 11 gold, has?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest amount of bronze Liechtenstein, who has more than 11 gold, has?`: ```sql
SELECT AVG("silver") FROM "medal_table" WHERE "bronze"<15 AND "nation"='montenegro' AND "total">11;
## Task Generate a SQL query to answer the following question: `What is the average amount of silver medals Montenegro, who has less than 15 bronze and more than 11 total medals, has?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average amount of silver medals Montenegro, who has less than 15 bronze and more than 11 total medals, has?`: ```sql
SELECT MIN("voter_turnout") FROM "support_of_leading_parties_and_blocs_by_" WHERE "b_yu_t"=50.7 AND "ou_psd"<36.8;
## Task Generate a SQL query to answer the following question: `What is the lower turnout that has a byut of 50.7 and an ou psd smaller than 36.8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "support_of_leading_parties_and_blocs_by_" ( "region" text, "voter_registration" real, "voter_turnout" real, "b_yu_t" real, "ou_psd" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lower turnout that has a byut of 50.7 and an ou psd smaller than 36.8?`: ```sql
SELECT COUNT("voter_registration") FROM "support_of_leading_parties_and_blocs_by_" WHERE "b_yu_t"=48.2;
## Task Generate a SQL query to answer the following question: `What is the voter registration that has a BYut of 48.2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "support_of_leading_parties_and_blocs_by_" ( "region" text, "voter_registration" real, "voter_turnout" real, "b_yu_t" real, "ou_psd" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the voter registration that has a BYut of 48.2?`: ```sql
SELECT "home_team" FROM "round_16" WHERE "venue"='vfl park';
## Task Generate a SQL query to answer the following question: `Who was the home team at VFL Park?` ### 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, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the home team at VFL Park?`: ```sql
SELECT "home_team" FROM "round_16" WHERE "venue"='kardinia park';
## Task Generate a SQL query to answer the following question: `Who was the home team at Kardinia Park?` ### 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, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the home team at Kardinia Park?`: ```sql
SELECT "paper_type" FROM "2007" WHERE "denomination"='1 cent';
## Task Generate a SQL query to answer the following question: `What type of paper is the 1 cent denominations made on?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007" ( "date_of_issue" text, "denomination" text, "design" text, "paper_type" text, "first_day_cover_cancellation" text ); ### SQL Given the database schema, here is the SQL query that answers `What type of paper is the 1 cent denominations made on?`: ```sql
SELECT "paper_type" FROM "2007" WHERE "date_of_issue"='26 july 2007';
## Task Generate a SQL query to answer the following question: `What is the paper type that the one that was issued on 26 july 2007 done on?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007" ( "date_of_issue" text, "denomination" text, "design" text, "paper_type" text, "first_day_cover_cancellation" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the paper type that the one that was issued on 26 july 2007 done on?`: ```sql