output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT COUNT("calculated_activity_bq") FROM "notes" WHERE "specimen_weight_size"='1000 g / 8.79 cm'; |
## Task
Generate a SQL query to answer the following question:
`If the specimen weight/size is 1000 g / 8.79 cm, what is the calculated activity?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "notes" (
"specimen_weight_size" text,
"calculated_activity_bq" real,
"calculated_activity_ci" text,
"estimated_activity_gr_api" text,
"estimated_exposure_m_rem_hr" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the specimen weight/size is 1000 g / 8.79 cm, what is the calculated activity?`:
```sql
|
SELECT "rk" FROM "men_s_singles" WHERE "new_points"=5760; |
## Task
Generate a SQL query to answer the following question:
`If the new points were 5760, what is the RK?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_singles" (
"sd" real,
"rk" real,
"player" text,
"points" real,
"points_defending" real,
"points_won" real,
"new_points" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the new points were 5760, what is the RK?`:
```sql
|
SELECT COUNT("points_defending") FROM "men_s_singles" WHERE "player"='Stanislas Wawrinka'; |
## Task
Generate a SQL query to answer the following question:
`How many times is player Stanislas Wawrinka on the list?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_singles" (
"sd" real,
"rk" real,
"player" text,
"points" real,
"points_defending" real,
"points_won" real,
"new_points" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is player Stanislas Wawrinka on the list?`:
```sql
|
SELECT "new_points" FROM "men_s_singles" WHERE "points_defending"=45 AND "points_won"=90; |
## Task
Generate a SQL query to answer the following question:
`If the points won were 90 and the points defending were 45, what are the new points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_singles" (
"sd" real,
"rk" real,
"player" text,
"points" real,
"points_defending" real,
"points_won" real,
"new_points" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the points won were 90 and the points defending were 45, what are the new points?`:
```sql
|
SELECT COUNT("points_won") FROM "women_s_singles" WHERE "points"=6675; |
## Task
Generate a SQL query to answer the following question:
`how many time was points 6675?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_s_singles" (
"sd" real,
"rk" real,
"player" text,
"points" real,
"points_defending" real,
"points_won" real,
"new_points" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many time was points 6675?`:
```sql
|
SELECT MIN("points_won") FROM "women_s_singles" WHERE "player"='Victoria Azarenka'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest points won from player victoria azarenka?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_s_singles" (
"sd" real,
"rk" real,
"player" text,
"points" real,
"points_defending" real,
"points_won" real,
"new_points" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest points won from player victoria azarenka?`:
```sql
|
SELECT "status" FROM "women_s_singles" WHERE "sd"=15; |
## Task
Generate a SQL query to answer the following question:
`What is the status when sd is 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_s_singles" (
"sd" real,
"rk" real,
"player" text,
"points" real,
"points_defending" real,
"points_won" real,
"new_points" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status when sd is 15?`:
```sql
|
SELECT MAX("sd") FROM "women_s_singles" WHERE "status"='Second round lost to Iveta Benešová'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest sd when the status is second round lost to iveta benešová?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_s_singles" (
"sd" real,
"rk" real,
"player" text,
"points" real,
"points_defending" real,
"points_won" real,
"new_points" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest sd when the status is second round lost to iveta benešová?`:
```sql
|
SELECT COUNT("founded") FROM "table1_26218124_1" WHERE "stadium"='Westfalenstadion'; |
## Task
Generate a SQL query to answer the following question:
`How many clubs were founded in the westfalenstadion stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26218124_1" (
"name" text,
"original_club" text,
"stadium" text,
"city" text,
"country" text,
"sport" text,
"founded" real,
"reason_for_foundation_with_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many clubs were founded in the westfalenstadion stadium?`:
```sql
|
SELECT "original_club" FROM "table1_26218124_1" WHERE "name"='Hapoel Katamon Jerusalem F.C.'; |
## Task
Generate a SQL query to answer the following question:
`Which club was originally named hapoel katamon jerusalem f.c.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26218124_1" (
"name" text,
"original_club" text,
"stadium" text,
"city" text,
"country" text,
"sport" text,
"founded" real,
"reason_for_foundation_with_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club was originally named hapoel katamon jerusalem f.c.?`:
```sql
|
SELECT COUNT("founded") FROM "table1_26218124_1" WHERE "city"='Belo Horizonte'; |
## Task
Generate a SQL query to answer the following question:
`How many clubs were founded in belo horizonte?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26218124_1" (
"name" text,
"original_club" text,
"stadium" text,
"city" text,
"country" text,
"sport" text,
"founded" real,
"reason_for_foundation_with_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many clubs were founded in belo horizonte?`:
```sql
|
SELECT "original_club" FROM "table1_26218124_1" WHERE "name"='Newcastle Falcons'; |
## Task
Generate a SQL query to answer the following question:
`Which club was originally named the newcastle falcons?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26218124_1" (
"name" text,
"original_club" text,
"stadium" text,
"city" text,
"country" text,
"sport" text,
"founded" real,
"reason_for_foundation_with_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club was originally named the newcastle falcons?`:
```sql
|
SELECT MIN("f_laps") FROM "career_summary"; |
## Task
Generate a SQL query to answer the following question:
`What is the minimum number of f/laps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum number of f/laps?`:
```sql
|
SELECT COUNT("season") FROM "career_summary" WHERE "points"='N/A'; |
## Task
Generate a SQL query to answer the following question:
`How many seasons have points totals of N/A?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons have points totals of N/A?`:
```sql
|
SELECT MAX("wins") FROM "career_summary"; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of wins?`:
```sql
|
SELECT MAX("prod_code") FROM "table1_2623498_2" WHERE "title"='\"Number One\"'; |
## Task
Generate a SQL query to answer the following question:
`How many production codes does "number one" have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2623498_2" (
"episode_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many production codes does "number one" have?`:
```sql
|
SELECT "written_by" FROM "table1_2623498_2" WHERE "title"='\"The New Ron\"'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote "the new Ron"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2623498_2" (
"episode_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote "the new Ron"?`:
```sql
|
SELECT COUNT("starts") FROM "nascar_sprint_cup_series" WHERE "avg_finish"='17.9'; |
## Task
Generate a SQL query to answer the following question:
`How many different starts had an average finish of 17.9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different starts had an average finish of 17.9?`:
```sql
|
SELECT "wins" FROM "nascar_sprint_cup_series" WHERE "year"=1983; |
## Task
Generate a SQL query to answer the following question:
`What were the wins of 1983?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the wins of 1983?`:
```sql
|
SELECT "season_episode_num" FROM "table1_2623498_4" WHERE "written_by"='Mark Drop'; |
## Task
Generate a SQL query to answer the following question:
`Which episodes in season 3 were written by Mark Drop?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2623498_4" (
"episode_num" text,
"season_episode_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episodes in season 3 were written by Mark Drop?`:
```sql
|
SELECT COUNT("directed_by") FROM "table1_2623498_4" WHERE "season_episode_num"='1'; |
## Task
Generate a SQL query to answer the following question:
`How many directors were there for season 3 episode 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2623498_4" (
"episode_num" text,
"season_episode_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many directors were there for season 3 episode 1?`:
```sql
|
SELECT COUNT("original_air_date") FROM "table1_2623498_4" WHERE "title"='\"Team Impossible\"'; |
## Task
Generate a SQL query to answer the following question:
`How many times did the episode "team impossible" originally air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2623498_4" (
"episode_num" text,
"season_episode_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did the episode "team impossible" originally air?`:
```sql
|
SELECT "54_holes" FROM "wins_9" WHERE "runner_s_up"='Jimmy Demaret'; |
## Task
Generate a SQL query to answer the following question:
`what is the number where the player was jimmy demaret`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wins_9" (
"year" real,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the number where the player was jimmy demaret`:
```sql
|
SELECT "margin" FROM "wins_9" WHERE "runner_s_up"='Mike Turnesa'; |
## Task
Generate a SQL query to answer the following question:
`what is the space where the next one was mike turnesa`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wins_9" (
"year" real,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the space where the next one was mike turnesa`:
```sql
|
SELECT "margin" FROM "wins_9" WHERE "runner_s_up"='Skee Riegel'; |
## Task
Generate a SQL query to answer the following question:
`what is the space where the next winner is skee riegel`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wins_9" (
"year" real,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the space where the next winner is skee riegel`:
```sql
|
SELECT "old_english_day_name" FROM "table1_2624098_1" WHERE "modern_english_day_name"='Saturday'; |
## Task
Generate a SQL query to answer the following question:
`what is the old English name of Saturday? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2624098_1" (
"modern_english_day_name" text,
"old_english_day_name" text,
"english_day_name_meaning" text,
"glossed_from_latin_day_name" text,
"latin_day_name_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the old English name of Saturday? `:
```sql
|
SELECT COUNT("old_english_day_name") FROM "table1_2624098_1" WHERE "glossed_from_latin_day_name"='Dies Iovis'; |
## Task
Generate a SQL query to answer the following question:
`how mant different day names in old English were coined from the Latin day name "dies iovis"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2624098_1" (
"modern_english_day_name" text,
"old_english_day_name" text,
"english_day_name_meaning" text,
"glossed_from_latin_day_name" text,
"latin_day_name_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `how mant different day names in old English were coined from the Latin day name "dies iovis"?`:
```sql
|
SELECT COUNT("english_day_name_meaning") FROM "table1_2624098_1" WHERE "modern_english_day_name"='Wednesday'; |
## Task
Generate a SQL query to answer the following question:
`how many different meanings does Wednesday have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2624098_1" (
"modern_english_day_name" text,
"old_english_day_name" text,
"english_day_name_meaning" text,
"glossed_from_latin_day_name" text,
"latin_day_name_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many different meanings does Wednesday have?`:
```sql
|
SELECT "english_day_name_meaning" FROM "table1_2624098_1" WHERE "old_english_day_name"='Sæturnesdæg'; |
## Task
Generate a SQL query to answer the following question:
`what is the English meaning of the old English name "sæturnesdæg"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2624098_1" (
"modern_english_day_name" text,
"old_english_day_name" text,
"english_day_name_meaning" text,
"glossed_from_latin_day_name" text,
"latin_day_name_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the English meaning of the old English name "sæturnesdæg"?`:
```sql
|
SELECT "latin_day_name_meaning" FROM "table1_2624098_1" WHERE "glossed_from_latin_day_name"='Dies Saturni'; |
## Task
Generate a SQL query to answer the following question:
`what is the meaning of the latin day name "dies saturni"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2624098_1" (
"modern_english_day_name" text,
"old_english_day_name" text,
"english_day_name_meaning" text,
"glossed_from_latin_day_name" text,
"latin_day_name_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the meaning of the latin day name "dies saturni"?`:
```sql
|
SELECT "opponents_conference" FROM "charleston_southern_vs_fbs_schools" WHERE "result"='L, 62-10'; |
## Task
Generate a SQL query to answer the following question:
`Which opponents conference has the result L, 62-10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "charleston_southern_vs_fbs_schools" (
"year" real,
"fbs_opponent" text,
"result" text,
"opponents_conference" text,
"opponents_head_coach" text,
"charleston_southerns_head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponents conference has the result L, 62-10?`:
```sql
|
SELECT "opponents_head_coach" FROM "charleston_southern_vs_fbs_schools" WHERE "result"='L, 56-6'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponents head coach with the result L, 56-6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "charleston_southern_vs_fbs_schools" (
"year" real,
"fbs_opponent" text,
"result" text,
"opponents_conference" text,
"opponents_head_coach" text,
"charleston_southerns_head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponents head coach with the result L, 56-6?`:
```sql
|
SELECT "charleston_southerns_head_coach" FROM "charleston_southern_vs_fbs_schools" WHERE "result"='L, 56-6'; |
## Task
Generate a SQL query to answer the following question:
`Who is Charleston Southerns head coach where the result is L, 56-6?-`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "charleston_southern_vs_fbs_schools" (
"year" real,
"fbs_opponent" text,
"result" text,
"opponents_conference" text,
"opponents_head_coach" text,
"charleston_southerns_head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is Charleston Southerns head coach where the result is L, 56-6?-`:
```sql
|
SELECT "fbs_opponent" FROM "charleston_southern_vs_fbs_schools" WHERE "result"='L, 62-3'; |
## Task
Generate a SQL query to answer the following question:
`Who played FBS where the result was L, 62-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "charleston_southern_vs_fbs_schools" (
"year" real,
"fbs_opponent" text,
"result" text,
"opponents_conference" text,
"opponents_head_coach" text,
"charleston_southerns_head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played FBS where the result was L, 62-3?`:
```sql
|
SELECT MAX("founded") FROM "former_members" WHERE "institution"='Alfred University'; |
## Task
Generate a SQL query to answer the following question:
`When was alfred university founded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"enrollment" text,
"joined" real,
"left" real,
"current_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was alfred university founded?`:
```sql
|
SELECT "location" FROM "current_members" WHERE "institution"='Bethany College'; |
## Task
Generate a SQL query to answer the following question:
`Name where bethany college is`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"enrollment" real,
"joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name where bethany college is`:
```sql
|
SELECT "location" FROM "current_members" WHERE "nickname"='Golden Tornadoes'; |
## Task
Generate a SQL query to answer the following question:
`Name the location for golden tornadoes`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"enrollment" real,
"joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the location for golden tornadoes`:
```sql
|
SELECT COUNT("location") FROM "current_members" WHERE "institution"='Geneva College'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of locations for geneva college`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"enrollment" real,
"joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of locations for geneva college`:
```sql
|
SELECT "enrollment" FROM "current_members" WHERE "nickname"='Tomcats'; |
## Task
Generate a SQL query to answer the following question:
`Name the enrollment for tomcats`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"enrollment" real,
"joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the enrollment for tomcats`:
```sql
|
SELECT MIN("season_4") FROM "character_appearances" WHERE "character"='Mrs. Jennifer Knight'; |
## Task
Generate a SQL query to answer the following question:
`How many season 4 appearances are there by Mrs. Jennifer Knight?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "character_appearances" (
"character" text,
"played_by" text,
"season_1" real,
"season_2" real,
"season_3" real,
"season_4" real,
"first_appearance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many season 4 appearances are there by Mrs. Jennifer Knight?`:
```sql
|
SELECT MAX("season_3") FROM "character_appearances" WHERE "played_by"='Morgan the Dog'; |
## Task
Generate a SQL query to answer the following question:
`How many season 3 appearances by Morgan the Dog?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "character_appearances" (
"character" text,
"played_by" text,
"season_1" real,
"season_2" real,
"season_3" real,
"season_4" real,
"first_appearance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many season 3 appearances by Morgan the Dog?`:
```sql
|
SELECT "first_appearance" FROM "character_appearances" WHERE "season_4"=7; |
## Task
Generate a SQL query to answer the following question:
`What episode was the first appearance of the character who appears 7 times in season 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "character_appearances" (
"character" text,
"played_by" text,
"season_1" real,
"season_2" real,
"season_3" real,
"season_4" real,
"first_appearance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode was the first appearance of the character who appears 7 times in season 4?`:
```sql
|
SELECT MIN("season_3") FROM "character_appearances" WHERE "played_by"='Stefan van Ray'; |
## Task
Generate a SQL query to answer the following question:
`How many season 3 appearances by the character played by Stefan Van Ray?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "character_appearances" (
"character" text,
"played_by" text,
"season_1" real,
"season_2" real,
"season_3" real,
"season_4" real,
"first_appearance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many season 3 appearances by the character played by Stefan Van Ray?`:
```sql
|
SELECT "first_appearance" FROM "character_appearances" WHERE "played_by"='Obdul Reid'; |
## Task
Generate a SQL query to answer the following question:
`What is the first appearance of the character played by Obdul Reid?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "character_appearances" (
"character" text,
"played_by" text,
"season_1" real,
"season_2" real,
"season_3" real,
"season_4" real,
"first_appearance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first appearance of the character played by Obdul Reid?`:
```sql
|
SELECT "primary_conference_when_joining_the_csfl" FROM "current_members" WHERE "founded"=1894; |
## Task
Generate a SQL query to answer the following question:
`What was the primary conference when joining the cslf for the institution that was founded in 1894`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"nickname" text,
"primary_conference_when_joining_the_csfl" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the primary conference when joining the cslf for the institution that was founded in 1894`:
```sql
|
SELECT "primary_conference_when_joining_the_csfl" FROM "current_members" WHERE "joined"='2004-05'; |
## Task
Generate a SQL query to answer the following question:
`what was the primary conference when joining the csfl for the institution that joined in 2004-05? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"nickname" text,
"primary_conference_when_joining_the_csfl" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the primary conference when joining the csfl for the institution that joined in 2004-05? `:
```sql
|
SELECT COUNT("result") FROM "performances" WHERE "theme"='Inspirational'; |
## Task
Generate a SQL query to answer the following question:
`How may results had the theme inspirational?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"episode" text,
"theme" text,
"song_choice" text,
"original_recording_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How may results had the theme inspirational?`:
```sql
|
SELECT "episode" FROM "performances" WHERE "original_recording_artist"='LaVern Baker'; |
## Task
Generate a SQL query to answer the following question:
`Which episode had Lavern Baker?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"episode" text,
"theme" text,
"song_choice" text,
"original_recording_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode had Lavern Baker?`:
```sql
|
SELECT "order_num" FROM "performances" WHERE "original_recording_artist"='Erma Franklin'; |
## Task
Generate a SQL query to answer the following question:
`What was the order # or Erma Franklin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"episode" text,
"theme" text,
"song_choice" text,
"original_recording_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the order # or Erma Franklin?`:
```sql
|
SELECT "original_artist" FROM "performances_results" WHERE "song_choice"='\" Rhiannon \"'; |
## Task
Generate a SQL query to answer the following question:
`who is the original artist for the song " rhiannon "?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances_results" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the original artist for the song " rhiannon "?`:
```sql
|
SELECT "theme" FROM "performances_results" WHERE "original_artist"='Alicia Keys'; |
## Task
Generate a SQL query to answer the following question:
`What is the theme for the original artist Alicia Keys?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances_results" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the theme for the original artist Alicia Keys?`:
```sql
|
SELECT COUNT("result") FROM "performances_results" WHERE "original_artist"='Alicia Keys'; |
## Task
Generate a SQL query to answer the following question:
`How many times is the original artist Alicia keys?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances_results" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is the original artist Alicia keys?`:
```sql
|
SELECT "order_num" FROM "performances_results" WHERE "original_artist"='Sarah McLachlan'; |
## Task
Generate a SQL query to answer the following question:
`What is the order # for the original artist sarah mclachlan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances_results" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the order # for the original artist sarah mclachlan?`:
```sql
|
SELECT "theme" FROM "performances_results" WHERE "order_num"='2'; |
## Task
Generate a SQL query to answer the following question:
`WHat is the them for the order #2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances_results" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHat is the them for the order #2?`:
```sql
|
SELECT "type" FROM "current_members" WHERE "nickname"='Pointers'; |
## Task
Generate a SQL query to answer the following question:
`When pointers are the nickname what is the type?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"nickname" text,
"location_population" text,
"founded" real,
"type" text,
"undergraduate_enrollment" real,
"joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `When pointers are the nickname what is the type?`:
```sql
|
SELECT "type" FROM "current_members" WHERE "nickname"='Falcons'; |
## Task
Generate a SQL query to answer the following question:
`When falcons are the nickname what is the type?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"nickname" text,
"location_population" text,
"founded" real,
"type" text,
"undergraduate_enrollment" real,
"joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `When falcons are the nickname what is the type?`:
```sql
|
SELECT "nickname" FROM "current_members" WHERE "undergraduate_enrollment"=9386; |
## Task
Generate a SQL query to answer the following question:
`When 9386 is the undergraduate enrollment what is the nickname?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"nickname" text,
"location_population" text,
"founded" real,
"type" text,
"undergraduate_enrollment" real,
"joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 9386 is the undergraduate enrollment what is the nickname?`:
```sql
|
SELECT "song_choice" FROM "performances" WHERE "original_artist"='Stevie Wonder'; |
## Task
Generate a SQL query to answer the following question:
`What was the choice of song where the original artist was Stevie Wonder?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the choice of song where the original artist was Stevie Wonder?`:
```sql
|
SELECT "order_num" FROM "performances" WHERE "theme"='The Rolling Stones'; |
## Task
Generate a SQL query to answer the following question:
`What was Katie's order number when the theme was The Rolling Stones?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Katie's order number when the theme was The Rolling Stones?`:
```sql
|
SELECT "original_artist" FROM "performances" WHERE "theme"='The Rolling Stones'; |
## Task
Generate a SQL query to answer the following question:
`Who was the original artist of the chosen song when the theme was The Rolling Stones?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the original artist of the chosen song when the theme was The Rolling Stones?`:
```sql
|
SELECT "original_artist" FROM "performances_results" WHERE "theme"='First Solo'; |
## Task
Generate a SQL query to answer the following question:
`Who was the original artist of the First solo theme?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances_results" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the original artist of the First solo theme?`:
```sql
|
SELECT COUNT("song_choice") FROM "performances_results" WHERE "original_artist"='Bright Eyes'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of song choices where the original artist was Bright Eyes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances_results" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of song choices where the original artist was Bright Eyes?`:
```sql
|
SELECT "original_artist" FROM "performances_results" WHERE "theme"='Group Performance'; |
## Task
Generate a SQL query to answer the following question:
`Who was the original artist of the group performance theme?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances_results" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the original artist of the group performance theme?`:
```sql
|
SELECT "order_num" FROM "performances_results" WHERE "theme"='Billboard Hot 100 Hits' AND "original_artist"='Sixpence None the Richer'; |
## Task
Generate a SQL query to answer the following question:
`What is the order number of the Billboard Hot 100 Hits theme and the original artist was Sixpence None the Richer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances_results" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the order number of the Billboard Hot 100 Hits theme and the original artist was Sixpence None the Richer?`:
```sql
|
SELECT COUNT("week_num") FROM "performances_results" WHERE "theme"='Billboard Hot 100 Hits' AND "order_num"='3' AND "original_artist"='Sixpence None the Richer'; |
## Task
Generate a SQL query to answer the following question:
`What was the number of weeks that had a Billboard Hot 100 Hits theme, an order number of 3, and an original artist of Sixpence None the Richer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances_results" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the number of weeks that had a Billboard Hot 100 Hits theme, an order number of 3, and an original artist of Sixpence None the Richer?`:
```sql
|
SELECT COUNT("joined") FROM "current_members" WHERE "nickname"='Warriors'; |
## Task
Generate a SQL query to answer the following question:
`How many joined the Warriors?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real,
"nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many joined the Warriors?`:
```sql
|
SELECT "joined" FROM "current_members" WHERE "enrollment"=1150 AND "location"='Sioux City, Iowa'; |
## Task
Generate a SQL query to answer the following question:
`How many joined when the enrollment was 1150 in Sioux City, Iowa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real,
"nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many joined when the enrollment was 1150 in Sioux City, Iowa?`:
```sql
|
SELECT "nickname" FROM "current_members" WHERE "institution"='Briar Cliff University'; |
## Task
Generate a SQL query to answer the following question:
`What is Briar Cliff University's nickname?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real,
"nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Briar Cliff University's nickname?`:
```sql
|
SELECT "nickname" FROM "current_members" WHERE "institution"='Concordia University, Nebraska'; |
## Task
Generate a SQL query to answer the following question:
`What is the nickname of the institution from Concordia University, Nebraska?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real,
"nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nickname of the institution from Concordia University, Nebraska?`:
```sql
|
SELECT "result" FROM "performances" WHERE "week_num"='Top 12'; |
## Task
Generate a SQL query to answer the following question:
`Where the week # is Top 12, what is the result?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where the week # is Top 12, what is the result?`:
```sql
|
SELECT COUNT("result") FROM "performances" WHERE "theme"='Group Round'; |
## Task
Generate a SQL query to answer the following question:
`How many results are there with the theme Group Round?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many results are there with the theme Group Round?`:
```sql
|
SELECT "original_artist" FROM "performances" WHERE "song_choice"='\" Under My Thumb \"'; |
## Task
Generate a SQL query to answer the following question:
`Who is the original artist of the song choice " Under My Thumb "? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the original artist of the song choice " Under My Thumb "? `:
```sql
|
SELECT COUNT("theme") FROM "performances" WHERE "order_num"='9'; |
## Task
Generate a SQL query to answer the following question:
`How many themes are there where the order # is 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many themes are there where the order # is 9?`:
```sql
|
SELECT "order_num" FROM "performances" WHERE "week_num"='Top 10'; |
## Task
Generate a SQL query to answer the following question:
`The order # is what for the week # Top 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `The order # is what for the week # Top 10?`:
```sql
|
SELECT "week_num" FROM "performances" WHERE "original_artist"='The Temptations'; |
## Task
Generate a SQL query to answer the following question:
`The original artist The Temptations has what week #?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `The original artist The Temptations has what week #?`:
```sql
|
SELECT COUNT("founded") FROM "past_members" WHERE "type"='Public' AND "enrollment"='780'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of founded for public and 780 enrollment`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" text,
"current_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of founded for public and 780 enrollment`:
```sql
|
SELECT "founded" FROM "past_members" WHERE "current_conference"='school closed in 2005'; |
## Task
Generate a SQL query to answer the following question:
`Name the founded for school closed in 2005`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" text,
"current_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the founded for school closed in 2005`:
```sql
|
SELECT "nickname" FROM "current_members" WHERE "joined"='1902 1'; |
## Task
Generate a SQL query to answer the following question:
`what is the nickname that joined 1902 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the nickname that joined 1902 1?`:
```sql
|
SELECT "type" FROM "current_members" WHERE "institution"='Ottawa University'; |
## Task
Generate a SQL query to answer the following question:
`what type of institution is ottawa university?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `what type of institution is ottawa university?`:
```sql
|
SELECT COUNT("nickname") FROM "current_members" WHERE "institution"='Southwestern College'; |
## Task
Generate a SQL query to answer the following question:
`what is the total number of nicknames for southwestern college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total number of nicknames for southwestern college?`:
```sql
|
SELECT "type" FROM "current_members" WHERE "joined"='1902 5'; |
## Task
Generate a SQL query to answer the following question:
`what type was joined in 1902 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `what type was joined in 1902 5?`:
```sql
|
SELECT "institution" FROM "current_members" WHERE "location"='North Newton, Kansas'; |
## Task
Generate a SQL query to answer the following question:
`what is the institution located in north newton, kansas?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the institution located in north newton, kansas?`:
```sql
|
SELECT "institution" FROM "current_members" WHERE "founded"=1920; |
## Task
Generate a SQL query to answer the following question:
`Name the place that was founded in 1920`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real,
"nickname" text,
"primary_conference_when_joining_the_msfa" text,
"current_primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the place that was founded in 1920`:
```sql
|
SELECT "type" FROM "current_members" WHERE "joined"=2007; |
## Task
Generate a SQL query to answer the following question:
`Name the type that joined 2007`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real,
"nickname" text,
"primary_conference_when_joining_the_msfa" text,
"current_primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the type that joined 2007`:
```sql
|
SELECT COUNT("no_in_series") FROM "table1_26259391_1" WHERE "u_s_viewers_million"='6.55' AND "directed_by"='Pete Michels'; |
## Task
Generate a SQL query to answer the following question:
`how many series had 6.55 u.s. viewers (million) and were directed by pete michels`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26259391_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many series had 6.55 u.s. viewers (million) and were directed by pete michels`:
```sql
|
SELECT "no_in_series" FROM "table1_26259391_1" WHERE "production_code"='8ACX05'; |
## Task
Generate a SQL query to answer the following question:
`how many series have production code 8acx05`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26259391_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many series have production code 8acx05`:
```sql
|
SELECT COUNT("u_s_viewers_million") FROM "table1_26259391_1" WHERE "written_by"='Chris Sheridan & Danny Smith'; |
## Task
Generate a SQL query to answer the following question:
`how many u.s. viewers (million) have seen a production written by chris sheridan & danny smith`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26259391_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many u.s. viewers (million) have seen a production written by chris sheridan & danny smith`:
```sql
|
SELECT "production_code" FROM "table1_26259391_1" WHERE "written_by"='Andrew Goldberg'; |
## Task
Generate a SQL query to answer the following question:
`which production codes were written by andrew goldberg`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26259391_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `which production codes were written by andrew goldberg`:
```sql
|
SELECT "production_code" FROM "table1_26259391_1" WHERE "original_air_date"='February20,2011'; |
## Task
Generate a SQL query to answer the following question:
`Which production code had original air dated february20,2011`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26259391_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which production code had original air dated february20,2011`:
```sql
|
SELECT "institution" FROM "former_members" WHERE "joined"='1996-97' AND "left"='2011-12'; |
## Task
Generate a SQL query to answer the following question:
`What school joined the conference in 1996-97 and left it in 2011-12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"left" text,
"nickname" text,
"primary_conference_when_joining_the_msfa" text,
"current_primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school joined the conference in 1996-97 and left it in 2011-12?`:
```sql
|
SELECT "location" FROM "former_members" WHERE "enrollment"=850; |
## Task
Generate a SQL query to answer the following question:
`What location has a school with enrollment of 850?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"left" text,
"nickname" text,
"primary_conference_when_joining_the_msfa" text,
"current_primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location has a school with enrollment of 850?`:
```sql
|
SELECT COUNT("location") FROM "former_members" WHERE "left"='2002-03'; |
## Task
Generate a SQL query to answer the following question:
`How many schools left in 2002-03?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"left" text,
"nickname" text,
"primary_conference_when_joining_the_msfa" text,
"current_primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many schools left in 2002-03?`:
```sql
|
SELECT "location" FROM "former_members" WHERE "nickname"='Pioneers'; |
## Task
Generate a SQL query to answer the following question:
`Which city has a school where the nickname is Pioneers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"left" text,
"nickname" text,
"primary_conference_when_joining_the_msfa" text,
"current_primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city has a school where the nickname is Pioneers?`:
```sql
|
SELECT "type" FROM "former_members" WHERE "nickname"='Oilers'; |
## Task
Generate a SQL query to answer the following question:
`What type of school has the nickname the Oilers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"left" text,
"nickname" text,
"primary_conference_when_joining_the_msfa" text,
"current_primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of school has the nickname the Oilers?`:
```sql
|
SELECT COUNT("location") FROM "former_members" WHERE "nickname"='Panthers'; |
## Task
Generate a SQL query to answer the following question:
`How many locations have a school that is nicknamed the Panthers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"left" text,
"nickname" text,
"primary_conference_when_joining_the_msfa" text,
"current_primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many locations have a school that is nicknamed the Panthers?`:
```sql
|
SELECT COUNT("sprints_classification") FROM "classification_leadership" WHERE "winner"='Joaquin Rodriguez'; |
## Task
Generate a SQL query to answer the following question:
`How many sprints classifications were associated with an overall winner of Joaquin Rodriguez?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"sprints_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many sprints classifications were associated with an overall winner of Joaquin Rodriguez?`:
```sql
|
SELECT "team_classification" FROM "classification_leadership" WHERE "winner"='Chris Horner'; |
## Task
Generate a SQL query to answer the following question:
`Who led team classification during the stage whose winner was Chris Horner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"sprints_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who led team classification during the stage whose winner was Chris Horner?`:
```sql
|
SELECT "sprints_classification" FROM "classification_leadership" WHERE "general_classification"='Chris Horner'; |
## Task
Generate a SQL query to answer the following question:
`Who led sprints classification when Chris Horner led general classification?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"sprints_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who led sprints classification when Chris Horner led general classification?`:
```sql
|
SELECT "report" FROM "grands_prix" WHERE "grand_prix"='Belgian Grand Prix'; |
## Task
Generate a SQL query to answer the following question:
`What are all the report for the Belgian Grand Prix? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grands_prix" (
"rd" real,
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the report for the Belgian Grand Prix? `:
```sql
|
SELECT COUNT("winning_constructor") FROM "grands_prix" WHERE "fastest_lap"='Mark Webber'; |
## Task
Generate a SQL query to answer the following question:
`How many winning constructor catagories are there when Mark Webber had the fastest lap? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grands_prix" (
"rd" real,
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many winning constructor catagories are there when Mark Webber had the fastest lap? `:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.