output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "high_rebounds" FROM "regular_season" WHERE "record"='11-13'; |
## Task
Generate a SQL query to answer the following question:
`Who had a high rebound where the associated record is 11-13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had a high rebound where the associated record is 11-13?`:
```sql
|
SELECT "score" FROM "regular_season" WHERE "date"='July 8'; |
## Task
Generate a SQL query to answer the following question:
`On July 8, what was the score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On July 8, what was the score?`:
```sql
|
SELECT "opponent" FROM "regular_season" WHERE "score"='L 68-60'; |
## Task
Generate a SQL query to answer the following question:
`Who was the oppenent what the score was L 68-60?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the oppenent what the score was L 68-60?`:
```sql
|
SELECT "winning_pct" FROM "2009_nbl_ladder_championship_round" WHERE "last_5"='3-2' AND "streak"='L1'; |
## Task
Generate a SQL query to answer the following question:
`what is the winning % whre the last 5 is 3-2 and the streak is l1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_nbl_ladder_championship_round" (
"rank" real,
"team" text,
"played" real,
"win" real,
"loss" real,
"last_5" text,
"streak" text,
"pf_per_game" text,
"pa_per_game" text,
"pd_per_game" text,
"winning_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the winning % whre the last 5 is 3-2 and the streak is l1?`:
```sql
|
SELECT "record" FROM "regular_season" WHERE "high_assists"='Canty (6)'; |
## Task
Generate a SQL query to answer the following question:
`If high assists are under Canty (6) how much would the record be?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `If high assists are under Canty (6) how much would the record be?`:
```sql
|
SELECT "high_points" FROM "regular_season" WHERE "score"='62-70'; |
## Task
Generate a SQL query to answer the following question:
`If the score is 62-70, what are the high points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the score is 62-70, what are the high points?`:
```sql
|
SELECT "date" FROM "regular_season" WHERE "location_attendance"='UIC Pavilion 3,829'; |
## Task
Generate a SQL query to answer the following question:
`On which date was the location/attendance UIC Pavilion 3,829 respectively?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which date was the location/attendance UIC Pavilion 3,829 respectively?`:
```sql
|
SELECT "date" FROM "regular_season" WHERE "high_assists"='Dupree (6)'; |
## Task
Generate a SQL query to answer the following question:
`On which date is high assists Dupree (6)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which date is high assists Dupree (6)?`:
```sql
|
SELECT "local_investment_us" FROM "investment_and_financing" WHERE "bid_pronar_investment_us"='912,185'; |
## Task
Generate a SQL query to answer the following question:
`What was the local investment (in $) in the projects of the department with $912,185 BID/PRONAR investment?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "investment_and_financing" (
"department" text,
"projects" real,
"municipalities" real,
"farmers" real,
"irrigated_ha" real,
"bid_pronar_investment_us" text,
"local_investment_us" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the local investment (in $) in the projects of the department with $912,185 BID/PRONAR investment?`:
```sql
|
SELECT MAX("farmers") FROM "investment_and_financing" WHERE "projects"=32; |
## Task
Generate a SQL query to answer the following question:
`How many farmers were included by the department with 32 projects?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "investment_and_financing" (
"department" text,
"projects" real,
"municipalities" real,
"farmers" real,
"irrigated_ha" real,
"bid_pronar_investment_us" text,
"local_investment_us" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many farmers were included by the department with 32 projects?`:
```sql
|
SELECT "department" FROM "investment_and_financing" WHERE "irrigated_ha"=2170; |
## Task
Generate a SQL query to answer the following question:
`What department irrigated 2170 Ha?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "investment_and_financing" (
"department" text,
"projects" real,
"municipalities" real,
"farmers" real,
"irrigated_ha" real,
"bid_pronar_investment_us" text,
"local_investment_us" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What department irrigated 2170 Ha?`:
```sql
|
SELECT "bid_pronar_investment_us" FROM "investment_and_financing" WHERE "farmers"=1326; |
## Task
Generate a SQL query to answer the following question:
`What was the BID/PRONAR investment (in $) in the department that included 1326 farmers in its projects?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "investment_and_financing" (
"department" text,
"projects" real,
"municipalities" real,
"farmers" real,
"irrigated_ha" real,
"bid_pronar_investment_us" text,
"local_investment_us" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the BID/PRONAR investment (in $) in the department that included 1326 farmers in its projects?`:
```sql
|
SELECT "department" FROM "investment_and_financing" WHERE "local_investment_us"='626,798'; |
## Task
Generate a SQL query to answer the following question:
`What was the department that got $626,798 in local investments?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "investment_and_financing" (
"department" text,
"projects" real,
"municipalities" real,
"farmers" real,
"irrigated_ha" real,
"bid_pronar_investment_us" text,
"local_investment_us" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the department that got $626,798 in local investments?`:
```sql
|
SELECT MIN("game") FROM "regular_season" WHERE "record"='5-11'; |
## Task
Generate a SQL query to answer the following question:
`What number was the game resulting in a 5-11 record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number was the game resulting in a 5-11 record?`:
```sql
|
SELECT COUNT("high_assists") FROM "regular_season" WHERE "score"='68-60'; |
## Task
Generate a SQL query to answer the following question:
`How many high assists are listed for the game with a score of 68-60?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many high assists are listed for the game with a score of 68-60?`:
```sql
|
SELECT "high_rebounds" FROM "regular_season" WHERE "record"='5-11'; |
## Task
Generate a SQL query to answer the following question:
`In the game resulting in a 5-11 record, who scored the high rebounds?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the game resulting in a 5-11 record, who scored the high rebounds?`:
```sql
|
SELECT "opponent" FROM "january" WHERE "result"='Won 4-1'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent of the game with final score won 4-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "january" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent of the game with final score won 4-1?`:
```sql
|
SELECT MIN("attendance") FROM "january" WHERE "man_of_the_match"='Neil Liddiard'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance at the game where Neil Liddiard was Man of the Match?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "january" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance at the game where Neil Liddiard was Man of the Match?`:
```sql
|
SELECT "venue" FROM "january" WHERE "result"='Lost 3-4'; |
## Task
Generate a SQL query to answer the following question:
`What was the venue of the game that was lost 3-4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "january" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue of the game that was lost 3-4?`:
```sql
|
SELECT "venue" FROM "january" WHERE "man_of_the_match"='Vaclav Zavoral'; |
## Task
Generate a SQL query to answer the following question:
`What is the venue of the game with Man of the Match Vaclav Zavoral?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "january" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue of the game with Man of the Match Vaclav Zavoral?`:
```sql
|
SELECT COUNT("attendance") FROM "january" WHERE "result"='Lost 5-3'; |
## Task
Generate a SQL query to answer the following question:
`How many attendance figures are given for the game where the final score was lost 5-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "january" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many attendance figures are given for the game where the final score was lost 5-3?`:
```sql
|
SELECT "opponent" FROM "october" WHERE "date"='4th'; |
## Task
Generate a SQL query to answer the following question:
`Name the opponent for 4th`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "october" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent for 4th`:
```sql
|
SELECT "venue" FROM "october" WHERE "date"='19th'; |
## Task
Generate a SQL query to answer the following question:
`Name the venue for 19th date`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "october" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the venue for 19th date`:
```sql
|
SELECT "result" FROM "october" WHERE "man_of_the_match"='Lukas Smital' AND "venue"='Home'; |
## Task
Generate a SQL query to answer the following question:
`Name the result for lukas smital and home`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "october" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the result for lukas smital and home`:
```sql
|
SELECT "man_of_the_match" FROM "october" WHERE "date"='24th'; |
## Task
Generate a SQL query to answer the following question:
`Name the man of the match for 24th`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "october" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the man of the match for 24th`:
```sql
|
SELECT "man_of_the_match" FROM "october" WHERE "opponent"='Sheffield Scimitars'; |
## Task
Generate a SQL query to answer the following question:
`Name the man of the maatch for sheffield scimitars`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "october" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the man of the maatch for sheffield scimitars`:
```sql
|
SELECT "venue" FROM "november" WHERE "date"='19th'; |
## Task
Generate a SQL query to answer the following question:
`On the 19th, where was the venue?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "november" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `On the 19th, where was the venue?`:
```sql
|
SELECT "attendance" FROM "november" WHERE "opponent"='Swindon Wildcats' AND "venue"='Home'; |
## Task
Generate a SQL query to answer the following question:
`What was the total attendance during the home game against the Swindon Wildcats?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "november" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total attendance during the home game against the Swindon Wildcats?`:
```sql
|
SELECT "date" FROM "november" WHERE "man_of_the_match"='Stuart Potts'; |
## Task
Generate a SQL query to answer the following question:
`On what day was Stuart Potts the Man of the Match?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "november" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what day was Stuart Potts the Man of the Match?`:
```sql
|
SELECT "venue" FROM "november" WHERE "man_of_the_match"='Alex Mettam/Mark Williams'; |
## Task
Generate a SQL query to answer the following question:
`At what venue did Alex Mettam/Mark Williams be named Man of the Match?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "november" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what venue did Alex Mettam/Mark Williams be named Man of the Match?`:
```sql
|
SELECT COUNT("date") FROM "december" WHERE "man_of_the_match"='David Savage'; |
## Task
Generate a SQL query to answer the following question:
`How many dates did David Savage get man of the match?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many dates did David Savage get man of the match?`:
```sql
|
SELECT "man_of_the_match" FROM "december" WHERE "attendance"=1568; |
## Task
Generate a SQL query to answer the following question:
`When the attendance was 1568, who was man of the match?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the attendance was 1568, who was man of the match?`:
```sql
|
SELECT "man_of_the_match" FROM "december" WHERE "result"='Lost 2-4'; |
## Task
Generate a SQL query to answer the following question:
`Who was the man of the match when they lost 2-4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the man of the match when they lost 2-4?`:
```sql
|
SELECT "competition" FROM "february" WHERE "opponent"='Sheffield Scimitars'; |
## Task
Generate a SQL query to answer the following question:
`what was the competitoin where the opponent is sheffield scimitars?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "february" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" text,
"competition" text,
"man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the competitoin where the opponent is sheffield scimitars?`:
```sql
|
SELECT "venue" FROM "february" WHERE "attendance"='702'; |
## Task
Generate a SQL query to answer the following question:
`where was the venue where the attendance was 702?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "february" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" text,
"competition" text,
"man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `where was the venue where the attendance was 702?`:
```sql
|
SELECT "venue" FROM "february" WHERE "date"='22nd'; |
## Task
Generate a SQL query to answer the following question:
`what was the venue where the date was the 22nd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "february" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" text,
"competition" text,
"man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the venue where the date was the 22nd?`:
```sql
|
SELECT "opponent" FROM "february" WHERE "date"='21st'; |
## Task
Generate a SQL query to answer the following question:
`who was the opponent where the date was the 21st?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "february" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" text,
"competition" text,
"man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `who was the opponent where the date was the 21st?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "team"='Milwaukee'; |
## Task
Generate a SQL query to answer the following question:
`What is the score for Milwaukee? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for Milwaukee? `:
```sql
|
SELECT COUNT("record") FROM "table1_17121262_10" WHERE "team"='Washington'; |
## Task
Generate a SQL query to answer the following question:
`What was the record against Washington?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17121262_10" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record against Washington?`:
```sql
|
SELECT "population" FROM "communities" WHERE "census_ranking"='231 of 5,008'; |
## Task
Generate a SQL query to answer the following question:
`If the census ranking is 231 of 5,008, what was the population?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the census ranking is 231 of 5,008, what was the population?`:
```sql
|
SELECT "official_name" FROM "communities" WHERE "area_km_2"='59.73'; |
## Task
Generate a SQL query to answer the following question:
`If the area is 59.73, what is the official name?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the area is 59.73, what is the official name?`:
```sql
|
SELECT "status" FROM "communities" WHERE "census_ranking"='693 of 5,008'; |
## Task
Generate a SQL query to answer the following question:
`If the census ranking is 693 of 5,008, what is the status?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the census ranking is 693 of 5,008, what is the status?`:
```sql
|
SELECT "census_ranking" FROM "communities" WHERE "official_name"='Quispamsis'; |
## Task
Generate a SQL query to answer the following question:
`With the official name Quispamsis, what is the census ranking?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `With the official name Quispamsis, what is the census ranking?`:
```sql
|
SELECT "population" FROM "communities" WHERE "census_ranking"='782 of 5,008'; |
## Task
Generate a SQL query to answer the following question:
`What was the population for census ranking 782 of 5,008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the population for census ranking 782 of 5,008?`:
```sql
|
SELECT "census_ranking" FROM "communities" WHERE "area_km_2"='34.73'; |
## Task
Generate a SQL query to answer the following question:
`If the area is 34.73, what is the census ranking?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the area is 34.73, what is the census ranking?`:
```sql
|
SELECT "census_ranking" FROM "parishes" WHERE "population"=284; |
## Task
Generate a SQL query to answer the following question:
`What are the census ranking(s) for a population of 284?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the census ranking(s) for a population of 284?`:
```sql
|
SELECT "census_ranking" FROM "parishes" WHERE "area_km_2"='369.25'; |
## Task
Generate a SQL query to answer the following question:
`What are the census ranking(s) that have an area of 369.25 km2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the census ranking(s) that have an area of 369.25 km2?`:
```sql
|
SELECT "population" FROM "parishes" WHERE "area_km_2"='715.58'; |
## Task
Generate a SQL query to answer the following question:
`What is the population that has an area of 715.58?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population that has an area of 715.58?`:
```sql
|
SELECT "status" FROM "parishes" WHERE "official_name"='Saint-Jacques'; |
## Task
Generate a SQL query to answer the following question:
`What are that status(es) of saint-jacques?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are that status(es) of saint-jacques?`:
```sql
|
SELECT "area_km_2" FROM "parishes" WHERE "official_name"='Saint-Joseph'; |
## Task
Generate a SQL query to answer the following question:
`What are the area(s) (km2) for saint-joseph?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the area(s) (km2) for saint-joseph?`:
```sql
|
SELECT "census_ranking" FROM "parishes" WHERE "area_km_2"='482.81'; |
## Task
Generate a SQL query to answer the following question:
`What rank is the parish with 482.81 km^2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank is the parish with 482.81 km^2?`:
```sql
|
SELECT "status" FROM "parishes" WHERE "census_ranking"='2,290 of 5,008'; |
## Task
Generate a SQL query to answer the following question:
`What status doe the area with a census ranking of 2,290 of 5,008 have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What status doe the area with a census ranking of 2,290 of 5,008 have?`:
```sql
|
SELECT COUNT("status") FROM "parishes" WHERE "official_name"='Gagetown'; |
## Task
Generate a SQL query to answer the following question:
`How many statuses are listed for the parish officially named Gagetown?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many statuses are listed for the parish officially named Gagetown?`:
```sql
|
SELECT "census_ranking" FROM "parishes" WHERE "official_name"='Petersville'; |
## Task
Generate a SQL query to answer the following question:
`What is Petersville's census ranking?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Petersville's census ranking?`:
```sql
|
SELECT "population" FROM "communities" WHERE "status"='City'; |
## Task
Generate a SQL query to answer the following question:
`What is the population of each community with city status?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population of each community with city status?`:
```sql
|
SELECT "official_name" FROM "communities" WHERE "area_km_2"='30.75'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the community with an area of 30.75 sq. km.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the community with an area of 30.75 sq. km.?`:
```sql
|
SELECT "area_km_2" FROM "communities" WHERE "population"=1209; |
## Task
Generate a SQL query to answer the following question:
`What is the area of the community with a population of 1209?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the area of the community with a population of 1209?`:
```sql
|
SELECT COUNT("population") FROM "communities" WHERE "area_km_2"='10.25'; |
## Task
Generate a SQL query to answer the following question:
`How many population values are listed for the community with an area of 10.25 sq.km.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many population values are listed for the community with an area of 10.25 sq.km.?`:
```sql
|
SELECT "region_1" FROM "table1_171320_3" WHERE "region_4"='April 2, 2009'; |
## Task
Generate a SQL query to answer the following question:
`Name the region 1 where region 4 for april 2, 2009`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_171320_3" (
"dvd_name" text,
"ep_num" real,
"region_1" text,
"region_2_scandinavia" text,
"region_2_uk" text,
"region_4" text,
"special_features" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the region 1 where region 4 for april 2, 2009`:
```sql
|
SELECT "region_1" FROM "table1_171320_3" WHERE "ep_num"=13; |
## Task
Generate a SQL query to answer the following question:
`Name the region 1 for episode number 13`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_171320_3" (
"dvd_name" text,
"ep_num" real,
"region_1" text,
"region_2_scandinavia" text,
"region_2_uk" text,
"region_4" text,
"special_features" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the region 1 for episode number 13`:
```sql
|
SELECT "directed_by" FROM "table1_17152787_3" WHERE "title"='\"Episode 19\"'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode titled "Episode 19"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17152787_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"original_air_date" text,
"prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode titled "Episode 19"?`:
```sql
|
SELECT COUNT("series_num") FROM "table1_17152787_3" WHERE "season_num"=1; |
## Task
Generate a SQL query to answer the following question:
`How many episodes have the season number of 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17152787_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"original_air_date" text,
"prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes have the season number of 1?`:
```sql
|
SELECT "director" FROM "submissions" WHERE "original_title"='The Patience Stone'; |
## Task
Generate a SQL query to answer the following question:
`Who was the director of the film with the original title of "The Patience Stone"? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language_s" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director of the film with the original title of "The Patience Stone"? `:
```sql
|
SELECT "year_ceremony" FROM "submissions" WHERE "original_title"='Fire Dancer'; |
## Task
Generate a SQL query to answer the following question:
`For what ceremony was "Fire Dancer" not nominated? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language_s" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `For what ceremony was "Fire Dancer" not nominated? `:
```sql
|
SELECT "film_title_used_in_nomination" FROM "submissions" WHERE "original_title"='The Black Tulip'; |
## Task
Generate a SQL query to answer the following question:
`What name was used for nomination for the film with an original title of "The Black Tulip"? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language_s" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What name was used for nomination for the film with an original title of "The Black Tulip"? `:
```sql
|
SELECT "language_s" FROM "submissions" WHERE "film_title_used_in_nomination"='FireDancer'; |
## Task
Generate a SQL query to answer the following question:
`What languages were spoken in the film "FireDancer"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language_s" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What languages were spoken in the film "FireDancer"?`:
```sql
|
SELECT "director" FROM "submissions" WHERE "original_title"='16 Days in Afghanistan'; |
## Task
Generate a SQL query to answer the following question:
`Who was the director of the film with an original title of "16 Days in Afghanistan"? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language_s" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director of the film with an original title of "16 Days in Afghanistan"? `:
```sql
|
SELECT "model" FROM "tree_level_packages" WHERE "method"='HA'; |
## Task
Generate a SQL query to answer the following question:
`what is the model where the method is ha?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tree_level_packages" (
"name" text,
"model" text,
"max_fs" text,
"tested_fs" text,
"short_description" text,
"publication" text,
"method" text,
"output" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the model where the method is ha?`:
```sql
|
SELECT COUNT("model") FROM "tree_level_packages" WHERE "status"='Status' AND "name"='GenEva'; |
## Task
Generate a SQL query to answer the following question:
`what is the total number of model wehre the status is named geneva?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tree_level_packages" (
"name" text,
"model" text,
"max_fs" text,
"tested_fs" text,
"short_description" text,
"publication" text,
"method" text,
"output" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total number of model wehre the status is named geneva?`:
```sql
|
SELECT "max_fs" FROM "tree_level_packages" WHERE "status"='Status' AND "method"='Method'; |
## Task
Generate a SQL query to answer the following question:
`what is the max fs where the status is status and the method is method?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tree_level_packages" (
"name" text,
"model" text,
"max_fs" text,
"tested_fs" text,
"short_description" text,
"publication" text,
"method" text,
"output" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the max fs where the status is status and the method is method?`:
```sql
|
SELECT "output" FROM "tree_level_packages" WHERE "short_description"='massive'; |
## Task
Generate a SQL query to answer the following question:
`what ist he output where the short description is massive?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tree_level_packages" (
"name" text,
"model" text,
"max_fs" text,
"tested_fs" text,
"short_description" text,
"publication" text,
"method" text,
"output" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `what ist he output where the short description is massive?`:
```sql
|
SELECT "film_title_used_in_nomination" FROM "table1_17156199_1" WHERE "original_title"='শ্যামল ছায়া (Shyamol Chhaya)'; |
## Task
Generate a SQL query to answer the following question:
`What was the nominated film title of শ্যামল ছায়া (shyamol chhaya)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17156199_1" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the nominated film title of শ্যামল ছায়া (shyamol chhaya)?`:
```sql
|
SELECT "year_ceremony" FROM "table1_17156199_1" WHERE "original_title"='বৃত্তের বাইরে (Britter Baire)'; |
## Task
Generate a SQL query to answer the following question:
`What year and ceremony was the original title বৃত্তের বাইরে (britter baire)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17156199_1" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year and ceremony was the original title বৃত্তের বাইরে (britter baire)?`:
```sql
|
SELECT COUNT("year_ceremony") FROM "table1_17156199_1" WHERE "original_title"='স্বপ্নডানায় (Swopnodanay)'; |
## Task
Generate a SQL query to answer the following question:
`How many years was the original title was স্বপ্নডানায় (swopnodanay)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17156199_1" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years was the original title was স্বপ্নডানায় (swopnodanay)?`:
```sql
|
SELECT "nickname" FROM "former_members" WHERE "founded"=1902; |
## Task
Generate a SQL query to answer the following question:
`what is the nickname founded in 1902?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" real,
"left" real,
"current_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the nickname founded in 1902?`:
```sql
|
SELECT "location" FROM "former_members" WHERE "enrollment"=4259; |
## Task
Generate a SQL query to answer the following question:
`where is the enrollment 4259?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" real,
"left" real,
"current_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `where is the enrollment 4259?`:
```sql
|
SELECT "founded" FROM "former_members" WHERE "institution"='Union University'; |
## Task
Generate a SQL query to answer the following question:
`what is the year union university was founded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" real,
"left" real,
"current_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the year union university was founded?`:
```sql
|
SELECT "pct_2011" FROM "population" WHERE "province"='Manitoba'; |
## Task
Generate a SQL query to answer the following question:
`What was the percentage in Manitoba in 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"province" text,
"south_asians_2001" real,
"pct_2001" text,
"south_asians_2011" real,
"pct_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the percentage in Manitoba in 2011?`:
```sql
|
SELECT "province" FROM "population" WHERE "south_asians_2001"=210295; |
## Task
Generate a SQL query to answer the following question:
`Which province had population of 210295 South Asians in 2001?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"province" text,
"south_asians_2001" real,
"pct_2001" text,
"south_asians_2011" real,
"pct_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which province had population of 210295 South Asians in 2001?`:
```sql
|
SELECT "south_asians_2001" FROM "population" WHERE "province"='Nova Scotia'; |
## Task
Generate a SQL query to answer the following question:
`What was the South Asian population in Nova Scotia in 2001?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"province" text,
"south_asians_2001" real,
"pct_2001" text,
"south_asians_2011" real,
"pct_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the South Asian population in Nova Scotia in 2001?`:
```sql
|
SELECT "pct_2011" FROM "population" WHERE "pct_2001"='2.4%'; |
## Task
Generate a SQL query to answer the following question:
`What was the percentage in 2011 of the province that had 2.4% population in 2001?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"province" text,
"south_asians_2001" real,
"pct_2001" text,
"south_asians_2011" real,
"pct_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the percentage in 2011 of the province that had 2.4% population in 2001?`:
```sql
|
SELECT COUNT("south_asians_2001") FROM "population" WHERE "pct_2011"='4.4%'; |
## Task
Generate a SQL query to answer the following question:
`How many figures are given for total number of South Asians in 2001 for the area where they were 4.4% of population in 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"province" text,
"south_asians_2001" real,
"pct_2001" text,
"south_asians_2011" real,
"pct_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many figures are given for total number of South Asians in 2001 for the area where they were 4.4% of population in 2011?`:
```sql
|
SELECT "indians_admitted" FROM "immigration" WHERE "year"=2001; |
## Task
Generate a SQL query to answer the following question:
`How many Indians were admitted in 2001?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "immigration" (
"year" real,
"indians_admitted" real,
"pakistanis_admitted" real,
"sri_lankans_admitted" real,
"bangladeshis_admitted" real,
"nepalis_admitted" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Indians were admitted in 2001?`:
```sql
|
SELECT MAX("pakistanis_admitted") FROM "immigration" WHERE "nepalis_admitted"=627; |
## Task
Generate a SQL query to answer the following question:
`What is the greatest number of Pakistanis admitted to Canada during those times when the number of Nepalis admitted was 627?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "immigration" (
"year" real,
"indians_admitted" real,
"pakistanis_admitted" real,
"sri_lankans_admitted" real,
"bangladeshis_admitted" real,
"nepalis_admitted" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the greatest number of Pakistanis admitted to Canada during those times when the number of Nepalis admitted was 627?`:
```sql
|
SELECT MIN("indians_admitted") FROM "immigration" WHERE "sri_lankans_admitted"=3104; |
## Task
Generate a SQL query to answer the following question:
`What is the most number of Indians admitted to Canada when the number of Sri Lankans admitted was 3104?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "immigration" (
"year" real,
"indians_admitted" real,
"pakistanis_admitted" real,
"sri_lankans_admitted" real,
"bangladeshis_admitted" real,
"nepalis_admitted" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most number of Indians admitted to Canada when the number of Sri Lankans admitted was 3104?`:
```sql
|
SELECT COUNT("tv_season") FROM "seasonal_timeslots_ratings" WHERE "season_finale"='May 24, 1994'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of tv seasons for season finale being may 24, 1994`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "seasonal_timeslots_ratings" (
"season" real,
"tv_season" text,
"regular_timeslot_edt" text,
"episode_count" real,
"season_premiere" text,
"season_finale" text,
"rank" text,
"rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of tv seasons for season finale being may 24, 1994`:
```sql
|
SELECT COUNT("tv_season") FROM "seasonal_timeslots_ratings" WHERE "season_finale"='May 23, 1995'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of tv seasons for season finale of may 23, 1995`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "seasonal_timeslots_ratings" (
"season" real,
"tv_season" text,
"regular_timeslot_edt" text,
"episode_count" real,
"season_premiere" text,
"season_finale" text,
"rank" text,
"rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of tv seasons for season finale of may 23, 1995`:
```sql
|
SELECT COUNT("driver_passenger") FROM "riders" WHERE "position"=30; |
## Task
Generate a SQL query to answer the following question:
`Name the driver/passenger for 30`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "riders" (
"position" real,
"driver_passenger" text,
"equipment" text,
"bike_no" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the driver/passenger for 30`:
```sql
|
SELECT MAX("bike_no") FROM "riders" WHERE "position"=30; |
## Task
Generate a SQL query to answer the following question:
`Name the max bike number of position for 30`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "riders" (
"position" real,
"driver_passenger" text,
"equipment" text,
"bike_no" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the max bike number of position for 30`:
```sql
|
SELECT "high_points" FROM "playoffs" WHERE "game"=4; |
## Task
Generate a SQL query to answer the following question:
`Who had the most points in game 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the most points in game 4?`:
```sql
|
SELECT COUNT("going_to") FROM "table1_17200372_2" WHERE "calling_at"='Thurlby, Braceborough Spa' AND "departure"='16.50'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of going to for thurlby, braceborough spa at departure being 16.50`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17200372_2" (
"departure" text,
"going_to" text,
"calling_at" text,
"arrival" text,
"operator" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of going to for thurlby, braceborough spa at departure being 16.50`:
```sql
|
SELECT "departure" FROM "table1_17200372_2" WHERE "going_to"='Spalding'; |
## Task
Generate a SQL query to answer the following question:
`Name the departure for spalding`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17200372_2" (
"departure" text,
"going_to" text,
"calling_at" text,
"arrival" text,
"operator" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the departure for spalding`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "record"='27–5'; |
## Task
Generate a SQL query to answer the following question:
`who scored highest points on the game with record 27–5`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `who scored highest points on the game with record 27–5`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "score"='W 105–88 (OT)'; |
## Task
Generate a SQL query to answer the following question:
`who did highest rebounds in the game with score w 105–88 (ot)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `who did highest rebounds in the game with score w 105–88 (ot)`:
```sql
|
SELECT COUNT("record") FROM "game_log" WHERE "score"='W 121–119 (OT)'; |
## Task
Generate a SQL query to answer the following question:
`how many records were made on the game that ended with score w 121–119 (ot)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many records were made on the game that ended with score w 121–119 (ot)`:
```sql
|
SELECT "position_in_table" FROM "managerial_changes" WHERE "replaced_by"='Lucas Alcaraz'; |
## Task
Generate a SQL query to answer the following question:
`What was the team's position when the new manager was Lucas Alcaraz?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team's position when the new manager was Lucas Alcaraz?`:
```sql
|
SELECT "replaced_by" FROM "managerial_changes" WHERE "outgoing_manager"='José Ángel Ziganda'; |
## Task
Generate a SQL query to answer the following question:
`Who replaced outgoing manager José Ángel Ziganda?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who replaced outgoing manager José Ángel Ziganda?`:
```sql
|
SELECT "grid" FROM "classification" WHERE "points"='19'; |
## Task
Generate a SQL query to answer the following question:
`What grid did the driver who earned 19 points start at?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"fin_pos" real,
"car_no" real,
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What grid did the driver who earned 19 points start at?`:
```sql
|
SELECT COUNT("grid") FROM "classification" WHERE "driver"='Scott Dixon'; |
## Task
Generate a SQL query to answer the following question:
`Scott Dixon had how many Grid positions?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"fin_pos" real,
"car_no" real,
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Scott Dixon had how many Grid positions?`:
```sql
|
SELECT "time_retired" FROM "classification" WHERE "car_no"=15; |
## Task
Generate a SQL query to answer the following question:
`Car number 15 earned what time?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"fin_pos" real,
"car_no" real,
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Car number 15 earned what time?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.