output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "week_6" FROM "nominations_table" WHERE "week_3"='kashmera rakhi' AND "week_1"='amit bobby'; |
## Task
Generate a SQL query to answer the following question:
`Who did the housemate that nominated Kashmera Rakhi in week 3 and Amit Bobby in week 1 nominate in week 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nominations_table" (
"week_1" text,
"week_3" text,
"week_4" text,
"week_6" text,
"week_7" text,
"week_8" text,
"week_9" text,
"week_10" text,
"final_week_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the housemate that nominated Kashmera Rakhi in week 3 and Amit Bobby in week 1 nominate in week 6?`:
```sql
|
SELECT "week_8" FROM "nominations_table" WHERE "week_1"='carol roopali'; |
## Task
Generate a SQL query to answer the following question:
`Who did the housemate that nominated Carol Roopali in week 1 nominate in week 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nominations_table" (
"week_1" text,
"week_3" text,
"week_4" text,
"week_6" text,
"week_7" text,
"week_8" text,
"week_9" text,
"week_10" text,
"final_week_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the housemate that nominated Carol Roopali in week 1 nominate in week 8?`:
```sql
|
SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_football_class"='aa' AND "school"='centerville'; |
## Task
Generate a SQL query to answer the following question:
`What is the IHSAA class of Centerville, which plays IHSAA class AA football?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IHSAA class of Centerville, which plays IHSAA class AA football?`:
```sql
|
SELECT "location" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_football_class"='aa' AND "school"='winchester community'; |
## Task
Generate a SQL query to answer the following question:
`Winchester Community school, which plays IHSAA class AA football, is located where?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Winchester Community school, which plays IHSAA class AA football, is located where?`:
```sql
|
SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "size"<400 AND "mascot"='tigers'; |
## Task
Generate a SQL query to answer the following question:
`What is the IHSAA class of the school with less than 400 students and a mascot of the Tigers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IHSAA class of the school with less than 400 students and a mascot of the Tigers?`:
```sql
|
SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_football_class"='a' AND "size"<301; |
## Task
Generate a SQL query to answer the following question:
`What county has a school with less than 301 students and plays IHSAA class A football?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What county has a school with less than 301 students and plays IHSAA class A football?`:
```sql
|
SELECT MIN("game") FROM "playoffs" WHERE "score"='102-104'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest game when the score is 102-104?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest game when the score is 102-104?`:
```sql
|
SELECT "score" FROM "playoffs" WHERE "game"=4; |
## Task
Generate a SQL query to answer the following question:
`what is the score for game 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the score for game 4?`:
```sql
|
SELECT "series" FROM "playoffs" WHERE "game"=4; |
## Task
Generate a SQL query to answer the following question:
`what is the series for game 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the series for game 4?`:
```sql
|
SELECT SUM("pendle") FROM "summary_of_results_2009" WHERE "burnley"<0; |
## Task
Generate a SQL query to answer the following question:
`Which Pendle has a Burnley smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary_of_results_2009" (
"party" text,
"burnley" real,
"chorley" real,
"fylde" real,
"hyndburn" real,
"lancaster" real,
"pendle" real,
"preston" real,
"ribble_valley" real,
"rossendale" real,
"south_ribble" real,
"west_lancashire" real,
"wyre" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pendle has a Burnley smaller than 0?`:
```sql
|
SELECT COUNT("rossendale") FROM "summary_of_results_2009" WHERE "fylde"<0; |
## Task
Generate a SQL query to answer the following question:
`How much Rossendale has a Fylde smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary_of_results_2009" (
"party" text,
"burnley" real,
"chorley" real,
"fylde" real,
"hyndburn" real,
"lancaster" real,
"pendle" real,
"preston" real,
"ribble_valley" real,
"rossendale" real,
"south_ribble" real,
"west_lancashire" real,
"wyre" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Rossendale has a Fylde smaller than 0?`:
```sql
|
SELECT SUM("hyndburn") FROM "summary_of_results_2009" WHERE "fylde">3; |
## Task
Generate a SQL query to answer the following question:
`How much Hyndburn has a Fylde larger than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary_of_results_2009" (
"party" text,
"burnley" real,
"chorley" real,
"fylde" real,
"hyndburn" real,
"lancaster" real,
"pendle" real,
"preston" real,
"ribble_valley" real,
"rossendale" real,
"south_ribble" real,
"west_lancashire" real,
"wyre" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Hyndburn has a Fylde larger than 3?`:
```sql
|
SELECT SUM("burnley") FROM "summary_of_results_2009" WHERE "fylde"<1 AND "rossendale">0; |
## Task
Generate a SQL query to answer the following question:
`How much Burnley has a Fylde smaller than 1, and a Rossendale larger than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary_of_results_2009" (
"party" text,
"burnley" real,
"chorley" real,
"fylde" real,
"hyndburn" real,
"lancaster" real,
"pendle" real,
"preston" real,
"ribble_valley" real,
"rossendale" real,
"south_ribble" real,
"west_lancashire" real,
"wyre" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Burnley has a Fylde smaller than 1, and a Rossendale larger than 0?`:
```sql
|
SELECT "years" FROM "italy" WHERE "soap_opera"='un posto al sole' AND "actor"='riccardo polizzy carbonelli'; |
## Task
Generate a SQL query to answer the following question:
`What are the years that have un posto al sole as the soap opera, with riccardo polizzy carbonelli as the actor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "italy" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the years that have un posto al sole as the soap opera, with riccardo polizzy carbonelli as the actor?`:
```sql
|
SELECT "years" FROM "italy" WHERE "duration"='18 years' AND "actor"='patrizio rispo'; |
## Task
Generate a SQL query to answer the following question:
`What years have a duration of 18 years, and patrizio rispo as the actor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "italy" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years have a duration of 18 years, and patrizio rispo as the actor?`:
```sql
|
SELECT "years" FROM "italy" WHERE "duration"='15 years' AND "character"='giulia poggi'; |
## Task
Generate a SQL query to answer the following question:
`What are the years that have a duration of 15 years and giulia poggi as the character?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "italy" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the years that have a duration of 15 years and giulia poggi as the character?`:
```sql
|
SELECT "years" FROM "italy" WHERE "actor"='claudia ruffo'; |
## Task
Generate a SQL query to answer the following question:
`What years have claudia ruffo as the actor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "italy" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years have claudia ruffo as the actor?`:
```sql
|
SELECT "duration" FROM "italy" WHERE "actor"='pietro genuardi'; |
## Task
Generate a SQL query to answer the following question:
`What is the duration that has pietro genuardi as the actor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "italy" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the duration that has pietro genuardi as the actor?`:
```sql
|
SELECT "soap_opera" FROM "italy" WHERE "duration"='13 years' AND "actor"='marina giulia cavalli'; |
## Task
Generate a SQL query to answer the following question:
`What is the soap opera that has a duration of 13 years, with marina giulia cavalli as the actor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "italy" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the soap opera that has a duration of 13 years, with marina giulia cavalli as the actor?`:
```sql
|
SELECT MIN("attendance") FROM "schedule" WHERE "date"='december 14, 1958' AND "week">12; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest attendance for December 14, 1958 after week 12?`
### 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 lowest attendance for December 14, 1958 after week 12?`:
```sql
|
SELECT COUNT("week") FROM "schedule" WHERE "opponent"='chicago bears'; |
## Task
Generate a SQL query to answer the following question:
`What is the total for the week in the game against the Chicago Bears`
### 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 total for the week in the game against the Chicago Bears`:
```sql
|
SELECT MAX("attendance") FROM "schedule" WHERE "date"='december 14, 1958' AND "week">12; |
## Task
Generate a SQL query to answer the following question:
`What is the highest attendance for December 14, 1958 for after week 12`
### 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 highest attendance for December 14, 1958 for after week 12`:
```sql
|
SELECT "outcome" FROM "doubles_16_10_6" WHERE "year">2003 AND "score"='6β0, 6β3'; |
## Task
Generate a SQL query to answer the following question:
`What is the Outcome of the Match played after 2003 with a Score of 6β0, 6β3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_16_10_6" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Outcome of the Match played after 2003 with a Score of 6β0, 6β3?`:
```sql
|
SELECT "outcome" FROM "doubles_16_10_6" WHERE "score"='6β1, 6β1'; |
## Task
Generate a SQL query to answer the following question:
`What is the Outcome of the match with a Score of 6β1, 6β1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_16_10_6" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Outcome of the match with a Score of 6β1, 6β1?`:
```sql
|
SELECT "name" FROM "semifinal_2" WHERE "rank"=5; |
## Task
Generate a SQL query to answer the following question:
`Who has rank 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has rank 5?`:
```sql
|
SELECT "nationality" FROM "semifinal_2" WHERE "rank"=4; |
## Task
Generate a SQL query to answer the following question:
`Which nationality has rank 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which nationality has rank 4?`:
```sql
|
SELECT "film_title_used_in_nomination" FROM "nominees" WHERE "original_title"='matrimonio all''italiana'; |
## Task
Generate a SQL query to answer the following question:
`What title was used in the nomination of Matrimonio All'Italiana?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nominees" (
"year_ceremony" text,
"category" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What title was used in the nomination of Matrimonio All'Italiana?`:
```sql
|
SELECT "language" FROM "nominees" WHERE "category"='best actor' AND "original_title"='pelle erobreren'; |
## Task
Generate a SQL query to answer the following question:
`What language was the film Pelle Erobreren, which received the best actor nomination, in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nominees" (
"year_ceremony" text,
"category" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What language was the film Pelle Erobreren, which received the best actor nomination, in?`:
```sql
|
SELECT "film_title_used_in_nomination" FROM "nominees" WHERE "language"='spanish' AND "original_title"='traffic'; |
## Task
Generate a SQL query to answer the following question:
`What title was used in the nomination of the Spanish language film Traffic?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nominees" (
"year_ceremony" text,
"category" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What title was used in the nomination of the Spanish language film Traffic?`:
```sql
|
SELECT "film_title_used_in_nomination" FROM "nominees" WHERE "original_title"='una giornata particolare'; |
## Task
Generate a SQL query to answer the following question:
`What title was used in the nomination of Una Giornata Particolare?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nominees" (
"year_ceremony" text,
"category" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What title was used in the nomination of Una Giornata Particolare?`:
```sql
|
SELECT "date" FROM "australia" WHERE "position"='back' AND "year">1964 AND "test_debut"='1st rl test v new zealand'; |
## Task
Generate a SQL query to answer the following question:
`What date has a Position of back, later than 1964, and a Test debut of 1st rl test v new zealand?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia" (
"player" text,
"test_debut" text,
"year" real,
"cross_code_debut" text,
"date" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has a Position of back, later than 1964, and a Test debut of 1st rl test v new zealand?`:
```sql
|
SELECT "position" FROM "australia" WHERE "year"<1907 AND "cross_code_debut"='inaugural rl test v new zealand' AND "test_debut"='inaugural ru test v new zealand'; |
## Task
Generate a SQL query to answer the following question:
`What is the position earlier than 1907, with a cross-code debut of inaugural rl test v new zealand, and a test debut of inaugural ru test v new zealand?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia" (
"player" text,
"test_debut" text,
"year" real,
"cross_code_debut" text,
"date" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position earlier than 1907, with a cross-code debut of inaugural rl test v new zealand, and a test debut of inaugural ru test v new zealand?`:
```sql
|
SELECT "cross_code_debut" FROM "australia" WHERE "year">1958 AND "player"='dick thornett'; |
## Task
Generate a SQL query to answer the following question:
`What is the cross-code debut later than 1958 for Dick Thornett?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia" (
"player" text,
"test_debut" text,
"year" real,
"cross_code_debut" text,
"date" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the cross-code debut later than 1958 for Dick Thornett?`:
```sql
|
SELECT "position" FROM "australia" WHERE "cross_code_debut"='1st ru test v ireland'; |
## Task
Generate a SQL query to answer the following question:
`What position has a Cross-code debut of 1st ru test v ireland?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia" (
"player" text,
"test_debut" text,
"year" real,
"cross_code_debut" text,
"date" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position has a Cross-code debut of 1st ru test v ireland?`:
```sql
|
SELECT "time" FROM "a_b_first_round" WHERE "away_team"='shatin'; |
## Task
Generate a SQL query to answer the following question:
`What was the time for the match with away team Shatin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "a_b_first_round" (
"time" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the time for the match with away team Shatin?`:
```sql
|
SELECT "time" FROM "a_b_first_round" WHERE "away_team"='convoy sun hei team a'; |
## Task
Generate a SQL query to answer the following question:
`What was the time for the match with away team Convoy Sun Hei Team A?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "a_b_first_round" (
"time" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the time for the match with away team Convoy Sun Hei Team A?`:
```sql
|
SELECT "away_team" FROM "a_b_first_round" WHERE "time"='18:30'; |
## Task
Generate a SQL query to answer the following question:
`What was the away team for the match that had a time of 18:30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "a_b_first_round" (
"time" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team for the match that had a time of 18:30?`:
```sql
|
SELECT "time" FROM "a_b_first_round" WHERE "away_team"='mutual team b'; |
## Task
Generate a SQL query to answer the following question:
`What was the time for the match with away team Mutual Team B?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "a_b_first_round" (
"time" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the time for the match with away team Mutual Team B?`:
```sql
|
SELECT "time" FROM "a_b_first_round" WHERE "home_team"='hkssf'; |
## Task
Generate a SQL query to answer the following question:
`What was the time for the match that had a a home team of HKSSF?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "a_b_first_round" (
"time" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the time for the match that had a a home team of HKSSF?`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "date"='december 26, 1982'; |
## Task
Generate a SQL query to answer the following question:
`How many people attended on december 26, 1982?`
### 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 `How many people attended on december 26, 1982?`:
```sql
|
SELECT COUNT("byes") FROM "2012_ladder" WHERE "wins"<11 AND "wimmera_fl"='minyip murtoa' AND "losses"<6; |
## Task
Generate a SQL query to answer the following question:
`How many Byes have Wins smaller than 11, and a Wimmera FL of minyip murtoa, and Losses smaller than 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012_ladder" (
"wimmera_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Byes have Wins smaller than 11, and a Wimmera FL of minyip murtoa, and Losses smaller than 6?`:
```sql
|
SELECT AVG("losses") FROM "2012_ladder" WHERE "against"<1018 AND "wins"<14; |
## Task
Generate a SQL query to answer the following question:
`Which Losses have an Against smaller than 1018, and Wins smaller than 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012_ladder" (
"wimmera_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Losses have an Against smaller than 1018, and Wins smaller than 14?`:
```sql
|
SELECT MIN("byes") FROM "2012_ladder" WHERE "against">1018 AND "wimmera_fl"='horsham diggers'; |
## Task
Generate a SQL query to answer the following question:
`Which Byes have an Against larger than 1018, and a Wimmera FL of horsham diggers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012_ladder" (
"wimmera_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Byes have an Against larger than 1018, and a Wimmera FL of horsham diggers?`:
```sql
|
SELECT AVG("losses") FROM "2012_ladder" WHERE "wimmera_fl"='minyip murtoa'; |
## Task
Generate a SQL query to answer the following question:
`Which Losses have a Wimmera FL of minyip murtoa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012_ladder" (
"wimmera_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Losses have a Wimmera FL of minyip murtoa?`:
```sql
|
SELECT AVG("against") FROM "2012_ladder" WHERE "losses"<5 AND "wimmera_fl"='warrack eagles' AND "draws"<0; |
## Task
Generate a SQL query to answer the following question:
`Which Against has Losses smaller than 5, and a Wimmera FL of warrack eagles, and Draws smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012_ladder" (
"wimmera_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Against has Losses smaller than 5, and a Wimmera FL of warrack eagles, and Draws smaller than 0?`:
```sql
|
SELECT "country" FROM "out" WHERE "name"='spence'; |
## Task
Generate a SQL query to answer the following question:
`Which country has Spence in the name section?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has Spence in the name section?`:
```sql
|
SELECT "country" FROM "out" WHERE "status"='transferred' AND "moving_to"='released' AND "name"='solano'; |
## Task
Generate a SQL query to answer the following question:
`Which country has the status of transferred, moving to of released, and Solano as the listed name?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has the status of transferred, moving to of released, and Solano as the listed name?`:
```sql
|
SELECT "transfer_fee" FROM "out" WHERE "name"='mccartney'; |
## Task
Generate a SQL query to answer the following question:
`What is the transfer fee for the country that has the name McCartney listed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transfer fee for the country that has the name McCartney listed?`:
```sql
|
SELECT "name" FROM "out" WHERE "status"='loaned' AND "moving_to"='leyton orient'; |
## Task
Generate a SQL query to answer the following question:
`What is the name listed for the country that has a status of loaned and a moving to listed as leyton orient?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name listed for the country that has a status of loaned and a moving to listed as leyton orient?`:
```sql
|
SELECT "transfer_fee" FROM "out" WHERE "country"='nir'; |
## Task
Generate a SQL query to answer the following question:
`What is the transfer fee for the country of Nir?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transfer fee for the country of Nir?`:
```sql
|
SELECT "fastest_lap" FROM "calendar" WHERE "winning_driver"='adam christodoulou' AND "pole_position"='adam christodoulou'; |
## Task
Generate a SQL query to answer the following question:
`Who had the fastest lap when adam christodoulou was the winning driver and had the pole position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the fastest lap when adam christodoulou was the winning driver and had the pole position?`:
```sql
|
SELECT "date" FROM "calendar" WHERE "circuit"='snetterton' AND "fastest_lap"='riki christodoulou'; |
## Task
Generate a SQL query to answer the following question:
`What date was the circuit, snetterton, when riki christodoulou had the fastest lap?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the circuit, snetterton, when riki christodoulou had the fastest lap?`:
```sql
|
SELECT "pole_position" FROM "calendar" WHERE "fastest_lap"='adam christodoulou' AND "circuit"='rockingham'; |
## Task
Generate a SQL query to answer the following question:
`who had the pole position at rockingham circuit with adam christodoulou having the fastest lap?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `who had the pole position at rockingham circuit with adam christodoulou having the fastest lap?`:
```sql
|
SELECT "bonus_points" FROM "season_table" WHERE "points_against"='448'; |
## Task
Generate a SQL query to answer the following question:
`What bonus points have 448 as the points against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_table" (
"club" text,
"total_points" text,
"bonus_points" text,
"match_points" text,
"games" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `What bonus points have 448 as the points against?`:
```sql
|
SELECT "points_for" FROM "season_table" WHERE "games"='30' AND "total_points"='73'; |
## Task
Generate a SQL query to answer the following question:
`What points for have 30 as the game, and 73 as the total points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_table" (
"club" text,
"total_points" text,
"bonus_points" text,
"match_points" text,
"games" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `What points for have 30 as the game, and 73 as the total points?`:
```sql
|
SELECT "drawn" FROM "season_table" WHERE "points_for"='416' AND "points_against"='533'; |
## Task
Generate a SQL query to answer the following question:
`What drawn has 416 as the points for and 533 as the points against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_table" (
"club" text,
"total_points" text,
"bonus_points" text,
"match_points" text,
"games" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `What drawn has 416 as the points for and 533 as the points against?`:
```sql
|
SELECT "match_points" FROM "season_table" WHERE "points_against"='755'; |
## Task
Generate a SQL query to answer the following question:
`What match points have 755 as the points against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_table" (
"club" text,
"total_points" text,
"bonus_points" text,
"match_points" text,
"games" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `What match points have 755 as the points against?`:
```sql
|
SELECT "games" FROM "season_table" WHERE "club"='colomiers'; |
## Task
Generate a SQL query to answer the following question:
`What games have colomiers as the club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_table" (
"club" text,
"total_points" text,
"bonus_points" text,
"match_points" text,
"games" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `What games have colomiers as the club?`:
```sql
|
SELECT "lost" FROM "season_table" WHERE "match_points"='84'; |
## Task
Generate a SQL query to answer the following question:
`Which lost has 84 as the match points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_table" (
"club" text,
"total_points" text,
"bonus_points" text,
"match_points" text,
"games" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which lost has 84 as the match points?`:
```sql
|
SELECT "constituency_number" FROM "assembly_segments" WHERE "name"='udaipura'; |
## Task
Generate a SQL query to answer the following question:
`How many constituents does udaipura have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many constituents does udaipura have?`:
```sql
|
SELECT COUNT("lane") FROM "heats" WHERE "name"='henrique barbosa'; |
## Task
Generate a SQL query to answer the following question:
`What lane was Henrique Barbosa in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What lane was Henrique Barbosa in?`:
```sql
|
SELECT "game" FROM "list_of_game_of_the_year_awards" WHERE "year"<2010 AND "genre"='role-playing game'; |
## Task
Generate a SQL query to answer the following question:
`What game was before 2010 and was a role-playing game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game was before 2010 and was a role-playing game?`:
```sql
|
SELECT "platform_s" FROM "list_of_game_of_the_year_awards" WHERE "game"='red dead redemption'; |
## Task
Generate a SQL query to answer the following question:
`What was the platform of Red Dead Redemption?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the platform of Red Dead Redemption?`:
```sql
|
SELECT "developer_s" FROM "list_of_game_of_the_year_awards" WHERE "platform_s"='wii'; |
## Task
Generate a SQL query to answer the following question:
`Who was the developer of Wii?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the developer of Wii?`:
```sql
|
SELECT COUNT("year") FROM "list_of_game_of_the_year_awards" WHERE "game"='the walking dead'; |
## Task
Generate a SQL query to answer the following question:
`What year was The Walking Dead?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was The Walking Dead?`:
```sql
|
SELECT "platform_s" FROM "list_of_game_of_the_year_awards" WHERE "developer_s"='telltale games'; |
## Task
Generate a SQL query to answer the following question:
`What was the platform when the developer was Telltale Games?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the platform when the developer was Telltale Games?`:
```sql
|
SELECT "game" FROM "list_of_game_of_the_year_awards" WHERE "developer_s"='rockstar games'; |
## Task
Generate a SQL query to answer the following question:
`What is the game of developer Rockstar Games?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the game of developer Rockstar Games?`:
```sql
|
SELECT SUM("elevation_m") FROM "and_surrounding_islands" WHERE "prominence_m"='2,876' AND "col_m">0; |
## Task
Generate a SQL query to answer the following question:
`Which Elevation (m) has a Prominence (m) of 2,876, and a Col (m) larger than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "and_surrounding_islands" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Elevation (m) has a Prominence (m) of 2,876, and a Col (m) larger than 0?`:
```sql
|
SELECT COUNT("elevation_m") FROM "and_surrounding_islands" WHERE "prominence_m">'2,876'; |
## Task
Generate a SQL query to answer the following question:
`How much Elevation (m) has a Prominence (m) larger than 2,876?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "and_surrounding_islands" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Elevation (m) has a Prominence (m) larger than 2,876?`:
```sql
|
SELECT "date" FROM "sixth_round_proper" WHERE "home_team"='millwall'; |
## Task
Generate a SQL query to answer the following question:
`When was millwall the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was millwall the home team?`:
```sql
|
SELECT "score" FROM "sixth_round_proper" WHERE "away_team"='arsenal'; |
## Task
Generate a SQL query to answer the following question:
`What was the score when Arsenal was the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when Arsenal was the away team?`:
```sql
|
SELECT "away_team" FROM "sixth_round_proper" WHERE "score"='2β0'; |
## Task
Generate a SQL query to answer the following question:
`Which away team had a Score of 2β0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which away team had a Score of 2β0?`:
```sql
|
SELECT "date" FROM "sixth_round_proper" WHERE "away_team"='arsenal'; |
## Task
Generate a SQL query to answer the following question:
`When was Arsenal was the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was Arsenal was the away team?`:
```sql
|
SELECT "date_released" FROM "116_seats_needed_for_a_majority" WHERE "green_communist"='9.7%'; |
## Task
Generate a SQL query to answer the following question:
`What's the date released when there was 9.7% of Green communist?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "116_seats_needed_for_a_majority" (
"date_released" text,
"polling_institute" text,
"social_democratic" text,
"socialist" text,
"green_communist" text,
"democratic_and_social_centre" text,
"lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the date released when there was 9.7% of Green communist?`:
```sql
|
SELECT "green_communist" FROM "116_seats_needed_for_a_majority" WHERE "polling_institute"='euroteste/jn'; |
## Task
Generate a SQL query to answer the following question:
`What's the green communist when Euroteste/JN is the polling Institute?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "116_seats_needed_for_a_majority" (
"date_released" text,
"polling_institute" text,
"social_democratic" text,
"socialist" text,
"green_communist" text,
"democratic_and_social_centre" text,
"lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the green communist when Euroteste/JN is the polling Institute?`:
```sql
|
SELECT MAX("silver") FROM "medal_table" WHERE "total">2 AND "rank"='total' AND "gold">44; |
## Task
Generate a SQL query to answer the following question:
`What is the most silver medals when the total is more than 2 medals, and with a rank of total, and the number of gold medals is greater than 44?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most silver medals when the total is more than 2 medals, and with a rank of total, and the number of gold medals is greater than 44?`:
```sql
|
SELECT MIN("gold") FROM "medal_table" WHERE "bronze"=0 AND "rank"='19' AND "silver"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the fewest gold medals when there is 0 bronze medals, and the rank is 19, and silver medals are less than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest gold medals when there is 0 bronze medals, and the rank is 19, and silver medals are less than 1?`:
```sql
|
SELECT MAX("bronze") FROM "medal_table" WHERE "silver"<1 AND "nation"='belgium (bel)' AND "gold"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the largest amount of bronze medals when the silver medals are less than 1, and Belgium (BEL) is the nation, and the gold medals are less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest amount of bronze medals when the silver medals are less than 1, and Belgium (BEL) is the nation, and the gold medals are less than 0?`:
```sql
|
SELECT MAX("bronze") FROM "medal_table" WHERE "silver"<1 AND "total"<2; |
## Task
Generate a SQL query to answer the following question:
`With silver medals less than 1, and total medals less than 2, what is the most bronze medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `With silver medals less than 1, and total medals less than 2, what is the most bronze medals?`:
```sql
|
SELECT "weight" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='dynamo moscow'; |
## Task
Generate a SQL query to answer the following question:
`What is the weight for the 2008 club Dynamo Moscow?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the weight for the 2008 club Dynamo Moscow?`:
```sql
|
SELECT "spike" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='zenit kazan'; |
## Task
Generate a SQL query to answer the following question:
`What is the spike for the 2008 club Zenit Kazan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the spike for the 2008 club Zenit Kazan?`:
```sql
|
SELECT COUNT("byes") FROM "2010_ladder" WHERE "wins"=14 AND "losses">2; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the total number of Byes that has the Wins of 14, and the Losses larger than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_ladder" (
"millewa" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the total number of Byes that has the Wins of 14, and the Losses larger than 2?`:
```sql
|
SELECT AVG("wins") FROM "2010_ladder" WHERE "against"=1132 AND "losses"<7; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the average Wins that has the Against of 1132, and the Losses smaller than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_ladder" (
"millewa" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the average Wins that has the Against of 1132, and the Losses smaller than 7?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "location_attendance"='the spectrum'; |
## Task
Generate a SQL query to answer the following question:
`What was the date for the game that had a Location/Attendance of the spectrum?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date for the game that had a Location/Attendance of the spectrum?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "location_attendance"='skydome'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when they played at the Skydome?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent when they played at the Skydome?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "date"='january 17'; |
## Task
Generate a SQL query to answer the following question:
`What was the record on January 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on January 17?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "record"='19-17'; |
## Task
Generate a SQL query to answer the following question:
`What was the location and attendance when the record was 19-17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location and attendance when the record was 19-17?`:
```sql
|
SELECT "city" FROM "former_members" WHERE "year_joined">1963 AND "conference_joined"='independents'; |
## Task
Generate a SQL query to answer the following question:
`What city joined the Independents conference after 1963?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"school" text,
"city" text,
"mascot" text,
"county" text,
"year_joined" real,
"previous_conference" text,
"year_left" real,
"conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city joined the Independents conference after 1963?`:
```sql
|
SELECT MIN("year_joined") FROM "former_members" WHERE "city"='gary' AND "mascot"='tornado'; |
## Task
Generate a SQL query to answer the following question:
`What is the year that the Gary team with mascot of the Tornado joined?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"school" text,
"city" text,
"mascot" text,
"county" text,
"year_joined" real,
"previous_conference" text,
"year_left" real,
"conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year that the Gary team with mascot of the Tornado joined?`:
```sql
|
SELECT "previous_conference" FROM "former_members" WHERE "conference_joined"='indiana lake shore' AND "mascot"='governors'; |
## Task
Generate a SQL query to answer the following question:
`What was the previous conference for the team with the Governors as their mascot that joined the Indiana Lake Shore conference?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"school" text,
"city" text,
"mascot" text,
"county" text,
"year_joined" real,
"previous_conference" text,
"year_left" real,
"conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the previous conference for the team with the Governors as their mascot that joined the Indiana Lake Shore conference?`:
```sql
|
SELECT MAX("year_left") FROM "former_members" WHERE "mascot"='roughriders'; |
## Task
Generate a SQL query to answer the following question:
`What is the year that the Roughriders left the conference?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"school" text,
"city" text,
"mascot" text,
"county" text,
"year_joined" real,
"previous_conference" text,
"year_left" real,
"conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year that the Roughriders left the conference?`:
```sql
|
SELECT "conference_joined" FROM "former_members" WHERE "city"='valparaiso'; |
## Task
Generate a SQL query to answer the following question:
`What conference did the city of Valparaiso join?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"school" text,
"city" text,
"mascot" text,
"county" text,
"year_joined" real,
"previous_conference" text,
"year_left" real,
"conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What conference did the city of Valparaiso join?`:
```sql
|
SELECT "mascot" FROM "former_members" WHERE "city"='hammond' AND "school"='hammond tech'; |
## Task
Generate a SQL query to answer the following question:
`What is the mascot of Hammond Tech?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"school" text,
"city" text,
"mascot" text,
"county" text,
"year_joined" real,
"previous_conference" text,
"year_left" real,
"conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mascot of Hammond Tech?`:
```sql
|
SELECT "duration" FROM "hungary" WHERE "character"='bartha zsolt'; |
## Task
Generate a SQL query to answer the following question:
`What is the duration of the character Bartha Zsolt?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "hungary" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the duration of the character Bartha Zsolt?`:
```sql
|
SELECT COUNT("loss") FROM "rushing" WHERE "name"='jake sharp' AND "long"<30; |
## Task
Generate a SQL query to answer the following question:
`How many losses have jake sharp as the name, with a long less than 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rushing" (
"name" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses have jake sharp as the name, with a long less than 30?`:
```sql
|
SELECT AVG("long") FROM "rushing" WHERE "gain"=1581 AND "loss"<308; |
## Task
Generate a SQL query to answer the following question:
`What is the average long that has 1581 as a gain, with a loss less than 308?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rushing" (
"name" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average long that has 1581 as a gain, with a loss less than 308?`:
```sql
|
SELECT SUM("gain") FROM "rushing" WHERE "long">8 AND "avg_g"=124.9; |
## Task
Generate a SQL query to answer the following question:
`How many gains have a long greater than 8, with avg/g of 124.9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rushing" (
"name" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many gains have a long greater than 8, with avg/g of 124.9?`:
```sql
|
SELECT SUM("long") FROM "rushing" WHERE "gain"<379 AND "avg_g"=0.8; |
## Task
Generate a SQL query to answer the following question:
`How many longs have a gain less than 379, and 0.8 as an avg/g?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rushing" (
"name" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many longs have a gain less than 379, and 0.8 as an avg/g?`:
```sql
|
SELECT MIN("gain") FROM "rushing" WHERE "name"='toben opurum' AND "avg_g"<54.1; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest gain that has toben opurum as the name, with an avg/g less than 54.1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rushing" (
"name" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest gain that has toben opurum as the name, with an avg/g less than 54.1?`:
```sql
|
SELECT "driver" FROM "race" WHERE "grid"<17 AND "points">0 AND "laps"=87 AND "time_retired"='1:48:11.023'; |
## Task
Generate a SQL query to answer the following question:
`Which Driver has a Grid smaller than 17, and Points larger than 0, and a Lapse of 87, and a Time/Retired of 1:48:11.023?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Driver has a Grid smaller than 17, and Points larger than 0, and a Lapse of 87, and a Time/Retired of 1:48:11.023?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.