output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "winner" FROM "race_calendar" WHERE "city_state"='mallala , south australia' AND "team"='elfin sports cars'; |
## Task
Generate a SQL query to answer the following question:
`What is Winner, when City / State is "Mallala , South Australia", and when Team is "Elfin Sports Cars"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar" (
"circuit" text,
"city_state" text,
"date" text,
"winner" text,
"team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Winner, when City / State is "Mallala , South Australia", and when Team is "Elfin Sports Cars"?`:
```sql
|
SELECT "circuit" FROM "race_calendar" WHERE "team"='r.j.macarthur onslow' AND "city_state"='sydney , new south wales'; |
## Task
Generate a SQL query to answer the following question:
`What is Circuit, when Team is "R.J.MacArthur Onslow", and when City / State is "Sydney , New South Wales"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar" (
"circuit" text,
"city_state" text,
"date" text,
"winner" text,
"team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Circuit, when Team is "R.J.MacArthur Onslow", and when City / State is "Sydney , New South Wales"?`:
```sql
|
SELECT "winner" FROM "race_calendar" WHERE "team"='r.j.macarthur onslow' AND "circuit"='oran park raceway'; |
## Task
Generate a SQL query to answer the following question:
`What is Winner, when Team is "R.J.MacArthur Onslow", and when Circuit is "Oran Park Raceway"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar" (
"circuit" text,
"city_state" text,
"date" text,
"winner" text,
"team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Winner, when Team is "R.J.MacArthur Onslow", and when Circuit is "Oran Park Raceway"?`:
```sql
|
SELECT "date" FROM "race_calendar" WHERE "city_state"='mallala , south australia' AND "team"='r.j.macarthur onslow'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when City / State is "Mallala , South Australia", and when Team is "R.J.MacArthur Onslow"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar" (
"circuit" text,
"city_state" text,
"date" text,
"winner" text,
"team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when City / State is "Mallala , South Australia", and when Team is "R.J.MacArthur Onslow"?`:
```sql
|
SELECT "winner" FROM "race_calendar" WHERE "date"='20 august'; |
## Task
Generate a SQL query to answer the following question:
`What is Winner, when Date is "20 August"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar" (
"circuit" text,
"city_state" text,
"date" text,
"winner" text,
"team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Winner, when Date is "20 August"?`:
```sql
|
SELECT COUNT("total_pts") FROM "relegation" WHERE "2008_09_pts"<49 AND "2006_07_pts"='46'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of points with less than 49 points in 2008-09, and 46 points in 2006-07?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"team" text,
"2006_07_pts" text,
"2007_08_pts" text,
"2008_09_pts" real,
"total_pts" real,
"total_pld" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of points with less than 49 points in 2008-09, and 46 points in 2006-07?`:
```sql
|
SELECT SUM("total_pld") FROM "relegation" WHERE "2007_08_pts"='36' AND "2008_09_pts"<55; |
## Task
Generate a SQL query to answer the following question:
`What is the total pld that has 36 points in 2007-08, and less than 55 points in 2008-09?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"team" text,
"2006_07_pts" text,
"2007_08_pts" text,
"2008_09_pts" real,
"total_pts" real,
"total_pld" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total pld that has 36 points in 2007-08, and less than 55 points in 2008-09?`:
```sql
|
SELECT MIN("total_pld") FROM "relegation" WHERE "2006_07_pts"='57' AND "2008_09_pts">39; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest total pld with 57 points in 2006-07, and more than 39 points in 2008-09`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"team" text,
"2006_07_pts" text,
"2007_08_pts" text,
"2008_09_pts" real,
"total_pts" real,
"total_pld" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest total pld with 57 points in 2006-07, and more than 39 points in 2008-09`:
```sql
|
SELECT "actor" FROM "for_actors_in_woody_allen_films" WHERE "result"='nominated' AND "category"='best actress'; |
## Task
Generate a SQL query to answer the following question:
`What actor was nominated for best actress?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "for_actors_in_woody_allen_films" (
"year" real,
"film" text,
"result" text,
"category" text,
"actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What actor was nominated for best actress?`:
```sql
|
SELECT "year" FROM "for_actors_in_woody_allen_films" WHERE "film"='bullets over broadway' AND "category"='best supporting actress' AND "actor"='jennifer tilly'; |
## Task
Generate a SQL query to answer the following question:
`What year was Jennifer Tilly's Film of Bullets Over Broadway up in the best supporting actress category?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "for_actors_in_woody_allen_films" (
"year" real,
"film" text,
"result" text,
"category" text,
"actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Jennifer Tilly's Film of Bullets Over Broadway up in the best supporting actress category?`:
```sql
|
SELECT "result" FROM "for_actors_in_woody_allen_films" WHERE "year">1989 AND "category"='best supporting actress' AND "actor"='samantha morton'; |
## Task
Generate a SQL query to answer the following question:
`What is the result of Samantha Morton being up for best supporting actress in a year later than 1989?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "for_actors_in_woody_allen_films" (
"year" real,
"film" text,
"result" text,
"category" text,
"actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of Samantha Morton being up for best supporting actress in a year later than 1989?`:
```sql
|
SELECT "film" FROM "for_actors_in_woody_allen_films" WHERE "actor"='dianne wiest'; |
## Task
Generate a SQL query to answer the following question:
`What film was Dianne Wiest in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "for_actors_in_woody_allen_films" (
"year" real,
"film" text,
"result" text,
"category" text,
"actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What film was Dianne Wiest in?`:
```sql
|
SELECT "class" FROM "tank_locomotives" WHERE "quantity"<10 AND "number_s"='names'; |
## Task
Generate a SQL query to answer the following question:
`Which class has fewer than 10 and number(s) names?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tank_locomotives" (
"class" text,
"number_s" text,
"quantity" real,
"year_s_of_manufacture" text,
"type" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which class has fewer than 10 and number(s) names?`:
```sql
|
SELECT "type" FROM "tank_locomotives" WHERE "quantity"<6 AND "number_s"='5201'; |
## Task
Generate a SQL query to answer the following question:
`What is the type with a quantity of fewer than 6 and number(s) 5201?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tank_locomotives" (
"class" text,
"number_s" text,
"quantity" real,
"year_s_of_manufacture" text,
"type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type with a quantity of fewer than 6 and number(s) 5201?`:
```sql
|
SELECT SUM("byes") FROM "1969_as_three_leagues_come_together" WHERE "against"<737; |
## Task
Generate a SQL query to answer the following question:
`How many byes were then when there were less than 737 against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1969_as_three_leagues_come_together" (
"glenelg_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many byes were then when there were less than 737 against?`:
```sql
|
SELECT COUNT("wins") FROM "1969_as_three_leagues_come_together" WHERE "byes">3; |
## Task
Generate a SQL query to answer the following question:
`How many wins were there when the byes were more than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1969_as_three_leagues_come_together" (
"glenelg_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins were there when the byes were more than 3?`:
```sql
|
SELECT MIN("wins") FROM "1969_as_three_leagues_come_together" WHERE "draws">0; |
## Task
Generate a SQL query to answer the following question:
`How many wins were there when draws were more than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1969_as_three_leagues_come_together" (
"glenelg_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins were there when draws were more than 0?`:
```sql
|
SELECT COUNT("wins") FROM "1969_as_three_leagues_come_together" WHERE "glenelg_fl"='bahgallah' AND "byes">3; |
## Task
Generate a SQL query to answer the following question:
`How many wins did Glenelg FL of bahgallah have when there were more than 3 byes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1969_as_three_leagues_come_together" (
"glenelg_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins did Glenelg FL of bahgallah have when there were more than 3 byes?`:
```sql
|
SELECT "date" FROM "wins_15" WHERE "opponent_in_final"='guy forget'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Opponent in Final is "Guy Forget"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wins_15" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_final" text,
"score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Opponent in Final is "Guy Forget"?`:
```sql
|
SELECT "opponent_in_final" FROM "wins_15" WHERE "date"='13 january 1992'; |
## Task
Generate a SQL query to answer the following question:
`What is Opponent in Final, when Date is "13 January 1992"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wins_15" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_final" text,
"score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent in Final, when Date is "13 January 1992"?`:
```sql
|
SELECT "opponent_in_final" FROM "wins_15" WHERE "surface"='hard' AND "date"='13 january 1992'; |
## Task
Generate a SQL query to answer the following question:
`What is Opponent in Final, when Surface is "Hard", and when Date is "13 January 1992"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wins_15" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_final" text,
"score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent in Final, when Surface is "Hard", and when Date is "13 January 1992"?`:
```sql
|
SELECT "height" FROM "australia" WHERE "date_of_birth"='1979-06-12'; |
## Task
Generate a SQL query to answer the following question:
`What is the Height of the Player with a Date of Birth of 1979-06-12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Height of the Player with a Date of Birth of 1979-06-12?`:
```sql
|
SELECT "height" FROM "australia" WHERE "date_of_birth"='1982-07-05'; |
## Task
Generate a SQL query to answer the following question:
`What is the Height of the Player with a Date of Birth of 1982-07-05?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Height of the Player with a Date of Birth of 1982-07-05?`:
```sql
|
SELECT "height" FROM "australia" WHERE "date_of_birth"='1982-07-05'; |
## Task
Generate a SQL query to answer the following question:
`What is the Height of the Player with a Date of Birth of 1982-07-05?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Height of the Player with a Date of Birth of 1982-07-05?`:
```sql
|
SELECT "weight" FROM "australia" WHERE "date_of_birth"='1979-09-26'; |
## Task
Generate a SQL query to answer the following question:
`What is the Weight of the Player with a Date of Birth of 1979-09-26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Weight of the Player with a Date of Birth of 1979-09-26?`:
```sql
|
SELECT "pos" FROM "australia" WHERE "name"='elise norwood'; |
## Task
Generate a SQL query to answer the following question:
`What is Elise Norwood's Pos.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Elise Norwood's Pos.?`:
```sql
|
SELECT "club" FROM "australia" WHERE "date_of_birth"='1977-02-03'; |
## Task
Generate a SQL query to answer the following question:
`What is the Club of the Player with a Date of Birth of 1977-02-03?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Club of the Player with a Date of Birth of 1977-02-03?`:
```sql
|
SELECT "home" FROM "tsv_1860_munich_versus_sp_vgg_unterhachi" WHERE "away"='1-5'; |
## Task
Generate a SQL query to answer the following question:
`What home has 1-5 as the away?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tsv_1860_munich_versus_sp_vgg_unterhachi" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What home has 1-5 as the away?`:
```sql
|
SELECT "league" FROM "tsv_1860_munich_versus_sp_vgg_unterhachi" WHERE "away"='2-3'; |
## Task
Generate a SQL query to answer the following question:
`What league has 2-3 as the away?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tsv_1860_munich_versus_sp_vgg_unterhachi" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What league has 2-3 as the away?`:
```sql
|
SELECT "away" FROM "tsv_1860_munich_versus_sp_vgg_unterhachi" WHERE "home"='1-4'; |
## Task
Generate a SQL query to answer the following question:
`What away has 1-4 as the home?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tsv_1860_munich_versus_sp_vgg_unterhachi" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What away has 1-4 as the home?`:
```sql
|
SELECT "teams" FROM "tsv_1860_munich_versus_sp_vgg_unterhachi" WHERE "away"='1-5'; |
## Task
Generate a SQL query to answer the following question:
`What teams has 1-5 as the away?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tsv_1860_munich_versus_sp_vgg_unterhachi" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What teams has 1-5 as the away?`:
```sql
|
SELECT "date" FROM "race_calendar" WHERE "series"='atcc round 6'; |
## Task
Generate a SQL query to answer the following question:
`What Date had a Series of ATCC Round 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar" (
"date" text,
"series" text,
"circuit" text,
"city_state" text,
"winner" text,
"team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Date had a Series of ATCC Round 6?`:
```sql
|
SELECT "winner" FROM "race_calendar" WHERE "circuit"='lakeside international raceway' AND "series"='amc round 4'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Winner in the AMC Round 4 at Lakeside International Raceway?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar" (
"date" text,
"series" text,
"circuit" text,
"city_state" text,
"winner" text,
"team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Winner in the AMC Round 4 at Lakeside International Raceway?`:
```sql
|
SELECT "week_15_final_dec_9" FROM "bcs_standings" WHERE "week_9_oct_29"='washington (6-1)'; |
## Task
Generate a SQL query to answer the following question:
`What is the week 15 result for the team that had a week 9 result of Washington (6-1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bcs_standings" (
"week_9_oct_29" text,
"week_10_nov_5" text,
"week_11_nov_12" text,
"week_12_nov_19" text,
"week_13_nov_26" text,
"week_14_dec_3" text,
"week_15_final_dec_9" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week 15 result for the team that had a week 9 result of Washington (6-1)?`:
```sql
|
SELECT "week_10_nov_5" FROM "bcs_standings" WHERE "week_15_final_dec_9"='illinois (10-1)'; |
## Task
Generate a SQL query to answer the following question:
`What is the week 10 result for the tean when the week 15 result is Illinois (10-1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bcs_standings" (
"week_9_oct_29" text,
"week_10_nov_5" text,
"week_11_nov_12" text,
"week_12_nov_19" text,
"week_13_nov_26" text,
"week_14_dec_3" text,
"week_15_final_dec_9" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week 10 result for the tean when the week 15 result is Illinois (10-1)?`:
```sql
|
SELECT "week_10_nov_5" FROM "bcs_standings" WHERE "week_9_oct_29"='dropped: maryland south carolina'; |
## Task
Generate a SQL query to answer the following question:
`What is the week 10 result where the week 9 result was Dropped: Maryland South Carolina?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bcs_standings" (
"week_9_oct_29" text,
"week_10_nov_5" text,
"week_11_nov_12" text,
"week_12_nov_19" text,
"week_13_nov_26" text,
"week_14_dec_3" text,
"week_15_final_dec_9" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week 10 result where the week 9 result was Dropped: Maryland South Carolina?`:
```sql
|
SELECT "week_13_nov_26" FROM "bcs_standings" WHERE "week_14_dec_3"='maryland (10-1)'; |
## Task
Generate a SQL query to answer the following question:
`What is the week 13 result where the week 14 resulted in Maryland (10-1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bcs_standings" (
"week_9_oct_29" text,
"week_10_nov_5" text,
"week_11_nov_12" text,
"week_12_nov_19" text,
"week_13_nov_26" text,
"week_14_dec_3" text,
"week_15_final_dec_9" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week 13 result where the week 14 resulted in Maryland (10-1)?`:
```sql
|
SELECT "week_14_dec_3" FROM "bcs_standings" WHERE "week_11_nov_12"='michigan (7-2)'; |
## Task
Generate a SQL query to answer the following question:
`What happened in week 14 when week 11's result was Michigan (7-2)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bcs_standings" (
"week_9_oct_29" text,
"week_10_nov_5" text,
"week_11_nov_12" text,
"week_12_nov_19" text,
"week_13_nov_26" text,
"week_14_dec_3" text,
"week_15_final_dec_9" text
);
### SQL
Given the database schema, here is the SQL query that answers `What happened in week 14 when week 11's result was Michigan (7-2)?`:
```sql
|
SELECT "week_12_nov_19" FROM "bcs_standings" WHERE "week_13_nov_26"='tennessee (9-1)'; |
## Task
Generate a SQL query to answer the following question:
`What happened in week 12 when week 13 resulted in Tennessee (9-1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bcs_standings" (
"week_9_oct_29" text,
"week_10_nov_5" text,
"week_11_nov_12" text,
"week_12_nov_19" text,
"week_13_nov_26" text,
"week_14_dec_3" text,
"week_15_final_dec_9" text
);
### SQL
Given the database schema, here is the SQL query that answers `What happened in week 12 when week 13 resulted in Tennessee (9-1)?`:
```sql
|
SELECT MIN("bronze") FROM "medal_table" WHERE "total"<10 AND "gold"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the fewest bronze medals when the total medals is less than 10, and the gold medals less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest bronze medals when the total medals is less than 10, and the gold medals less than 0?`:
```sql
|
SELECT AVG("bronze") FROM "medal_table" WHERE "rank"='8' AND "total">2; |
## Task
Generate a SQL query to answer the following question:
`With 8 as the rank, and a total of more than 2 medals what is the average bronze medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `With 8 as the rank, and a total of more than 2 medals what is the average bronze medals?`:
```sql
|
SELECT MAX("total") FROM "medal_table" WHERE "rank"='8'; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum total medals when the rank is 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum total medals when the rank is 8?`:
```sql
|
SELECT MAX("gold") FROM "medal_table" WHERE "bronze"<49 AND "silver"=22 AND "total"<60; |
## Task
Generate a SQL query to answer the following question:
`What is the largest number of gold medals when the bronze medals is less than 49, and there is 22 silver medals, and the total is less than 60?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number of gold medals when the bronze medals is less than 49, and there is 22 silver medals, and the total is less than 60?`:
```sql
|
SELECT AVG("bronze") FROM "medal_table" WHERE "rank"='total' AND "gold">59; |
## Task
Generate a SQL query to answer the following question:
`When the number of gold medals is greater than 59, and the rank is total, what is the average bronze medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the number of gold medals is greater than 59, and the rank is total, what is the average bronze medals?`:
```sql
|
SELECT MIN("total") FROM "performances_by_nation" WHERE "silver">14; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of medals a country with more than 14 silver has?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances_by_nation" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of medals a country with more than 14 silver has?`:
```sql
|
SELECT SUM("rank") FROM "performances_by_nation" WHERE "gold">2 AND "total"<31 AND "silver"<5; |
## Task
Generate a SQL query to answer the following question:
`What is the rank of a country with more than 2 gold, less than 5 silver, and less than 31 total medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances_by_nation" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of a country with more than 2 gold, less than 5 silver, and less than 31 total medals?`:
```sql
|
SELECT "score" FROM "second_round" WHERE "place"='t3' AND "player"='phil mickelson'; |
## Task
Generate a SQL query to answer the following question:
`WHat was the score for Phil Mickelson when he placed t3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHat was the score for Phil Mickelson when he placed t3?`:
```sql
|
SELECT "place" FROM "second_round" WHERE "country"='south africa'; |
## Task
Generate a SQL query to answer the following question:
`What place did the golfer take whose country is South Africa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place did the golfer take whose country is South Africa?`:
```sql
|
SELECT "result" FROM "regular_season" WHERE "game_site"='jeppesen stadium'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game played at Jeppesen Stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game played at Jeppesen Stadium?`:
```sql
|
SELECT MIN("week") FROM "regular_season" WHERE "date"='november 12, 1961' AND "attendance"<'7,859'; |
## Task
Generate a SQL query to answer the following question:
`What week was the game played on November 12, 1961, with an attendance of 7,859 played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What week was the game played on November 12, 1961, with an attendance of 7,859 played?`:
```sql
|
SELECT "decade" FROM "track_listing" WHERE "artist"='the replacements'; |
## Task
Generate a SQL query to answer the following question:
`What decade is the artist the replacements?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "track_listing" (
"song_title" text,
"artist" text,
"decade" text,
"genre" text,
"exportable" text
);
### SQL
Given the database schema, here is the SQL query that answers `What decade is the artist the replacements?`:
```sql
|
SELECT SUM("number_of_households") FROM "new_york_counties_ranked_by_per_capita_i" WHERE "median_family_income"='$65,240' AND "population">'744,344'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of households in the county with median income of $65,240 and population greater than 744,344?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "new_york_counties_ranked_by_per_capita_i" (
"county" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of households in the county with median income of $65,240 and population greater than 744,344?`:
```sql
|
SELECT "population" FROM "new_york_counties_ranked_by_per_capita_i" WHERE "county"='tioga'; |
## Task
Generate a SQL query to answer the following question:
`What is the population of Tioga county?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "new_york_counties_ranked_by_per_capita_i" (
"county" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population of Tioga county?`:
```sql
|
SELECT "constructor" FROM "race" WHERE "laps">9 AND "grid"<2; |
## Task
Generate a SQL query to answer the following question:
`Which Constructor has Laps larger than 9, and a Grid smaller than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Constructor has Laps larger than 9, and a Grid smaller than 2?`:
```sql
|
SELECT COUNT("height") FROM "fiba_world_olympic_qualifying_tournament" WHERE "player"='filiberto rivera'; |
## Task
Generate a SQL query to answer the following question:
`What's filiberto rivera's height?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_world_olympic_qualifying_tournament" (
"player" text,
"height" real,
"position" text,
"year_born_age" text,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's filiberto rivera's height?`:
```sql
|
SELECT "player" FROM "fiba_world_olympic_qualifying_tournament" WHERE "position"='sg'; |
## Task
Generate a SQL query to answer the following question:
`Who has a position of sg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_world_olympic_qualifying_tournament" (
"player" text,
"height" real,
"position" text,
"year_born_age" text,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a position of sg?`:
```sql
|
SELECT "player" FROM "fiba_world_olympic_qualifying_tournament" WHERE "height"=2.16; |
## Task
Generate a SQL query to answer the following question:
`Who has a height of 2.16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_world_olympic_qualifying_tournament" (
"player" text,
"height" real,
"position" text,
"year_born_age" text,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a height of 2.16?`:
```sql
|
SELECT MAX("height") FROM "fiba_world_olympic_qualifying_tournament" WHERE "position"='c' AND "current_club"='unicaja malaga'; |
## Task
Generate a SQL query to answer the following question:
`What's the tallest height for c position in current club unicaja malaga?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_world_olympic_qualifying_tournament" (
"player" text,
"height" real,
"position" text,
"year_born_age" text,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the tallest height for c position in current club unicaja malaga?`:
```sql
|
SELECT "attendance" FROM "first_round_proper" WHERE "home_team"='southend united'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance when the Southend United was the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance when the Southend United was the home team?`:
```sql
|
SELECT "away_team" FROM "first_round_proper" WHERE "tie_no"='replay' AND "home_team"='northampton town'; |
## Task
Generate a SQL query to answer the following question:
`Who was the away team that played Northampton Town at home with a tie number of replay?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team that played Northampton Town at home with a tie number of replay?`:
```sql
|
SELECT "outcome" FROM "singles_titles_2" WHERE "opponent_in_the_final"='simone colombo'; |
## Task
Generate a SQL query to answer the following question:
`Which Outcome has an Opponent in the final of simone colombo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_titles_2" (
"outcome" text,
"date" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Outcome has an Opponent in the final of simone colombo?`:
```sql
|
SELECT SUM("glyph") FROM "evolution_of_symbols" WHERE "binary"<111001 AND "octal"<65 AND "hexadecimal"<30; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the glyph with a binary less than 111001, an octal less than 65, and a hexadecimal less than 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "evolution_of_symbols" (
"binary" real,
"octal" real,
"decimal" real,
"hexadecimal" real,
"glyph" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the glyph with a binary less than 111001, an octal less than 65, and a hexadecimal less than 30?`:
```sql
|
SELECT AVG("hexadecimal") FROM "evolution_of_symbols" WHERE "decimal"<53 AND "octal"<61 AND "glyph">0; |
## Task
Generate a SQL query to answer the following question:
`What is the average hexadecimal with a decimal less than 53, an octal less than 61, and a glyph greater than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "evolution_of_symbols" (
"binary" real,
"octal" real,
"decimal" real,
"hexadecimal" real,
"glyph" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average hexadecimal with a decimal less than 53, an octal less than 61, and a glyph greater than 0?`:
```sql
|
SELECT MIN("octal") FROM "evolution_of_symbols" WHERE "hexadecimal"=30 AND "glyph"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest octal with a 30 hexadecimal and less than 0 glyphs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "evolution_of_symbols" (
"binary" real,
"octal" real,
"decimal" real,
"hexadecimal" real,
"glyph" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest octal with a 30 hexadecimal and less than 0 glyphs?`:
```sql
|
SELECT AVG("hexadecimal") FROM "evolution_of_symbols" WHERE "decimal">57; |
## Task
Generate a SQL query to answer the following question:
`What is the average hexadecimal with a decimal greater than 57?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "evolution_of_symbols" (
"binary" real,
"octal" real,
"decimal" real,
"hexadecimal" real,
"glyph" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average hexadecimal with a decimal greater than 57?`:
```sql
|
SELECT AVG("decimal") FROM "evolution_of_symbols" WHERE "binary"=110010 AND "glyph">2; |
## Task
Generate a SQL query to answer the following question:
`What is the average decimal with a 110010 binary and a glyph greater than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "evolution_of_symbols" (
"binary" real,
"octal" real,
"decimal" real,
"hexadecimal" real,
"glyph" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average decimal with a 110010 binary and a glyph greater than 2?`:
```sql
|
SELECT SUM("glyph") FROM "evolution_of_symbols" WHERE "hexadecimal"=38 AND "binary"<111000; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the glyph with a 38 hexadecimal and a binary less than 111000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "evolution_of_symbols" (
"binary" real,
"octal" real,
"decimal" real,
"hexadecimal" real,
"glyph" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the glyph with a 38 hexadecimal and a binary less than 111000?`:
```sql
|
SELECT "record" FROM "schedule" WHERE "opponent"='atlanta falcons'; |
## Task
Generate a SQL query to answer the following question:
`What was the record in the game where the opponent wasd the atlanta falcons?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record in the game where the opponent wasd the atlanta falcons?`:
```sql
|
SELECT MAX("attendance") FROM "schedule" WHERE "game_site"='tulane stadium'; |
## Task
Generate a SQL query to answer the following question:
`What was the highest attendance at a game that was played in tulane stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest attendance at a game that was played in tulane stadium?`:
```sql
|
SELECT COUNT("category") FROM "appearances_in_the_tour_de_france" WHERE "start"='brioude' AND "stage"<7; |
## Task
Generate a SQL query to answer the following question:
`What is the category for the year when Brioude started and the stage is less than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances_in_the_tour_de_france" (
"year" real,
"stage" real,
"category" real,
"start" text,
"finish" text,
"leader_at_the_summit" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the category for the year when Brioude started and the stage is less than 7?`:
```sql
|
SELECT COUNT("stage") FROM "appearances_in_the_tour_de_france" WHERE "category"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the stage number when the category is less than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances_in_the_tour_de_france" (
"year" real,
"stage" real,
"category" real,
"start" text,
"finish" text,
"leader_at_the_summit" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the stage number when the category is less than 1?`:
```sql
|
SELECT "home" FROM "fc_bayern_munich_versus_tsv_1860_munich" WHERE "season"='1948-49'; |
## Task
Generate a SQL query to answer the following question:
`For the 1948-49 season, what was the At Home record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fc_bayern_munich_versus_tsv_1860_munich" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the 1948-49 season, what was the At Home record?`:
```sql
|
SELECT "season" FROM "fc_bayern_munich_versus_tsv_1860_munich" WHERE "away"='2-2' AND "home"='1-0'; |
## Task
Generate a SQL query to answer the following question:
`In which season was the Away record 2-2 and At Home record 1-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fc_bayern_munich_versus_tsv_1860_munich" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which season was the Away record 2-2 and At Home record 1-0?`:
```sql
|
SELECT "league" FROM "fc_bayern_munich_versus_tsv_1860_munich" WHERE "season"='1958-59'; |
## Task
Generate a SQL query to answer the following question:
`In the 1958-59 season, what league did the team play in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fc_bayern_munich_versus_tsv_1860_munich" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the 1958-59 season, what league did the team play in?`:
```sql
|
SELECT "teams" FROM "fc_bayern_munich_versus_tsv_1860_munich" WHERE "league"='bundesliga' AND "away"='2-1'; |
## Task
Generate a SQL query to answer the following question:
`What team played in the Bundesliga league with an Away record of 2-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fc_bayern_munich_versus_tsv_1860_munich" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team played in the Bundesliga league with an Away record of 2-1?`:
```sql
|
SELECT "teams" FROM "fc_bayern_munich_versus_tsv_1860_munich" WHERE "season"='1995-96'; |
## Task
Generate a SQL query to answer the following question:
`What team(s) played in the 1995-96 season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fc_bayern_munich_versus_tsv_1860_munich" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team(s) played in the 1995-96 season?`:
```sql
|
SELECT "away" FROM "fc_bayern_munich_versus_tsv_1860_munich" WHERE "home"='1-2' AND "league"='bundesliga'; |
## Task
Generate a SQL query to answer the following question:
`Playing in the Bundesliga league, what was the Away record for the team with an At Home record of 1-2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fc_bayern_munich_versus_tsv_1860_munich" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `Playing in the Bundesliga league, what was the Away record for the team with an At Home record of 1-2?`:
```sql
|
SELECT "date_performed" FROM "week_5_august_6_and_7_2008" WHERE "main_contestant"='karanvir bohra'; |
## Task
Generate a SQL query to answer the following question:
`Which Date performed has a Main contestant of karanvir bohra?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "week_5_august_6_and_7_2008" (
"main_contestant" text,
"co_contestant_yaar_vs_pyaar" text,
"date_performed" text,
"scores_by_each_individual_judge" text,
"total_score_week" text,
"position" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date performed has a Main contestant of karanvir bohra?`:
```sql
|
SELECT "date_performed" FROM "week_5_august_6_and_7_2008" WHERE "position"='bottom 3' AND "scores_by_each_individual_judge"='5 + 5 + 4 = 14'; |
## Task
Generate a SQL query to answer the following question:
`Which Date performed has a Position of bottom 3, and Scores by each individual judge of 5 + 5 + 4 = 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "week_5_august_6_and_7_2008" (
"main_contestant" text,
"co_contestant_yaar_vs_pyaar" text,
"date_performed" text,
"scores_by_each_individual_judge" text,
"total_score_week" text,
"position" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date performed has a Position of bottom 3, and Scores by each individual judge of 5 + 5 + 4 = 14?`:
```sql
|
SELECT "status" FROM "week_5_august_6_and_7_2008" WHERE "co_contestant_yaar_vs_pyaar"='tina sachdev'; |
## Task
Generate a SQL query to answer the following question:
`Which Status has a Co-contestant (Yaar vs. Pyaar) of tina sachdev?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "week_5_august_6_and_7_2008" (
"main_contestant" text,
"co_contestant_yaar_vs_pyaar" text,
"date_performed" text,
"scores_by_each_individual_judge" text,
"total_score_week" text,
"position" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Status has a Co-contestant (Yaar vs. Pyaar) of tina sachdev?`:
```sql
|
SELECT "status" FROM "week_5_august_6_and_7_2008" WHERE "co_contestant_yaar_vs_pyaar"='tina parekh'; |
## Task
Generate a SQL query to answer the following question:
`Which Status has a Co-contestant (Yaar vs. Pyaar) of tina parekh?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "week_5_august_6_and_7_2008" (
"main_contestant" text,
"co_contestant_yaar_vs_pyaar" text,
"date_performed" text,
"scores_by_each_individual_judge" text,
"total_score_week" text,
"position" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Status has a Co-contestant (Yaar vs. Pyaar) of tina parekh?`:
```sql
|
SELECT "total_score_week" FROM "week_5_august_6_and_7_2008" WHERE "status"='eliminated' AND "scores_by_each_individual_judge"='5 + 5 + 4 = 14'; |
## Task
Generate a SQL query to answer the following question:
`Which Total score/week has a Status of eliminated, and Scores by each individual judge of 5 + 5 + 4 = 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "week_5_august_6_and_7_2008" (
"main_contestant" text,
"co_contestant_yaar_vs_pyaar" text,
"date_performed" text,
"scores_by_each_individual_judge" text,
"total_score_week" text,
"position" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total score/week has a Status of eliminated, and Scores by each individual judge of 5 + 5 + 4 = 14?`:
```sql
|
SELECT "scores_by_each_individual_judge" FROM "week_5_august_6_and_7_2008" WHERE "date_performed"='august 7' AND "main_contestant"='karanvir bohra'; |
## Task
Generate a SQL query to answer the following question:
`Which Scores by each individual judge has a Date performed of august 7, and a Main contestant of karanvir bohra?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "week_5_august_6_and_7_2008" (
"main_contestant" text,
"co_contestant_yaar_vs_pyaar" text,
"date_performed" text,
"scores_by_each_individual_judge" text,
"total_score_week" text,
"position" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Scores by each individual judge has a Date performed of august 7, and a Main contestant of karanvir bohra?`:
```sql
|
SELECT "name" FROM "out" WHERE "moving_to"='triestina'; |
## Task
Generate a SQL query to answer the following question:
`Who is moving to Triestina?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is moving to Triestina?`:
```sql
|
SELECT "transfer_window" FROM "out" WHERE "moving_to"='panionios'; |
## Task
Generate a SQL query to answer the following question:
`What is the transfer window of the player moving to Panionios?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transfer window of the player moving to Panionios?`:
```sql
|
SELECT "type" FROM "out" WHERE "moving_to"='panionios'; |
## Task
Generate a SQL query to answer the following question:
`What is the type for the Panionios moving to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type for the Panionios moving to?`:
```sql
|
SELECT "moving_to" FROM "out" WHERE "nat"='arg esp'; |
## Task
Generate a SQL query to answer the following question:
`Where is the nationality of Arg Esp moving to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the nationality of Arg Esp moving to?`:
```sql
|
SELECT "name" FROM "out" WHERE "type"='loan' AND "moving_to"='chelsea'; |
## Task
Generate a SQL query to answer the following question:
`Who is moving to Chelsea on loan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is moving to Chelsea on loan?`:
```sql
|
SELECT "digital" FROM "closed_and_aborted_television_providers" WHERE "provider"='virgin [analogue]'; |
## Task
Generate a SQL query to answer the following question:
`What is the digital of Virgin [analogue]?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "closed_and_aborted_television_providers" (
"provider" text,
"years" text,
"free_or_pay" text,
"no_of_channels" text,
"colour" text,
"digital" text,
"transmission" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the digital of Virgin [analogue]?`:
```sql
|
SELECT "provider" FROM "closed_and_aborted_television_providers" WHERE "free_or_pay"='pay' AND "transmission"='analogue cable'; |
## Task
Generate a SQL query to answer the following question:
`Which provider is pay with analogue cable?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "closed_and_aborted_television_providers" (
"provider" text,
"years" text,
"free_or_pay" text,
"no_of_channels" text,
"colour" text,
"digital" text,
"transmission" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which provider is pay with analogue cable?`:
```sql
|
SELECT "no_of_channels" FROM "closed_and_aborted_television_providers" WHERE "transmission"='analogue satellite' AND "provider"='sky [analogue]'; |
## Task
Generate a SQL query to answer the following question:
`How many analogue satellite channels does Sky [Analogue] have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "closed_and_aborted_television_providers" (
"provider" text,
"years" text,
"free_or_pay" text,
"no_of_channels" text,
"colour" text,
"digital" text,
"transmission" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many analogue satellite channels does Sky [Analogue] have?`:
```sql
|
SELECT "years" FROM "closed_and_aborted_television_providers" WHERE "transmission"='analogue cable' AND "no_of_channels"='35'; |
## Task
Generate a SQL query to answer the following question:
`What years are listed for analogue cable with 35 channels?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "closed_and_aborted_television_providers" (
"provider" text,
"years" text,
"free_or_pay" text,
"no_of_channels" text,
"colour" text,
"digital" text,
"transmission" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years are listed for analogue cable with 35 channels?`:
```sql
|
SELECT "week_14_nov_27" FROM "bcs_standings" WHERE "week_13_nov_20"='nebraska (8-2)'; |
## Task
Generate a SQL query to answer the following question:
`What was Week 14 when Week 13 was Nebraska (8-2)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bcs_standings" (
"week_9_oct_23" text,
"week_10_oct_30" text,
"week_11_nov_6" text,
"week_12_nov_13" text,
"week_13_nov_20" text,
"week_14_nov_27" text,
"week_15_final_dec_3" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Week 14 when Week 13 was Nebraska (8-2)?`:
```sql
|
SELECT "week_15_final_dec_3" FROM "bcs_standings" WHERE "week_12_nov_13"='notre dame (7-2)'; |
## Task
Generate a SQL query to answer the following question:
`What was Week 15 when Week 12 was Notre Dame (7-2)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bcs_standings" (
"week_9_oct_23" text,
"week_10_oct_30" text,
"week_11_nov_6" text,
"week_12_nov_13" text,
"week_13_nov_20" text,
"week_14_nov_27" text,
"week_15_final_dec_3" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Week 15 when Week 12 was Notre Dame (7-2)?`:
```sql
|
SELECT "week_11_nov_6" FROM "bcs_standings" WHERE "week_10_oct_30"='nebraska (7-1)'; |
## Task
Generate a SQL query to answer the following question:
`What was Week 11 when Week 10 had Nebraska (7-1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bcs_standings" (
"week_9_oct_23" text,
"week_10_oct_30" text,
"week_11_nov_6" text,
"week_12_nov_13" text,
"week_13_nov_20" text,
"week_14_nov_27" text,
"week_15_final_dec_3" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Week 11 when Week 10 had Nebraska (7-1)?`:
```sql
|
SELECT "week_15_final_dec_3" FROM "bcs_standings" WHERE "week_12_nov_13"='washington (9-1)'; |
## Task
Generate a SQL query to answer the following question:
`What was Week 15 when Week 12 was Washington (9-1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bcs_standings" (
"week_9_oct_23" text,
"week_10_oct_30" text,
"week_11_nov_6" text,
"week_12_nov_13" text,
"week_13_nov_20" text,
"week_14_nov_27" text,
"week_15_final_dec_3" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Week 15 when Week 12 was Washington (9-1)?`:
```sql
|
SELECT "surface" FROM "singles_5_3_2" WHERE "date"='15 february 1988'; |
## Task
Generate a SQL query to answer the following question:
`What Surface has a Date of 15 february 1988?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_5_3_2" (
"outcome" text,
"date" text,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Surface has a Date of 15 february 1988?`:
```sql
|
SELECT "date" FROM "singles_5_3_2" WHERE "score_in_the_final"='3β6, 2β6, 4β6'; |
## Task
Generate a SQL query to answer the following question:
`What Date has a Score in the final of 3β6, 2β6, 4β6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_5_3_2" (
"outcome" text,
"date" text,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Date has a Score in the final of 3β6, 2β6, 4β6?`:
```sql
|
SELECT "opponent_in_the_final" FROM "singles_5_3_2" WHERE "date"='19 september 1988'; |
## Task
Generate a SQL query to answer the following question:
`What Opponent in the final has a Date of 19 september 1988?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_5_3_2" (
"outcome" text,
"date" text,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Opponent in the final has a Date of 19 september 1988?`:
```sql
|
SELECT "championship" FROM "singles_5_3_2" WHERE "date"='26 may 1986'; |
## Task
Generate a SQL query to answer the following question:
`What Championship has a Date of 26 may 1986?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_5_3_2" (
"outcome" text,
"date" text,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Championship has a Date of 26 may 1986?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.