output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "2007_08" FROM "performance_and_rankings_timeline" WHERE "2011_12"='ur'; |
## Task
Generate a SQL query to answer the following question:
`Which 2007/ 08 has a 2011/ 12 of ur?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_and_rankings_timeline" (
"2005_06" text,
"2006_07" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2007/ 08 has a 2011/ 12 of ur?`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "date"='september 11, 1983'; |
## Task
Generate a SQL query to answer the following question:
`What was the Attendance on September 11, 1983?`
### 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 was the Attendance on September 11, 1983?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "result"='w 37-21'; |
## Task
Generate a SQL query to answer the following question:
`What was the Opponent during the game with a Result of W 37-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 `What was the Opponent during the game with a Result of W 37-21?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "week"=8; |
## Task
Generate a SQL query to answer the following question:
`What was the Result on Week 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Result on Week 8?`:
```sql
|
SELECT MIN("games") FROM "world_championship_group_d_belgium" WHERE "lost"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of games with less than 1 loss?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "world_championship_group_d_belgium" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of games with less than 1 loss?`:
```sql
|
SELECT "nation" FROM "men" WHERE "points"=108.8; |
## Task
Generate a SQL query to answer the following question:
`What was the nationality of the skater with 108.8 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"rank" real,
"name" text,
"club" text,
"nation" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the nationality of the skater with 108.8 points?`:
```sql
|
SELECT COUNT("points") FROM "men" WHERE "club"='btsc'; |
## Task
Generate a SQL query to answer the following question:
`How many points for the skater from club btsc?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"rank" real,
"name" text,
"club" text,
"nation" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points for the skater from club btsc?`:
```sql
|
SELECT "original_title" FROM "films_directed_by_tarkovsky" WHERE "year"=1983 AND "country"='italy'; |
## Task
Generate a SQL query to answer the following question:
`Which Original title has a Year of 1983, and a Country of italy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "films_directed_by_tarkovsky" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"length" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Original title has a Year of 1983, and a Country of italy?`:
```sql
|
SELECT COUNT("year") FROM "films_directed_by_tarkovsky" WHERE "original_title"='ΠΈΠ²Π°Π½ΠΎΠ²ΠΎ Π΄Π΅ΡΡΡΠ²ΠΎ'; |
## Task
Generate a SQL query to answer the following question:
`How many years have an Original title of ΠΈΠ²Π°Π½ΠΎΠ²ΠΎ Π΄Π΅ΡΡΡΠ²ΠΎ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "films_directed_by_tarkovsky" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"length" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years have an Original title of ΠΈΠ²Π°Π½ΠΎΠ²ΠΎ Π΄Π΅ΡΡΡΠ²ΠΎ?`:
```sql
|
SELECT "length" FROM "films_directed_by_tarkovsky" WHERE "country"='soviet union' AND "year">1975; |
## Task
Generate a SQL query to answer the following question:
`Which Length has a Country of soviet union, and a Year larger than 1975?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "films_directed_by_tarkovsky" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"length" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Length has a Country of soviet union, and a Year larger than 1975?`:
```sql
|
SELECT MIN("year") FROM "motorcycle_grand_prix_results" WHERE "wins"<0; |
## Task
Generate a SQL query to answer the following question:
`What is listed as the lowest Year with a Wins that's smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed as the lowest Year with a Wins that's smaller than 0?`:
```sql
|
SELECT "wins" FROM "motorcycle_grand_prix_results" WHERE "year"=1989; |
## Task
Generate a SQL query to answer the following question:
`What is listed for the Wins with a Year of 1989?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed for the Wins with a Year of 1989?`:
```sql
|
SELECT "class" FROM "motorcycle_grand_prix_results" WHERE "team"='cagiva' AND "points"=4; |
## Task
Generate a SQL query to answer the following question:
`What is listed for the Class that's got a Team of Cagiva and Points of 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed for the Class that's got a Team of Cagiva and Points of 4?`:
```sql
|
SELECT COUNT("area_km_2") FROM "population" WHERE "population_2001_census">'274,095' AND "district_headquarters"='jharsuguda'; |
## Task
Generate a SQL query to answer the following question:
`How many km2 has a Population 2001 Census larger than 274,095, and a District Headquarters of jharsuguda?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"district" text,
"district_headquarters" text,
"area_km_2" real,
"population_1991_census" real,
"population_2001_census" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many km2 has a Population 2001 Census larger than 274,095, and a District Headquarters of jharsuguda?`:
```sql
|
SELECT SUM("population_2001_census") FROM "population" WHERE "population_1991_census"='476,815'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of Population 2001 Census that has 476,815 in Population 1991 Census?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"district" text,
"district_headquarters" text,
"area_km_2" real,
"population_1991_census" real,
"population_2001_census" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of Population 2001 Census that has 476,815 in Population 1991 Census?`:
```sql
|
SELECT COUNT("population_2001_census") FROM "population" WHERE "district_headquarters"='jharsuguda' AND "area_km_2"<'2,081'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of Population 2001 Census that has jharsuguda District Headquarters with an Area smaller than 2,081?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"district" text,
"district_headquarters" text,
"area_km_2" real,
"population_1991_census" real,
"population_2001_census" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of Population 2001 Census that has jharsuguda District Headquarters with an Area smaller than 2,081?`:
```sql
|
SELECT "played" FROM "2011_2012_table" WHERE "losing_bonus"='3'; |
## Task
Generate a SQL query to answer the following question:
`What played has 3 as the losing bonus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_2012_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What played has 3 as the losing bonus?`:
```sql
|
SELECT "try_bonus" FROM "2011_2012_table" WHERE "club"='llangefni rfc'; |
## Task
Generate a SQL query to answer the following question:
`What is the try bonus that has llangefni rfc as the club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_2012_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the try bonus that has llangefni rfc as the club?`:
```sql
|
SELECT "played" FROM "2011_2012_table" WHERE "points_for"='247'; |
## Task
Generate a SQL query to answer the following question:
`What played has 247 as the points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_2012_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What played has 247 as the points?`:
```sql
|
SELECT "try_bonus" FROM "2011_2012_table" WHERE "tries_against"='19'; |
## Task
Generate a SQL query to answer the following question:
`What try bonus has 19 as the tries against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_2012_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What try bonus has 19 as the tries against?`:
```sql
|
SELECT "points_for" FROM "2011_2012_table" WHERE "played"='18' AND "club"='bala rfc'; |
## Task
Generate a SQL query to answer the following question:
`What points has 18 for the played and bala rfc as the club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_2012_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What points has 18 for the played and bala rfc as the club?`:
```sql
|
SELECT "try_bonus" FROM "2011_2012_table" WHERE "played"='18' AND "points_for"='204'; |
## Task
Generate a SQL query to answer the following question:
`What try bonus has 18 as the played of and 204 as the points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_2012_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What try bonus has 18 as the played of and 204 as the points?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "visitor"='montreal' AND "date"='february 2'; |
## Task
Generate a SQL query to answer the following question:
`What record has montreal as the visitor, and february 2 as the date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What record has montreal as the visitor, and february 2 as the date?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "date"='february 25'; |
## Task
Generate a SQL query to answer the following question:
`What record has February 25 as the date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What record has February 25 as the date?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "visitor"='boston'; |
## Task
Generate a SQL query to answer the following question:
`What date has boston as the visitor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has boston as the visitor?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "home"='vancouver' AND "date"='february 16'; |
## Task
Generate a SQL query to answer the following question:
`What score has vancouver as the home, and february 16 as the date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has vancouver as the home, and february 16 as the date?`:
```sql
|
SELECT MAX("drawn") FROM "campeonato_brasileiro_s_rie_a" WHERE "team"='corinthians' AND "lost">15; |
## Task
Generate a SQL query to answer the following question:
`Team of corinthians, and a Lost larger than 15 has which highest drawn?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_brasileiro_s_rie_a" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Team of corinthians, and a Lost larger than 15 has which highest drawn?`:
```sql
|
SELECT MAX("against") FROM "campeonato_brasileiro_s_rie_a" WHERE "difference"='- 20' AND "position"<17; |
## Task
Generate a SQL query to answer the following question:
`Difference of - 20, and a Position smaller than 17 is the highest against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_brasileiro_s_rie_a" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Difference of - 20, and a Position smaller than 17 is the highest against?`:
```sql
|
SELECT AVG("points") FROM "campeonato_brasileiro_s_rie_a" WHERE "against"<53 AND "drawn"<10 AND "played"<38; |
## Task
Generate a SQL query to answer the following question:
`Against smaller than 53, and a Drawn smaller than 10, and a Played smaller than 38 has what average points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_brasileiro_s_rie_a" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Against smaller than 53, and a Drawn smaller than 10, and a Played smaller than 38 has what average points?`:
```sql
|
SELECT "score" FROM "regular_season" WHERE "home"='toronto maple leafs' AND "date"='november 12'; |
## Task
Generate a SQL query to answer the following question:
`Which score was for Toronto Maple Leafs at home on November 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which score was for Toronto Maple Leafs at home on November 12?`:
```sql
|
SELECT "home" FROM "regular_season" WHERE "visitor"='chicago black hawks' AND "score"='2β3'; |
## Task
Generate a SQL query to answer the following question:
`Which home team had a visitor of Chicago Black Hawks with a score of 2β3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team had a visitor of Chicago Black Hawks with a score of 2β3?`:
```sql
|
SELECT "home" FROM "regular_season" WHERE "date"='november 26'; |
## Task
Generate a SQL query to answer the following question:
`Who was home on November 26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was home on November 26?`:
```sql
|
SELECT "visitor" FROM "regular_season" WHERE "record"='5β8β4'; |
## Task
Generate a SQL query to answer the following question:
`What was the visitor with a record of 5β8β4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the visitor with a record of 5β8β4?`:
```sql
|
SELECT AVG("rank") FROM "league_table" WHERE "point">52 AND "draw"<10 AND "goal_loss"<44 AND "lose"<15; |
## Task
Generate a SQL query to answer the following question:
`What was the average rank of a player with more than 52 points, fewer than 10 draws, a goal loss under 44, and a loss under 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_table" (
"rank" real,
"name" text,
"point" real,
"played" real,
"draw" real,
"lose" real,
"goal_in" real,
"goal_loss" real,
"goal_diff" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average rank of a player with more than 52 points, fewer than 10 draws, a goal loss under 44, and a loss under 15?`:
```sql
|
SELECT MAX("lose") FROM "league_table" WHERE "name"='santos' AND "point">45; |
## Task
Generate a SQL query to answer the following question:
`What was the highest number of lose for a player named Santos with more than 45 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_table" (
"rank" real,
"name" text,
"point" real,
"played" real,
"draw" real,
"lose" real,
"goal_in" real,
"goal_loss" real,
"goal_diff" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest number of lose for a player named Santos with more than 45 points?`:
```sql
|
SELECT "report" FROM "pre_season_cup_group_stage" WHERE "score"='0-0' AND "away_team"='sydney fc'; |
## Task
Generate a SQL query to answer the following question:
`What report has a score of 0-0 with Sydney FC?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season_cup_group_stage" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What report has a score of 0-0 with Sydney FC?`:
```sql
|
SELECT "date" FROM "pre_season_cup_group_stage" WHERE "score"='0-0'; |
## Task
Generate a SQL query to answer the following question:
`On what date was the score 0-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season_cup_group_stage" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the score 0-0?`:
```sql
|
SELECT "home_team" FROM "pre_season_cup_group_stage" WHERE "score"='1-3'; |
## Task
Generate a SQL query to answer the following question:
`Which home team had the score 1-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season_cup_group_stage" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team had the score 1-3?`:
```sql
|
SELECT "venue" FROM "pre_season_cup_group_stage" WHERE "away_team"='round 2'; |
## Task
Generate a SQL query to answer the following question:
`Where did the away team have round 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season_cup_group_stage" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did the away team have round 2?`:
```sql
|
SELECT "date" FROM "pre_season_cup_group_stage" WHERE "venue"='round 3'; |
## Task
Generate a SQL query to answer the following question:
`When did the venue of round 3 happen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season_cup_group_stage" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the venue of round 3 happen?`:
```sql
|
SELECT MIN("density") FROM "lg_as" WHERE "population_2011_census"='13,708'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest density of a town with a 13,708 2011 population census ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lg_as" (
"local_government_area" text,
"principal_town" text,
"land_area_km" real,
"population_2011_census" real,
"density" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest density of a town with a 13,708 2011 population census ?`:
```sql
|
SELECT "orbit" FROM "escape_velocities_at_altitude" WHERE "specific_orbital_energy"='β29.8 mj/kg'; |
## Task
Generate a SQL query to answer the following question:
`specific orbital energy of β29.8 mj/kg has what orbit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "escape_velocities_at_altitude" (
"orbit" text,
"center_to_center_distance" text,
"altitude_above_the_earth_s_surface" text,
"orbital_period" text,
"specific_orbital_energy" text
);
### SQL
Given the database schema, here is the SQL query that answers `specific orbital energy of β29.8 mj/kg has what orbit?`:
```sql
|
SELECT "orbital_period" FROM "escape_velocities_at_altitude" WHERE "altitude_above_the_earth_s_surface"='500 to 39,900 km'; |
## Task
Generate a SQL query to answer the following question:
`altitude above the Earth's surface of 500 to 39,900 km has what orbital period?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "escape_velocities_at_altitude" (
"orbit" text,
"center_to_center_distance" text,
"altitude_above_the_earth_s_surface" text,
"orbital_period" text,
"specific_orbital_energy" text
);
### SQL
Given the database schema, here is the SQL query that answers `altitude above the Earth's surface of 500 to 39,900 km has what orbital period?`:
```sql
|
SELECT "altitude_above_the_earth_s_surface" FROM "escape_velocities_at_altitude" WHERE "specific_orbital_energy"='β0.5 mj/kg'; |
## Task
Generate a SQL query to answer the following question:
`specific orbital energy of β0.5 mj/kg is what altitude above the earth's surface?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "escape_velocities_at_altitude" (
"orbit" text,
"center_to_center_distance" text,
"altitude_above_the_earth_s_surface" text,
"orbital_period" text,
"specific_orbital_energy" text
);
### SQL
Given the database schema, here is the SQL query that answers `specific orbital energy of β0.5 mj/kg is what altitude above the earth's surface?`:
```sql
|
SELECT "orbit" FROM "escape_velocities_at_altitude" WHERE "altitude_above_the_earth_s_surface"='357,000 to 399,000 km'; |
## Task
Generate a SQL query to answer the following question:
`Earth's surface of 357,000 to 399,000 km has what orbit altitude above?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "escape_velocities_at_altitude" (
"orbit" text,
"center_to_center_distance" text,
"altitude_above_the_earth_s_surface" text,
"orbital_period" text,
"specific_orbital_energy" text
);
### SQL
Given the database schema, here is the SQL query that answers `Earth's surface of 357,000 to 399,000 km has what orbit altitude above?`:
```sql
|
SELECT "specific_orbital_energy" FROM "escape_velocities_at_altitude" WHERE "orbital_period"='89 to 128 min'; |
## Task
Generate a SQL query to answer the following question:
`Orbital period of 89 to 128 min has what specific orbital energy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "escape_velocities_at_altitude" (
"orbit" text,
"center_to_center_distance" text,
"altitude_above_the_earth_s_surface" text,
"orbital_period" text,
"specific_orbital_energy" text
);
### SQL
Given the database schema, here is the SQL query that answers `Orbital period of 89 to 128 min has what specific orbital energy?`:
```sql
|
SELECT "orbital_period" FROM "escape_velocities_at_altitude" WHERE "center_to_center_distance"='6,900 to 46,300 km'; |
## Task
Generate a SQL query to answer the following question:
`center-to-center distance of 6,900 to 46,300 km involves which orbital period?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "escape_velocities_at_altitude" (
"orbit" text,
"center_to_center_distance" text,
"altitude_above_the_earth_s_surface" text,
"orbital_period" text,
"specific_orbital_energy" text
);
### SQL
Given the database schema, here is the SQL query that answers `center-to-center distance of 6,900 to 46,300 km involves which orbital period?`:
```sql
|
SELECT MIN("fa_cup") FROM "scorers" WHERE "malaysia_cup"<0; |
## Task
Generate a SQL query to answer the following question:
`What was the lowest FA Cup for a Malaysia Cup of 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scorers" (
"player" text,
"league" real,
"malaysia_cup" real,
"fa_cup" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest FA Cup for a Malaysia Cup of 0?`:
```sql
|
SELECT MIN("malaysia_cup") FROM "scorers" WHERE "player"='zamri hassan' AND "fa_cup"<0; |
## Task
Generate a SQL query to answer the following question:
`What is Zamri Hassan's lowest Malaysia Cup when there were an FA Cup of 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scorers" (
"player" text,
"league" real,
"malaysia_cup" real,
"fa_cup" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Zamri Hassan's lowest Malaysia Cup when there were an FA Cup of 0?`:
```sql
|
SELECT MIN("league") FROM "scorers" WHERE "malaysia_cup">0; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest league for the Malaysia Cup when it was larger than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scorers" (
"player" text,
"league" real,
"malaysia_cup" real,
"fa_cup" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest league for the Malaysia Cup when it was larger than 0?`:
```sql
|
SELECT MIN("bronze") FROM "medallists_by_nation" WHERE "nation"='switzerland' AND "silver"<3; |
## Task
Generate a SQL query to answer the following question:
`How many Bronze medals did Switzerland with less than 3 Silver medals receive?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medallists_by_nation" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Bronze medals did Switzerland with less than 3 Silver medals receive?`:
```sql
|
SELECT MIN("silver") FROM "medallists_by_nation" WHERE "bronze">3; |
## Task
Generate a SQL query to answer the following question:
`What is the least amount of Silver medals that have more than 3 Bronze?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medallists_by_nation" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least amount of Silver medals that have more than 3 Bronze?`:
```sql
|
SELECT AVG("game") FROM "regular_season" WHERE "points"<84 AND "march"=8; |
## Task
Generate a SQL query to answer the following question:
`What is the average game for March 8 with less than 84 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average game for March 8 with less than 84 points?`:
```sql
|
SELECT MAX("march") FROM "regular_season" WHERE "record"='35β16β6β3'; |
## Task
Generate a SQL query to answer the following question:
`What is the latest in March when the record of 35β16β6β3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest in March when the record of 35β16β6β3?`:
```sql
|
SELECT "competition" FROM "brazil_national_team" WHERE "score"='3-0'; |
## Task
Generate a SQL query to answer the following question:
`Name the competition for score of 3-0`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "brazil_national_team" (
"date" text,
"city" text,
"result" text,
"score" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the competition for score of 3-0`:
```sql
|
SELECT "competition" FROM "brazil_national_team" WHERE "date"='september 10, 2008'; |
## Task
Generate a SQL query to answer the following question:
`Name the competition for september 10, 2008`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "brazil_national_team" (
"date" text,
"city" text,
"result" text,
"score" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the competition for september 10, 2008`:
```sql
|
SELECT "score" FROM "brazil_national_team" WHERE "competition"='world cup qualifying' AND "date"='october 15, 2008'; |
## Task
Generate a SQL query to answer the following question:
`Name the sscore for world cup qualifying october 15, 2008`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "brazil_national_team" (
"date" text,
"city" text,
"result" text,
"score" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sscore for world cup qualifying october 15, 2008`:
```sql
|
SELECT "competition" FROM "brazil_national_team" WHERE "date"='november 19, 2008'; |
## Task
Generate a SQL query to answer the following question:
`Name the competition for november 19, 2008`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "brazil_national_team" (
"date" text,
"city" text,
"result" text,
"score" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the competition for november 19, 2008`:
```sql
|
SELECT "date" FROM "brazil_national_team" WHERE "city"='rio de janeiro'; |
## Task
Generate a SQL query to answer the following question:
`Name the date for rio de janeiro`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "brazil_national_team" (
"date" text,
"city" text,
"result" text,
"score" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for rio de janeiro`:
```sql
|
SELECT COUNT("fall_08") FROM "geography_of_students" WHERE "fall_06"=57 AND "fall_05"<74; |
## Task
Generate a SQL query to answer the following question:
`What number is Fall 08 from the state with 57 in Fall 06 and 74 or less in Fall 05?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "geography_of_students" (
"states" text,
"fall_05" real,
"fall_06" real,
"fall_07" real,
"fall_08" real,
"fall_09" real
);
### SQL
Given the database schema, here is the SQL query that answers `What number is Fall 08 from the state with 57 in Fall 06 and 74 or less in Fall 05?`:
```sql
|
SELECT AVG("fall_06") FROM "geography_of_students" WHERE "fall_08"<79 AND "fall_07">36 AND "fall_05">74; |
## Task
Generate a SQL query to answer the following question:
`What number is Fall 06 from the state with 79 or less in Fall 08, 36 or greater in Fall 07 and greater than 74 in Fall 05?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "geography_of_students" (
"states" text,
"fall_05" real,
"fall_06" real,
"fall_07" real,
"fall_08" real,
"fall_09" real
);
### SQL
Given the database schema, here is the SQL query that answers `What number is Fall 06 from the state with 79 or less in Fall 08, 36 or greater in Fall 07 and greater than 74 in Fall 05?`:
```sql
|
SELECT AVG("fall_06") FROM "geography_of_students" WHERE "fall_09"=34; |
## Task
Generate a SQL query to answer the following question:
`What number is Fall 06 from the state with 34 for Fall 09?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "geography_of_students" (
"states" text,
"fall_05" real,
"fall_06" real,
"fall_07" real,
"fall_08" real,
"fall_09" real
);
### SQL
Given the database schema, here is the SQL query that answers `What number is Fall 06 from the state with 34 for Fall 09?`:
```sql
|
SELECT "record" FROM "toronto_maple_leafs_4_montreal_canadiens" WHERE "visitor"='toronto maple leafs' AND "score"='3β10'; |
## Task
Generate a SQL query to answer the following question:
`What was the record when the visitor was toronto maple leafs and the score was 3β10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "toronto_maple_leafs_4_montreal_canadiens" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record when the visitor was toronto maple leafs and the score was 3β10?`:
```sql
|
SELECT "score" FROM "toronto_maple_leafs_4_montreal_canadiens" WHERE "visitor"='toronto maple leafs' AND "date"='march 22'; |
## Task
Generate a SQL query to answer the following question:
`What was the score when the visitor was toronto maple leafs on march 22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "toronto_maple_leafs_4_montreal_canadiens" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the visitor was toronto maple leafs on march 22?`:
```sql
|
SELECT "visitor" FROM "toronto_maple_leafs_4_montreal_canadiens" WHERE "home"='toronto maple leafs' AND "score"='4β1'; |
## Task
Generate a SQL query to answer the following question:
`What was the Visitor when the home was toronto maple leafs and the score was 4β1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "toronto_maple_leafs_4_montreal_canadiens" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Visitor when the home was toronto maple leafs and the score was 4β1?`:
```sql
|
SELECT AVG("gbp_price") FROM "auction_history" WHERE "event"='monterey' AND "auction_house"='rm' AND "price"='154,000' AND "year">2003; |
## Task
Generate a SQL query to answer the following question:
`What is the average GBP Price with an event in Monterey, a RM auction house, and a price of $154,000 later than 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "auction_history" (
"auction_house" text,
"year" real,
"event" text,
"price" real,
"gbp_price" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average GBP Price with an event in Monterey, a RM auction house, and a price of $154,000 later than 2003?`:
```sql
|
SELECT COUNT("episode_count") FROM "seasonal_ratings_broadcast_history" WHERE "viewers_in_millions"=7.79; |
## Task
Generate a SQL query to answer the following question:
`How many total episodes aired over all seasons with 7.79 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "seasonal_ratings_broadcast_history" (
"season" real,
"network" text,
"time_slot" text,
"season_premiere" text,
"season_finale" text,
"episode_count" real,
"tv_season" text,
"season_rank" text,
"viewers_in_millions" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many total episodes aired over all seasons with 7.79 million viewers?`:
```sql
|
SELECT "h_a" FROM "manchester_and_district_challenge_cup" WHERE "round"='semi-final'; |
## Task
Generate a SQL query to answer the following question:
`Was the semi-final round held at home or away?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "manchester_and_district_challenge_cup" (
"date" text,
"round" text,
"opponents" text,
"h_a" text,
"result_f_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `Was the semi-final round held at home or away?`:
```sql
|
SELECT "opponents" FROM "manchester_and_district_challenge_cup" WHERE "round"='final'; |
## Task
Generate a SQL query to answer the following question:
`Which opponent made it to the final round?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "manchester_and_district_challenge_cup" (
"date" text,
"round" text,
"opponents" text,
"h_a" text,
"result_f_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent made it to the final round?`:
```sql
|
SELECT "result_f_a" FROM "manchester_and_district_challenge_cup" WHERE "h_a"='hurst'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game played in hurst?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "manchester_and_district_challenge_cup" (
"date" text,
"round" text,
"opponents" text,
"h_a" text,
"result_f_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game played in hurst?`:
```sql
|
SELECT "date" FROM "manchester_and_district_challenge_cup" WHERE "h_a"='whalley range'; |
## Task
Generate a SQL query to answer the following question:
`When did the game in whalley range take place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "manchester_and_district_challenge_cup" (
"date" text,
"round" text,
"opponents" text,
"h_a" text,
"result_f_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the game in whalley range take place?`:
```sql
|
SELECT MIN("erp_w") FROM "full_powered_stations" WHERE "frequency_m_hz"=91.3; |
## Task
Generate a SQL query to answer the following question:
`Which ERP W is the lowest one that has a Frequency MHz of 91.3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_powered_stations" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which ERP W is the lowest one that has a Frequency MHz of 91.3?`:
```sql
|
SELECT "class" FROM "full_powered_stations" WHERE "frequency_m_hz"=107.5; |
## Task
Generate a SQL query to answer the following question:
`Which Class has a Frequency MHz of 107.5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_powered_stations" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Class has a Frequency MHz of 107.5?`:
```sql
|
SELECT MAX("frequency_m_hz") FROM "full_powered_stations" WHERE "city_of_license"='byron, ga'; |
## Task
Generate a SQL query to answer the following question:
`Which Frequency MHz is the highest one that has a City of license of byron, ga?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_powered_stations" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Frequency MHz is the highest one that has a City of license of byron, ga?`:
```sql
|
SELECT "fcc_info" FROM "full_powered_stations" WHERE "call_sign"='wsja'; |
## Task
Generate a SQL query to answer the following question:
`Which FCC info has a Call sign of wsja?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_powered_stations" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which FCC info has a Call sign of wsja?`:
```sql
|
SELECT "district" FROM "california" WHERE "party"='republican' AND "result"='lost re-election democratic gain'; |
## Task
Generate a SQL query to answer the following question:
`Which District has a Party of republican and a Result of lost re-election democratic gain?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which District has a Party of republican and a Result of lost re-election democratic gain?`:
```sql
|
SELECT "first_elected" FROM "california" WHERE "party"='republican' AND "result"='retired democratic gain'; |
## Task
Generate a SQL query to answer the following question:
`What is First elected that has republican Party and a Result of retired democratic gain?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is First elected that has republican Party and a Result of retired democratic gain?`:
```sql
|
SELECT "first_elected" FROM "california" WHERE "district"='california 3'; |
## Task
Generate a SQL query to answer the following question:
`What is the First elected of california 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the First elected of california 3?`:
```sql
|
SELECT "incumbent" FROM "california" WHERE "result"='retired democratic gain'; |
## Task
Generate a SQL query to answer the following question:
`Which Incumbent has a Result of retired democratic gain?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Incumbent has a Result of retired democratic gain?`:
```sql
|
SELECT "first_elected" FROM "california" WHERE "incumbent"='none (new seat)'; |
## Task
Generate a SQL query to answer the following question:
`Which First elected has a Incumbent of none (new seat)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which First elected has a Incumbent of none (new seat)?`:
```sql
|
SELECT "first_elected" FROM "california" WHERE "party"='republican' AND "district"='california 4'; |
## Task
Generate a SQL query to answer the following question:
`What is the First elected that has a republican party and california 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the First elected that has a republican party and california 4?`:
```sql
|
SELECT "result" FROM "tennent_s_scottish_cup" WHERE "opponent"='dundee'; |
## Task
Generate a SQL query to answer the following question:
`What was the result when Dundee was the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tennent_s_scottish_cup" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result when Dundee was the opponent?`:
```sql
|
SELECT "celebrity" FROM "series_9_2009" WHERE "entered"='day 1' AND "exited"='day 20'; |
## Task
Generate a SQL query to answer the following question:
`Who entered on day 1 and exited on day 20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_9_2009" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who entered on day 1 and exited on day 20?`:
```sql
|
SELECT "exited" FROM "series_9_2009" WHERE "celebrity"='lucy benjamin'; |
## Task
Generate a SQL query to answer the following question:
`When did lucy benjamin exit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_9_2009" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did lucy benjamin exit?`:
```sql
|
SELECT "finished" FROM "series_9_2009" WHERE "celebrity"='camilla dallerup'; |
## Task
Generate a SQL query to answer the following question:
`When did camilla dallerup finish?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_9_2009" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did camilla dallerup finish?`:
```sql
|
SELECT "entered" FROM "series_9_2009" WHERE "celebrity"='kim woodburn'; |
## Task
Generate a SQL query to answer the following question:
`When did kim woodburn enter?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_9_2009" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did kim woodburn enter?`:
```sql
|
SELECT "score" FROM "march" WHERE "record"='37β26β9'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game with a record of 37β26β9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game with a record of 37β26β9?`:
```sql
|
SELECT "score" FROM "march" WHERE "record"='33β25β9'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game with a record of 33β25β9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game with a record of 33β25β9?`:
```sql
|
SELECT MAX("attendance") FROM "game_log" WHERE "loss"='francis (4β9)'; |
## Task
Generate a SQL query to answer the following question:
`Loss of francis (4β9) has what highest attendance figure?`
### 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 `Loss of francis (4β9) has what highest attendance figure?`:
```sql
|
SELECT AVG("attendance") FROM "game_log" WHERE "loss"='de la rosa (8β8)'; |
## Task
Generate a SQL query to answer the following question:
`Loss of de la rosa (8β8) has what average attendance?`
### 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 `Loss of de la rosa (8β8) has what average attendance?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "loss"='francis (4β10)'; |
## Task
Generate a SQL query to answer the following question:
`Loss of francis (4β10) happened on what date?`
### 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 `Loss of francis (4β10) happened on what date?`:
```sql
|
SELECT "score" FROM "international_goals" WHERE "date"='8 september 1999'; |
## Task
Generate a SQL query to answer the following question:
`What was the score on 8 September 1999?`
### 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 `What was the score on 8 September 1999?`:
```sql
|
SELECT "result" FROM "international_goals" WHERE "date"='16 november 2003'; |
## Task
Generate a SQL query to answer the following question:
`What was the result on 16 November 2003?`
### 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 `What was the result on 16 November 2003?`:
```sql
|
SELECT "set_1" FROM "pool_a" WHERE "set_2"='26β24'; |
## Task
Generate a SQL query to answer the following question:
`Which Set 1 has a Set 2 of 26β24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_a" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Set 1 has a Set 2 of 26β24?`:
```sql
|
SELECT "set_2" FROM "pool_a" WHERE "date"='25 may' AND "set_3"='21β25'; |
## Task
Generate a SQL query to answer the following question:
`Which Set 2 has a Date of 25 may, and a Set 3 of 21β25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_a" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Set 2 has a Date of 25 may, and a Set 3 of 21β25?`:
```sql
|
SELECT "date" FROM "pool_a" WHERE "set_3"='21β25'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Set 3 of 21β25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_a" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Set 3 of 21β25?`:
```sql
|
SELECT "set_1" FROM "pool_a" WHERE "date"='24 may' AND "total"='57β75'; |
## Task
Generate a SQL query to answer the following question:
`Which Set 1 has a Date of 24 may, and a Total of 57β75?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_a" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Set 1 has a Date of 24 may, and a Total of 57β75?`:
```sql
|
SELECT "set_2" FROM "pool_a" WHERE "set_1"='25β15' AND "score"='3β0'; |
## Task
Generate a SQL query to answer the following question:
`Which Set 2 has a Set 1 of 25β15, and a Score of 3β0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_a" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Set 2 has a Set 1 of 25β15, and a Score of 3β0?`:
```sql
|
SELECT "total" FROM "pool_a" WHERE "set_1"='25β22'; |
## Task
Generate a SQL query to answer the following question:
`Which Total has a Set 1 of 25β22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_a" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total has a Set 1 of 25β22?`:
```sql
|
SELECT "segment_b" FROM "season_2_2002" WHERE "netflix"='s01e21'; |
## Task
Generate a SQL query to answer the following question:
`What was the segment b for Netflix s01e21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2_2002" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the segment b for Netflix s01e21?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.