output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT MIN("year") FROM "women_s_doubles_15_3_titles_5_runner_ups" WHERE "opponents"='Evonne Goolagong Helen Gourlay'; |
## Task
Generate a SQL query to answer the following question:
`Name the least year for evonne goolagong helen gourlay`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_s_doubles_15_3_titles_5_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least year for evonne goolagong helen gourlay`:
```sql
|
SELECT "surface" FROM "women_s_doubles_15_3_titles_5_runner_ups" WHERE "championship"='Australian Open' AND "outcome"='Winner'; |
## Task
Generate a SQL query to answer the following question:
`Name the surface for australian open for winner`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_s_doubles_15_3_titles_5_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the surface for australian open for winner`:
```sql
|
SELECT "highest_scoring_team" FROM "races" WHERE "circuit_location"='Ring Knutstorp' AND "winning_team"='Polestar Racing'; |
## Task
Generate a SQL query to answer the following question:
`What's the highest scoring team in the round in Ring Knutstorp in which Polestar Racing is the winning team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races" (
"round" real,
"circuit_location" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"highest_scoring_team" text,
"winning_privateer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest scoring team in the round in Ring Knutstorp in which Polestar Racing is the winning team?`:
```sql
|
SELECT COUNT("round") FROM "races" WHERE "circuit_location"='Karlskoga Motorstadion' AND "pole_position"='Roger Eriksson'; |
## Task
Generate a SQL query to answer the following question:
`How many rounds were there in Karlskoga Motorstadion with Roger Eriksson at the pole position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races" (
"round" real,
"circuit_location" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"highest_scoring_team" text,
"winning_privateer" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds were there in Karlskoga Motorstadion with Roger Eriksson at the pole position?`:
```sql
|
SELECT "first_leg" FROM "table1_20086138_1" WHERE "opposition"='Norchi Dinamoeli'; |
## Task
Generate a SQL query to answer the following question:
`What was the first leg result in the round against Norchi Dinamoeli?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20086138_1" (
"season" text,
"competition" text,
"round" text,
"opposition" text,
"first_leg" text,
"second_leg" text,
"aggregate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the first leg result in the round against Norchi Dinamoeli?`:
```sql
|
SELECT "vehicle" FROM "2008_taupo_1_november" WHERE "best_time_of_day"='1:17.17'; |
## Task
Generate a SQL query to answer the following question:
`which vehicles got best time of day 1:17.17`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_taupo_1_november" (
"pos" real,
"driver" text,
"vehicle" text,
"top_13_time" text,
"shoot_out_time" text,
"best_time_of_day" text
);
### SQL
Given the database schema, here is the SQL query that answers `which vehicles got best time of day 1:17.17`:
```sql
|
SELECT COUNT("driver") FROM "2008_taupo_1_november" WHERE "vehicle"='Toyota Corolla'; |
## Task
Generate a SQL query to answer the following question:
`how many drivers driving toyota corolla`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_taupo_1_november" (
"pos" real,
"driver" text,
"vehicle" text,
"top_13_time" text,
"shoot_out_time" text,
"best_time_of_day" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many drivers driving toyota corolla`:
```sql
|
SELECT MAX("pos") FROM "2008_taupo_1_november" WHERE "driver"='Brendan Sole'; |
## Task
Generate a SQL query to answer the following question:
`what is the lowest position of brendan sole`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_taupo_1_november" (
"pos" real,
"driver" text,
"vehicle" text,
"top_13_time" text,
"shoot_out_time" text,
"best_time_of_day" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest position of brendan sole`:
```sql
|
SELECT COUNT("vehicle") FROM "2008_taupo_1_november" WHERE "top_13_time"='1:18.72'; |
## Task
Generate a SQL query to answer the following question:
`how many vehicles where top 13 time is 1:18.72`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_taupo_1_november" (
"pos" real,
"driver" text,
"vehicle" text,
"top_13_time" text,
"shoot_out_time" text,
"best_time_of_day" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many vehicles where top 13 time is 1:18.72`:
```sql
|
SELECT "driver" FROM "2008_taupo_1_november" WHERE "best_time_of_day"='1:16.93'; |
## Task
Generate a SQL query to answer the following question:
`which driver got best time of day 1:16.93`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_taupo_1_november" (
"pos" real,
"driver" text,
"vehicle" text,
"top_13_time" text,
"shoot_out_time" text,
"best_time_of_day" text
);
### SQL
Given the database schema, here is the SQL query that answers `which driver got best time of day 1:16.93`:
```sql
|
SELECT "assists" FROM "career_statistics" WHERE "mins"='744:27'; |
## Task
Generate a SQL query to answer the following question:
`What is the amount of assists when mins is 744:27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_statistics" (
"year" text,
"team" text,
"games" real,
"mins" text,
"f_gpct" text,
"3_ppct" text,
"f_tpct" text,
"rebounds" text,
"assists" text,
"steals" text,
"blocks" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the amount of assists when mins is 744:27?`:
```sql
|
SELECT MIN("games") FROM "career_statistics" WHERE "mins"='385:33'; |
## Task
Generate a SQL query to answer the following question:
`What is the game number with 385:33 mins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_statistics" (
"year" text,
"team" text,
"games" real,
"mins" text,
"f_gpct" text,
"3_ppct" text,
"f_tpct" text,
"rebounds" text,
"assists" text,
"steals" text,
"blocks" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the game number with 385:33 mins?`:
```sql
|
SELECT "points" FROM "career_statistics" WHERE "rebounds"='4.4'; |
## Task
Generate a SQL query to answer the following question:
`What is the points number when rebounds is 4.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_statistics" (
"year" text,
"team" text,
"games" real,
"mins" text,
"f_gpct" text,
"3_ppct" text,
"f_tpct" text,
"rebounds" text,
"assists" text,
"steals" text,
"blocks" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the points number when rebounds is 4.4?`:
```sql
|
SELECT "team" FROM "career_statistics" WHERE "f_tpct"='77.6'; |
## Task
Generate a SQL query to answer the following question:
`Who is the team with the ft% of 77.6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_statistics" (
"year" text,
"team" text,
"games" real,
"mins" text,
"f_gpct" text,
"3_ppct" text,
"f_tpct" text,
"rebounds" text,
"assists" text,
"steals" text,
"blocks" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the team with the ft% of 77.6?`:
```sql
|
SELECT "year" FROM "nac_champions_and_runners_up" WHERE "third_place"='Austin Austin TX'; |
## Task
Generate a SQL query to answer the following question:
`When did Austin Austin TX get the third place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nac_champions_and_runners_up" (
"year" text,
"winner" text,
"first_runner_up" text,
"third_place" text,
"consolation_winner_4th" text,
"finals_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Austin Austin TX get the third place?`:
```sql
|
SELECT "first_runner_up" FROM "nac_champions_and_runners_up" WHERE "consolation_winner_4th"='Mesa Mesa AZ'; |
## Task
Generate a SQL query to answer the following question:
`Who was the first runner up in the year when Mesa Mesa AZ was the consolation winner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nac_champions_and_runners_up" (
"year" text,
"winner" text,
"first_runner_up" text,
"third_place" text,
"consolation_winner_4th" text,
"finals_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the first runner up in the year when Mesa Mesa AZ was the consolation winner?`:
```sql
|
SELECT "representative" FROM "house_of_representatives" WHERE "religion"='United Methodist' AND "prior_background"='Congressional aide'; |
## Task
Generate a SQL query to answer the following question:
`Who has a religion of United Methodist and a prior background of a Congressional Aide?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "house_of_representatives" (
"district" text,
"representative" text,
"party_change" text,
"prior_background" text,
"religion" text,
"birth_year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a religion of United Methodist and a prior background of a Congressional Aide?`:
```sql
|
SELECT "name" FROM "runners_and_betting" WHERE "starting_price"='14/1' AND "weight_st_lb"='10-7'; |
## Task
Generate a SQL query to answer the following question:
`What horse had a starting price of 14/1 and weighted 10-7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "runners_and_betting" (
"starting_price" text,
"number" real,
"name" text,
"age" real,
"weight_st_lb" text,
"jockey" text,
"trainer" text,
"owner" text,
"colours" text
);
### SQL
Given the database schema, here is the SQL query that answers `What horse had a starting price of 14/1 and weighted 10-7?`:
```sql
|
SELECT MIN("number") FROM "runners_and_betting" WHERE "weight_st_lb"='10-5'; |
## Task
Generate a SQL query to answer the following question:
`What's the number of the horse weighting 10-5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "runners_and_betting" (
"starting_price" text,
"number" real,
"name" text,
"age" real,
"weight_st_lb" text,
"jockey" text,
"trainer" text,
"owner" text,
"colours" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of the horse weighting 10-5?`:
```sql
|
SELECT "name" FROM "runners_and_betting" WHERE "number"=25; |
## Task
Generate a SQL query to answer the following question:
`What horse has the number 25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "runners_and_betting" (
"starting_price" text,
"number" real,
"name" text,
"age" real,
"weight_st_lb" text,
"jockey" text,
"trainer" text,
"owner" text,
"colours" text
);
### SQL
Given the database schema, here is the SQL query that answers `What horse has the number 25?`:
```sql
|
SELECT "weight_st_lb" FROM "runners_and_betting" WHERE "name"='Point Barrow'; |
## Task
Generate a SQL query to answer the following question:
`How much does Point Barrow weight?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "runners_and_betting" (
"starting_price" text,
"number" real,
"name" text,
"age" real,
"weight_st_lb" text,
"jockey" text,
"trainer" text,
"owner" text,
"colours" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much does Point Barrow weight?`:
```sql
|
SELECT "colours" FROM "runners_and_betting" WHERE "jockey"='Andrew McNamara'; |
## Task
Generate a SQL query to answer the following question:
`What are Andrew McNamara's colors?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "runners_and_betting" (
"starting_price" text,
"number" real,
"name" text,
"age" real,
"weight_st_lb" text,
"jockey" text,
"trainer" text,
"owner" text,
"colours" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are Andrew McNamara's colors?`:
```sql
|
SELECT MAX("number") FROM "runners_and_betting" WHERE "trainer"='Kim Bailey'; |
## Task
Generate a SQL query to answer the following question:
`What's the number of the horse whose trainer is Kim Bailey?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "runners_and_betting" (
"starting_price" text,
"number" real,
"name" text,
"age" real,
"weight_st_lb" text,
"jockey" text,
"trainer" text,
"owner" text,
"colours" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of the horse whose trainer is Kim Bailey?`:
```sql
|
SELECT "written_by" FROM "table1_20098479_1" WHERE "no_in_series"=48; |
## Task
Generate a SQL query to answer the following question:
`Who wrote episode number 48`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20098479_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"u_s_viewers_million" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote episode number 48`:
```sql
|
SELECT MIN("production_code") FROM "table1_20098479_1"; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest production code`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20098479_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"u_s_viewers_million" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest production code`:
```sql
|
SELECT "original_title" FROM "table1_20124413_3" WHERE "production_code"='3.19'; |
## Task
Generate a SQL query to answer the following question:
`What was the original title of 3.19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20124413_3" (
"num" text,
"original_title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original title of 3.19?`:
```sql
|
SELECT "production_code" FROM "table1_20124413_3" WHERE "original_title"='\"Down to Earth\"'; |
## Task
Generate a SQL query to answer the following question:
`What was the production code for "down to earth"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20124413_3" (
"num" text,
"original_title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the production code for "down to earth"?`:
```sql
|
SELECT "num" FROM "table1_20124413_2" WHERE "prod_code"='2.6'; |
## Task
Generate a SQL query to answer the following question:
`How many numbers have the product code of 2.6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20124413_2" (
"num" text,
"original_title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many numbers have the product code of 2.6?`:
```sql
|
SELECT COUNT("directed_by") FROM "table1_20124413_2" WHERE "prod_code"='2.8'; |
## Task
Generate a SQL query to answer the following question:
`How many directed have the product code of 2.8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20124413_2" (
"num" text,
"original_title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many directed have the product code of 2.8?`:
```sql
|
SELECT COUNT("num") FROM "table1_20124413_1" WHERE "original_title"='\"Helpful Tracy\"'; |
## Task
Generate a SQL query to answer the following question:
`When "helpful tracy" is the original title how many numbers are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20124413_1" (
"num" text,
"original_title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"prod_code" text,
"viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `When "helpful tracy" is the original title how many numbers are there?`:
```sql
|
SELECT "original_title" FROM "table1_20124413_1" WHERE "prod_code"='1.12'; |
## Task
Generate a SQL query to answer the following question:
`When 1.12 is the production code what is the original title?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20124413_1" (
"num" text,
"original_title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"prod_code" text,
"viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 1.12 is the production code what is the original title?`:
```sql
|
SELECT "prod_code" FROM "table1_20124413_1" WHERE "original_title"='\"The Postcard\"'; |
## Task
Generate a SQL query to answer the following question:
`When "the postcard" is the original title what is the production code?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20124413_1" (
"num" text,
"original_title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"prod_code" text,
"viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `When "the postcard" is the original title what is the production code?`:
```sql
|
SELECT COUNT("original_airdate") FROM "table1_20124413_1" WHERE "prod_code"='1.17'; |
## Task
Generate a SQL query to answer the following question:
`When 1.17 is the production code how many air dates are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20124413_1" (
"num" text,
"original_title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"prod_code" text,
"viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 1.17 is the production code how many air dates are there?`:
```sql
|
SELECT "winnings" FROM "nascar_sprint_cup_series" WHERE "poles"=0 AND "team_s"='Yates Racing Front Row Motorsports'; |
## Task
Generate a SQL query to answer the following question:
`state the winnings of yates racing front row motorsports where poles were 0`
### 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_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 `state the winnings of yates racing front row motorsports where poles were 0`:
```sql
|
SELECT "team_s" FROM "nascar_sprint_cup_series" WHERE "winnings"='$2,605,05'; |
## Task
Generate a SQL query to answer the following question:
`which team(s) won $2,605,05`
### 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_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 `which team(s) won $2,605,05`:
```sql
|
SELECT COUNT("wins") FROM "nascar_sprint_cup_series" WHERE "top_10"=2; |
## Task
Generate a SQL query to answer the following question:
`state the wins of the team with 2 top 10`
### 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_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 `state the wins of the team with 2 top 10`:
```sql
|
SELECT "kannada_name" FROM "nak_atra" WHERE "tamil_name"='Anusham அனுஷம்'; |
## Task
Generate a SQL query to answer the following question:
`what is kannada name ಕನ್ನಡ of tamil name தமிழ் anusham அனுஷம்`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nak_atra" (
"num" real,
"sanskrit" text,
"malayalam_name" text,
"tamil_name" text,
"telugu_name" text,
"kannada_name" text,
"western_star_name" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is kannada name ಕನ್ನಡ of tamil name தமிழ் anusham அனுஷம்`:
```sql
|
SELECT "malayalam_name" FROM "nak_atra" WHERE "tamil_name"='Punarpoosam புனர்பூசம்'; |
## Task
Generate a SQL query to answer the following question:
`what is the malayalam name മലയാളം of tamil name தமிழ் punarpoosam புனர்பூசம்`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nak_atra" (
"num" real,
"sanskrit" text,
"malayalam_name" text,
"tamil_name" text,
"telugu_name" text,
"kannada_name" text,
"western_star_name" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the malayalam name മലയാളം of tamil name தமிழ் punarpoosam புனர்பூசம்`:
```sql
|
SELECT "telugu_name" FROM "nak_atra" WHERE "kannada_name"='Utthara ಉತ್ತರ'; |
## Task
Generate a SQL query to answer the following question:
`what is the telugu name తెలుగు of kannada name ಕನ್ನಡ utthara ಉತ್ತರ`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nak_atra" (
"num" real,
"sanskrit" text,
"malayalam_name" text,
"tamil_name" text,
"telugu_name" text,
"kannada_name" text,
"western_star_name" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the telugu name తెలుగు of kannada name ಕನ್ನಡ utthara ಉತ್ತರ`:
```sql
|
SELECT "sanskrit" FROM "nak_atra" WHERE "western_star_name"='Arcturus'; |
## Task
Generate a SQL query to answer the following question:
`what is the sanskrit of western star name arcturus`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nak_atra" (
"num" real,
"sanskrit" text,
"malayalam_name" text,
"tamil_name" text,
"telugu_name" text,
"kannada_name" text,
"western_star_name" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the sanskrit of western star name arcturus`:
```sql
|
SELECT "malayalam_name" FROM "nak_atra" WHERE "sanskrit"='Uttarāṣāḍha उत्तराषाढा'; |
## Task
Generate a SQL query to answer the following question:
`what is the malayalam name മലയാളം of sanskrit uttarāṣāḍha उत्तराषाढा`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nak_atra" (
"num" real,
"sanskrit" text,
"malayalam_name" text,
"tamil_name" text,
"telugu_name" text,
"kannada_name" text,
"western_star_name" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the malayalam name മലയാളം of sanskrit uttarāṣāḍha उत्तराषाढा`:
```sql
|
SELECT "traditional" FROM "administration" WHERE "area"=544; |
## Task
Generate a SQL query to answer the following question:
`Name the traditional for area 544`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administration" (
"english_name" text,
"simplified" text,
"traditional" text,
"pinyin" text,
"foochow" text,
"area" real,
"population" real,
"density" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the traditional for area 544`:
```sql
|
SELECT "foochow" FROM "administration" WHERE "english_name"='Pingnan County'; |
## Task
Generate a SQL query to answer the following question:
`Name the foochow for pingnan county`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administration" (
"english_name" text,
"simplified" text,
"traditional" text,
"pinyin" text,
"foochow" text,
"area" real,
"population" real,
"density" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the foochow for pingnan county`:
```sql
|
SELECT "pinyin" FROM "administration" WHERE "foochow"='Ciá-ìng-gâing'; |
## Task
Generate a SQL query to answer the following question:
`Name the pinyin for ciá-ìng-gâing`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administration" (
"english_name" text,
"simplified" text,
"traditional" text,
"pinyin" text,
"foochow" text,
"area" real,
"population" real,
"density" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the pinyin for ciá-ìng-gâing`:
```sql
|
SELECT "traditional" FROM "administration" WHERE "simplified"='屏南县'; |
## Task
Generate a SQL query to answer the following question:
`Name the traditional for 屏南县`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administration" (
"english_name" text,
"simplified" text,
"traditional" text,
"pinyin" text,
"foochow" text,
"area" real,
"population" real,
"density" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the traditional for 屏南县`:
```sql
|
SELECT "density" FROM "administration" WHERE "traditional"='古田縣'; |
## Task
Generate a SQL query to answer the following question:
`Name the density for 古田縣`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administration" (
"english_name" text,
"simplified" text,
"traditional" text,
"pinyin" text,
"foochow" text,
"area" real,
"population" real,
"density" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the density for 古田縣`:
```sql
|
SELECT "english_name" FROM "administration" WHERE "traditional"='福鼎市'; |
## Task
Generate a SQL query to answer the following question:
`Name the english name for 福鼎市`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administration" (
"english_name" text,
"simplified" text,
"traditional" text,
"pinyin" text,
"foochow" text,
"area" real,
"population" real,
"density" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the english name for 福鼎市`:
```sql
|
SELECT "cfl_team" FROM "round_one" WHERE "player"='Darcy Brown'; |
## Task
Generate a SQL query to answer the following question:
`What CFL team did Darcy Brown play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_one" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What CFL team did Darcy Brown play for?`:
```sql
|
SELECT "cfl_team" FROM "round_one" WHERE "player"='Simeon Rottier'; |
## Task
Generate a SQL query to answer the following question:
`What CFL team did simeon rottier play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_one" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What CFL team did simeon rottier play for?`:
```sql
|
SELECT "college" FROM "round_one" WHERE "player"='Étienne Légaré'; |
## Task
Generate a SQL query to answer the following question:
`What college did étienne légaré play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_one" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college did étienne légaré play for?`:
```sql
|
SELECT "cfl_team" FROM "round_one" WHERE "position"='OL'; |
## Task
Generate a SQL query to answer the following question:
`What team was in position OL?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_one" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team was in position OL?`:
```sql
|
SELECT "player" FROM "round_one" WHERE "cfl_team"='Hamilton Tiger-Cats (via BC via Saskatchewan )'; |
## Task
Generate a SQL query to answer the following question:
`Who was the player for the CFL team hamilton tiger-cats (via bc via saskatchewan )?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_one" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the player for the CFL team hamilton tiger-cats (via bc via saskatchewan )?`:
```sql
|
SELECT MAX("pick_num") FROM "round_one" WHERE "cfl_team"='BC Lions (via Hamilton via Winnipeg )'; |
## Task
Generate a SQL query to answer the following question:
`What number pick did the CFL team bc lions (via hamilton via winnipeg ) have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_one" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number pick did the CFL team bc lions (via hamilton via winnipeg ) have?`:
```sql
|
SELECT COUNT("release_date") FROM "novelisations" WHERE "story_num"=7; |
## Task
Generate a SQL query to answer the following question:
`How many different release dates are there for the audio book with a story number 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "novelisations" (
"story_num" real,
"target_num" text,
"title" text,
"author" text,
"reader" text,
"format" text,
"company" text,
"release_date" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different release dates are there for the audio book with a story number 7?`:
```sql
|
SELECT "title" FROM "novelisations" WHERE "story_num"=91; |
## Task
Generate a SQL query to answer the following question:
`What's the title of the audio book with story number 91?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "novelisations" (
"story_num" real,
"target_num" text,
"title" text,
"author" text,
"reader" text,
"format" text,
"company" text,
"release_date" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the title of the audio book with story number 91?`:
```sql
|
SELECT "release_date" FROM "novelisations" WHERE "target_num"='069 69'; |
## Task
Generate a SQL query to answer the following question:
`When was the audio book with target number 069 69 released?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "novelisations" (
"story_num" real,
"target_num" text,
"title" text,
"author" text,
"reader" text,
"format" text,
"company" text,
"release_date" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the audio book with target number 069 69 released?`:
```sql
|
SELECT "format" FROM "novelisations" WHERE "title"='The Mind Robber'; |
## Task
Generate a SQL query to answer the following question:
`What's the format of the audio book titled The Mind Robber?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "novelisations" (
"story_num" real,
"target_num" text,
"title" text,
"author" text,
"reader" text,
"format" text,
"company" text,
"release_date" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the format of the audio book titled The Mind Robber?`:
```sql
|
SELECT "reader" FROM "the_sarah_jane_adventures" WHERE "author"='Cole, Stephen Stephen Cole' AND "release_date"='2008-11-13 13 November 2008'; |
## Task
Generate a SQL query to answer the following question:
`who is the reader of the audiobook authored by cole, stephen stephen cole and released on 2008-11-13 13 november 2008`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_sarah_jane_adventures" (
"title" text,
"author" text,
"reader" text,
"format" text,
"company" text,
"release_date" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the reader of the audiobook authored by cole, stephen stephen cole and released on 2008-11-13 13 november 2008`:
```sql
|
SELECT COUNT("company") FROM "the_sarah_jane_adventures" WHERE "title"='Deadly Download'; |
## Task
Generate a SQL query to answer the following question:
`how many companies released an audiobook titled deadly download`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_sarah_jane_adventures" (
"title" text,
"author" text,
"reader" text,
"format" text,
"company" text,
"release_date" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many companies released an audiobook titled deadly download`:
```sql
|
SELECT "company" FROM "the_sarah_jane_adventures" WHERE "release_date"='2010-11-04 4 November 2010'; |
## Task
Generate a SQL query to answer the following question:
`which companies released on 2010-11-04 4 november 2010`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_sarah_jane_adventures" (
"title" text,
"author" text,
"reader" text,
"format" text,
"company" text,
"release_date" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `which companies released on 2010-11-04 4 november 2010`:
```sql
|
SELECT "company" FROM "the_sarah_jane_adventures" WHERE "author"='Day, Martin Martin Day'; |
## Task
Generate a SQL query to answer the following question:
`which company released audiobooks authored by day, martin martin day`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_sarah_jane_adventures" (
"title" text,
"author" text,
"reader" text,
"format" text,
"company" text,
"release_date" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `which company released audiobooks authored by day, martin martin day`:
```sql
|
SELECT COUNT("format") FROM "the_sarah_jane_adventures" WHERE "author"='Day, Martin Martin Day'; |
## Task
Generate a SQL query to answer the following question:
`how many formats of books authored by day, martin martin day`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_sarah_jane_adventures" (
"title" text,
"author" text,
"reader" text,
"format" text,
"company" text,
"release_date" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many formats of books authored by day, martin martin day`:
```sql
|
SELECT COUNT("cfl_team") FROM "round_five" WHERE "college"='Laval'; |
## Task
Generate a SQL query to answer the following question:
`How many players were drafted from laval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many players were drafted from laval?`:
```sql
|
SELECT "player" FROM "round_five" WHERE "college"='Montreal'; |
## Task
Generate a SQL query to answer the following question:
`What player went to montreal college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player went to montreal college?`:
```sql
|
SELECT "player" FROM "round_five" WHERE "cfl_team"='Hamilton Tiger-Cats'; |
## Task
Generate a SQL query to answer the following question:
`What player(s) drafted by the hamilton tiger-cats?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player(s) drafted by the hamilton tiger-cats?`:
```sql
|
SELECT "position" FROM "round_five" WHERE "cfl_team"='Montreal Alouettes'; |
## Task
Generate a SQL query to answer the following question:
`What position(s) drafted by the montreal alouettes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position(s) drafted by the montreal alouettes?`:
```sql
|
SELECT "company" FROM "torchwood" WHERE "author"='Pinborough, Sarah Sarah Pinborough'; |
## Task
Generate a SQL query to answer the following question:
`which company uses pinborough, sarah sarah pinborough?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torchwood" (
"title" text,
"author" text,
"reader" text,
"format" text,
"company" text,
"release_date" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `which company uses pinborough, sarah sarah pinborough?`:
```sql
|
SELECT "reader" FROM "torchwood" WHERE "title"='Department X'; |
## Task
Generate a SQL query to answer the following question:
`who the reader of title department x?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torchwood" (
"title" text,
"author" text,
"reader" text,
"format" text,
"company" text,
"release_date" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `who the reader of title department x?`:
```sql
|
SELECT COUNT("notes") FROM "torchwood" WHERE "reader"='Varma, Idria Indira Varma'; |
## Task
Generate a SQL query to answer the following question:
`how many notes were read by reader varma, idria indira varma?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torchwood" (
"title" text,
"author" text,
"reader" text,
"format" text,
"company" text,
"release_date" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many notes were read by reader varma, idria indira varma?`:
```sql
|
SELECT "reader" FROM "torchwood" WHERE "format"='Download/CD' AND "author"='Lidster, Joseph Joseph Lidster'; |
## Task
Generate a SQL query to answer the following question:
`who is the reader on the download/cd format of the title written by author lidster, joseph joseph lidster? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torchwood" (
"title" text,
"author" text,
"reader" text,
"format" text,
"company" text,
"release_date" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the reader on the download/cd format of the title written by author lidster, joseph joseph lidster? `:
```sql
|
SELECT "landesliga_mitte" FROM "three_divisions_from_1963_to_2012" WHERE "landesliga_s_d"='FC Gundelfingen' AND "landesliga_nord"='VfL Frohnlach'; |
## Task
Generate a SQL query to answer the following question:
`Name the landesliga mitte for fc gundelfingen and vfl frohnlach`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "three_divisions_from_1963_to_2012" (
"season" text,
"bayernliga" text,
"landesliga_s_d" text,
"landesliga_mitte" text,
"landesliga_nord" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the landesliga mitte for fc gundelfingen and vfl frohnlach`:
```sql
|
SELECT "landesliga_nord" FROM "three_divisions_from_1963_to_2012" WHERE "landesliga_mitte"='Freier TuS Regensburg'; |
## Task
Generate a SQL query to answer the following question:
`Name the landesliga nord for freier tus regensburg`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "three_divisions_from_1963_to_2012" (
"season" text,
"bayernliga" text,
"landesliga_s_d" text,
"landesliga_mitte" text,
"landesliga_nord" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the landesliga nord for freier tus regensburg`:
```sql
|
SELECT "landesliga_nord" FROM "three_divisions_from_1963_to_2012" WHERE "landesliga_mitte"='ASV Neumarkt'; |
## Task
Generate a SQL query to answer the following question:
`Name the landesliga nord for asv neumarkt`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "three_divisions_from_1963_to_2012" (
"season" text,
"bayernliga" text,
"landesliga_s_d" text,
"landesliga_mitte" text,
"landesliga_nord" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the landesliga nord for asv neumarkt`:
```sql
|
SELECT "landesliga_mitte" FROM "three_divisions_from_1963_to_2012" WHERE "bayernliga"='SV Türk Gücü München'; |
## Task
Generate a SQL query to answer the following question:
`Name the landesliga mitte sv türk gücü münchen`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "three_divisions_from_1963_to_2012" (
"season" text,
"bayernliga" text,
"landesliga_s_d" text,
"landesliga_mitte" text,
"landesliga_nord" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the landesliga mitte sv türk gücü münchen`:
```sql
|
SELECT "landesliga_s_d" FROM "three_divisions_from_1963_to_2012" WHERE "bayernliga"='SG Quelle Fürth'; |
## Task
Generate a SQL query to answer the following question:
`Name the landesliga sud for sg quelle fürth`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "three_divisions_from_1963_to_2012" (
"season" text,
"bayernliga" text,
"landesliga_s_d" text,
"landesliga_mitte" text,
"landesliga_nord" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the landesliga sud for sg quelle fürth`:
```sql
|
SELECT "oil_rig" FROM "national_final" WHERE "place"='7th'; |
## Task
Generate a SQL query to answer the following question:
`What's the oil rig of the song that ended on 7th place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_final" (
"draw" real,
"artist" text,
"song" text,
"regions" real,
"studio_audience" real,
"press_jury" real,
"oil_rig" real,
"total_points" real,
"place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the oil rig of the song that ended on 7th place?`:
```sql
|
SELECT MIN("oil_rig") FROM "national_final" WHERE "draw"=9; |
## Task
Generate a SQL query to answer the following question:
`What's the oil rig of the song with a draw number 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_final" (
"draw" real,
"artist" text,
"song" text,
"regions" real,
"studio_audience" real,
"press_jury" real,
"oil_rig" real,
"total_points" real,
"place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the oil rig of the song with a draw number 9?`:
```sql
|
SELECT MIN("total_points") FROM "national_final" WHERE "song"='\"Stille før stormen\"'; |
## Task
Generate a SQL query to answer the following question:
`How many points did the song "Stille før stormen" get?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_final" (
"draw" real,
"artist" text,
"song" text,
"regions" real,
"studio_audience" real,
"press_jury" real,
"oil_rig" real,
"total_points" real,
"place" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the song "Stille før stormen" get?`:
```sql
|
SELECT MIN("press_jury") FROM "national_final" WHERE "artist"='Frank Aleksandersen'; |
## Task
Generate a SQL query to answer the following question:
`How many press jury points did the song by Frank Aleksandersen get?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_final" (
"draw" real,
"artist" text,
"song" text,
"regions" real,
"studio_audience" real,
"press_jury" real,
"oil_rig" real,
"total_points" real,
"place" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many press jury points did the song by Frank Aleksandersen get?`:
```sql
|
SELECT "total_points" FROM "national_final" WHERE "draw"=3; |
## Task
Generate a SQL query to answer the following question:
`How many points did the song with a draw number 3 get?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_final" (
"draw" real,
"artist" text,
"song" text,
"regions" real,
"studio_audience" real,
"press_jury" real,
"oil_rig" real,
"total_points" real,
"place" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the song with a draw number 3 get?`:
```sql
|
SELECT "notes" FROM "eleventh_doctor_novels" WHERE "reader"='Briggs, Nicholas Nicholas Briggs' AND "title"='Paradox Lost'; |
## Task
Generate a SQL query to answer the following question:
`If the title is Paradox Lost and the reader is Briggs, Nicholas Nicholas Briggs, what are all of the notes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eleventh_doctor_novels" (
"title" text,
"author" text,
"reader" text,
"format" text,
"company" text,
"release_date" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the title is Paradox Lost and the reader is Briggs, Nicholas Nicholas Briggs, what are all of the notes?`:
```sql
|
SELECT "release_date" FROM "eleventh_doctor_novels" WHERE "title"='The Way Through the Woods'; |
## Task
Generate a SQL query to answer the following question:
`If the title is The Way Through The Woods, what is the release date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eleventh_doctor_novels" (
"title" text,
"author" text,
"reader" text,
"format" text,
"company" text,
"release_date" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the title is The Way Through The Woods, what is the release date?`:
```sql
|
SELECT "release_date" FROM "eleventh_doctor_novels" WHERE "reader"='Syal, Meera Meera Syal'; |
## Task
Generate a SQL query to answer the following question:
`If the reader is Syal, Meera Meera Syal, what was the release date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eleventh_doctor_novels" (
"title" text,
"author" text,
"reader" text,
"format" text,
"company" text,
"release_date" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the reader is Syal, Meera Meera Syal, what was the release date?`:
```sql
|
SELECT MAX("divisional_titles") FROM "current" WHERE "enrollment"=30049; |
## Task
Generate a SQL query to answer the following question:
`What is the most divisional titles won by a school with an enrollment of 30049?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current" (
"institution" text,
"team_name" text,
"location_population" text,
"team_started" real,
"affiliation" text,
"enrollment" real,
"mascot" text,
"divisional_titles" real,
"big_12_titles" real,
"national_titles" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most divisional titles won by a school with an enrollment of 30049?`:
```sql
|
SELECT MAX("enrollment") FROM "current" WHERE "team_name"='Sooners'; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum enrollment of the Sooners?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current" (
"institution" text,
"team_name" text,
"location_population" text,
"team_started" real,
"affiliation" text,
"enrollment" real,
"mascot" text,
"divisional_titles" real,
"big_12_titles" real,
"national_titles" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum enrollment of the Sooners?`:
```sql
|
SELECT MIN("enrollment") FROM "current" WHERE "team_name"='Cyclones'; |
## Task
Generate a SQL query to answer the following question:
`What is the minimum enrollment of the cyclones?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current" (
"institution" text,
"team_name" text,
"location_population" text,
"team_started" real,
"affiliation" text,
"enrollment" real,
"mascot" text,
"divisional_titles" real,
"big_12_titles" real,
"national_titles" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum enrollment of the cyclones?`:
```sql
|
SELECT "result" FROM "award_list" WHERE "book_title"='Firelands'; |
## Task
Generate a SQL query to answer the following question:
`What is the result of the book title firelands?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "award_list" (
"year" real,
"author_s_or_editor_s" text,
"book_title" text,
"publisher" text,
"category" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the book title firelands?`:
```sql
|
SELECT "year" FROM "award_list" WHERE "book_title"='The Ordinary'; |
## Task
Generate a SQL query to answer the following question:
`Which year is the book title the ordinary?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "award_list" (
"year" real,
"author_s_or_editor_s" text,
"book_title" text,
"publisher" text,
"category" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year is the book title the ordinary?`:
```sql
|
SELECT "publisher" FROM "award_list" WHERE "book_title"='Daughters of an Emerald Dusk'; |
## Task
Generate a SQL query to answer the following question:
`Who is the publisher of the book titled daughters of an emerald dusk?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "award_list" (
"year" real,
"author_s_or_editor_s" text,
"book_title" text,
"publisher" text,
"category" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the publisher of the book titled daughters of an emerald dusk?`:
```sql
|
SELECT MAX("year") FROM "award_list" WHERE "author_s_or_editor_s"='Delia Sherman'; |
## Task
Generate a SQL query to answer the following question:
`In which year were the authors or editors Delia Sherman?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "award_list" (
"year" real,
"author_s_or_editor_s" text,
"book_title" text,
"publisher" text,
"category" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which year were the authors or editors Delia Sherman?`:
```sql
|
SELECT COUNT("author_s_or_editor_s") FROM "award_list" WHERE "book_title"='Elf Child'; |
## Task
Generate a SQL query to answer the following question:
`How many authors or editors are there for the book title elf child?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "award_list" (
"year" real,
"author_s_or_editor_s" text,
"book_title" text,
"publisher" text,
"category" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many authors or editors are there for the book title elf child?`:
```sql
|
SELECT "book_title" FROM "award_list" WHERE "publisher"='Black Car Publishing'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the book when the publisher is black car publishing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "award_list" (
"year" real,
"author_s_or_editor_s" text,
"book_title" text,
"publisher" text,
"category" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the book when the publisher is black car publishing?`:
```sql
|
SELECT "prize_eur" FROM "equinox_lottery" WHERE "number_of_winning_tickets"=1; |
## Task
Generate a SQL query to answer the following question:
`What are the prizes when 1 is the number of winning tickets?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "equinox_lottery" (
"divisions" text,
"prize_eur" text,
"odds_of_winning_1in" text,
"number_of_winning_tickets" real,
"in_order_to_win" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the prizes when 1 is the number of winning tickets?`:
```sql
|
SELECT "number_of_winning_tickets" FROM "equinox_lottery" WHERE "prize_eur"='180.00'; |
## Task
Generate a SQL query to answer the following question:
`What are the number of winning tickets that have 180.00 as the prize (eur)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "equinox_lottery" (
"divisions" text,
"prize_eur" text,
"odds_of_winning_1in" text,
"number_of_winning_tickets" real,
"in_order_to_win" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the number of winning tickets that have 180.00 as the prize (eur)?`:
```sql
|
SELECT "odds_of_winning_1in" FROM "equinox_lottery" WHERE "divisions"='6th'; |
## Task
Generate a SQL query to answer the following question:
`How many odd of winning have 6th as the division?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "equinox_lottery" (
"divisions" text,
"prize_eur" text,
"odds_of_winning_1in" text,
"number_of_winning_tickets" real,
"in_order_to_win" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many odd of winning have 6th as the division?`:
```sql
|
SELECT "prize_eur" FROM "equinox_lottery" WHERE "divisions"='6th'; |
## Task
Generate a SQL query to answer the following question:
`What is the prize (eur) for the 6th division?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "equinox_lottery" (
"divisions" text,
"prize_eur" text,
"odds_of_winning_1in" text,
"number_of_winning_tickets" real,
"in_order_to_win" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the prize (eur) for the 6th division?`:
```sql
|
SELECT "divisions" FROM "equinox_lottery" WHERE "number_of_winning_tickets"=565; |
## Task
Generate a SQL query to answer the following question:
`Which divisions have 565 as the number of winning tickets?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "equinox_lottery" (
"divisions" text,
"prize_eur" text,
"odds_of_winning_1in" text,
"number_of_winning_tickets" real,
"in_order_to_win" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which divisions have 565 as the number of winning tickets?`:
```sql
|
SELECT "green" FROM "references" WHERE "electorate"='Otaki'; |
## Task
Generate a SQL query to answer the following question:
`Name the green for otaki`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"electorate" text,
"labour" text,
"national" text,
"new_zealand_first" text,
"green" text,
"united_future" text,
"maori_party" text,
"act" text,
"progressive" text,
"other" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the green for otaki`:
```sql
|
SELECT "national" FROM "references" WHERE "electorate"='Rimutaka'; |
## Task
Generate a SQL query to answer the following question:
`Name the national for rimutaka`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"electorate" text,
"labour" text,
"national" text,
"new_zealand_first" text,
"green" text,
"united_future" text,
"maori_party" text,
"act" text,
"progressive" text,
"other" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the national for rimutaka`:
```sql
|
SELECT "electorate" FROM "references" WHERE "united_future"='4.47%'; |
## Task
Generate a SQL query to answer the following question:
`Name the electoraate for united future being 4.47%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"electorate" text,
"labour" text,
"national" text,
"new_zealand_first" text,
"green" text,
"united_future" text,
"maori_party" text,
"act" text,
"progressive" text,
"other" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the electoraate for united future being 4.47%`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.