output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "home_team_score" FROM "round_8" WHERE "home_team"='essendon';
## Task Generate a SQL query to answer the following question: `How many points did the home team Essendon score?` ### 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 `How many points did the home team Essendon score?`: ```sql
SELECT "character" FROM "cast" WHERE "episodes">22;
## Task Generate a SQL query to answer the following question: `What character is in over 22 episodes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cast" ( "actor" text, "character" text, "duration" text, "no_of_series" text, "episodes" real ); ### SQL Given the database schema, here is the SQL query that answers `What character is in over 22 episodes?`: ```sql
SELECT MIN("episodes") FROM "cast" WHERE "actor"='anabel barnston';
## Task Generate a SQL query to answer the following question: `What is the lowest number of episodes for anabel barnston?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cast" ( "actor" text, "character" text, "duration" text, "no_of_series" text, "episodes" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest number of episodes for anabel barnston?`: ```sql
SELECT "character" FROM "cast" WHERE "episodes"<23 AND "actor"='dani harmer';
## Task Generate a SQL query to answer the following question: `What character is played by dani harmer for under 23 episodes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cast" ( "actor" text, "character" text, "duration" text, "no_of_series" text, "episodes" real ); ### SQL Given the database schema, here is the SQL query that answers `What character is played by dani harmer for under 23 episodes?`: ```sql
SELECT COUNT("episodes") FROM "cast" WHERE "duration"='3';
## Task Generate a SQL query to answer the following question: `How many episodes have a duration of 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cast" ( "actor" text, "character" text, "duration" text, "no_of_series" text, "episodes" real ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes have a duration of 3?`: ```sql
SELECT "date" FROM "round_14" WHERE "home_team_score"='22.11 (143)';
## Task Generate a SQL query to answer the following question: `On what date did the home team score 22.11 (143)?` ### 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 `On what date did the home team score 22.11 (143)?`: ```sql
SELECT "home_team" FROM "round_14" WHERE "away_team_score"='18.16 (124)';
## Task Generate a SQL query to answer the following question: `What is the name of the home team whose opponent scored 18.16 (124)?` ### 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 is the name of the home team whose opponent scored 18.16 (124)?`: ```sql
SELECT MIN("crowd") FROM "round_14" WHERE "away_team_score"='18.16 (124)';
## Task Generate a SQL query to answer the following question: `What is the size of the crowd for the game where the away team scored 18.16 (124)?` ### 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 is the size of the crowd for the game where the away team scored 18.16 (124)?`: ```sql
SELECT "away_team" FROM "round_14" WHERE "home_team"='collingwood';
## Task Generate a SQL query to answer the following question: `What is the name of the away team who play Collingwood?` ### 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 is the name of the away team who play Collingwood?`: ```sql
SELECT "date" FROM "round_14" WHERE "home_team"='collingwood';
## Task Generate a SQL query to answer the following question: `What date did Collingwood play 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 date did Collingwood play as the home team?`: ```sql
SELECT MAX("year_of_disaffiliation") FROM "owned_and_operated" WHERE "station"='chch-tv' AND "year_of_affiliation">2001;
## Task Generate a SQL query to answer the following question: `What is the most recent year of disaffiliation of a CHCH-TV station that affiliated after 2001?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "owned_and_operated" ( "city_of_license_market" text, "station" text, "channel_tv_rf" text, "year_of_affiliation" real, "year_of_disaffiliation" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the most recent year of disaffiliation of a CHCH-TV station that affiliated after 2001?`: ```sql
SELECT MIN("year_of_disaffiliation") FROM "owned_and_operated" WHERE "city_of_license_market"='hamilton, ontario';
## Task Generate a SQL query to answer the following question: `What is the earliest year of disaffiliation of a CHCH-TV station, licensed in Hamilton, Ontario?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "owned_and_operated" ( "city_of_license_market" text, "station" text, "channel_tv_rf" text, "year_of_affiliation" real, "year_of_disaffiliation" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the earliest year of disaffiliation of a CHCH-TV station, licensed in Hamilton, Ontario?`: ```sql
SELECT SUM("bronze") FROM "medal_table" WHERE "nation"='west germany' AND "silver"<2;
## Task Generate a SQL query to answer the following question: `How many bronze medals did west germany win when they had less than 2 silver medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many bronze medals did west germany win when they had less than 2 silver medals?`: ```sql
SELECT SUM("bronze") FROM "medal_table" WHERE "total">2 AND "gold">2;
## Task Generate a SQL query to answer the following question: `How many bronze medals were won when the total was larger than 2 and the more than 2 gold medals were won?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many bronze medals were won when the total was larger than 2 and the more than 2 gold medals were won?`: ```sql
SELECT SUM("gold") FROM "medal_table" WHERE "bronze">2;
## Task Generate a SQL query to answer the following question: `How many gold medals were won when more than 2 bronze medals were won?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many gold medals were won when more than 2 bronze medals were won?`: ```sql
SELECT MIN("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "pick_num"=235 AND "rd_num">12;
## Task Generate a SQL query to answer the following question: `What was the PI GP fpr pick# 235 for Rd# larger than 12?` ### 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 was the PI GP fpr pick# 235 for Rd# larger than 12?`: ```sql
SELECT MAX("crowd") FROM "round_10" WHERE "away_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `What was the largest crowd when South Melbourne was the away team?` ### 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 was the largest crowd when South Melbourne was the away team?`: ```sql
SELECT "home_team_score" FROM "round_10" WHERE "home_team"='richmond';
## Task Generate a SQL query to answer the following question: `What is richmond's scores when they are the home team?` ### 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 is richmond's scores when they are the home team?`: ```sql
SELECT "away_team_score" FROM "round_10" WHERE "away_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `What is south melbourne's scores when they are the away team?` ### 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 is south melbourne's scores when they are the away team?`: ```sql
SELECT "date" FROM "round_10" WHERE "venue"='windy hill';
## Task Generate a SQL query to answer the following question: `What dates were the matches at windy hill?` ### 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 dates were the matches at windy hill?`: ```sql
SELECT AVG("laps") FROM "race" WHERE "driver"='piero taruffi';
## Task Generate a SQL query to answer the following question: `What is the average number of laps for the driver Piero Taruffi?` ### 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 average number of laps for the driver Piero Taruffi?`: ```sql
SELECT "driver" FROM "race" WHERE "laps"=12 AND "grid"<10;
## Task Generate a SQL query to answer the following question: `Which driver has 12 laps and a grid of less than 10?` ### 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 `Which driver has 12 laps and a grid of less than 10?`: ```sql
SELECT "illustration" FROM "2008" WHERE "design"='tim nokes' AND "first_day_cover_cancellation"='calgary, alberta';
## Task Generate a SQL query to answer the following question: `What is the Illustration with a Design of tim nokes, and a First Day Cover Cancellation with calgary, alberta?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008" ( "date_of_issue" text, "theme" text, "design" text, "illustration" text, "paper_type" text, "first_day_cover_cancellation" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Illustration with a Design of tim nokes, and a First Day Cover Cancellation with calgary, alberta?`: ```sql
SELECT "date_of_issue" FROM "2008" WHERE "theme"='mental health';
## Task Generate a SQL query to answer the following question: `What is the Date of Issue with a Theme with mental health?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008" ( "date_of_issue" text, "theme" text, "design" text, "illustration" text, "paper_type" text, "first_day_cover_cancellation" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date of Issue with a Theme with mental health?`: ```sql
SELECT "theme" FROM "2008" WHERE "design"='sputnik design partners';
## Task Generate a SQL query to answer the following question: `What is the Theme with a Design with sputnik design partners?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008" ( "date_of_issue" text, "theme" text, "design" text, "illustration" text, "paper_type" text, "first_day_cover_cancellation" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Theme with a Design with sputnik design partners?`: ```sql
SELECT "paper_type" FROM "2008" WHERE "first_day_cover_cancellation"='ottawa, on';
## Task Generate a SQL query to answer the following question: `What is the Paper Type with a First Day Cover Cancellation with ottawa, on?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008" ( "date_of_issue" text, "theme" text, "design" text, "illustration" 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 with a First Day Cover Cancellation with ottawa, on?`: ```sql
SELECT "paper_type" FROM "2008" WHERE "illustration"='martin dee, ubc public affairs';
## Task Generate a SQL query to answer the following question: `What is the Paper Type with an Illustration with martin dee, ubc public affairs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008" ( "date_of_issue" text, "theme" text, "design" text, "illustration" 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 with an Illustration with martin dee, ubc public affairs?`: ```sql
SELECT "theme" FROM "2008" WHERE "paper_type"='tullis russell coatings' AND "date_of_issue"='1 october 2008';
## Task Generate a SQL query to answer the following question: `What is the Theme with a Paper Type of tullis russell coatings, and a Date with Issue of 1 october 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008" ( "date_of_issue" text, "theme" text, "design" text, "illustration" text, "paper_type" text, "first_day_cover_cancellation" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Theme with a Paper Type of tullis russell coatings, and a Date with Issue of 1 october 2008?`: ```sql
SELECT "tie_no" FROM "first_round_proper" WHERE "away_team"='lewes';
## Task Generate a SQL query to answer the following question: `What is the tie number when the away team is Lewes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the tie number when the away team is Lewes?`: ```sql
SELECT "away_team" FROM "first_round_proper" WHERE "home_team"='cheltenham town';
## Task Generate a SQL query to answer the following question: `What is the away team when the home team is Cheltenham Town?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the away team when the home team is Cheltenham Town?`: ```sql
SELECT "home_team" FROM "first_round_proper" WHERE "tie_no"='34';
## Task Generate a SQL query to answer the following question: `What is the home team of the game with tie number 34?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the home team of the game with tie number 34?`: ```sql
SELECT "away_team" FROM "first_round_proper" WHERE "tie_no"='31';
## Task Generate a SQL query to answer the following question: `What is the away team of the game with tie number 31?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the away team of the game with tie number 31?`: ```sql
SELECT SUM("goals_for") FROM "final_standing" WHERE "wins"<4 AND "losses">6;
## Task Generate a SQL query to answer the following question: `How many goals for were scored for the team(s) that won fewer than 4 games and lost more than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real ); ### SQL Given the database schema, here is the SQL query that answers `How many goals for were scored for the team(s) that won fewer than 4 games and lost more than 6?`: ```sql
SELECT AVG("losses") FROM "final_standing" WHERE "games_played">8;
## Task Generate a SQL query to answer the following question: `What is the average losses for the team(s) that played more than 8 games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average losses for the team(s) that played more than 8 games?`: ```sql
SELECT "fleet_size" FROM "fleet_details" WHERE "class"='vanguard 0-6-0dh';
## Task Generate a SQL query to answer the following question: `What is the fleet size of the Vanguard 0-6-0dh class?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fleet_details" ( "class" text, "type" text, "introduced" text, "fleet_size" real, "numbers" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the fleet size of the Vanguard 0-6-0dh class?`: ```sql
SELECT "introduced" FROM "fleet_details" WHERE "type"='electro-diesel locomotive';
## Task Generate a SQL query to answer the following question: `What is the year of introduction for the Electro-Diesel locomotive?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fleet_details" ( "class" text, "type" text, "introduced" text, "fleet_size" real, "numbers" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the year of introduction for the Electro-Diesel locomotive?`: ```sql
SELECT AVG("fleet_size") FROM "fleet_details" WHERE "type"='shunter' AND "introduced"='1959';
## Task Generate a SQL query to answer the following question: `What is the average fleet size for the Shunter type introduced in 1959?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fleet_details" ( "class" text, "type" text, "introduced" text, "fleet_size" real, "numbers" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average fleet size for the Shunter type introduced in 1959?`: ```sql
SELECT MIN("fleet_size") FROM "fleet_details" WHERE "type"='shunter' AND "introduced"='1953';
## Task Generate a SQL query to answer the following question: `What is the smallest fleet size with a type of shunter introduced in 1953?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fleet_details" ( "class" text, "type" text, "introduced" text, "fleet_size" real, "numbers" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest fleet size with a type of shunter introduced in 1953?`: ```sql
SELECT MIN("viewers_m") FROM "weekly_ratings" WHERE "air_date"='january 24, 2008' AND "rating">3.6;
## Task Generate a SQL query to answer the following question: `What show that was aired on January 24, 2008 with a rating larger than 3.6 had the lowest viewers? How Many Viewers in the millions?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "weekly_ratings" ( "episode" text, "air_date" text, "time_slot_est" text, "rating" real, "share" real, "18_49_rating_share" text, "viewers_m" real, "rank_overall" text ); ### SQL Given the database schema, here is the SQL query that answers `What show that was aired on January 24, 2008 with a rating larger than 3.6 had the lowest viewers? How Many Viewers in the millions?`: ```sql
SELECT "rounds" FROM "teams_and_drivers" WHERE "chassis"='sf01';
## Task Generate a SQL query to answer the following question: `Which round has a car with a chassis of sf01?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams_and_drivers" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ); ### SQL Given the database schema, here is the SQL query that answers `Which round has a car with a chassis of sf01?`: ```sql
SELECT "country" FROM "scores" WHERE "average"<9.6 AND "interview">9.22 AND "swimsuit">9.46;
## Task Generate a SQL query to answer the following question: `Which country has swimsuit more than 9.46 and interview more than 9.22 with average less than 9.6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scores" ( "country" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `Which country has swimsuit more than 9.46 and interview more than 9.22 with average less than 9.6?`: ```sql
SELECT COUNT("evening_gown") FROM "scores" WHERE "swimsuit"<9.36 AND "average"<9.23;
## Task Generate a SQL query to answer the following question: `Which is the total number of evening gowns for swimsui less than 9.36 and average less than 9.23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scores" ( "country" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `Which is the total number of evening gowns for swimsui less than 9.36 and average less than 9.23?`: ```sql
SELECT MIN("average") FROM "scores" WHERE "interview">9.57 AND "country"='delaware' AND "evening_gown">9.77;
## Task Generate a SQL query to answer the following question: `Name the lowest average for interview more than 9.57 and delaware and evening gown more than 9.77` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scores" ( "country" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the lowest average for interview more than 9.57 and delaware and evening gown more than 9.77`: ```sql
SELECT SUM("swimsuit") FROM "scores" WHERE "average">9.23 AND "country"='delaware' AND "interview">9.73;
## Task Generate a SQL query to answer the following question: `Name the sum of swimsuit for average more than 9.23 for delaware for interview more than 9.73` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scores" ( "country" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the sum of swimsuit for average more than 9.23 for delaware for interview more than 9.73`: ```sql
SELECT SUM("average") FROM "scores" WHERE "interview">9.57 AND "swimsuit">9.65;
## Task Generate a SQL query to answer the following question: `Name the sum of average for interview more than 9.57 and swimsuit more than 9.65` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scores" ( "country" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the sum of average for interview more than 9.57 and swimsuit more than 9.65`: ```sql
SELECT "evening_gown" FROM "scores" WHERE "swimsuit">9.51 AND "country"='maryland';
## Task Generate a SQL query to answer the following question: `Name the evening gown for swimsuit more than 9.51 for maryland` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scores" ( "country" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the evening gown for swimsuit more than 9.51 for maryland`: ```sql
SELECT MAX("points_awarded_platinum") FROM "ranking_points" WHERE "points_awarded_gold"=9 AND "points_awarded_silver">6;
## Task Generate a SQL query to answer the following question: `What points awarded are higher than 6 but smaller than 9` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ranking_points" ( "finishing_position" text, "points_awarded_platinum" real, "points_awarded_gold" real, "points_awarded_silver" real, "points_awarded_satellite" real ); ### SQL Given the database schema, here is the SQL query that answers `What points awarded are higher than 6 but smaller than 9`: ```sql
SELECT "tyre" FROM "season_review" WHERE "pole_position"='jacky ickx' AND "race"='canadian grand prix';
## Task Generate a SQL query to answer the following question: `In the Canadian Grand Prix, what tyre was used when Jacky Ickx held pole position?` ### 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 `In the Canadian Grand Prix, what tyre was used when Jacky Ickx held pole position?`: ```sql
SELECT "circuit" FROM "season_review" WHERE "tyre"='d' AND "pole_position"='jochen rindt' AND "fastest_lap"='jackie stewart';
## Task Generate a SQL query to answer the following question: `When Jackie Stewart had the fastest lap and Jochen Rindt held the pole position with a D tyre, what was the 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 `When Jackie Stewart had the fastest lap and Jochen Rindt held the pole position with a D tyre, what was the circuit?`: ```sql
SELECT "circuit" FROM "season_review" WHERE "winning_driver"='jochen rindt';
## Task Generate a SQL query to answer the following question: `What was the circuit when Jochen Rindt won?` ### 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 was the circuit when Jochen Rindt won?`: ```sql
SELECT "tyre" FROM "season_review" WHERE "circuit"='kyalami';
## Task Generate a SQL query to answer the following question: `What tyre was used in Kyalami?` ### 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 tyre was used in Kyalami?`: ```sql
SELECT "driver" FROM "race" WHERE "grid"=10;
## Task Generate a SQL query to answer the following question: `Which driver had a grid number of 10?` ### 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 `Which driver had a grid number of 10?`: ```sql
SELECT "constructor" FROM "race" WHERE "grid"<3 AND "time_retired"='1:34:31.522';
## Task Generate a SQL query to answer the following question: `Which constructor had a grid number of less than 3 and where the Time/Retired was 1:34:31.522?` ### 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 `Which constructor had a grid number of less than 3 and where the Time/Retired was 1:34:31.522?`: ```sql
SELECT "constructor" FROM "race" WHERE "time_retired"='collision' AND "grid"<18 AND "driver"='nick heidfeld';
## Task Generate a SQL query to answer the following question: `Which constructor had a Time/Retired of collision, where the grid number was less than 18 and Nick Heidfeld was the driver?` ### 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 `Which constructor had a Time/Retired of collision, where the grid number was less than 18 and Nick Heidfeld was the driver?`: ```sql
SELECT "score" FROM "game_log" WHERE "attendance">'35,196' AND "opponent"='indians' AND "record"='20-14';
## Task Generate a SQL query to answer the following question: `What was the score for the record 20-14 when the attendance was over 35,196 and the Indians were opponents?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score for the record 20-14 when the attendance was over 35,196 and the Indians were opponents?`: ```sql
SELECT "record" FROM "game_log" WHERE "date"='may 20';
## Task Generate a SQL query to answer the following question: `What was the record on May 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record on May 20?`: ```sql
SELECT "height_in_ft" FROM "a" WHERE "no_s"='24';
## Task Generate a SQL query to answer the following question: `What is the height in feet of player number 24?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the height in feet of player number 24?`: ```sql
SELECT "school_club_team_country" FROM "a" WHERE "years_for_rockets"='1967-68';
## Task Generate a SQL query to answer the following question: `Who is the school, club, team or country that the Rockets played for 1967-68?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the school, club, team or country that the Rockets played for 1967-68?`: ```sql
SELECT "player" FROM "1995_team" WHERE "position"='infielder' AND "hometown"='atlanta, ga';
## Task Generate a SQL query to answer the following question: `Which player has a Position of infielder, and a Hometown of atlanta, ga?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1995_team" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player has a Position of infielder, and a Hometown of atlanta, ga?`: ```sql
SELECT "mlb_draft" FROM "1995_team" WHERE "school"='green valley high school';
## Task Generate a SQL query to answer the following question: `What MLB draft has a School of green valley high school?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1995_team" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text ); ### SQL Given the database schema, here is the SQL query that answers `What MLB draft has a School of green valley high school?`: ```sql
SELECT "position" FROM "1995_team" WHERE "school"='green valley high school';
## Task Generate a SQL query to answer the following question: `Which position has a School of green valley high school?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1995_team" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text ); ### SQL Given the database schema, here is the SQL query that answers `Which position has a School of green valley high school?`: ```sql
SELECT "position" FROM "1995_team" WHERE "player"='chad hutchinson';
## Task Generate a SQL query to answer the following question: `Which position has a Player of chad hutchinson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1995_team" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text ); ### SQL Given the database schema, here is the SQL query that answers `Which position has a Player of chad hutchinson?`: ```sql
SELECT "position" FROM "1995_team" WHERE "school"='petal high school';
## Task Generate a SQL query to answer the following question: `Which position has a School of petal high school?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1995_team" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text ); ### SQL Given the database schema, here is the SQL query that answers `Which position has a School of petal high school?`: ```sql
SELECT "date" FROM "schedule" WHERE "week"=8;
## Task Generate a SQL query to answer the following question: `What is the date of week 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of week 8?`: ```sql
SELECT MIN("week") FROM "schedule" WHERE "attendance"='48,102';
## Task Generate a SQL query to answer the following question: `Which week has the lowest attendance of 48,102?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which week has the lowest attendance of 48,102?`: ```sql
SELECT "year" FROM "one_day_international_cricket_man_of_the" WHERE "runs"='144';
## Task Generate a SQL query to answer the following question: `What was the year with runs of 144?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "one_day_international_cricket_man_of_the" ( "runs" text, "against" text, "city_country" text, "venue" text, "result" text, "year" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the year with runs of 144?`: ```sql
SELECT "city_country" FROM "one_day_international_cricket_man_of_the" WHERE "venue"='adelaide oval';
## Task Generate a SQL query to answer the following question: `Name the place where adelaide oval is` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "one_day_international_cricket_man_of_the" ( "runs" text, "against" text, "city_country" text, "venue" text, "result" text, "year" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the place where adelaide oval is`: ```sql
SELECT AVG("zone") FROM "w" WHERE "stations"='waddon marsh tram stop';
## Task Generate a SQL query to answer the following question: `Name the average zone for waddon marsh tram stop` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "w" ( "stations" text, "place" text, "managed_by" text, "platforms" real, "zone" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the average zone for waddon marsh tram stop`: ```sql
SELECT "stations" FROM "w" WHERE "managed_by"='tramlink' AND "zone"=5 AND "platforms"=1;
## Task Generate a SQL query to answer the following question: `Name the stations for zone 5 and 1 platform by tramlink` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "w" ( "stations" text, "place" text, "managed_by" text, "platforms" real, "zone" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the stations for zone 5 and 1 platform by tramlink`: ```sql
SELECT COUNT("platforms") FROM "w" WHERE "stations"='waddon railway station';
## Task Generate a SQL query to answer the following question: `Name the total number of platforms that waddon railway station has` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "w" ( "stations" text, "place" text, "managed_by" text, "platforms" real, "zone" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of platforms that waddon railway station has`: ```sql
SELECT AVG("zone") FROM "w" WHERE "stations"='waddon railway station' AND "platforms">2;
## Task Generate a SQL query to answer the following question: `Name the average zone for waddon railway station and has more than 2 platforms` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "w" ( "stations" text, "place" text, "managed_by" text, "platforms" real, "zone" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the average zone for waddon railway station and has more than 2 platforms`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='bob ostovich';
## Task Generate a SQL query to answer the following question: `What is Bob Ostovich's opponents record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Bob Ostovich's opponents record?`: ```sql
SELECT "location" FROM "mixed_martial_arts_record" WHERE "opponent"='jimmy smith';
## Task Generate a SQL query to answer the following question: `What location is Jimmy Smith fighting in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What location is Jimmy Smith fighting in?`: ```sql
SELECT "d_49" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_42"='d 42 √';
## Task Generate a SQL query to answer the following question: `I want to know the D 49 + for D 42 √ of d 42 √` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_41" text, "d_42" text, "d_43" text, "d_44" text, "d_45_o" text, "d_46_o" text, "d_47" text, "d_48" text, "d_49" text, "d_50" text ); ### SQL Given the database schema, here is the SQL query that answers `I want to know the D 49 + for D 42 √ of d 42 √`: ```sql
SELECT "d_50" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_48"='d 53 +';
## Task Generate a SQL query to answer the following question: `Tell me the D 50 + for D 48 + of d 53 +` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_41" text, "d_42" text, "d_43" text, "d_44" text, "d_45_o" text, "d_46_o" text, "d_47" text, "d_48" text, "d_49" text, "d_50" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the D 50 + for D 48 + of d 53 +`: ```sql
SELECT "d_47" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_46_o"='majority→';
## Task Generate a SQL query to answer the following question: `I want to know the D 47 for D 46 O of majority→` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_41" text, "d_42" text, "d_43" text, "d_44" text, "d_45_o" text, "d_46_o" text, "d_47" text, "d_48" text, "d_49" text, "d_50" text ); ### SQL Given the database schema, here is the SQL query that answers `I want to know the D 47 for D 46 O of majority→`: ```sql
SELECT SUM("win_pct") FROM "year_by_year_performance" WHERE "average_total_home_attendance"='3,927 (19,633)';
## Task Generate a SQL query to answer the following question: `What is the sum of all win% with average home/total attendance of 3,927 (19,633)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year_performance" ( "coach" text, "season" text, "record" text, "home" text, "away" text, "win_pct" real, "average_total_home_attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of all win% with average home/total attendance of 3,927 (19,633)?`: ```sql
SELECT "away" FROM "year_by_year_performance" WHERE "record"='7-4' AND "win_pct"=0.637 AND "season"='2010';
## Task Generate a SQL query to answer the following question: `What is the away score with a record of 7-4, win% of 0.637, and 2010 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year_performance" ( "coach" text, "season" text, "record" text, "home" text, "away" text, "win_pct" real, "average_total_home_attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the away score with a record of 7-4, win% of 0.637, and 2010 season?`: ```sql
SELECT MIN("win_pct") FROM "year_by_year_performance" WHERE "away"='3-2' AND "season"='2011';
## Task Generate a SQL query to answer the following question: `What was the lowest win% with an away score of 3-2 in 2011 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year_performance" ( "coach" text, "season" text, "record" text, "home" text, "away" text, "win_pct" real, "average_total_home_attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the lowest win% with an away score of 3-2 in 2011 season?`: ```sql
SELECT "away" FROM "year_by_year_performance" WHERE "win_pct"=0.75 AND "average_total_home_attendance"='4,686 (18,744)';
## Task Generate a SQL query to answer the following question: `What was the away score with a win% of 0.75 and average total/home attendance of 4,686 (18,744)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year_performance" ( "coach" text, "season" text, "record" text, "home" text, "away" text, "win_pct" real, "average_total_home_attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the away score with a win% of 0.75 and average total/home attendance of 4,686 (18,744)?`: ```sql
SELECT MIN("win_pct") FROM "year_by_year_performance" WHERE "season"='1999-2013';
## Task Generate a SQL query to answer the following question: `What is the lowest win% in the 1999-2013 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year_performance" ( "coach" text, "season" text, "record" text, "home" text, "away" text, "win_pct" real, "average_total_home_attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest win% in the 1999-2013 season?`: ```sql
SELECT "record" FROM "the_american_meetings" WHERE "year"=1925;
## Task Generate a SQL query to answer the following question: `What's the record during 1925?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_american_meetings" ( "year" real, "event" text, "record" text, "athlete" text, "nationality" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the record during 1925?`: ```sql
SELECT MIN("year") FROM "the_american_meetings" WHERE "event"='discus throw';
## Task Generate a SQL query to answer the following question: `What is the earliest year that the discus throw event occur?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_american_meetings" ( "year" real, "event" text, "record" text, "athlete" text, "nationality" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the earliest year that the discus throw event occur?`: ```sql
SELECT "haydon" FROM "results_by_ward" WHERE "ben_tahir"='33';
## Task Generate a SQL query to answer the following question: `What Haydon had a 33 Ben-Tahir?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_by_ward" ( "ward" text, "bello" text, "ben_tahir" text, "doucet" text, "furtenbacher" text, "gauthier" text, "haydon" text, "larter" text, "lawrance" text, "libweshya" text, "liscumb" text ); ### SQL Given the database schema, here is the SQL query that answers `What Haydon had a 33 Ben-Tahir?`: ```sql
SELECT "gauthier" FROM "results_by_ward" WHERE "liscumb"='15';
## Task Generate a SQL query to answer the following question: `What Gauthier had a 15 Liscumb?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_by_ward" ( "ward" text, "bello" text, "ben_tahir" text, "doucet" text, "furtenbacher" text, "gauthier" text, "haydon" text, "larter" text, "lawrance" text, "libweshya" text, "liscumb" text ); ### SQL Given the database schema, here is the SQL query that answers `What Gauthier had a 15 Liscumb?`: ```sql
SELECT "ben_tahir" FROM "results_by_ward" WHERE "liscumb"='6' AND "libweshya"='3';
## Task Generate a SQL query to answer the following question: `What Ben-Tahir has a 6 Liscumb and 3 Libweshya?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_by_ward" ( "ward" text, "bello" text, "ben_tahir" text, "doucet" text, "furtenbacher" text, "gauthier" text, "haydon" text, "larter" text, "lawrance" text, "libweshya" text, "liscumb" text ); ### SQL Given the database schema, here is the SQL query that answers `What Ben-Tahir has a 6 Liscumb and 3 Libweshya?`: ```sql
SELECT "bello" FROM "results_by_ward" WHERE "liscumb"='27' AND "libweshya"='6539';
## Task Generate a SQL query to answer the following question: `What Bello has a 27 Liscumb and 6539 Libweshya?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_by_ward" ( "ward" text, "bello" text, "ben_tahir" text, "doucet" text, "furtenbacher" text, "gauthier" text, "haydon" text, "larter" text, "lawrance" text, "libweshya" text, "liscumb" text ); ### SQL Given the database schema, here is the SQL query that answers `What Bello has a 27 Liscumb and 6539 Libweshya?`: ```sql
SELECT "furtenbacher" FROM "results_by_ward" WHERE "liscumb"='6' AND "lawrance"='10' AND "ben_tahir"='24';
## Task Generate a SQL query to answer the following question: `What is the Furtenbacher with a 6 Liscumb, 10 Lawrance, and a 24 Ben-Tahir?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_by_ward" ( "ward" text, "bello" text, "ben_tahir" text, "doucet" text, "furtenbacher" text, "gauthier" text, "haydon" text, "larter" text, "lawrance" text, "libweshya" text, "liscumb" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Furtenbacher with a 6 Liscumb, 10 Lawrance, and a 24 Ben-Tahir?`: ```sql
SELECT "ben_tahir" FROM "results_by_ward" WHERE "doucet"='3269';
## Task Generate a SQL query to answer the following question: `What is the Ben-Tahir with a 3269 Doucet?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_by_ward" ( "ward" text, "bello" text, "ben_tahir" text, "doucet" text, "furtenbacher" text, "gauthier" text, "haydon" text, "larter" text, "lawrance" text, "libweshya" text, "liscumb" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Ben-Tahir with a 3269 Doucet?`: ```sql
SELECT MAX("attendance") FROM "game_log" WHERE "loss"='k. gross (1-1)';
## Task Generate a SQL query to answer the following question: `How many attended the game that was a Loss of k. gross (1-1)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many attended the game that was a Loss of k. gross (1-1)?`: ```sql
SELECT "score" FROM "replays" WHERE "tie_no"='65';
## Task Generate a SQL query to answer the following question: `What is the score of the game with tie number 65?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "replays" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the game with tie number 65?`: ```sql
SELECT "home_team" FROM "replays" WHERE "attendance"='160';
## Task Generate a SQL query to answer the following question: `Which Home team had attendance 160?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "replays" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Home team had attendance 160?`: ```sql
SELECT "record" FROM "february" WHERE "decision"='ellis' AND "visitor"='vancouver';
## Task Generate a SQL query to answer the following question: `What is the record of the game with a decision of Ellis and Vancouver as the visitor?` ### 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, "decision" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the record of the game with a decision of Ellis and Vancouver as the visitor?`: ```sql
SELECT "record" FROM "february" WHERE "decision"='mason' AND "home"='nashville';
## Task Generate a SQL query to answer the following question: `What is the record of the game with Mason as the decision and Nashville as the home team?` ### 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, "decision" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the record of the game with Mason as the decision and Nashville as the home team?`: ```sql
SELECT "date" FROM "february" WHERE "decision"='ellis' AND "visitor"='st. louis';
## Task Generate a SQL query to answer the following question: `What is the date with Ellis as the decision and St. Louis as the visitor?` ### 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, "decision" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date with Ellis as the decision and St. Louis as the visitor?`: ```sql
SELECT "visitor" FROM "march" WHERE "record"='31–31–8';
## Task Generate a SQL query to answer the following question: `Which visiting team had a record of 31–31–8?` ### 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 `Which visiting team had a record of 31–31–8?`: ```sql
SELECT "hometown" FROM "1985_boys_team" WHERE "player"='jeff lebo';
## Task Generate a SQL query to answer the following question: `Where is Jeff Lebo's hometown?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1985_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 `Where is Jeff Lebo's hometown?`: ```sql
SELECT "player" FROM "1985_boys_team" WHERE "hometown"='houston, tx';
## Task Generate a SQL query to answer the following question: `Who is the player from Houston, TX?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1985_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 `Who is the player from Houston, TX?`: ```sql
SELECT MIN("year") FROM "complete_formula_one_world_championship_" WHERE "entrant"='rotary watches stanley brm' AND "chassis"='brm p207' AND "points">0;
## Task Generate a SQL query to answer the following question: `What is the earliest year with an entry from Rotary Watches Stanley BRM and a BRM P207 with more than 0 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the earliest year with an entry from Rotary Watches Stanley BRM and a BRM P207 with more than 0 points?`: ```sql
SELECT "points" FROM "complete_formula_one_world_championship_" WHERE "year"<1977 AND "engine"='cosworth v8' AND "entrant"='hb bewaking alarm systems';
## Task Generate a SQL query to answer the following question: `How many points were there in a year earlier than 1977, a Cosworth V8 engine, and an entry from HB Bewaking alarm systems?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many points were there in a year earlier than 1977, a Cosworth V8 engine, and an entry from HB Bewaking alarm systems?`: ```sql