output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "winner" FROM "stage_results" WHERE "course"='rome to teramo'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winner for the Rome to Teramo course?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stage_results" (
"stage" text,
"date" text,
"course" text,
"distance" text,
"winner" text,
"race_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner for the Rome to Teramo course?`:
```sql
|
SELECT "winner" FROM "stage_results" WHERE "stage"='11'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winner of stage 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stage_results" (
"stage" text,
"date" text,
"course" text,
"distance" text,
"winner" text,
"race_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner of stage 11?`:
```sql
|
SELECT AVG("apps") FROM "club" WHERE "country"='indonesia' AND "goals"<1000; |
## Task
Generate a SQL query to answer the following question:
`What is the average Apps of indonesia with Goals smaller than 1000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club" (
"season" text,
"team" text,
"country" text,
"division" text,
"apps" real,
"goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Apps of indonesia with Goals smaller than 1000?`:
```sql
|
SELECT "division" FROM "club" WHERE "team"='traktor tashkent' AND "season"='2005'; |
## Task
Generate a SQL query to answer the following question:
`What division is Traktor Tashkent in 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club" (
"season" text,
"team" text,
"country" text,
"division" text,
"apps" real,
"goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What division is Traktor Tashkent in 2005?`:
```sql
|
SELECT "apps" FROM "club" WHERE "country"='uzbekistan' AND "season"='2003'; |
## Task
Generate a SQL query to answer the following question:
`How many apps does Uzbekistan have in 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club" (
"season" text,
"team" text,
"country" text,
"division" text,
"apps" real,
"goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many apps does Uzbekistan have in 2003?`:
```sql
|
SELECT "attendance" FROM "game_log" WHERE "record"='74-77'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance at the game when the record was 74-77?`
### 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" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance at the game when the record was 74-77?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "record"='72-74'; |
## Task
Generate a SQL query to answer the following question:
`What was score of the game when the record was 72-74?`
### 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" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was score of the game when the record was 72-74?`:
```sql
|
SELECT "airdate" FROM "series_3" WHERE "episode_no"<4 AND "bbc_one_weekly_ranking"=6; |
## Task
Generate a SQL query to answer the following question:
`What were the air-dates of the episodes before episode 4 that had a BBC One weekly ranking of 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_3" (
"episode_no" real,
"airdate" text,
"total_viewers" real,
"share" text,
"bbc_one_weekly_ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `What were the air-dates of the episodes before episode 4 that had a BBC One weekly ranking of 6?`:
```sql
|
SELECT "total_viewers" FROM "series_3" WHERE "bbc_one_weekly_ranking">7 AND "episode_no"<4; |
## Task
Generate a SQL query to answer the following question:
`What was the total viewership for BBC One weekly rankings larger than 7, before episode 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_3" (
"episode_no" real,
"airdate" text,
"total_viewers" real,
"share" text,
"bbc_one_weekly_ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total viewership for BBC One weekly rankings larger than 7, before episode 4?`:
```sql
|
SELECT MAX("rank") FROM "cultural_events" WHERE "bronze"=0 AND "silver">1 AND "gold">0; |
## Task
Generate a SQL query to answer the following question:
`Name the most rank with bronze of 0 and silver more than 1 and gold more than 0`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cultural_events" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most rank with bronze of 0 and silver more than 1 and gold more than 0`:
```sql
|
SELECT AVG("silver") FROM "cultural_events" WHERE "total"<1; |
## Task
Generate a SQL query to answer the following question:
`Name the average silver with total less than 1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cultural_events" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average silver with total less than 1`:
```sql
|
SELECT AVG("year") FROM "awards" WHERE "result"='nominated'; |
## Task
Generate a SQL query to answer the following question:
`Name the average year for result of nominated`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards" (
"year" real,
"award" text,
"festival" text,
"nominated_work" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average year for result of nominated`:
```sql
|
SELECT "nominated_work" FROM "awards" WHERE "year"=1996 AND "festival"='black maria film and video festival'; |
## Task
Generate a SQL query to answer the following question:
`Name the nominated work for 1996 and festival of black maria film and video festival`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards" (
"year" real,
"award" text,
"festival" text,
"nominated_work" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the nominated work for 1996 and festival of black maria film and video festival`:
```sql
|
SELECT "date" FROM "league" WHERE "venue"='away' AND "win_draw_lose"='lost' AND "team"='accrington'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the away game that they lost to Accrington?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league" (
"date" text,
"team" text,
"venue" text,
"win_draw_lose" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the away game that they lost to Accrington?`:
```sql
|
SELECT "date" FROM "league" WHERE "team"='accrington' AND "venue"='home'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the home game against Accrington?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league" (
"date" text,
"team" text,
"venue" text,
"win_draw_lose" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the home game against Accrington?`:
```sql
|
SELECT "win_draw_lose" FROM "league" WHERE "venue"='home' AND "team"='derby county'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the home game against Derby County?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league" (
"date" text,
"team" text,
"venue" text,
"win_draw_lose" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the home game against Derby County?`:
```sql
|
SELECT "standard_cost_usd" FROM "for_the_x_window_system" WHERE "creator"='hans oischinger'; |
## Task
Generate a SQL query to answer the following question:
`What is the Standard cost (USD) by hans Oischinger Creator ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "for_the_x_window_system" (
"name" text,
"creator" text,
"latest_stable_version" text,
"standard_cost_usd" text,
"software_license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Standard cost (USD) by hans Oischinger Creator ?`:
```sql
|
SELECT "standard_cost_usd" FROM "for_the_x_window_system" WHERE "creator"='kwin team'; |
## Task
Generate a SQL query to answer the following question:
`What is the Standard cost (USD) of Kwin team creator?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "for_the_x_window_system" (
"name" text,
"creator" text,
"latest_stable_version" text,
"standard_cost_usd" text,
"software_license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Standard cost (USD) of Kwin team creator?`:
```sql
|
SELECT "creator" FROM "for_the_x_window_system" WHERE "latest_stable_version"='0.5.2 (part of compiz fusion release)'; |
## Task
Generate a SQL query to answer the following question:
`Who is the Creator that has a version of 0.5.2 (part of compiz fusion release)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "for_the_x_window_system" (
"name" text,
"creator" text,
"latest_stable_version" text,
"standard_cost_usd" text,
"software_license" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Creator that has a version of 0.5.2 (part of compiz fusion release)?`:
```sql
|
SELECT "name" FROM "for_the_x_window_system" WHERE "creator"='hyriand'; |
## Task
Generate a SQL query to answer the following question:
`Who is a Creator of hyriand?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "for_the_x_window_system" (
"name" text,
"creator" text,
"latest_stable_version" text,
"standard_cost_usd" text,
"software_license" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is a Creator of hyriand?`:
```sql
|
SELECT COUNT("attendance") FROM "summary" WHERE "game">6; |
## Task
Generate a SQL query to answer the following question:
`What is the number of people who attended the game later than game 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"game" real,
"date" text,
"score" text,
"location" text,
"time" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of people who attended the game later than game 6?`:
```sql
|
SELECT "title" FROM "recording_industry_association_of_americ" WHERE "year">1986 AND "format_s"='album'; |
## Task
Generate a SQL query to answer the following question:
`Which title has a year later than 1986 with an album as the format?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "recording_industry_association_of_americ" (
"year" real,
"date" text,
"title" text,
"format_s" text,
"award_description_s" text,
"result_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which title has a year later than 1986 with an album as the format?`:
```sql
|
SELECT AVG("year") FROM "recording_industry_association_of_americ" WHERE "date"='february 24'; |
## Task
Generate a SQL query to answer the following question:
`Which is the average year with the date of February 24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "recording_industry_association_of_americ" (
"year" real,
"date" text,
"title" text,
"format_s" text,
"award_description_s" text,
"result_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the average year with the date of February 24?`:
```sql
|
SELECT "award_description_s" FROM "recording_industry_association_of_americ" WHERE "year">1994 AND "date"='december 6'; |
## Task
Generate a SQL query to answer the following question:
`Which award description has a year later than 1994 with a date of December 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "recording_industry_association_of_americ" (
"year" real,
"date" text,
"title" text,
"format_s" text,
"award_description_s" text,
"result_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which award description has a year later than 1994 with a date of December 6?`:
```sql
|
SELECT COUNT("goal") FROM "international_goals" WHERE "date"='december 4, 2010' AND "score"='1-0'; |
## Task
Generate a SQL query to answer the following question:
`How many goals have a Date of december 4, 2010, and a Score of 1-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals have a Date of december 4, 2010, and a Score of 1-0?`:
```sql
|
SELECT "venue" FROM "international_goals" WHERE "competition"='2008 myanmar grand royal challenge cup'; |
## Task
Generate a SQL query to answer the following question:
`Which venue has a Competition of 2008 myanmar grand royal challenge cup?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue has a Competition of 2008 myanmar grand royal challenge cup?`:
```sql
|
SELECT "venue" FROM "international_goals" WHERE "goal"=4; |
## Task
Generate a SQL query to answer the following question:
`Which venue has a Goal of 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue has a Goal of 4?`:
```sql
|
SELECT MAX("goal") FROM "international_goals" WHERE "score"='3-0'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest goal with a Score of 3-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest goal with a Score of 3-0?`:
```sql
|
SELECT "opponents_in_the_final" FROM "doubles_24_12_12" WHERE "partnering"='bruno soares' AND "surface"='clay' AND "date"='august 1, 2010'; |
## Task
Generate a SQL query to answer the following question:
`Who did Bruno Soares and a partner face in the finals on a clay surface on August 1, 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_24_12_12" (
"outcome" text,
"date" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did Bruno Soares and a partner face in the finals on a clay surface on August 1, 2010?`:
```sql
|
SELECT "surface" FROM "doubles_24_12_12" WHERE "score"='4–6, 6–2, [10–7]'; |
## Task
Generate a SQL query to answer the following question:
`What surface was played on that resulted in a score of 4–6, 6–2, [10–7]?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_24_12_12" (
"outcome" text,
"date" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What surface was played on that resulted in a score of 4–6, 6–2, [10–7]?`:
```sql
|
SELECT "outcome" FROM "doubles_24_12_12" WHERE "date"='may 25, 2009'; |
## Task
Generate a SQL query to answer the following question:
`What was the outcome on May 25, 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_24_12_12" (
"outcome" text,
"date" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome on May 25, 2009?`:
```sql
|
SELECT "outcome" FROM "doubles_24_12_12" WHERE "date"='may 18, 2008'; |
## Task
Generate a SQL query to answer the following question:
`What was the outcome on May 18, 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_24_12_12" (
"outcome" text,
"date" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome on May 18, 2008?`:
```sql
|
SELECT "place" FROM "first_round_thursday" WHERE "player"='heath slocum'; |
## Task
Generate a SQL query to answer the following question:
`what is the place for Heath Slocum?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_thursday" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the place for Heath Slocum?`:
```sql
|
SELECT "attendance" FROM "game_log" WHERE "date"='august 29'; |
## Task
Generate a SQL query to answer the following question:
`What is the attendance for august 29?`
### 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" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance for august 29?`:
```sql
|
SELECT "loss" FROM "game_log" WHERE "opponent"='@ angels' AND "date"='august 1'; |
## Task
Generate a SQL query to answer the following question:
`Which loss has an Opponent of @ angels, and a Date of august 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which loss has an Opponent of @ angels, and a Date of august 1?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "attendance"='31,178'; |
## Task
Generate a SQL query to answer the following question:
`Which score has an Attendance of 31,178?`
### 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" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which score has an Attendance of 31,178?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "date"='august 28'; |
## Task
Generate a SQL query to answer the following question:
`Which record has a Date of august 28?`
### 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" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which record has a Date of august 28?`:
```sql
|
SELECT "loss" FROM "game_log" WHERE "attendance"='23,952'; |
## Task
Generate a SQL query to answer the following question:
`Which loss has an Attendance of 23,952?`
### 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" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which loss has an Attendance of 23,952?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "loss"='corcoran (4-4)'; |
## Task
Generate a SQL query to answer the following question:
`Which opponent has a Loss of corcoran (4-4)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent has a Loss of corcoran (4-4)?`:
```sql
|
SELECT "location" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "competition"='gold medal match'; |
## Task
Generate a SQL query to answer the following question:
`What is the location of the gold medal match?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
"match" text,
"date" text,
"location" text,
"lineup" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the gold medal match?`:
```sql
|
SELECT "lineup" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "result"='1-0 aet w'; |
## Task
Generate a SQL query to answer the following question:
`What was the lineup that resulted in 1-0 AET W?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
"match" text,
"date" text,
"location" text,
"lineup" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lineup that resulted in 1-0 AET W?`:
```sql
|
SELECT "result" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "match"='25'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of match 25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
"match" text,
"date" text,
"location" text,
"lineup" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of match 25?`:
```sql
|
SELECT "result" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "location"='london 2012 women''s olympic football tournament'; |
## Task
Generate a SQL query to answer the following question:
`What is the result of the London 2012 Women's Olympic Football Tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
"match" text,
"date" text,
"location" text,
"lineup" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the London 2012 Women's Olympic Football Tournament?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "loss"='wegman (2-6)'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game that had a loss of Wegman (2-6)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game that had a loss of Wegman (2-6)?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "loss"='blyleven (4-5)'; |
## Task
Generate a SQL query to answer the following question:
`What was the record at the game that had a loss of Blyleven (4-5)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record at the game that had a loss of Blyleven (4-5)?`:
```sql
|
SELECT "city" FROM "monthly_normal_low_and_high_temperatures" WHERE "jul"='88 °f / 31.1 °c'; |
## Task
Generate a SQL query to answer the following question:
`Name the city with july of 88 °f / 31.1 °c`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "monthly_normal_low_and_high_temperatures" (
"city" text,
"jan" text,
"feb" text,
"mar" text,
"apr" text,
"jun" text,
"jul" text,
"aug" text,
"sep" text,
"oct" text,
"nov" text,
"dec" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the city with july of 88 °f / 31.1 °c`:
```sql
|
SELECT "city" FROM "monthly_normal_low_and_high_temperatures" WHERE "feb"='66 °f / 18.9 °c'; |
## Task
Generate a SQL query to answer the following question:
`Name the city with Feb of 66 °f / 18.9 °c`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "monthly_normal_low_and_high_temperatures" (
"city" text,
"jan" text,
"feb" text,
"mar" text,
"apr" text,
"jun" text,
"jul" text,
"aug" text,
"sep" text,
"oct" text,
"nov" text,
"dec" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the city with Feb of 66 °f / 18.9 °c`:
```sql
|
SELECT "city" FROM "monthly_normal_low_and_high_temperatures" WHERE "sep"='83 °f / 28.3 °c'; |
## Task
Generate a SQL query to answer the following question:
`Name the city with september of 83 °f / 28.3 °c`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "monthly_normal_low_and_high_temperatures" (
"city" text,
"jan" text,
"feb" text,
"mar" text,
"apr" text,
"jun" text,
"jul" text,
"aug" text,
"sep" text,
"oct" text,
"nov" text,
"dec" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the city with september of 83 °f / 28.3 °c`:
```sql
|
SELECT "jun" FROM "monthly_normal_low_and_high_temperatures" WHERE "jul"='84 °f / 28.9 °c'; |
## Task
Generate a SQL query to answer the following question:
`Name the june when it has july of 84 °f / 28.9 °c`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "monthly_normal_low_and_high_temperatures" (
"city" text,
"jan" text,
"feb" text,
"mar" text,
"apr" text,
"jun" text,
"jul" text,
"aug" text,
"sep" text,
"oct" text,
"nov" text,
"dec" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the june when it has july of 84 °f / 28.9 °c`:
```sql
|
SELECT "time" FROM "game_log" WHERE "date"='may 9'; |
## Task
Generate a SQL query to answer the following question:
`What Time has Date of May 9?`
### 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,
"time" text,
"att" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Time has Date of May 9?`:
```sql
|
SELECT MIN("roll") FROM "western_bay_of_plenty_district" WHERE "name"='katikati college'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest roll number of Katikati college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "western_bay_of_plenty_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest roll number of Katikati college?`:
```sql
|
SELECT MAX("roll") FROM "western_bay_of_plenty_district" WHERE "decile">2 AND "area"='te puna'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest roll number of the school in Te puna with a decile larger than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "western_bay_of_plenty_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest roll number of the school in Te puna with a decile larger than 2?`:
```sql
|
SELECT "roll" FROM "western_bay_of_plenty_district" WHERE "decile"=4 AND "name"='te puke intermediate'; |
## Task
Generate a SQL query to answer the following question:
`What is the roll number of Te Puke Intermediate, which has a decile of 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "western_bay_of_plenty_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the roll number of Te Puke Intermediate, which has a decile of 4?`:
```sql
|
SELECT MAX("roll") FROM "western_bay_of_plenty_district" WHERE "authority"='state' AND "decile"<8; |
## Task
Generate a SQL query to answer the following question:
`What is the highest roll number of the school with a state authority and a decile smaller than 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "western_bay_of_plenty_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest roll number of the school with a state authority and a decile smaller than 8?`:
```sql
|
SELECT SUM("lost") FROM "clausura_2004_standings" WHERE "points">21 AND "draw"=2; |
## Task
Generate a SQL query to answer the following question:
`What is the total value for Lost, when the value for Points is greater than 21, and when the value for Draw is 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "clausura_2004_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total value for Lost, when the value for Points is greater than 21, and when the value for Draw is 2?`:
```sql
|
SELECT MAX("goals_scored") FROM "clausura_2004_standings" WHERE "team"='san salvador f.c.' AND "points"<10; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Goals Scored, when the Team is San Salvador F.C., and when the Points are less than 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "clausura_2004_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Goals Scored, when the Team is San Salvador F.C., and when the Points are less than 10?`:
```sql
|
SELECT SUM("goals_conceded") FROM "clausura_2004_standings" WHERE "points"<26 AND "played"<18; |
## Task
Generate a SQL query to answer the following question:
`What are the total amount of Goals Conceded when the Points are less than 26, and when the value for Played is less than 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "clausura_2004_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the total amount of Goals Conceded when the Points are less than 26, and when the value for Played is less than 18?`:
```sql
|
SELECT AVG("lost") FROM "clausura_2004_standings" WHERE "goals_scored">20 AND "played"<18; |
## Task
Generate a SQL query to answer the following question:
`What is the average value for Lost, when the value for Goals Scored is greater than 20, and when the value for Played is less than 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "clausura_2004_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average value for Lost, when the value for Goals Scored is greater than 20, and when the value for Played is less than 18?`:
```sql
|
SELECT "score" FROM "final_leaderboard" WHERE "place"='t8' AND "player"='byron nelson'; |
## Task
Generate a SQL query to answer the following question:
`What is score of the game played in place t8 with Byron Nelson playing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is score of the game played in place t8 with Byron Nelson playing?`:
```sql
|
SELECT SUM("money") FROM "final_leaderboard" WHERE "country"='united states' AND "player"='sam snead'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Money of the game that was played in the United States with Sam Snead as a player?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Money of the game that was played in the United States with Sam Snead as a player?`:
```sql
|
SELECT MAX("money") FROM "final_leaderboard" WHERE "score"='69-74-70-73=286'; |
## Task
Generate a SQL query to answer the following question:
`What is the Money ($) of the game with a score of 69-74-70-73=286?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Money ($) of the game with a score of 69-74-70-73=286?`:
```sql
|
SELECT "mountains_classification" FROM "classification_leadership_by_stage" WHERE "young_rider_classification"='francesco casagrande' AND "intergiro_classification"='not awarded' AND "stage"='2'; |
## Task
Generate a SQL query to answer the following question:
`Name the mountains classification which has a young rider classification of francesco casagrande and integiro classification of not awarded with stage of 2`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"intergiro_classification" text,
"trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the mountains classification which has a young rider classification of francesco casagrande and integiro classification of not awarded with stage of 2`:
```sql
|
SELECT "winner" FROM "classification_leadership_by_stage" WHERE "points_classification"='adriano baffi' AND "intergiro_classification"='ján svorada' AND "stage"='13'; |
## Task
Generate a SQL query to answer the following question:
`Name the winner for adriano baffi and integiro classification of ján svorada for stage of 13`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"intergiro_classification" text,
"trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winner for adriano baffi and integiro classification of ján svorada for stage of 13`:
```sql
|
SELECT "trofeo_fast_team" FROM "classification_leadership_by_stage" WHERE "young_rider_classification"='francesco casagrande' AND "stage"='10'; |
## Task
Generate a SQL query to answer the following question:
`Name trofeo fast team with young rider classification of francesco casagrande and stage of 10`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"intergiro_classification" text,
"trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name trofeo fast team with young rider classification of francesco casagrande and stage of 10`:
```sql
|
SELECT SUM("total") FROM "qualification" WHERE "routine_score"=26.6; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the total for a routine score of 26.6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "qualification" (
"rank" real,
"gymnast" text,
"difficulty_score" text,
"routine_score" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the total for a routine score of 26.6?`:
```sql
|
SELECT "january" FROM "2000_2009" WHERE "april"='courtney rachel culkin'; |
## Task
Generate a SQL query to answer the following question:
`Name the january when april is courtney rachel culkin`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000_2009" (
"january" text,
"february" text,
"march" text,
"april" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november" text,
"december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the january when april is courtney rachel culkin`:
```sql
|
SELECT "october" FROM "2000_2009" WHERE "november"='buffy tyler'; |
## Task
Generate a SQL query to answer the following question:
`Name the october when november is buffy tyler`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000_2009" (
"january" text,
"february" text,
"march" text,
"april" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november" text,
"december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the october when november is buffy tyler`:
```sql
|
SELECT "october" FROM "2000_2009" WHERE "september"='dalene kurtis'; |
## Task
Generate a SQL query to answer the following question:
`Name the october when the september is dalene kurtis`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000_2009" (
"january" text,
"february" text,
"march" text,
"april" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november" text,
"december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the october when the september is dalene kurtis`:
```sql
|
SELECT "april" FROM "2000_2009" WHERE "june"='candice cassidy'; |
## Task
Generate a SQL query to answer the following question:
`Name the april for candice cassidy`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000_2009" (
"january" text,
"february" text,
"march" text,
"april" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november" text,
"december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the april for candice cassidy`:
```sql
|
SELECT "october" FROM "2000_2009" WHERE "july"='kimberley stanfield'; |
## Task
Generate a SQL query to answer the following question:
`Name the october for july of kimberley stanfield`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000_2009" (
"january" text,
"february" text,
"march" text,
"april" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november" text,
"december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the october for july of kimberley stanfield`:
```sql
|
SELECT "representative" FROM "external_links" WHERE "state"='kentucky' AND "years"='1855–1859'; |
## Task
Generate a SQL query to answer the following question:
`Which Representative was from Kentucky during the years of 1855–1859?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"representative" text,
"years" text,
"state" text,
"party" text,
"lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Representative was from Kentucky during the years of 1855–1859?`:
```sql
|
SELECT "lifespan" FROM "external_links" WHERE "party"='republican' AND "years"='1953–1970'; |
## Task
Generate a SQL query to answer the following question:
`What was the lifespan of the Representative from the Republican Party during the years of 1953–1970?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"representative" text,
"years" text,
"state" text,
"party" text,
"lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lifespan of the Representative from the Republican Party during the years of 1953–1970?`:
```sql
|
SELECT "years" FROM "external_links" WHERE "state"='iowa' AND "lifespan"='1880–1942'; |
## Task
Generate a SQL query to answer the following question:
`What years did the Representative from Iowa with a lifespan of 1880–1942 serve?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"representative" text,
"years" text,
"state" text,
"party" text,
"lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years did the Representative from Iowa with a lifespan of 1880–1942 serve?`:
```sql
|
SELECT "representative" FROM "external_links" WHERE "lifespan"='1795–1866'; |
## Task
Generate a SQL query to answer the following question:
`Which Representative had a Lifespan of 1795–1866?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"representative" text,
"years" text,
"state" text,
"party" text,
"lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Representative had a Lifespan of 1795–1866?`:
```sql
|
SELECT MIN("week") FROM "season_schedule" WHERE "attendance"='bye'; |
## Task
Generate a SQL query to answer the following question:
`When did the Chiefs have their first bye?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the Chiefs have their first bye?`:
```sql
|
SELECT "position" FROM "january_draft" WHERE "round"=2; |
## Task
Generate a SQL query to answer the following question:
`What is the position played for the player drafted in round 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "january_draft" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position played for the player drafted in round 2?`:
```sql
|
SELECT "name" FROM "january_draft" WHERE "position"='3b'; |
## Task
Generate a SQL query to answer the following question:
`what is the name of the player that played position 3b?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "january_draft" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name of the player that played position 3b?`:
```sql
|
SELECT "school" FROM "january_draft" WHERE "name"='ivey armstrong'; |
## Task
Generate a SQL query to answer the following question:
`what is the school for Ivey armstrong?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "january_draft" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the school for Ivey armstrong?`:
```sql
|
SELECT "position" FROM "january_draft" WHERE "school"='university of alabama'; |
## Task
Generate a SQL query to answer the following question:
`what is the position for the player from university of alabama?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "january_draft" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the position for the player from university of alabama?`:
```sql
|
SELECT SUM("days_with_frost") FROM "climate" WHERE "city_town"='lugo'; |
## Task
Generate a SQL query to answer the following question:
`How many days with frost were there in the City/Town of Lugo have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "climate" (
"city_town" text,
"july_av_t" text,
"rain" text,
"days_with_rain_year_summer" text,
"days_with_frost" real,
"sunlight_hours" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many days with frost were there in the City/Town of Lugo have?`:
```sql
|
SELECT MIN("sunlight_hours") FROM "climate" WHERE "city_town"='ourense' AND "days_with_frost">30; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of sunlight hours, and number of days with frost, more than 30, for the city of Ourense?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "climate" (
"city_town" text,
"july_av_t" text,
"rain" text,
"days_with_rain_year_summer" text,
"days_with_frost" real,
"sunlight_hours" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of sunlight hours, and number of days with frost, more than 30, for the city of Ourense?`:
```sql
|
SELECT MAX("sunlight_hours") FROM "climate" WHERE "city_town"='pontevedra'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest amount of sunlight hours for the City of Pontevedra?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "climate" (
"city_town" text,
"july_av_t" text,
"rain" text,
"days_with_rain_year_summer" text,
"days_with_frost" real,
"sunlight_hours" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest amount of sunlight hours for the City of Pontevedra?`:
```sql
|
SELECT AVG("lane") FROM "semifinal_2" WHERE "nationality"='united states' AND "rank"=3; |
## Task
Generate a SQL query to answer the following question:
`for the rank of 3 for the united states, what is the average lane?`
### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `for the rank of 3 for the united states, what is the average lane?`:
```sql
|
SELECT AVG("lane") FROM "semifinal_2" WHERE "nationality"='netherlands' AND "rank">1; |
## Task
Generate a SQL query to answer the following question:
`for the rank more than 1 and nationality of netherlands, what is the lane?`
### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `for the rank more than 1 and nationality of netherlands, what is the lane?`:
```sql
|
SELECT "nationality" FROM "semifinal_2" WHERE "lane"<3 AND "time"=49.04; |
## Task
Generate a SQL query to answer the following question:
`for the time of 49.04 and lane less than 3, what is the nationality?`
### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `for the time of 49.04 and lane less than 3, what is the nationality?`:
```sql
|
SELECT "name" FROM "semifinal_2" WHERE "lane"<3 AND "rank"=8; |
## Task
Generate a SQL query to answer the following question:
`for the rank of 8 and lane less than 3 what is the name?`
### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `for the rank of 8 and lane less than 3 what is the name?`:
```sql
|
SELECT "played" FROM "2007_2008_table" WHERE "lost"='2'; |
## Task
Generate a SQL query to answer the following question:
`What play has a loss of 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_2008_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,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What play has a loss of 2?`:
```sql
|
SELECT "try_bonus" FROM "2007_2008_table" WHERE "club"='caerphilly rfc'; |
## Task
Generate a SQL query to answer the following question:
`What try bonus has a club of caerphilly rfc?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_2008_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,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What try bonus has a club of caerphilly rfc?`:
```sql
|
SELECT "club" FROM "2007_2008_table" WHERE "played"='22' AND "losing_bonus"='7'; |
## Task
Generate a SQL query to answer the following question:
`What club has a play of 22, and losing bonus of 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_2008_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,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What club has a play of 22, and losing bonus of 7?`:
```sql
|
SELECT "points_against" FROM "2007_2008_table" WHERE "tries_against"='77' AND "lost"='16'; |
## Task
Generate a SQL query to answer the following question:
`What point against has tries against of 77, and a lost of 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_2008_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,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What point against has tries against of 77, and a lost of 16?`:
```sql
|
SELECT "sport" FROM "professional_sports" WHERE "league"='nll'; |
## Task
Generate a SQL query to answer the following question:
`The nll participate in what sport?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "professional_sports" (
"club" text,
"sport" text,
"began_play" text,
"league" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `The nll participate in what sport?`:
```sql
|
SELECT "began_play" FROM "professional_sports" WHERE "club"='western new york flash'; |
## Task
Generate a SQL query to answer the following question:
`When did the Club of western new york flash begin to play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "professional_sports" (
"club" text,
"sport" text,
"began_play" text,
"league" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the Club of western new york flash begin to play?`:
```sql
|
SELECT "club" FROM "professional_sports" WHERE "sport"='soccer' AND "league"='nwsl'; |
## Task
Generate a SQL query to answer the following question:
`Which club plays soccer in the nwsl?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "professional_sports" (
"club" text,
"sport" text,
"began_play" text,
"league" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club plays soccer in the nwsl?`:
```sql
|
SELECT "began_play" FROM "professional_sports" WHERE "club"='rochester rhinos'; |
## Task
Generate a SQL query to answer the following question:
`When did the Rochester Rhinos begin to play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "professional_sports" (
"club" text,
"sport" text,
"began_play" text,
"league" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the Rochester Rhinos begin to play?`:
```sql
|
SELECT SUM("total") FROM "podiums_on_all_three_grands_tours" WHERE "tour"=7 AND "giro"<3; |
## Task
Generate a SQL query to answer the following question:
`The sun of total that has a tour of 7 and a Giro smaller than 3 is 12.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "podiums_on_all_three_grands_tours" (
"name" text,
"tour" real,
"giro" real,
"vuelta" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `The sun of total that has a tour of 7 and a Giro smaller than 3 is 12.`:
```sql
|
SELECT "gender" FROM "rotorua_district" WHERE "name"='lynmore primary school'; |
## Task
Generate a SQL query to answer the following question:
`What genders did Lynmore Primary School take?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rotorua_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" text
);
### SQL
Given the database schema, here is the SQL query that answers `What genders did Lynmore Primary School take?`:
```sql
|
SELECT "area" FROM "rotorua_district" WHERE "gender"='coed' AND "decile"='9' AND "name"='kaharoa school'; |
## Task
Generate a SQL query to answer the following question:
`Which area served coed genders at Kaharoa school and had a Decile of 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rotorua_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which area served coed genders at Kaharoa school and had a Decile of 9?`:
```sql
|
SELECT "gender" FROM "lower_hutt_city" WHERE "authority"='integrated' AND "roll"=142; |
## Task
Generate a SQL query to answer the following question:
`What was the gender for the integrated authority with a roll of 142?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lower_hutt_city" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the gender for the integrated authority with a roll of 142?`:
```sql
|
SELECT "authority" FROM "lower_hutt_city" WHERE "area"='avalon' AND "roll"<358 AND "name"='avalon school'; |
## Task
Generate a SQL query to answer the following question:
`What was the Authority for Avalon School with a roll less than 358?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lower_hutt_city" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Authority for Avalon School with a roll less than 358?`:
```sql
|
SELECT "authority" FROM "lower_hutt_city" WHERE "area"='eastbourne' AND "gender"='coed'; |
## Task
Generate a SQL query to answer the following question:
`Who is the authority for the coed Eastbourne school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lower_hutt_city" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the authority for the coed Eastbourne school?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.