output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "home" FROM "april" WHERE "date"='16 april 2008';
## Task Generate a SQL query to answer the following question: `Name the home for 16 april 2008` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "april" ( "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 `Name the home for 16 april 2008`: ```sql
SELECT "score" FROM "april" WHERE "visitor"='bucks' AND "home"='timberwolves';
## Task Generate a SQL query to answer the following question: `Name the score for bucks with timberwolves` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "april" ( "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 `Name the score for bucks with timberwolves`: ```sql
SELECT "sail" FROM "competing_yachts" WHERE "syndicate"='america 3 foundation' AND "yacht"='america 3';
## Task Generate a SQL query to answer the following question: `Which sail is in the America 3 Foundation syndicate on the America 3 yacht?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "competing_yachts" ( "sail" text, "yacht" text, "syndicate" text, "yacht_club" text, "nation" text ); ### SQL Given the database schema, here is the SQL query that answers `Which sail is in the America 3 Foundation syndicate on the America 3 yacht?`: ```sql
SELECT "syndicate" FROM "competing_yachts" WHERE "yacht"='stars & stripes';
## Task Generate a SQL query to answer the following question: `Which syndicate is associated with the stars & stripes yacht?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "competing_yachts" ( "sail" text, "yacht" text, "syndicate" text, "yacht_club" text, "nation" text ); ### SQL Given the database schema, here is the SQL query that answers `Which syndicate is associated with the stars & stripes yacht?`: ```sql
SELECT "yacht_club" FROM "competing_yachts" WHERE "syndicate"='america 3 foundation' AND "yacht"='america 3';
## Task Generate a SQL query to answer the following question: `Which Yacht Club is part of the America 3 Foundation syndicate on the America 3 yacht?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "competing_yachts" ( "sail" text, "yacht" text, "syndicate" text, "yacht_club" text, "nation" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Yacht Club is part of the America 3 Foundation syndicate on the America 3 yacht?`: ```sql
SELECT "nation" FROM "competing_yachts" WHERE "syndicate"='america 3 foundation' AND "yacht"='jayhawk';
## Task Generate a SQL query to answer the following question: `Which nation has the America 3 Foundation syndicate and the jayhawk yacht?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "competing_yachts" ( "sail" text, "yacht" text, "syndicate" text, "yacht_club" text, "nation" text ); ### SQL Given the database schema, here is the SQL query that answers `Which nation has the America 3 Foundation syndicate and the jayhawk yacht?`: ```sql
SELECT "nation" FROM "competing_yachts" WHERE "sail"='usa-18';
## Task Generate a SQL query to answer the following question: `Which Nation has the USA-18 sail?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "competing_yachts" ( "sail" text, "yacht" text, "syndicate" text, "yacht_club" text, "nation" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Nation has the USA-18 sail?`: ```sql
SELECT "date" FROM "round_1" WHERE "home_team_score"='4.12 (36)';
## Task Generate a SQL query to answer the following question: `When did a home team score 4.12 (36)?` ### 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 `When did a home team score 4.12 (36)?`: ```sql
SELECT COUNT("crowd") FROM "round_1" WHERE "away_team"='collingwood';
## Task Generate a SQL query to answer the following question: `How big was the crowd when collingwood visited?` ### 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 `How big was the crowd when collingwood visited?`: ```sql
SELECT "away_team" FROM "round_1" WHERE "venue"='moorabbin oval';
## Task Generate a SQL query to answer the following question: `What away team is based in moorabbin oval?` ### 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 away team is based in moorabbin oval?`: ```sql
SELECT "date" FROM "most_catches_in_a_match" WHERE "player"='af giles';
## Task Generate a SQL query to answer the following question: `What date did af giles play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_catches_in_a_match" ( "catches" text, "player" text, "versus" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What date did af giles play?`: ```sql
SELECT "catches" FROM "most_catches_in_a_match" WHERE "player"='hh dippenaar';
## Task Generate a SQL query to answer the following question: `How many catches does hh dippenaar have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_catches_in_a_match" ( "catches" text, "player" text, "versus" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many catches does hh dippenaar have?`: ```sql
SELECT "player" FROM "most_catches_in_a_match" WHERE "date"='12-02-2003';
## Task Generate a SQL query to answer the following question: `What player has a date of 12-02-2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_catches_in_a_match" ( "catches" text, "player" text, "versus" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What player has a date of 12-02-2003?`: ```sql
SELECT "player" FROM "most_catches_in_a_match" WHERE "versus"='sri lanka';
## Task Generate a SQL query to answer the following question: `Who had a versus of sri lanka?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_catches_in_a_match" ( "catches" text, "player" text, "versus" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had a versus of sri lanka?`: ```sql
SELECT "player" FROM "most_catches_in_a_match" WHERE "date"='19-02-2003';
## Task Generate a SQL query to answer the following question: `Who had a date of 19-02-2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_catches_in_a_match" ( "catches" text, "player" text, "versus" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had a date of 19-02-2003?`: ```sql
SELECT "date" FROM "most_catches_in_a_match" WHERE "versus"='source: cricinfo.com';
## Task Generate a SQL query to answer the following question: `What date had a versus of source: cricinfo.com?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_catches_in_a_match" ( "catches" text, "player" text, "versus" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What date had a versus of source: cricinfo.com?`: ```sql
SELECT "away_team" FROM "round_5" WHERE "home_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `When south Melbourne was the home team, what was the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "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 `When south Melbourne was the home team, what was the away team?`: ```sql
SELECT MIN("crowd") FROM "round_5" WHERE "away_team"='st kilda';
## Task Generate a SQL query to answer the following question: `What was the smallest crowd size for away team st kilda?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "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 smallest crowd size for away team st kilda?`: ```sql
SELECT "score" FROM "march" WHERE "visitor"='milwaukee';
## Task Generate a SQL query to answer the following question: `What was the score of the game against Milwaukee?` ### 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, "leading_scorer" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the game against Milwaukee?`: ```sql
SELECT "winner" FROM "2003" WHERE "third_place"='yannick noah';
## Task Generate a SQL query to answer the following question: `Was the third place winner Yannick Noah?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2003" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); ### SQL Given the database schema, here is the SQL query that answers `Was the third place winner Yannick Noah?`: ```sql
SELECT "away_team_score" FROM "round_5" WHERE "home_team"='essendon';
## Task Generate a SQL query to answer the following question: `What was the away team score when the home team essendon was playing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "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 away team score when the home team essendon was playing?`: ```sql
SELECT "venue" FROM "round_5" WHERE "home_team_score"='15.15 (105)';
## Task Generate a SQL query to answer the following question: `The home team scored 15.15 (105) at what venue?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "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 `The home team scored 15.15 (105) at what venue?`: ```sql
SELECT "away_team" FROM "round_5" WHERE "away_team_score"='16.12 (108)';
## Task Generate a SQL query to answer the following question: `Which away team scored 16.12 (108)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "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 scored 16.12 (108)?`: ```sql
SELECT "away_team_score" FROM "round_5" WHERE "home_team_score"='16.26 (122)';
## Task Generate a SQL query to answer the following question: `When the home team scored 16.26 (122) what was the opposing score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "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 `When the home team scored 16.26 (122) what was the opposing score?`: ```sql
SELECT "home_team" FROM "round_5" WHERE "home_team_score"='13.20 (98)';
## Task Generate a SQL query to answer the following question: `Which home team scored 13.20 (98)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "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 home team scored 13.20 (98)?`: ```sql
SELECT "record_set" FROM "list_of_superlative_academy_award_winner" WHERE "superlative"='youngest nominee';
## Task Generate a SQL query to answer the following question: `Who set the record for youngest nominee?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_superlative_academy_award_winner" ( "superlative" text, "actress" text, "record_set" text, "year" real, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Who set the record for youngest nominee?`: ```sql
SELECT "record_set" FROM "list_of_superlative_academy_award_winner" WHERE "year">2011 AND "superlative"='youngest nominee';
## Task Generate a SQL query to answer the following question: `After the year 2011, who was the youngest nominee?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_superlative_academy_award_winner" ( "superlative" text, "actress" text, "record_set" text, "year" real, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `After the year 2011, who was the youngest nominee?`: ```sql
SELECT MIN("year") FROM "list_of_superlative_academy_award_winner" WHERE "actress"='quvenzhané wallis';
## Task Generate a SQL query to answer the following question: `When did Quvenzhané Wallis first win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_superlative_academy_award_winner" ( "superlative" text, "actress" text, "record_set" text, "year" real, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `When did Quvenzhané Wallis first win?`: ```sql
SELECT MAX("year") FROM "list_of_superlative_academy_award_winner" WHERE "actress"='katharine hepburn';
## Task Generate a SQL query to answer the following question: `When was the last year when Katharine Hepburn won?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_superlative_academy_award_winner" ( "superlative" text, "actress" text, "record_set" text, "year" real, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the last year when Katharine Hepburn won?`: ```sql
SELECT "winner" FROM "winners" WHERE "year"='2003';
## Task Generate a SQL query to answer the following question: `who was the winner in 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" text, "venue" text, "winner" text, "country" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `who was the winner in 2003?`: ```sql
SELECT "venue" FROM "winners" WHERE "winner"='marie-laure taya';
## Task Generate a SQL query to answer the following question: `where did marie-laure taya win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" text, "venue" text, "winner" text, "country" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `where did marie-laure taya win?`: ```sql
SELECT "venue" FROM "winners" WHERE "score"='285';
## Task Generate a SQL query to answer the following question: `what venue saw a score of 285?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" text, "venue" text, "winner" text, "country" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `what venue saw a score of 285?`: ```sql
SELECT MAX("laps") FROM "race" WHERE "time_retired"='+ 2 laps' AND "grid"=13;
## Task Generate a SQL query to answer the following question: `What is the largest laps for Time/Retired of + 2 laps, and a 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 `What is the largest laps for Time/Retired of + 2 laps, and a Grid of 13?`: ```sql
SELECT "constructor" FROM "race" WHERE "laps">0 AND "grid"=5;
## Task Generate a SQL query to answer the following question: `What company constructed the car with more than 0 laps and shows 5 for grid?` ### 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 company constructed the car with more than 0 laps and shows 5 for grid?`: ```sql
SELECT SUM("laps") FROM "race" WHERE "driver"='derek warwick';
## Task Generate a SQL query to answer the following question: `What is the sum of laps for Derek Warwick?` ### 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 sum of laps for Derek Warwick?`: ```sql
SELECT "years_runner_up" FROM "results_by_club" WHERE "runners_up">1 AND "club"='birmingham city';
## Task Generate a SQL query to answer the following question: `What years runner-up is Birmingham city, with over 1 runners-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_by_club" ( "club" text, "wins" real, "runners_up" real, "years_won" text, "years_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What years runner-up is Birmingham city, with over 1 runners-up?`: ```sql
SELECT "home_team_score" FROM "round_8" WHERE "away_team"='st kilda';
## Task Generate a SQL query to answer the following question: `Which Home team score has an Away team of st kilda?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_8" ( "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 Home team score has an Away team of st kilda?`: ```sql
SELECT "home_team" FROM "round_8" WHERE "venue"='victoria park';
## Task Generate a SQL query to answer the following question: `Which Home team has a Venue of victoria park?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_8" ( "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 Home team has a Venue of victoria park?`: ```sql
SELECT "away_team" FROM "round_8" WHERE "away_team_score"='12.19 (91)';
## Task Generate a SQL query to answer the following question: `Which Away team has an Away team score of 12.19 (91)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_8" ( "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 an Away team score of 12.19 (91)?`: ```sql
SELECT "home_team" FROM "round_8" WHERE "away_team_score"='12.19 (91)';
## Task Generate a SQL query to answer the following question: `Which Home team has an Away team score of 12.19 (91)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_8" ( "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 Home team has an Away team score of 12.19 (91)?`: ```sql
SELECT "player" FROM "d" WHERE "position"='center' AND "school_club_team"='washington state';
## Task Generate a SQL query to answer the following question: `Who was the center from Washington State?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "d" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the center from Washington State?`: ```sql
SELECT "school_club_team" FROM "d" WHERE "player"='paul dawkins';
## Task Generate a SQL query to answer the following question: `What school did Paul Dawkins play for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "d" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What school did Paul Dawkins play for?`: ```sql
SELECT "place" FROM "notable_organs" WHERE "building"='victoria hall';
## Task Generate a SQL query to answer the following question: `Name the place with building of victoria hall` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notable_organs" ( "date" real, "country" text, "place" text, "building" text, "size" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the place with building of victoria hall`: ```sql
SELECT MIN("date") FROM "notable_organs" WHERE "building"='victoria hall';
## Task Generate a SQL query to answer the following question: `Name the least date for the place which has a building of victoria hall` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notable_organs" ( "date" real, "country" text, "place" text, "building" text, "size" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the least date for the place which has a building of victoria hall`: ```sql
SELECT "size" FROM "notable_organs" WHERE "date">2000;
## Task Generate a SQL query to answer the following question: `Name the size which is past 2000` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notable_organs" ( "date" real, "country" text, "place" text, "building" text, "size" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the size which is past 2000`: ```sql
SELECT "country" FROM "notable_organs" WHERE "place"='mänttä';
## Task Generate a SQL query to answer the following question: `Name the country that has mänttä` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notable_organs" ( "date" real, "country" text, "place" text, "building" text, "size" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the country that has mänttä`: ```sql
SELECT "round" FROM "1997_draft_picks" WHERE "player"='nick gillis';
## Task Generate a SQL query to answer the following question: `What round was Nick Gillis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1997_draft_picks" ( "round" real, "overall" real, "player" text, "nationality" text, "club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What round was Nick Gillis?`: ```sql
SELECT "distance_km" FROM "station_list" WHERE "station"='funao';
## Task Generate a SQL query to answer the following question: `What is the distance to funao?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "station_list" ( "station" text, "japanese" text, "distance_km" real, "rapid" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the distance to funao?`: ```sql
SELECT "station" FROM "station_list" WHERE "rapid"='↑' AND "distance_km">3.4 AND "japanese"='下鴨生';
## Task Generate a SQL query to answer the following question: `What station has a Rapid of ↑, is 3.4 km away, and has a Japanese title of 下鴨生?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "station_list" ( "station" text, "japanese" text, "distance_km" real, "rapid" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What station has a Rapid of ↑, is 3.4 km away, and has a Japanese title of 下鴨生?`: ```sql
SELECT "location" FROM "station_list" WHERE "distance_km"<7.1 AND "rapid"='●';
## Task Generate a SQL query to answer the following question: `What location is less than 7.1 km away, and has a Rapid of ●?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "station_list" ( "station" text, "japanese" text, "distance_km" real, "rapid" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What location is less than 7.1 km away, and has a Rapid of ●?`: ```sql
SELECT "father" FROM "queens_of_bohemia" WHERE "spouse"='ottokar ii' AND "birth"='1204';
## Task Generate a SQL query to answer the following question: `What is the name of the father who was born in 1204 and married ottokar ii?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "queens_of_bohemia" ( "father" text, "birth" text, "marriage" text, "became_queen" text, "ceased_to_be_queen" text, "death" text, "spouse" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the father who was born in 1204 and married ottokar ii?`: ```sql
SELECT "birth" FROM "queens_of_bohemia" WHERE "ceased_to_be_queen"='18 jun 1297';
## Task Generate a SQL query to answer the following question: `What is the birth date of the woman who ceased to be Queen on 18 Jun 1297?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "queens_of_bohemia" ( "father" text, "birth" text, "marriage" text, "became_queen" text, "ceased_to_be_queen" text, "death" text, "spouse" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the birth date of the woman who ceased to be Queen on 18 Jun 1297?`: ```sql
SELECT "spouse" FROM "queens_of_bohemia" WHERE "father"='leopold vi, duke of austria';
## Task Generate a SQL query to answer the following question: `Leopold VI, Duke of Austria is the father-in-law of which person?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "queens_of_bohemia" ( "father" text, "birth" text, "marriage" text, "became_queen" text, "ceased_to_be_queen" text, "death" text, "spouse" text ); ### SQL Given the database schema, here is the SQL query that answers `Leopold VI, Duke of Austria is the father-in-law of which person?`: ```sql
SELECT "birth" FROM "queens_of_bohemia" WHERE "death"='18 october 1335';
## Task Generate a SQL query to answer the following question: `What is the birth date of the person who died on 18 October 1335?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "queens_of_bohemia" ( "father" text, "birth" text, "marriage" text, "became_queen" text, "ceased_to_be_queen" text, "death" text, "spouse" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the birth date of the person who died on 18 October 1335?`: ```sql
SELECT "marriage" FROM "queens_of_bohemia" WHERE "death"='6 dec 1240';
## Task Generate a SQL query to answer the following question: `When did the person who died on 6 Dec 1240 get married?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "queens_of_bohemia" ( "father" text, "birth" text, "marriage" text, "became_queen" text, "ceased_to_be_queen" text, "death" text, "spouse" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the person who died on 6 Dec 1240 get married?`: ```sql
SELECT "time_retired" FROM "250cc_classification" WHERE "grid"<19 AND "manufacturer"='aprilia' AND "laps"<21;
## Task Generate a SQL query to answer the following question: `What time/retired for a grid less than 19, under 21 laps, and made by aprilia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What time/retired for a grid less than 19, under 21 laps, and made by aprilia?`: ```sql
SELECT SUM("grid") FROM "250cc_classification" WHERE "rider"='dirk heidolf';
## Task Generate a SQL query to answer the following question: `What is the grid for dirk heidolf?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the grid for dirk heidolf?`: ```sql
SELECT "away_team" FROM "round_11" WHERE "venue"='victoria park';
## Task Generate a SQL query to answer the following question: `What away team plays at Victoria Park?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_11" ( "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 away team plays at Victoria Park?`: ```sql
SELECT SUM("caps") FROM "2007_rugby_world_cup_squads" WHERE "player"='stephen hoiles';
## Task Generate a SQL query to answer the following question: `How many caps does stephen hoiles have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text ); ### SQL Given the database schema, here is the SQL query that answers `How many caps does stephen hoiles have?`: ```sql
SELECT "date" FROM "round_20" WHERE "home_team"='st kilda';
## Task Generate a SQL query to answer the following question: `Which Date has a Home team of st kilda?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_20" ( "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 has a Home team of st kilda?`: ```sql
SELECT "away_team" FROM "round_20" WHERE "away_team_score"='13.22 (100)';
## Task Generate a SQL query to answer the following question: `Which Away team has an Away team score of 13.22 (100)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_20" ( "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 an Away team score of 13.22 (100)?`: ```sql
SELECT "venue" FROM "round_20" WHERE "away_team"='footscray';
## Task Generate a SQL query to answer the following question: `Which Venue has an Away team of footscray?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_20" ( "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 an Away team of footscray?`: ```sql
SELECT "crowd" FROM "round_20" WHERE "home_team"='geelong';
## Task Generate a SQL query to answer the following question: `Which Crowd has a Home team of geelong?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_20" ( "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 Crowd has a Home team of geelong?`: ```sql
SELECT MAX("silver") FROM "medal_table" WHERE "total"=3 AND "bronze"<1;
## Task Generate a SQL query to answer the following question: `What is the most silver medals a team with 3 total medals and less than 1 bronze has?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the most silver medals a team with 3 total medals and less than 1 bronze has?`: ```sql
SELECT MIN("silver") FROM "medal_table" WHERE "gold"<0;
## Task Generate a SQL query to answer the following question: `What is the least amount of silver medals a team with less than 0 gold medals has?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the least amount of silver medals a team with less than 0 gold medals has?`: ```sql
SELECT MAX("bronze") FROM "medal_table" WHERE "silver">2;
## Task Generate a SQL query to answer the following question: `What is the most bronze a team with more than 2 silvers has?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the most bronze a team with more than 2 silvers has?`: ```sql
SELECT SUM("bronze") FROM "medal_table" WHERE "gold"=1 AND "silver">3;
## Task Generate a SQL query to answer the following question: `What is the total amount of bronze medals a team with 1 gold and more than 3 silver medals has?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total amount of bronze medals a team with 1 gold and more than 3 silver medals has?`: ```sql
SELECT AVG("draw") FROM "melodifestivalen_1999" WHERE "points"=59;
## Task Generate a SQL query to answer the following question: `What is the draw number that has 59 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "melodifestivalen_1999" ( "draw" real, "artist" text, "song" text, "points" real, "place" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the draw number that has 59 points?`: ```sql
SELECT "place" FROM "melodifestivalen_1999" WHERE "artist"='roger pontare';
## Task Generate a SQL query to answer the following question: `What place for roger pontare?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "melodifestivalen_1999" ( "draw" real, "artist" text, "song" text, "points" real, "place" text ); ### SQL Given the database schema, here is the SQL query that answers `What place for roger pontare?`: ```sql
SELECT "song" FROM "melodifestivalen_1999" WHERE "draw"<2;
## Task Generate a SQL query to answer the following question: `What song has draw number less than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "melodifestivalen_1999" ( "draw" real, "artist" text, "song" text, "points" real, "place" text ); ### SQL Given the database schema, here is the SQL query that answers `What song has draw number less than 2?`: ```sql
SELECT COUNT("crowd") FROM "round_14" WHERE "home_team"='essendon';
## Task Generate a SQL query to answer the following question: `What was the attendance when Essendon played as the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_14" ( "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 attendance when Essendon played as the home team?`: ```sql
SELECT "home_team" FROM "round_14" WHERE "venue"='windy hill';
## Task Generate a SQL query to answer the following question: `Who played the home team at Windy Hill?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_14" ( "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 played the home team at Windy Hill?`: ```sql
SELECT "date" FROM "game_log" WHERE "decision"='wall';
## Task Generate a SQL query to answer the following question: `What was the date of the game that had a decision of wall?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of the game that had a decision of wall?`: ```sql
SELECT "circuit" FROM "season_review" WHERE "pole_position"='jack brabham' AND "fastest_lap"='graham hill';
## Task Generate a SQL query to answer the following question: `What is the name of the circuit when Jack Brabham is in the pole position and Graham Hill has the fastest lap?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the circuit when Jack Brabham is in the pole position and Graham Hill has the fastest lap?`: ```sql
SELECT "race" FROM "season_review" WHERE "circuit"='monaco';
## Task Generate a SQL query to answer the following question: `What race contains the Monaco circuit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What race contains the Monaco circuit?`: ```sql
SELECT "date" FROM "season_review" WHERE "pole_position"='jack brabham' AND "circuit"='spa-francorchamps';
## Task Generate a SQL query to answer the following question: `What is the date of the race when Jack Brabham is in the pole position and the circuit is Spa-Francorchamps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the race when Jack Brabham is in the pole position and the circuit is Spa-Francorchamps?`: ```sql
SELECT "circuit" FROM "season_review" WHERE "fastest_lap"='phil hill';
## Task Generate a SQL query to answer the following question: `What is the name of the circuit when Phil Hill has the fastest lap?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the circuit when Phil Hill has the fastest lap?`: ```sql
SELECT SUM("reg_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='peter andersson' AND "pick_num"<143;
## Task Generate a SQL query to answer the following question: `What is the sum of every REG GP that Peter Andersson played as a pick# less than 143?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of every REG GP that Peter Andersson played as a pick# less than 143?`: ```sql
SELECT COUNT("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='anton rodin' AND "reg_gp"<0;
## Task Generate a SQL query to answer the following question: `What is the total of PI GP played by Anton Rodin with a Reg GP less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total of PI GP played by Anton Rodin with a Reg GP less than 0?`: ```sql
SELECT COUNT("pick_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='anton rodin' AND "reg_gp">0;
## Task Generate a SQL query to answer the following question: `What is the total pick# played by Anton Rodin with a Reg GP over 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total pick# played by Anton Rodin with a Reg GP over 0?`: ```sql
SELECT MIN("grid") FROM "classification" WHERE "laps">67 AND "driver"='stefan bellof';
## Task Generate a SQL query to answer the following question: `What is the lowest grid that has over 67 laps with stefan bellof driving?` ### 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 `What is the lowest grid that has over 67 laps with stefan bellof driving?`: ```sql
SELECT SUM("laps") FROM "classification" WHERE "grid"<14 AND "time_retired"='out of fuel';
## Task Generate a SQL query to answer the following question: `How many laps have a grid under 14 and a time/retired of out of fuel?` ### 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 `How many laps have a grid under 14 and a time/retired of out of fuel?`: ```sql
SELECT "driver" FROM "classification" WHERE "grid"<11 AND "constructor"='renault' AND "laps">23;
## Task Generate a SQL query to answer the following question: `Who drove the renault that went over 23 laps and had a grid under 11?` ### 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 the renault that went over 23 laps and had a grid under 11?`: ```sql
SELECT AVG("ngc_number") FROM "5901_6000" WHERE "apparent_magnitude">14.2;
## Task Generate a SQL query to answer the following question: `What is the average NGC number that has a Apparent magnitude greater than 14.2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "5901_6000" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average NGC number that has a Apparent magnitude greater than 14.2?`: ```sql
SELECT MAX("ngc_number") FROM "5901_6000" WHERE "declination_j2000"='°04′58″' AND "apparent_magnitude">7.3;
## Task Generate a SQL query to answer the following question: `What is the highest NGC number that has a Declination ( J2000 ) of °04′58″ and a Apparent magnitude larger than 7.3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "5901_6000" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest NGC number that has a Declination ( J2000 ) of °04′58″ and a Apparent magnitude larger than 7.3?`: ```sql
SELECT "constellation" FROM "5901_6000" WHERE "object_type"='globular cluster' AND "ngc_number"=5986;
## Task Generate a SQL query to answer the following question: `What Constellation has a Object type of globular cluster and a NGC number of 5986?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "5901_6000" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real ); ### SQL Given the database schema, here is the SQL query that answers `What Constellation has a Object type of globular cluster and a NGC number of 5986?`: ```sql
SELECT AVG("bronze") FROM "medal_table" WHERE "points"<5 AND "gold"<0;
## Task Generate a SQL query to answer the following question: `For clubs that have 0 gold and less than 5 points, what is the average amount of bronze medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "club" text, "gold" real, "big_silver" real, "small_silver" real, "bronze" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `For clubs that have 0 gold and less than 5 points, what is the average amount of bronze medals?`: ```sql
SELECT AVG("points") FROM "medal_table" WHERE "small_silver">9 AND "club"='aik' AND "bronze">8;
## Task Generate a SQL query to answer the following question: `Club aik had over 9 small silver medals and more than 8 bronze medals, how many total points did they have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "club" text, "gold" real, "big_silver" real, "small_silver" real, "bronze" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Club aik had over 9 small silver medals and more than 8 bronze medals, how many total points did they have?`: ```sql
SELECT COUNT("points") FROM "medal_table" WHERE "club"='landskrona bois' AND "rank"<18;
## Task Generate a SQL query to answer the following question: `How many points did landskrona bois get when they were ranked below 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "club" text, "gold" real, "big_silver" real, "small_silver" real, "bronze" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many points did landskrona bois get when they were ranked below 18?`: ```sql
SELECT "opponent" FROM "game_log" WHERE "game"=5;
## Task Generate a SQL query to answer the following question: `Who was the opponent for game 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent for game 5?`: ```sql
SELECT "team" FROM "other_picks" WHERE "pick">30 AND "position"='c' AND "round">4;
## Task Generate a SQL query to answer the following question: `Name the team for pick more than 30 and position of c with round more than 4` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_picks" ( "round" real, "pick" real, "player" text, "position" text, "nationality" text, "team" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the team for pick more than 30 and position of c with round more than 4`: ```sql
SELECT "number_of_decimal_digits" FROM "internal_representation" WHERE "total_bits">32 AND "exponent"<15;
## Task Generate a SQL query to answer the following question: `What's the number of decimal digits when the total bits is more than 32 and the exponent is less than 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "internal_representation" ( "type" text, "sign" real, "exponent" real, "significand" real, "total_bits" real, "exponent_bias" real, "bits_precision" real, "number_of_decimal_digits" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the number of decimal digits when the total bits is more than 32 and the exponent is less than 15?`: ```sql
SELECT COUNT("significand") FROM "internal_representation" WHERE "number_of_decimal_digits"='~34.0' AND "total_bits">128;
## Task Generate a SQL query to answer the following question: `What's the total number of signicand with ~34.0 decimal digits and more than 128 total bits?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "internal_representation" ( "type" text, "sign" real, "exponent" real, "significand" real, "total_bits" real, "exponent_bias" real, "bits_precision" real, "number_of_decimal_digits" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the total number of signicand with ~34.0 decimal digits and more than 128 total bits?`: ```sql
SELECT SUM("significand") FROM "internal_representation" WHERE "number_of_decimal_digits"='~34.0' AND "exponent_bias">16383;
## Task Generate a SQL query to answer the following question: `What's the sum of significand with ~34.0 decimal digits and an exponent bias larger than 16383?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "internal_representation" ( "type" text, "sign" real, "exponent" real, "significand" real, "total_bits" real, "exponent_bias" real, "bits_precision" real, "number_of_decimal_digits" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the sum of significand with ~34.0 decimal digits and an exponent bias larger than 16383?`: ```sql
SELECT SUM("sign") FROM "internal_representation" WHERE "exponent_bias"<1023 AND "number_of_decimal_digits"='~3.3' AND "bits_precision"<11;
## Task Generate a SQL query to answer the following question: `What's the sum of sign with an exponent bias less than 1023, ~3.3 decimal digits, and less than 11 bits precision?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "internal_representation" ( "type" text, "sign" real, "exponent" real, "significand" real, "total_bits" real, "exponent_bias" real, "bits_precision" real, "number_of_decimal_digits" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the sum of sign with an exponent bias less than 1023, ~3.3 decimal digits, and less than 11 bits precision?`: ```sql
SELECT SUM("sign") FROM "internal_representation" WHERE "bits_precision">53 AND "type"='double extended (80-bit)' AND "total_bits">80;
## Task Generate a SQL query to answer the following question: `What's the sum of sign with more than 53 bits precision, double extended (80-bit) type, and more than 80 total bits?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "internal_representation" ( "type" text, "sign" real, "exponent" real, "significand" real, "total_bits" real, "exponent_bias" real, "bits_precision" real, "number_of_decimal_digits" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the sum of sign with more than 53 bits precision, double extended (80-bit) type, and more than 80 total bits?`: ```sql
SELECT MIN("bits_precision") FROM "internal_representation" WHERE "total_bits"<16;
## Task Generate a SQL query to answer the following question: `What's the lowest bits precision when the total bits are less than 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "internal_representation" ( "type" text, "sign" real, "exponent" real, "significand" real, "total_bits" real, "exponent_bias" real, "bits_precision" real, "number_of_decimal_digits" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the lowest bits precision when the total bits are less than 16?`: ```sql
SELECT SUM("years_played") FROM "player_win_loss_record" WHERE "singles_win_loss"='4-9' AND "first_year_played"<1999;
## Task Generate a SQL query to answer the following question: `How many years did the team that has a Singles win-Loss of 4-9 and first played before 1999?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_win_loss_record" ( "player" text, "total_win_loss" text, "singles_win_loss" text, "doubles_win_loss" text, "no_of_ties" real, "first_year_played" real, "years_played" real ); ### SQL Given the database schema, here is the SQL query that answers `How many years did the team that has a Singles win-Loss of 4-9 and first played before 1999?`: ```sql
SELECT MAX("game") FROM "schedule_and_results" WHERE "record"='12-8-1';
## Task Generate a SQL query to answer the following question: `What is the highest game number with a record of 12-8-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "november" real, "opponent" text, "score" text, "decision" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest game number with a record of 12-8-1?`: ```sql
SELECT "record" FROM "schedule_and_results" WHERE "decision"='valiquette' AND "november"=23;
## Task Generate a SQL query to answer the following question: `What is the record when the decision was valiquette on November 23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "november" real, "opponent" text, "score" text, "decision" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the record when the decision was valiquette on November 23?`: ```sql