output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "score" FROM "singles_titles_5" WHERE "opponent_in_the_final"='shiho hisamatsu'; |
## Task
Generate a SQL query to answer the following question:
`Name the score for when the opponent in the final is shiho hisamatsu`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_titles_5" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for when the opponent in the final is shiho hisamatsu`:
```sql
|
SELECT "tournament" FROM "singles_titles_5" WHERE "date"='april 3, 2005'; |
## Task
Generate a SQL query to answer the following question:
`Name the tournament for april 3, 2005`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_titles_5" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the tournament for april 3, 2005`:
```sql
|
SELECT "score" FROM "singles_titles_5" WHERE "date"='may 11, 2003'; |
## Task
Generate a SQL query to answer the following question:
`Name th score for may 11, 2003`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_titles_5" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name th score for may 11, 2003`:
```sql
|
SELECT "constructor" FROM "race" WHERE "driver"='pedro diniz'; |
## Task
Generate a SQL query to answer the following question:
`Who constructed pedro diniz's car?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who constructed pedro diniz's car?`:
```sql
|
SELECT COUNT("grid") FROM "race" WHERE "driver"='david coulthard' AND "laps">45; |
## Task
Generate a SQL query to answer the following question:
`What is the grid total for david coulthard with over 45 laps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid total for david coulthard with over 45 laps?`:
```sql
|
SELECT AVG("average") FROM "final" WHERE "start_value"=9.9 AND "total"=9.612; |
## Task
Generate a SQL query to answer the following question:
`What is the average for the gymnast with a 9.9 start value and a total of 9.612?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final" (
"gymnast" text,
"start_value" real,
"penalty" text,
"average" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average for the gymnast with a 9.9 start value and a total of 9.612?`:
```sql
|
SELECT "penalty" FROM "final" WHERE "average">9.662 AND "total">9.706; |
## Task
Generate a SQL query to answer the following question:
`What was the penalty for the gymnast with average above 9.662 and total is more than 9.706?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final" (
"gymnast" text,
"start_value" real,
"penalty" text,
"average" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the penalty for the gymnast with average above 9.662 and total is more than 9.706?`:
```sql
|
SELECT "category" FROM "indian_telly_awards" WHERE "year">2005 AND "for_the_show"='kasautii zindagii kay'; |
## Task
Generate a SQL query to answer the following question:
`What category was Kasautii Zindagii Kay nominated for after 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indian_telly_awards" (
"year" real,
"category" text,
"character" text,
"for_the_show" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What category was Kasautii Zindagii Kay nominated for after 2005?`:
```sql
|
SELECT "for_the_show" FROM "indian_telly_awards" WHERE "category"='best actor in a lead role β female (popular)' AND "year"=2006; |
## Task
Generate a SQL query to answer the following question:
`What show had a nomination for best actor in a lead role β female (popular) in 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indian_telly_awards" (
"year" real,
"category" text,
"character" text,
"for_the_show" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What show had a nomination for best actor in a lead role β female (popular) in 2006?`:
```sql
|
SELECT AVG("week") FROM "schedule" WHERE "result"='l 15-13'; |
## Task
Generate a SQL query to answer the following question:
`In what week was the Result L 15-13?`
### 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 `In what week was the Result L 15-13?`:
```sql
|
SELECT SUM("attendance") FROM "schedule" WHERE "opponent"='dallas cowboys' AND "week">5; |
## Task
Generate a SQL query to answer the following question:
`What is the Attendance with Opponent Dallas Cowboys in a Week greater than 5?`
### 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 Attendance with Opponent Dallas Cowboys in a Week greater than 5?`:
```sql
|
SELECT COUNT("points") FROM "complete_world_championship_results" WHERE "engine"='maserati v12' AND "year"=1968; |
## Task
Generate a SQL query to answer the following question:
`How many points for maserati v12 engines in 1968?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_world_championship_results" (
"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 for maserati v12 engines in 1968?`:
```sql
|
SELECT "entrant" FROM "complete_world_championship_results" WHERE "year"<1963 AND "points"<3; |
## Task
Generate a SQL query to answer the following question:
`What entrant had less than 3 points before 1963?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_world_championship_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What entrant had less than 3 points before 1963?`:
```sql
|
SELECT "pole_position" FROM "grands_prix" WHERE "grand_prix"='french grand prix'; |
## Task
Generate a SQL query to answer the following question:
`Who had the pole at the French Grand Prix?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grands_prix" (
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the pole at the French Grand Prix?`:
```sql
|
SELECT "constructor" FROM "grands_prix" WHERE "grand_prix"='canadian grand prix'; |
## Task
Generate a SQL query to answer the following question:
`Who constructed the car that won the Canadian Grand Prix?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grands_prix" (
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who constructed the car that won the Canadian Grand Prix?`:
```sql
|
SELECT "fastest_lap" FROM "grands_prix" WHERE "winning_driver"='michael schumacher'; |
## Task
Generate a SQL query to answer the following question:
`When Michael Schumacher won the race, who had the fastest lap?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grands_prix" (
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Michael Schumacher won the race, who had the fastest lap?`:
```sql
|
SELECT "school" FROM "2010_boys_team" WHERE "college"='kentucky' AND "height"='6-7'; |
## Task
Generate a SQL query to answer the following question:
`For the Player playing for the College of Kentucky and a Height of 6-7 what was their corresponding School?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_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 `For the Player playing for the College of Kentucky and a Height of 6-7 what was their corresponding School?`:
```sql
|
SELECT "school" FROM "2010_boys_team" WHERE "player"='terrence jones'; |
## Task
Generate a SQL query to answer the following question:
`What School did Terrence Jones play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_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 `What School did Terrence Jones play for?`:
```sql
|
SELECT "player" FROM "2010_boys_team" WHERE "height"='6-3'; |
## Task
Generate a SQL query to answer the following question:
`What Player(s) have a Height of 6-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_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 `What Player(s) have a Height of 6-3?`:
```sql
|
SELECT "nba_draft" FROM "2010_boys_team" WHERE "height"='6-9' AND "college"='kentucky'; |
## Task
Generate a SQL query to answer the following question:
`For the player with a Height of 6-9 and College of Kentucky what was their NBA Draft?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_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 `For the player with a Height of 6-9 and College of Kentucky what was their NBA Draft?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "date"='february 9'; |
## Task
Generate a SQL query to answer the following question:
`What was the score on February 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on February 9?`:
```sql
|
SELECT AVG("points") FROM "complete_formula_one_results" WHERE "team"='arrows racing team' AND "year"<1983; |
## Task
Generate a SQL query to answer the following question:
`What is the average point total for arrows racing team before 1983?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average point total for arrows racing team before 1983?`:
```sql
|
SELECT "team" FROM "complete_formula_one_results" WHERE "year">1990 AND "chassis"='jordan 193'; |
## Task
Generate a SQL query to answer the following question:
`What team has jordan 193 chassis after 1990?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team has jordan 193 chassis after 1990?`:
```sql
|
SELECT "points" FROM "complete_formula_one_results" WHERE "year">1985 AND "engine"='cosworth v8'; |
## Task
Generate a SQL query to answer the following question:
`How many points for the cosworth v8 engine after 1985?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points for the cosworth v8 engine after 1985?`:
```sql
|
SELECT "constructor" FROM "race" WHERE "grid"<2; |
## Task
Generate a SQL query to answer the following question:
`What is the constructor for the driver with grid less than 2?`
### 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 the driver with grid less than 2?`:
```sql
|
SELECT "position" FROM "w" WHERE "player"='aaron williams'; |
## Task
Generate a SQL query to answer the following question:
`What Position did Aaron Williams play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "w" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Position did Aaron Williams play?`:
```sql
|
SELECT "years_for_jazz" FROM "w" WHERE "position"='guard' AND "school_club_team"='notre dame'; |
## Task
Generate a SQL query to answer the following question:
`At Position of guard, from the School/Club Team Notre Dame, how many Years for Jazz did that person play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "w" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `At Position of guard, from the School/Club Team Notre Dame, how many Years for Jazz did that person play?`:
```sql
|
SELECT "school_club_team" FROM "w" WHERE "player"='andre wakefield'; |
## Task
Generate a SQL query to answer the following question:
`Which School/Club Team did Andre Wakefield play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "w" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which School/Club Team did Andre Wakefield play for?`:
```sql
|
SELECT "nationality" FROM "w" WHERE "position"='guard' AND "school_club_team"='notre dame'; |
## Task
Generate a SQL query to answer the following question:
`What is the Nationality of the player who had Position of guard from School/Club Team Notre Dame?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "w" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Nationality of the player who had Position of guard from School/Club Team Notre Dame?`:
```sql
|
SELECT "school_club_team" FROM "w" WHERE "player"='howard wood'; |
## Task
Generate a SQL query to answer the following question:
`What School/Club Team is Player Howard Wood from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "w" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What School/Club Team is Player Howard Wood from?`:
```sql
|
SELECT "school_club_team" FROM "w" WHERE "player"='aaron williams'; |
## Task
Generate a SQL query to answer the following question:
`What School/Club Team is Player Aaron Williams from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "w" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What School/Club Team is Player Aaron Williams from?`:
```sql
|
SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "floors"='5'; |
## Task
Generate a SQL query to answer the following question:
`What is the street address of the building with 5 floors?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the street address of the building with 5 floors?`:
```sql
|
SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "floors"='40'; |
## Task
Generate a SQL query to answer the following question:
`What is the street address of the building with 40 floors?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the street address of the building with 40 floors?`:
```sql
|
SELECT "years_as_tallest" FROM "timeline_of_tallest_buildings" WHERE "floors"='44'; |
## Task
Generate a SQL query to answer the following question:
`What were the years the building with 44 floors was tallest?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the years the building with 44 floors was tallest?`:
```sql
|
SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "name"='oliver building'; |
## Task
Generate a SQL query to answer the following question:
`What is the street address of Oliver Building?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the street address of Oliver Building?`:
```sql
|
SELECT "winning_party_2003" FROM "labour_targets" WHERE "constituency"='aberdeen north'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Winning party of 2003 that has the Constituency of aberdeen north?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "labour_targets" (
"rank" real,
"constituency" text,
"winning_party_2003" text,
"swing_to_gain" real,
"labour_s_place_2003" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Winning party of 2003 that has the Constituency of aberdeen north?`:
```sql
|
SELECT MIN("rank") FROM "labour_targets" WHERE "constituency"='strathkelvin and bearsden'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the lowest Rank that has the Constituency of strathkelvin and bearsden?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "labour_targets" (
"rank" real,
"constituency" text,
"winning_party_2003" text,
"swing_to_gain" real,
"labour_s_place_2003" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the lowest Rank that has the Constituency of strathkelvin and bearsden?`:
```sql
|
SELECT SUM("swing_to_gain") FROM "labour_targets" WHERE "constituency"='caithness, sutherland and easter ross'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the sum of Swing to gain that has Constituency of caithness, sutherland and easter ross?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "labour_targets" (
"rank" real,
"constituency" text,
"winning_party_2003" text,
"swing_to_gain" real,
"labour_s_place_2003" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the sum of Swing to gain that has Constituency of caithness, sutherland and easter ross?`:
```sql
|
SELECT "labour_s_place_2003" FROM "labour_targets" WHERE "result"='con hold' AND "constituency"='ayr'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me Labour's place 2003 that has the Result of con hold, and the Constituency of ayr?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "labour_targets" (
"rank" real,
"constituency" text,
"winning_party_2003" text,
"swing_to_gain" real,
"labour_s_place_2003" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me Labour's place 2003 that has the Result of con hold, and the Constituency of ayr?`:
```sql
|
SELECT "time_retired" FROM "race" WHERE "laps"=75; |
## Task
Generate a SQL query to answer the following question:
`What's the Time/Retired of Laps of 75?`
### 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's the Time/Retired of Laps of 75?`:
```sql
|
SELECT "driver" FROM "race" WHERE "laps">78 AND "time_retired"='+ 1:09.4'; |
## Task
Generate a SQL query to answer the following question:
`Which Driver has Laps larger than 78, and a Time/Retired of + 1:09.4?`
### 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 Laps larger than 78, and a Time/Retired of + 1:09.4?`:
```sql
|
SELECT COUNT("laps") FROM "race" WHERE "grid"=4; |
## Task
Generate a SQL query to answer the following question:
`Hows many Laps are in a Grid of 4?`
### 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 `Hows many Laps are in a Grid of 4?`:
```sql
|
SELECT "date" FROM "round_20" WHERE "crowd">'15,601' AND "away_team_score"='13.13 (91)'; |
## Task
Generate a SQL query to answer the following question:
`On what date did the away team score 13.13 (91) in front of a crowd larger than 15,601?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did the away team score 13.13 (91) in front of a crowd larger than 15,601?`:
```sql
|
SELECT "away_team_score" FROM "round_20" WHERE "home_team_score"='13.20 (98)'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the away team where the home team scored 13.20 (98)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the away team where the home team scored 13.20 (98)?`:
```sql
|
SELECT "away_team_score" FROM "round_20" WHERE "home_team"='st kilda'; |
## Task
Generate a SQL query to answer the following question:
`How much did the away team score that played St Kilda?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much did the away team score that played St Kilda?`:
```sql
|
SELECT "venue" FROM "round_20" WHERE "away_team"='collingwood'; |
## Task
Generate a SQL query to answer the following question:
`What venue did the away team Collingwood play at?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue did the away team Collingwood play at?`:
```sql
|
SELECT "away_team_score" FROM "round_20" WHERE "venue"='kardinia park'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the away team that played at Kardinia Park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the away team that played at Kardinia Park?`:
```sql
|
SELECT "away_team" FROM "round_20" WHERE "venue"='kardinia park'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the away team that played at Kardinia Park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the away team that played at Kardinia Park?`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "week">5 AND "opponent"='bye'; |
## Task
Generate a SQL query to answer the following question:
`What is the attendance in the bye week after week 5?`
### 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 is the attendance in the bye week after week 5?`:
```sql
|
SELECT "location" FROM "women_s_winners" WHERE "time"='1:59:12'; |
## Task
Generate a SQL query to answer the following question:
`What location had 1:59:12 in time?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_s_winners" (
"year" real,
"athlete" text,
"nation" text,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location had 1:59:12 in time?`:
```sql
|
SELECT "away_team_score" FROM "round_14" WHERE "away_team"='north melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What is the score for the away team of north melbourne?`
### 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 score for the away team of north melbourne?`:
```sql
|
SELECT "venue" FROM "round_19" WHERE "away_team_score"='8.7 (55)'; |
## Task
Generate a SQL query to answer the following question:
`If the away team scored 8.7 (55), what venue did the play at?`
### 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 `If the away team scored 8.7 (55), what venue did the play at?`:
```sql
|
SELECT "date" FROM "round_19" WHERE "home_team_score"='25.23 (173)'; |
## Task
Generate a SQL query to answer the following question:
`When the home team scored 25.23 (173), what date did they play/`
### 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 `When the home team scored 25.23 (173), what date did they play/`:
```sql
|
SELECT "home_team" FROM "round_19" WHERE "home_team_score"='25.23 (173)'; |
## Task
Generate a SQL query to answer the following question:
`Which home team scored 25.23 (173)?`
### 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 `Which home team scored 25.23 (173)?`:
```sql
|
SELECT MIN("crowd") FROM "round_19" WHERE "away_team_score"='7.9 (51)'; |
## Task
Generate a SQL query to answer the following question:
`When the away team scored 7.9 (51), what was the smallest crowd that turned out?`
### 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 `When the away team scored 7.9 (51), what was the smallest crowd that turned out?`:
```sql
|
SELECT "home_team" FROM "round_19" WHERE "venue"='victoria park'; |
## Task
Generate a SQL query to answer the following question:
`Which home team plays at victoria park?`
### 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 `Which home team plays at victoria park?`:
```sql
|
SELECT "competition" FROM "achievements" WHERE "event"='team all-round' AND "year"<1913; |
## Task
Generate a SQL query to answer the following question:
`what is the competition for the event team all-round in the year before 1913?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the competition for the event team all-round in the year before 1913?`:
```sql
|
SELECT "event" FROM "achievements" WHERE "year"<1913 AND "position"='2nd'; |
## Task
Generate a SQL query to answer the following question:
`what is the event for the year less than 1913 with the position of 2nd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the event for the year less than 1913 with the position of 2nd?`:
```sql
|
SELECT "competition" FROM "achievements" WHERE "venue"='paris' AND "position"='1st' AND "event"='parallel bars'; |
## Task
Generate a SQL query to answer the following question:
`what is the competition in paris for the parallel bars with a position of 1st?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the competition in paris for the parallel bars with a position of 1st?`:
```sql
|
SELECT "competition" FROM "achievements" WHERE "year">1911 AND "position"='1st' AND "event"='rings'; |
## Task
Generate a SQL query to answer the following question:
`what is the competition in a year after 1911 with the position of 1st for the rings?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the competition in a year after 1911 with the position of 1st for the rings?`:
```sql
|
SELECT "year" FROM "achievements" WHERE "position"='1st' AND "venue"='paris'; |
## Task
Generate a SQL query to answer the following question:
`what is the year that the position was 1st in paris?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the year that the position was 1st in paris?`:
```sql
|
SELECT "home_team" FROM "round_19" WHERE "venue"='mcg'; |
## Task
Generate a SQL query to answer the following question:
`Which team plays their home matches at the mcg Venue?`
### 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 `Which team plays their home matches at the mcg Venue?`:
```sql
|
SELECT "host" FROM "season_1" WHERE "original_airdate"='june 11, 2007'; |
## Task
Generate a SQL query to answer the following question:
`What host has an original air date of june 11, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1" (
"production_no" text,
"episode_no" real,
"original_airdate" text,
"episode_title" text,
"host" text
);
### SQL
Given the database schema, here is the SQL query that answers `What host has an original air date of june 11, 2007?`:
```sql
|
SELECT "location" FROM "mixed_martial_arts_record" WHERE "record"='3-2'; |
## Task
Generate a SQL query to answer the following question:
`Where is the location of a team with a 3-2 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" real,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the location of a team with a 3-2 record?`:
```sql
|
SELECT "res" FROM "mixed_martial_arts_record" WHERE "record"='4-2'; |
## Task
Generate a SQL query to answer the following question:
`What is the result of the team with the 4-2 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" real,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the team with the 4-2 record?`:
```sql
|
SELECT "date" FROM "round_10" WHERE "crowd">'24,824' AND "venue"='scg'; |
## Task
Generate a SQL query to answer the following question:
`What day was played in SCG with the attendance more than 24,824?`
### 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 day was played in SCG with the attendance more than 24,824?`:
```sql
|
SELECT "away_team_score" FROM "round_10" WHERE "home_team"='st kilda'; |
## Task
Generate a SQL query to answer the following question:
`What was St Kilda's away team score?`
### 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 St Kilda's away team score?`:
```sql
|
SELECT AVG("crowd") FROM "round_4" WHERE "venue"='moorabbin oval'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance at Moorabbin Oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance at Moorabbin Oval?`:
```sql
|
SELECT "away_team" FROM "round_4" WHERE "home_team"='melbourne'; |
## Task
Generate a SQL query to answer the following question:
`Who was Melbourne's away team opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_4" (
"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 Melbourne's away team opponent?`:
```sql
|
SELECT "crowd" FROM "round_4" WHERE "away_team"='footscray'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance at the Footscray away game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance at the Footscray away game?`:
```sql
|
SELECT "competition" FROM "international_goals" WHERE "date"='14 june 2008'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the competition that happened on 14 june 2008`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the competition that happened on 14 june 2008`:
```sql
|
SELECT "score" FROM "international_goals" WHERE "venue"='tanteen recreation ground, st. george''s'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the score for Venue of tanteen recreation ground, st. george's`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the score for Venue of tanteen recreation ground, st. george's`:
```sql
|
SELECT COUNT("num_of_weeks") FROM "seasons" WHERE "season"='3 β spring 2008'; |
## Task
Generate a SQL query to answer the following question:
`How many weeks are associated with Season 3 β spring 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "seasons" (
"season" text,
"num_of_stars" real,
"num_of_weeks" real,
"season_premiere_date" text,
"season_finale_date" text,
"winner" text,
"runner_up" text,
"third_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks are associated with Season 3 β spring 2008?`:
```sql
|
SELECT "winner" FROM "seasons" WHERE "num_of_weeks"<13 AND "third_place"='robert kudelski'; |
## Task
Generate a SQL query to answer the following question:
`Who won when robert kudelski finished with under 13 weeks?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "seasons" (
"season" text,
"num_of_stars" real,
"num_of_weeks" real,
"season_premiere_date" text,
"season_finale_date" text,
"winner" text,
"runner_up" text,
"third_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won when robert kudelski finished with under 13 weeks?`:
```sql
|
SELECT AVG("attendance") FROM "game_log" WHERE "opponent"='brewers' AND "score"='6β3'; |
## Task
Generate a SQL query to answer the following question:
`What is the average attendance when Brewers are the opponent with a score of 6β3?`
### 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 is the average attendance when Brewers are the opponent with a score of 6β3?`:
```sql
|
SELECT "loss" FROM "game_log" WHERE "date"='june 10'; |
## Task
Generate a SQL query to answer the following question:
`What loss occurred on June 10?`
### 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 loss occurred on June 10?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "score"='5β4'; |
## Task
Generate a SQL query to answer the following question:
`Who is the opponent with a score of 5β4?`
### 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 `Who is the opponent with a score of 5β4?`:
```sql
|
SELECT "week" FROM "schedule" WHERE "result"='w 28-17'; |
## Task
Generate a SQL query to answer the following question:
`What is the week for Result of w 28-17?`
### 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 week for Result of w 28-17?`:
```sql
|
SELECT AVG("attendance") FROM "schedule" WHERE "date"='october 26, 1947'; |
## Task
Generate a SQL query to answer the following question:
`What is the avarage Attendance for the Date of october 26, 1947?`
### 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 avarage Attendance for the Date of october 26, 1947?`:
```sql
|
SELECT "years" FROM "kaipara" WHERE "name"='arapohue school'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Years that has the Name of arapohue school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kaipara" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Years that has the Name of arapohue school?`:
```sql
|
SELECT MIN("decile") FROM "kaipara" WHERE "area"='matakohe' AND "roll">86; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the lowest Decile that has the Area of matakohe, and the Roll larger than 86?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kaipara" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the lowest Decile that has the Area of matakohe, and the Roll larger than 86?`:
```sql
|
SELECT COUNT("roll") FROM "kaipara" WHERE "area"='aranga'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the total number of Roll that has the Area of aranga?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kaipara" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the total number of Roll that has the Area of aranga?`:
```sql
|
SELECT "name" FROM "kaipara" WHERE "roll">419; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Name that has the Roll larger than 419?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kaipara" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Name that has the Roll larger than 419?`:
```sql
|
SELECT COUNT("week") FROM "schedule" WHERE "opponent"='at new orleans saints' AND "attendance">'53,448'; |
## Task
Generate a SQL query to answer the following question:
`Which total number of Week has an Opponent of at new orleans saints, and an Attendance larger than 53,448?`
### 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 total number of Week has an Opponent of at new orleans saints, and an Attendance larger than 53,448?`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "result"='w 51-21'; |
## Task
Generate a SQL query to answer the following question:
`Which Attendance has a Result of w 51-21?`
### 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 Attendance has a Result of w 51-21?`:
```sql
|
SELECT "away_team" FROM "round_8" WHERE "venue"='arden street oval'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Away team at Arden Street Oval?`
### 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 `Who was the Away team at Arden Street Oval?`:
```sql
|
SELECT MIN("crowd") FROM "round_8" WHERE "away_team_score"='17.16 (118)'; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest crowd size for a game when the away team scored 17.16 (118)?`
### 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 is the smallest crowd size for a game when the away team scored 17.16 (118)?`:
```sql
|
SELECT AVG("top_25") FROM "summary" WHERE "wins">0; |
## Task
Generate a SQL query to answer the following question:
`What is the average top-25 value for majors that have more than 0 wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average top-25 value for majors that have more than 0 wins?`:
```sql
|
SELECT MAX("cuts_made") FROM "summary" WHERE "events"=7 AND "top_25">2; |
## Task
Generate a SQL query to answer the following question:
`What is the most number of cuts made that had more than 7 events played and more than 2 top-25s?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most number of cuts made that had more than 7 events played and more than 2 top-25s?`:
```sql
|
SELECT AVG("cuts_made") FROM "summary" WHERE "top_25"<2; |
## Task
Generate a SQL query to answer the following question:
`For top-25 values under 2, what is the average number of cuts made?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `For top-25 values under 2, what is the average number of cuts made?`:
```sql
|
SELECT "election" FROM "general_election_results" WHERE "seats">57 AND "d_il"='24th'; |
## Task
Generate a SQL query to answer the following question:
`With a dail of 24th and more than 57 seats, what is the election?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_election_results" (
"election" text,
"d_il" text,
"share_of_votes" text,
"seats" real,
"total_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `With a dail of 24th and more than 57 seats, what is the election?`:
```sql
|
SELECT MAX("seats") FROM "general_election_results" WHERE "share_of_votes"='45.3%' AND "total_seats"<166; |
## Task
Generate a SQL query to answer the following question:
`with shares of 45.3% and total seats less than 166. what is the greatest number of seat?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_election_results" (
"election" text,
"d_il" text,
"share_of_votes" text,
"seats" real,
"total_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `with shares of 45.3% and total seats less than 166. what is the greatest number of seat?`:
```sql
|
SELECT MAX("total_seats") FROM "general_election_results" WHERE "seats"=77 AND "share_of_votes"='44.2%'; |
## Task
Generate a SQL query to answer the following question:
`with a share of 44.2% and 77 seats, what is the greatest seat total?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_election_results" (
"election" text,
"d_il" text,
"share_of_votes" text,
"seats" real,
"total_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `with a share of 44.2% and 77 seats, what is the greatest seat total?`:
```sql
|
SELECT "long" FROM "regular_season" WHERE "year"='1994'; |
## Task
Generate a SQL query to answer the following question:
`What is the long in 1994?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"year" text,
"team" text,
"comp" text,
"long" text,
"rate" text,
"r_att" text,
"r_yds" text,
"r_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the long in 1994?`:
```sql
|
SELECT "team" FROM "regular_season" WHERE "long"='67'; |
## Task
Generate a SQL query to answer the following question:
`Which team has a long of 67?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"year" text,
"team" text,
"comp" text,
"long" text,
"rate" text,
"r_att" text,
"r_yds" text,
"r_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has a long of 67?`:
```sql
|
SELECT "r_avg" FROM "regular_season" WHERE "r_att"='9'; |
## Task
Generate a SQL query to answer the following question:
`What is the RAvg of the year with Ratt of 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"year" text,
"team" text,
"comp" text,
"long" text,
"rate" text,
"r_att" text,
"r_yds" text,
"r_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the RAvg of the year with Ratt of 9?`:
```sql
|
SELECT "r_att" FROM "regular_season" WHERE "long"='78'; |
## Task
Generate a SQL query to answer the following question:
`What is the Ratt of the year with a 78 long?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"year" text,
"team" text,
"comp" text,
"long" text,
"rate" text,
"r_att" text,
"r_yds" text,
"r_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Ratt of the year with a 78 long?`:
```sql
|
SELECT "team" FROM "regular_season" WHERE "r_avg"='1.3'; |
## Task
Generate a SQL query to answer the following question:
`Which team has a Ravg of 1.3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"year" text,
"team" text,
"comp" text,
"long" text,
"rate" text,
"r_att" text,
"r_yds" text,
"r_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has a Ravg of 1.3?`:
```sql
|
SELECT "rate" FROM "regular_season" WHERE "year"='17 years'; |
## Task
Generate a SQL query to answer the following question:
`What is the rate of 17 years?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"year" text,
"team" text,
"comp" text,
"long" text,
"rate" text,
"r_att" text,
"r_yds" text,
"r_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rate of 17 years?`:
```sql
|
SELECT "samurai" FROM "2005" WHERE "stampede"='t. mask'; |
## Task
Generate a SQL query to answer the following question:
`Name the samurai for stampede of t. mask`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005" (
"block_a" text,
"goto" text,
"jado" text,
"kakihara" text,
"kanemoto" text,
"minoru" text,
"samurai" text,
"stampede" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the samurai for stampede of t. mask`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.