output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT MIN("pick") FROM "supplemental_first_round_selections" WHERE "school"='stanford university';
## Task Generate a SQL query to answer the following question: `What is the lowest pick when the School is Stanford University?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest pick when the School is Stanford University?`: ```sql
SELECT "team" FROM "supplemental_first_round_selections" WHERE "pick"=40;
## Task Generate a SQL query to answer the following question: `What Team has a Pick of 40?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `What Team has a Pick of 40?`: ```sql
SELECT "date" FROM "round_8" WHERE "away_team"='hawthorn';
## Task Generate a SQL query to answer the following question: `What date was the away team Hawthorn?` ### 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 `What date was the away team Hawthorn?`: ```sql
SELECT MAX("losses") FROM "most_games_as_starting_quarterback" WHERE "wins"=0 AND "win_pct">0;
## Task Generate a SQL query to answer the following question: `What is the high loss total for players with zero wins and a win % greater than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_games_as_starting_quarterback" ( "name" text, "period" text, "starts" real, "wins" real, "losses" real, "ties" real, "win_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the high loss total for players with zero wins and a win % greater than 0?`: ```sql
SELECT "win_pct" FROM "most_games_as_starting_quarterback" WHERE "starts"=3;
## Task Generate a SQL query to answer the following question: `What is the win % for the QB with 3 starts?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_games_as_starting_quarterback" ( "name" text, "period" text, "starts" real, "wins" real, "losses" real, "ties" real, "win_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the win % for the QB with 3 starts?`: ```sql
SELECT "venue" FROM "round_7" WHERE "away_team"='geelong';
## Task Generate a SQL query to answer the following question: `What venue did geelong play an away game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_7" ( "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 venue did geelong play an away game?`: ```sql
SELECT "away_team_score" FROM "round_7" WHERE "home_team_score"='8.14 (62)';
## Task Generate a SQL query to answer the following question: `What was the away team score when the home team scored 8.14 (62)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_7" ( "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 scored 8.14 (62)?`: ```sql
SELECT "home_team" FROM "round_7" WHERE "away_team"='melbourne';
## Task Generate a SQL query to answer the following question: `What home team played an away team of melbourne?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_7" ( "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 home team played an away team of melbourne?`: ```sql
SELECT "player" FROM "2009_draft_picks" WHERE "overall"='130';
## Task Generate a SQL query to answer the following question: `Which player had an overall pick of 130?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_draft_picks" ( "round" real, "overall" text, "player" text, "position" text, "nationality" text, "club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player had an overall pick of 130?`: ```sql
SELECT AVG("round") FROM "2009_draft_picks" WHERE "player"='corey cowick';
## Task Generate a SQL query to answer the following question: `What round was Corey Cowick picked?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_draft_picks" ( "round" real, "overall" text, "player" text, "position" text, "nationality" text, "club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What round was Corey Cowick picked?`: ```sql
SELECT "position" FROM "2009_draft_picks" WHERE "club_team"='miami university (ccha)';
## Task Generate a SQL query to answer the following question: `What position does the player from the Miami University (CCHA) club team play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_draft_picks" ( "round" real, "overall" text, "player" text, "position" text, "nationality" text, "club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What position does the player from the Miami University (CCHA) club team play?`: ```sql
SELECT MAX("year") FROM "missed_opportunities" WHERE "team"='north melbourne' AND "player"='hamish mcintosh';
## Task Generate a SQL query to answer the following question: `What most recent year had North Melbourne as a team and Hamish Mcintosh as a player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_opportunities" ( "player" text, "team" text, "opponent" text, "year" real, "score" text, "outcome" text ); ### SQL Given the database schema, here is the SQL query that answers `What most recent year had North Melbourne as a team and Hamish Mcintosh as a player?`: ```sql
SELECT "score" FROM "missed_opportunities" WHERE "opponent"='essendon' AND "player"='steven clark';
## Task Generate a SQL query to answer the following question: `Which score had Essendon as an opponent and Steven Clark as a player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_opportunities" ( "player" text, "team" text, "opponent" text, "year" real, "score" text, "outcome" text ); ### SQL Given the database schema, here is the SQL query that answers `Which score had Essendon as an opponent and Steven Clark as a player?`: ```sql
SELECT "team" FROM "missed_opportunities" WHERE "outcome"='behind' AND "opponent"='brisbane bears';
## Task Generate a SQL query to answer the following question: `Which team got a Behind outcome and had an opponent of Brisbane Bears?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_opportunities" ( "player" text, "team" text, "opponent" text, "year" real, "score" text, "outcome" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team got a Behind outcome and had an opponent of Brisbane Bears?`: ```sql
SELECT "date" FROM "round_22" WHERE "home_team"='north melbourne';
## Task Generate a SQL query to answer the following question: `When did the north melbourne team play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_22" ( "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 the north melbourne team play?`: ```sql
SELECT "away_team" FROM "round_22" WHERE "venue"='junction oval';
## Task Generate a SQL query to answer the following question: `Who was the away team at junction oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the away team at junction oval?`: ```sql
SELECT "home_team_score" FROM "round_22" WHERE "venue"='junction oval';
## Task Generate a SQL query to answer the following question: `What was the home team's score at junction oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the home team's score at junction oval?`: ```sql
SELECT "venue" FROM "round_22" WHERE "away_team"='essendon';
## Task Generate a SQL query to answer the following question: `What venue was essendon the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_22" ( "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 venue was essendon the away team?`: ```sql
SELECT "home_team" FROM "round_22" WHERE "venue"='kardinia park';
## Task Generate a SQL query to answer the following question: `Who is the home team at kardinia park?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_22" ( "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 is the home team at kardinia park?`: ```sql
SELECT MIN("storage_stability") FROM "list_of_blood_agents" WHERE "toxicity_as_blood_agent">8 AND "agent"='arsine' AND "field_stability"<5;
## Task Generate a SQL query to answer the following question: `What is the storage stability of Arsine with a toxicity of 8, and field stability less than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_blood_agents" ( "agent" text, "melting_boiling_point" text, "effectiveness_as_blood_agent" real, "persistence_open_area" real, "persistence_enclosed_area" real, "field_stability" real, "storage_stability" real, "toxicity_as_blood_agent" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the storage stability of Arsine with a toxicity of 8, and field stability less than 5?`: ```sql
SELECT COUNT("field_stability") FROM "list_of_blood_agents" WHERE "agent"='cyanogen bromide' AND "effectiveness_as_blood_agent">9;
## Task Generate a SQL query to answer the following question: `What is the field stability of Cyanogen Bromide that has an effectiveness of 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_blood_agents" ( "agent" text, "melting_boiling_point" text, "effectiveness_as_blood_agent" real, "persistence_open_area" real, "persistence_enclosed_area" real, "field_stability" real, "storage_stability" real, "toxicity_as_blood_agent" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the field stability of Cyanogen Bromide that has an effectiveness of 9?`: ```sql
SELECT "home_team" FROM "round_13" WHERE "venue"='mcg';
## Task Generate a SQL query to answer the following question: `When the Venue is mcg what is the Home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_13" ( "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 Venue is mcg what is the Home team?`: ```sql
SELECT "away_team" FROM "round_13" WHERE "away_team_score"='14.14 (98)';
## Task Generate a SQL query to answer the following question: `If the Away team had a score of 14.14 (98), what's the name of the Away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_13" ( "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 `If the Away team had a score of 14.14 (98), what's the name of the Away team?`: ```sql
SELECT "home_team" FROM "round_13" WHERE "away_team"='hawthorn';
## Task Generate a SQL query to answer the following question: `When the Away team was hawthorn, what's the Home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_13" ( "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 Away team was hawthorn, what's the Home team?`: ```sql
SELECT "home_team_score" FROM "round_13" WHERE "away_team_score"='9.14 (68)';
## Task Generate a SQL query to answer the following question: `When the away team scored 9.14 (68), what was the home teams score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_13" ( "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 away team scored 9.14 (68), what was the home teams score?`: ```sql
SELECT "total_kg" FROM "flyweight_56_kg" WHERE "clean_jerk"=135 AND "snatch"=115;
## Task Generate a SQL query to answer the following question: `What is the total associated with a Clean & jerk of 135, and a Snatch of 115?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "flyweight_56_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total associated with a Clean & jerk of 135, and a Snatch of 115?`: ```sql
SELECT MAX("bodyweight") FROM "flyweight_56_kg" WHERE "clean_jerk">120 AND "total_kg"=245;
## Task Generate a SQL query to answer the following question: `What is the highest Bodyweight associated with a Clean & jerk larger than 120, and a Total (kg) of 245?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "flyweight_56_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest Bodyweight associated with a Clean & jerk larger than 120, and a Total (kg) of 245?`: ```sql
SELECT SUM("total_kg") FROM "flyweight_56_kg" WHERE "snatch"<110 AND "clean_jerk">120;
## Task Generate a SQL query to answer the following question: `What is the sum Total (kg) associated with a Snatch less than 110, and a Clean & jerk larger than 120?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "flyweight_56_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum Total (kg) associated with a Snatch less than 110, and a Clean & jerk larger than 120?`: ```sql
SELECT COUNT("snatch") FROM "flyweight_56_kg" WHERE "clean_jerk"<142.5 AND "bodyweight"<55.58 AND "total_kg">210;
## Task Generate a SQL query to answer the following question: `How many people have a Clean & jerk smaller than 142.5, a Bodyweight smaller than 55.58, and a Total (kg) larger than 210?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "flyweight_56_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real ); ### SQL Given the database schema, here is the SQL query that answers `How many people have a Clean & jerk smaller than 142.5, a Bodyweight smaller than 55.58, and a Total (kg) larger than 210?`: ```sql
SELECT "object_type" FROM "5101_5200" WHERE "apparent_magnitude">10.6 AND "declination_j2000"='°44′07″';
## Task Generate a SQL query to answer the following question: `Tell me the object type which has an apparent magnitude more than 10.6 and declination of °44′07″` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "5101_5200" ( "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 `Tell me the object type which has an apparent magnitude more than 10.6 and declination of °44′07″`: ```sql
SELECT "declination_j2000" FROM "5101_5200" WHERE "apparent_magnitude">10.4 AND "ngc_number"=5112;
## Task Generate a SQL query to answer the following question: `Tell me the declination with apparent magnitude more than 10.4 and NGC number of 5112` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "5101_5200" ( "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 `Tell me the declination with apparent magnitude more than 10.4 and NGC number of 5112`: ```sql
SELECT "event" FROM "mixed_martial_arts_record" WHERE "method"='submission (triangle choke)' AND "opponent"='thiago tavares';
## Task Generate a SQL query to answer the following question: `Which event has a Method of submission (triangle choke), and an Opponent of thiago tavares?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `Which event has a Method of submission (triangle choke), and an Opponent of thiago tavares?`: ```sql
SELECT "res" FROM "mixed_martial_arts_record" WHERE "round"='3' AND "opponent"='keith wisniewski';
## Task Generate a SQL query to answer the following question: `What is the result with a Round of 3, and an Opponent of keith wisniewski?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `What is the result with a Round of 3, and an Opponent of keith wisniewski?`: ```sql
SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='eddie miller';
## Task Generate a SQL query to answer the following question: `Which time has eddie miller as opponent?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `Which time has eddie miller as opponent?`: ```sql
SELECT AVG("rd_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='dane jackson' AND "pick_num">44;
## Task Generate a SQL query to answer the following question: `What's the average Rd number for dane jackson with a pick number over 44?` ### 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's the average Rd number for dane jackson with a pick number over 44?`: ```sql
SELECT MAX("pick_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='corrie d''alessio' AND "rd_num">6;
## Task Generate a SQL query to answer the following question: `What's the largest pick number for corrie d'alessio with a rd number over 6?` ### 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's the largest pick number for corrie d'alessio with a rd number over 6?`: ```sql
SELECT "visitor" FROM "january" WHERE "score"='121–85';
## Task Generate a SQL query to answer the following question: `Who was the visiting team at the Cavaliers game that had a score of 121–85?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the visiting team at the Cavaliers game that had a score of 121–85?`: ```sql
SELECT "date" FROM "round_15" WHERE "home_team"='melbourne';
## Task Generate a SQL query to answer the following question: `On what date did Melbourne play as the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_15" ( "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 Melbourne play as the home team?`: ```sql
SELECT "away_team_score" FROM "round_9" WHERE "home_team_score"='16.12 (108)';
## Task Generate a SQL query to answer the following question: `How many points did the away team score when the home team scored 16.12 (108)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points did the away team score when the home team scored 16.12 (108)?`: ```sql
SELECT "home_team_score" FROM "round_9" WHERE "away_team_score"='18.19 (127)';
## Task Generate a SQL query to answer the following question: `How many points did the home team score when the home team scored 18.19 (127)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points did the home team score when the home team scored 18.19 (127)?`: ```sql
SELECT "home_team" FROM "round_9" WHERE "venue"='western oval';
## Task Generate a SQL query to answer the following question: `What team owns the Venue of western oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What team owns the Venue of western oval?`: ```sql
SELECT "home_team_score" FROM "round_9" WHERE "venue"='victoria park';
## Task Generate a SQL query to answer the following question: `What did the Victoria park home team score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What did the Victoria park home team score?`: ```sql
SELECT COUNT("crowd") FROM "round_9" WHERE "home_team"='geelong';
## Task Generate a SQL query to answer the following question: `What was the crowd size when geelong played home?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the crowd size when geelong played home?`: ```sql
SELECT COUNT("crowd") FROM "round_9" WHERE "away_team_score"='23.18 (156)';
## Task Generate a SQL query to answer the following question: `What was the crowd size when the visiting team scored 23.18 (156)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the crowd size when the visiting team scored 23.18 (156)?`: ```sql
SELECT "venue" FROM "round_15" WHERE "away_team_score"='22.14 (146)';
## Task Generate a SQL query to answer the following question: `Where did the away team play when they scored 22.14 (146)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Where did the away team play when they scored 22.14 (146)?`: ```sql
SELECT "venue" FROM "round_15" WHERE "home_team_score"='18.20 (128)';
## Task Generate a SQL query to answer the following question: `Where did the home team play when they scored 18.20 (128)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Where did the home team play when they scored 18.20 (128)?`: ```sql
SELECT MAX("attendance") FROM "eastern_conference_quarter_finals_vs_8" WHERE "venue"='td banknorth garden' AND "series"='montreal leads 3-1';
## Task Generate a SQL query to answer the following question: `Name the most that attendend when the venue was td banknorth garden and the series of montreal leads 3-1` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "eastern_conference_quarter_finals_vs_8" ( "date" text, "venue" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most that attendend when the venue was td banknorth garden and the series of montreal leads 3-1`: ```sql
SELECT "decision" FROM "eastern_conference_quarter_finals_vs_8" WHERE "visitor"='boston bruins';
## Task Generate a SQL query to answer the following question: `Name the decision for boston bruins visitor` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "eastern_conference_quarter_finals_vs_8" ( "date" text, "venue" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the decision for boston bruins visitor`: ```sql
SELECT AVG("total") FROM "medal_table" WHERE "nation"='egypt' AND "gold"<2;
## Task Generate a SQL query to answer the following question: `What is the average total medals Egypt, who has less than 2 gold, 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 average total medals Egypt, who has less than 2 gold, has?`: ```sql
SELECT COUNT("gold") FROM "medal_table" WHERE "nation"='egypt' AND "silver"<0;
## Task Generate a SQL query to answer the following question: `What is the total number of gold medals Egypt, who has less than 0 silver, 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 number of gold medals Egypt, who has less than 0 silver, has?`: ```sql
SELECT MAX("gold") FROM "medal_table" WHERE "silver"<3 AND "bronze">5;
## Task Generate a SQL query to answer the following question: `What is the highest gold a team with less than 3 silver and more than 5 bronze 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 highest gold a team with less than 3 silver and more than 5 bronze medals has?`: ```sql
SELECT "rank" FROM "medal_table" WHERE "bronze"=1 AND "gold"=0;
## Task Generate a SQL query to answer the following question: `What is the rank of the team with 1 bronze and 0 gold medals?` ### 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 rank of the team with 1 bronze and 0 gold medals?`: ```sql
SELECT AVG("pct_of_pop") FROM "table" WHERE "country_or_dependent_territory"='tunisia' AND "average_relative_annual_growth_pct"<1.03;
## Task Generate a SQL query to answer the following question: `What is the average % of population Tunisia, which has an average relative annual growth smaller than 1.03?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table" ( "rank" text, "country_or_dependent_territory" text, "july_1_2013_projection" real, "pct_of_pop" real, "average_relative_annual_growth_pct" real, "average_absolute_annual_growth" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average % of population Tunisia, which has an average relative annual growth smaller than 1.03?`: ```sql
SELECT AVG("average_relative_annual_growth_pct") FROM "table" WHERE "rank"='3' AND "average_absolute_annual_growth">'1,051,000';
## Task Generate a SQL query to answer the following question: `What is the average relative annual growth of the country ranked 3 with an average absolute annual growth larger than 1,051,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table" ( "rank" text, "country_or_dependent_territory" text, "july_1_2013_projection" real, "pct_of_pop" real, "average_relative_annual_growth_pct" real, "average_absolute_annual_growth" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average relative annual growth of the country ranked 3 with an average absolute annual growth larger than 1,051,000?`: ```sql
SELECT SUM("average_relative_annual_growth_pct") FROM "table" WHERE "country_or_dependent_territory"='lebanon' AND "july_1_2013_projection">'4,127,000';
## Task Generate a SQL query to answer the following question: `What is the average relative annual growth of Lebanon, which has a July 1, 2013 projection larger than 4,127,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table" ( "rank" text, "country_or_dependent_territory" text, "july_1_2013_projection" real, "pct_of_pop" real, "average_relative_annual_growth_pct" real, "average_absolute_annual_growth" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average relative annual growth of Lebanon, which has a July 1, 2013 projection larger than 4,127,000?`: ```sql
SELECT "home_team" FROM "round_5" WHERE "venue"='kardinia park';
## Task Generate a SQL query to answer the following question: `Who was the home team at Kardinia Park?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_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 `Who was the home team at Kardinia Park?`: ```sql
SELECT "home_team_score" FROM "round_5" WHERE "home_team"='footscray';
## Task Generate a SQL query to answer the following question: `What was Footscray's score as the home 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 `What was Footscray's score as the home team?`: ```sql
SELECT "date" FROM "november" WHERE "home"='suns';
## Task Generate a SQL query to answer the following question: `On what date was there a competition in which the home team was the Suns?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "november" ( "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 `On what date was there a competition in which the home team was the Suns?`: ```sql
SELECT "leading_scorer" FROM "november" WHERE "visitor"='suns';
## Task Generate a SQL query to answer the following question: `In the competition in which the visiting team was the Suns, who was the leading scorer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "november" ( "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 `In the competition in which the visiting team was the Suns, who was the leading scorer?`: ```sql
SELECT "record" FROM "november" WHERE "home"='mavericks';
## Task Generate a SQL query to answer the following question: `What was the record in the competition in which the home team was the Mavericks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "november" ( "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 record in the competition in which the home team was the Mavericks?`: ```sql
SELECT AVG("year") FROM "telugu_songs" WHERE "movie"='rangam';
## Task Generate a SQL query to answer the following question: `What's the average year a Rangam movie came out?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "telugu_songs" ( "year" real, "song_title" text, "movie" text, "music_director" text, "co_singers" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the average year a Rangam movie came out?`: ```sql
SELECT "year" FROM "telugu_songs" WHERE "song_title"='\"ulike o chilake\"';
## Task Generate a SQL query to answer the following question: `What year was "Ulike o Chilake" released?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "telugu_songs" ( "year" real, "song_title" text, "movie" text, "music_director" text, "co_singers" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was "Ulike o Chilake" released?`: ```sql
SELECT "movie" FROM "telugu_songs" WHERE "song_title"='\"anti pettukundhuna\"';
## Task Generate a SQL query to answer the following question: `What movie was "anti pettukundhuna" in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "telugu_songs" ( "year" real, "song_title" text, "movie" text, "music_director" text, "co_singers" text ); ### SQL Given the database schema, here is the SQL query that answers `What movie was "anti pettukundhuna" in?`: ```sql
SELECT "song_title" FROM "telugu_songs" WHERE "movie"='amma cheppindi';
## Task Generate a SQL query to answer the following question: `What was the name of the song in Amma Cheppindi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "telugu_songs" ( "year" real, "song_title" text, "movie" text, "music_director" text, "co_singers" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the name of the song in Amma Cheppindi?`: ```sql
SELECT AVG("year") FROM "telugu_songs" WHERE "movie"='thuppakki';
## Task Generate a SQL query to answer the following question: `What was the average year that Thuppakki movies came out?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "telugu_songs" ( "year" real, "song_title" text, "movie" text, "music_director" text, "co_singers" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the average year that Thuppakki movies came out?`: ```sql
SELECT MAX("summary_statistic_omega_s_i_step_3") FROM "table_1_example_of_abc_rejection_algorit" WHERE "distance_rho_omega_s_i_omega_e_step_4">2 AND "simulated_datasets_step_2"='aabbababaaabbababbab';
## Task Generate a SQL query to answer the following question: `What is the highest summary statistic of the algorithm with a distance larger than 2 and simulated datasets of aabbababaaabbababbab?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_1_example_of_abc_rejection_algorit" ( "theta_i" real, "simulated_datasets_step_2" text, "summary_statistic_omega_s_i_step_3" real, "distance_rho_omega_s_i_omega_e_step_4" real, "outcome_step_4" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest summary statistic of the algorithm with a distance larger than 2 and simulated datasets of aabbababaaabbababbab?`: ```sql
SELECT "summary_statistic_omega_s_i_step_3" FROM "table_1_example_of_abc_rejection_algorit" WHERE "theta_i"=0.43;
## Task Generate a SQL query to answer the following question: `What is the summary of the algorithm with a theta i of 0.43?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_1_example_of_abc_rejection_algorit" ( "theta_i" real, "simulated_datasets_step_2" text, "summary_statistic_omega_s_i_step_3" real, "distance_rho_omega_s_i_omega_e_step_4" real, "outcome_step_4" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the summary of the algorithm with a theta i of 0.43?`: ```sql
SELECT SUM("games_played") FROM "all_time_national_performance" WHERE "goals_scored"='2';
## Task Generate a SQL query to answer the following question: `How many games had 2 goals scored?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time_national_performance" ( "nationality" text, "year" text, "games_played" real, "minutes_played" text, "goals_scored" text, "yellow_card" text, "red_card" text ); ### SQL Given the database schema, here is the SQL query that answers `How many games had 2 goals scored?`: ```sql
SELECT "result" FROM "schedule" WHERE "week"=11;
## Task Generate a SQL query to answer the following question: `What was the result week 11?` ### 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" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result week 11?`: ```sql
SELECT COUNT("democratic_votes") FROM "analytical_table" WHERE "other_votes"<18 AND "pct_of_r_votes"='52.63%' AND "votes_since_1856"<38;
## Task Generate a SQL query to answer the following question: `Name the total number of democratic votes when the other votes are less than 18 and the percentage of R votes are 52.63% and votes since 1856 less than 38` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "analytical_table" ( "state" text, "votes" real, "votes_since_1856" real, "democratic_votes" real, "d_votes_since_1856" real, "pct_of_d_votes" text, "d_pct_since_1856" text, "republican_votes" real, "pct_of_r_votes" text, "r_pct_since_1856" text, "other_votes" real, "o_votes_since_1856" real, "pct_of_o_votes" text, "o_pct_since_1856" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of democratic votes when the other votes are less than 18 and the percentage of R votes are 52.63% and votes since 1856 less than 38`: ```sql
SELECT "date" FROM "uefa_cup" WHERE "opponent"='panathinaikos';
## Task Generate a SQL query to answer the following question: `On what Date was the Opponent Panathinaikos?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "uefa_cup" ( "round" text, "date" text, "opponent" text, "score" text, "attendance" real, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `On what Date was the Opponent Panathinaikos?`: ```sql
SELECT SUM("crowd") FROM "round_14" WHERE "home_team"='st kilda';
## Task Generate a SQL query to answer the following question: `How many people attended games with st kilda as the home side?` ### 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 `How many people attended games with st kilda as the home side?`: ```sql
SELECT "home_team" FROM "round_14" WHERE "crowd">'32,485';
## Task Generate a SQL query to answer the following question: `Who is the home team when the crowd is over 32,485?` ### 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 is the home team when the crowd is over 32,485?`: ```sql
SELECT AVG("floors") FROM "tallest_buildings_under_construction" WHERE "city"='mecca' AND "rank"<12;
## Task Generate a SQL query to answer the following question: `What is the average number of floors for buildings in mecca ranked above 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_buildings_under_construction" ( "rank" real, "name" text, "city" text, "height" text, "floors" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average number of floors for buildings in mecca ranked above 12?`: ```sql
SELECT "city" FROM "tallest_buildings_under_construction" WHERE "rank"<5 AND "name"='lamar tower 1';
## Task Generate a SQL query to answer the following question: `What city is the lamar tower 1, ranked above 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_buildings_under_construction" ( "rank" real, "name" text, "city" text, "height" text, "floors" real ); ### SQL Given the database schema, here is the SQL query that answers `What city is the lamar tower 1, ranked above 5?`: ```sql
SELECT "city" FROM "tallest_buildings_under_construction" WHERE "floors">57;
## Task Generate a SQL query to answer the following question: `What city has a building with over 57 floors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_buildings_under_construction" ( "rank" real, "name" text, "city" text, "height" text, "floors" real ); ### SQL Given the database schema, here is the SQL query that answers `What city has a building with over 57 floors?`: ```sql
SELECT COUNT("laps") FROM "race" WHERE "driver"='antônio pizzonia';
## Task Generate a SQL query to answer the following question: `How many laps did antônio pizzonia do?` ### 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 `How many laps did antônio pizzonia do?`: ```sql
SELECT "constructor" FROM "race" WHERE "time_retired"='handling';
## Task Generate a SQL query to answer the following question: `What is the constructor for time/retired of handling?` ### 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 constructor for time/retired of handling?`: ```sql
SELECT "away_team_score" FROM "round_19" WHERE "venue"='windy hill';
## Task Generate a SQL query to answer the following question: `What was the away team's score at windy hill?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_19" ( "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's score at windy hill?`: ```sql
SELECT AVG("crowd") FROM "round_19" WHERE "away_team_score"='7.13 (55)';
## Task Generate a SQL query to answer the following question: `What is the average crowd size when the away team scores 7.13 (55)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_19" ( "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 average crowd size when the away team scores 7.13 (55)?`: ```sql
SELECT "home_team_score" FROM "round_19" WHERE "away_team_score"='14.11 (95)';
## Task Generate a SQL query to answer the following question: `What is the home team's score when the away side scores 14.11 (95)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_19" ( "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 home team's score when the away side scores 14.11 (95)?`: ```sql
SELECT MAX("round") FROM "2013_draft_picks" WHERE "nationality"='sweden' AND "position"='right wing';
## Task Generate a SQL query to answer the following question: `What is the highest round of a player from Sweden who plays right wing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_draft_picks" ( "round" real, "overall" text, "player" text, "position" text, "nationality" text, "club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest round of a player from Sweden who plays right wing?`: ```sql
SELECT "position" FROM "2013_draft_picks" WHERE "round"<4 AND "overall"='17';
## Task Generate a SQL query to answer the following question: `What is the position of a player from a round less than 4 and an overall of 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_draft_picks" ( "round" real, "overall" text, "player" text, "position" text, "nationality" text, "club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the position of a player from a round less than 4 and an overall of 17?`: ```sql
SELECT AVG("round") FROM "2013_draft_picks" WHERE "overall"='138';
## Task Generate a SQL query to answer the following question: `What is the average round of a player with an overall of 138?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_draft_picks" ( "round" real, "overall" text, "player" text, "position" text, "nationality" text, "club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average round of a player with an overall of 138?`: ```sql
SELECT "player" FROM "2013_draft_picks" WHERE "nationality"='sweden' AND "round">3;
## Task Generate a SQL query to answer the following question: `Who is the player from Sweden from a round after 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_draft_picks" ( "round" real, "overall" text, "player" text, "position" text, "nationality" text, "club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the player from Sweden from a round after 3?`: ```sql
SELECT "nationality" FROM "2013_draft_picks" WHERE "club_team"='linköpings hc (se)';
## Task Generate a SQL query to answer the following question: `What is the nationality of a player from linköpings hc (se)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_draft_picks" ( "round" real, "overall" text, "player" text, "position" text, "nationality" text, "club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the nationality of a player from linköpings hc (se)?`: ```sql
SELECT "crowd" FROM "round_1" WHERE "home_team"='st kilda';
## Task Generate a SQL query to answer the following question: `What is the crowd size for st kilda as the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the crowd size for st kilda as the home team?`: ```sql
SELECT "home_team" FROM "round_1" WHERE "away_team_score"='6.12 (48)';
## Task Generate a SQL query to answer the following question: `When an away team scored 6.12 (48), what was the home team?` ### 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 an away team scored 6.12 (48), what was the home team?`: ```sql
SELECT SUM("pages") FROM "titles" WHERE "translated_title"='thistle among roses';
## Task Generate a SQL query to answer the following question: `I want the sum of pages for thistle among roses` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "titles" ( "swedish_title" text, "norwegian_title" text, "translated_title" text, "published" real, "pages" real, "isbn" text ); ### SQL Given the database schema, here is the SQL query that answers `I want the sum of pages for thistle among roses`: ```sql
SELECT "manager" FROM "the_statement" WHERE "fund"='fmc corporation pension fund';
## Task Generate a SQL query to answer the following question: `Who is the manager for FMC Corporation pension fund?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_statement" ( "fund" text, "manager" text, "fund_period" text, "fund_return" text, "market_return" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the manager for FMC Corporation pension fund?`: ```sql
SELECT "fund" FROM "the_statement" WHERE "fund_return"='19.8% / 13.7%';
## Task Generate a SQL query to answer the following question: `What fund has a fund return of 19.8% / 13.7%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_statement" ( "fund" text, "manager" text, "fund_period" text, "fund_return" text, "market_return" text ); ### SQL Given the database schema, here is the SQL query that answers `What fund has a fund return of 19.8% / 13.7%?`: ```sql
SELECT "position" FROM "overview" WHERE "character"='frank tripp';
## Task Generate a SQL query to answer the following question: `What was the position of Frank Tripp?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overview" ( "character" text, "position" text, "actor" text, "first_episode" text, "final_episode" text, "episodes_credited" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the position of Frank Tripp?`: ```sql
SELECT "final_episode" FROM "overview" WHERE "episodes_credited"=187;
## Task Generate a SQL query to answer the following question: `What was the final episode credited of 187?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overview" ( "character" text, "position" text, "actor" text, "first_episode" text, "final_episode" text, "episodes_credited" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the final episode credited of 187?`: ```sql
SELECT "class" FROM "1890_1904" WHERE "no_built"=55;
## Task Generate a SQL query to answer the following question: `Which class at 55 built?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1890_1904" ( "class" text, "wheels" text, "date" text, "no_built" real, "loco_nos" text, "comments" text ); ### SQL Given the database schema, here is the SQL query that answers `Which class at 55 built?`: ```sql
SELECT "loco_nos" FROM "1890_1904" WHERE "class"='e3';
## Task Generate a SQL query to answer the following question: `What is the Loco Nos of the e3 class?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1890_1904" ( "class" text, "wheels" text, "date" text, "no_built" real, "loco_nos" text, "comments" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Loco Nos of the e3 class?`: ```sql
SELECT SUM("crowd") FROM "round_6" WHERE "venue"='junction oval';
## Task Generate a SQL query to answer the following question: `How many people attended Junction Oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people attended Junction Oval?`: ```sql
SELECT "home_team_score" FROM "round_6" WHERE "away_team"='fitzroy';
## Task Generate a SQL query to answer the following question: `What was the score of the team that played against Fitzroy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_6" ( "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 score of the team that played against Fitzroy?`: ```sql
SELECT "2011_12_season" FROM "girone_b" WHERE "capacity">'27,543' AND "club"='melfi';
## Task Generate a SQL query to answer the following question: `Which 2011-12 season with a volume larger than 27,543 at club of melfi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "girone_b" ( "club" text, "city" text, "stadium" text, "capacity" real, "2011_12_season" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2011-12 season with a volume larger than 27,543 at club of melfi?`: ```sql
SELECT "stadium" FROM "girone_b" WHERE "city"='melfi';
## Task Generate a SQL query to answer the following question: `What is the name of the stadium for the city of melfi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "girone_b" ( "club" text, "city" text, "stadium" text, "capacity" real, "2011_12_season" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the stadium for the city of melfi?`: ```sql
SELECT SUM("capacity") FROM "girone_b" WHERE "stadium"='pasquale ianniello';
## Task Generate a SQL query to answer the following question: `What is the total capacity for the stadium of pasquale ianniello?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "girone_b" ( "club" text, "city" text, "stadium" text, "capacity" real, "2011_12_season" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total capacity for the stadium of pasquale ianniello?`: ```sql