output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "brand_name" FROM "cancer_immunotherapy_monoclonal_antibodi" WHERE "antibody"='Brentuximab vedotin'; |
## Task
Generate a SQL query to answer the following question:
`What is the brand name for the antibody Brentuximab Vedotin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cancer_immunotherapy_monoclonal_antibodi" (
"antibody" text,
"brand_name" text,
"approval_date" real,
"type" text,
"target" text,
"approved_treatment_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the brand name for the antibody Brentuximab Vedotin?`:
```sql
|
SELECT COUNT("target") FROM "cancer_immunotherapy_monoclonal_antibodi" WHERE "approval_date"=1997; |
## Task
Generate a SQL query to answer the following question:
`How many targets are there with an approval date of 1997?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cancer_immunotherapy_monoclonal_antibodi" (
"antibody" text,
"brand_name" text,
"approval_date" real,
"type" text,
"target" text,
"approved_treatment_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many targets are there with an approval date of 1997?`:
```sql
|
SELECT "approved_treatment_s" FROM "cancer_immunotherapy_monoclonal_antibodi" WHERE "antibody"='Bevacizumab'; |
## Task
Generate a SQL query to answer the following question:
`What are the approved treatments when the antibody is bevacizumab?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cancer_immunotherapy_monoclonal_antibodi" (
"antibody" text,
"brand_name" text,
"approval_date" real,
"type" text,
"target" text,
"approved_treatment_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the approved treatments when the antibody is bevacizumab?`:
```sql
|
SELECT "target" FROM "cancer_immunotherapy_monoclonal_antibodi" WHERE "approved_treatment_s"='non-Hodgkin lymphoma'; |
## Task
Generate a SQL query to answer the following question:
`What is the target when the approved treatment is non-hodgkin lymphoma?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cancer_immunotherapy_monoclonal_antibodi" (
"antibody" text,
"brand_name" text,
"approval_date" real,
"type" text,
"target" text,
"approved_treatment_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the target when the approved treatment is non-hodgkin lymphoma?`:
```sql
|
SELECT "target" FROM "cancer_immunotherapy_monoclonal_antibodi" WHERE "approval_date"=2006; |
## Task
Generate a SQL query to answer the following question:
`What is the target with an approval date of 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cancer_immunotherapy_monoclonal_antibodi" (
"antibody" text,
"brand_name" text,
"approval_date" real,
"type" text,
"target" text,
"approved_treatment_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the target with an approval date of 2006?`:
```sql
|
SELECT MIN("urban_pct") FROM "population_of_kazakhstan_1939_2009" WHERE "rural_pct"=43; |
## Task
Generate a SQL query to answer the following question:
`What is the urban population % when the rural percentage is 43?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population_of_kazakhstan_1939_2009" (
"year_january" real,
"population_000" real,
"rural_pct" real,
"urban_pct" real,
"source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the urban population % when the rural percentage is 43?`:
```sql
|
SELECT MIN("rural_pct") FROM "population_of_kazakhstan_1939_2009" WHERE "year_january"=1979; |
## Task
Generate a SQL query to answer the following question:
`What is the rural population percentage in 1979?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population_of_kazakhstan_1939_2009" (
"year_january" real,
"population_000" real,
"rural_pct" real,
"urban_pct" real,
"source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rural population percentage in 1979?`:
```sql
|
SELECT COUNT("urban_pct") FROM "population_of_kazakhstan_1939_2009" WHERE "population_000"=14685; |
## Task
Generate a SQL query to answer the following question:
`How many percentage figures are given for the urban population when the total population number is 14685?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population_of_kazakhstan_1939_2009" (
"year_january" real,
"population_000" real,
"rural_pct" real,
"urban_pct" real,
"source" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many percentage figures are given for the urban population when the total population number is 14685?`:
```sql
|
SELECT COUNT("source") FROM "population_of_kazakhstan_1939_2009" WHERE "urban_pct"=57; |
## Task
Generate a SQL query to answer the following question:
`For how many years was the urban population 57%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population_of_kazakhstan_1939_2009" (
"year_january" real,
"population_000" real,
"rural_pct" real,
"urban_pct" real,
"source" text
);
### SQL
Given the database schema, here is the SQL query that answers `For how many years was the urban population 57%?`:
```sql
|
SELECT "islam" FROM "religion" WHERE "ethnicity"='Tajik'; |
## Task
Generate a SQL query to answer the following question:
`When tajik is the ethnicity what is islam?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "religion" (
"ethnicity" text,
"islam" text,
"christianity" text,
"judaism" text,
"buddhism" text,
"other" text,
"atheism" text,
"n_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `When tajik is the ethnicity what is islam?`:
```sql
|
SELECT COUNT("name") FROM "course" WHERE "length_m"=455; |
## Task
Generate a SQL query to answer the following question:
`How many had a length of 455?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "course" (
"number" real,
"name" text,
"kilometer" real,
"pavement" text,
"length_m" real,
"average_climb_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many had a length of 455?`:
```sql
|
SELECT MIN("average_climb_pct") FROM "course" WHERE "name"='Tenbosse'; |
## Task
Generate a SQL query to answer the following question:
`What is the average climb for Tenbosse?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "course" (
"number" real,
"name" text,
"kilometer" real,
"pavement" text,
"length_m" real,
"average_climb_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average climb for Tenbosse?`:
```sql
|
SELECT "number" FROM "course" WHERE "kilometer"=233; |
## Task
Generate a SQL query to answer the following question:
`How many have a kilometers of 233?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "course" (
"number" real,
"name" text,
"kilometer" real,
"pavement" text,
"length_m" real,
"average_climb_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many have a kilometers of 233?`:
```sql
|
SELECT COUNT("average_climb_pct") FROM "course" WHERE "length_m"=375; |
## Task
Generate a SQL query to answer the following question:
`How many have a length of 375?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "course" (
"number" real,
"name" text,
"kilometer" real,
"pavement" text,
"length_m" real,
"average_climb_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many have a length of 375?`:
```sql
|
SELECT "playoffs" FROM "year_by_year" WHERE "year"='2011'; |
## Task
Generate a SQL query to answer the following question:
`What was the team's playoff status in 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" text,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team's playoff status in 2011?`:
```sql
|
SELECT "league" FROM "year_by_year" WHERE "year"='2010'; |
## Task
Generate a SQL query to answer the following question:
`What was the team's league in 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" text,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team's league in 2010?`:
```sql
|
SELECT "league" FROM "year_by_year" WHERE "regular_season"='2nd, Mid Atlantic'; |
## Task
Generate a SQL query to answer the following question:
`What is the league name for the regular season status of 2nd, mid atlantic?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" text,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the league name for the regular season status of 2nd, mid atlantic?`:
```sql
|
SELECT "winning_driver" FROM "calendar" WHERE "circuit"='Okayama International Circuit'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winning driver at Okayama International Circuit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"round" real,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winning driver at Okayama International Circuit?`:
```sql
|
SELECT "fastest_lap" FROM "calendar" WHERE "winning_team"='TOM''S Racing'; |
## Task
Generate a SQL query to answer the following question:
`Who had the fastest lap when the winning team was Tom's Racing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"round" real,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the fastest lap when the winning team was Tom's Racing?`:
```sql
|
SELECT "fastest_lap" FROM "calendar" WHERE "winning_team"='Team Impul' AND "circuit"='Twin Ring Motegi'; |
## Task
Generate a SQL query to answer the following question:
`Who had the fastest lap in the race won by Team Impul at the Twin Ring Motegi circuit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"round" real,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the fastest lap in the race won by Team Impul at the Twin Ring Motegi circuit?`:
```sql
|
SELECT COUNT("opponents") FROM "schedule" WHERE "game"=13; |
## Task
Generate a SQL query to answer the following question:
`How many opponents did the team play in week 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bills_points" real,
"opponents" real,
"bills_first_downs" real,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many opponents did the team play in week 13?`:
```sql
|
SELECT MAX("opponents") FROM "schedule" WHERE "date"='Sept. 14'; |
## Task
Generate a SQL query to answer the following question:
`How many points did the opponent score on Sept. 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bills_points" real,
"opponents" real,
"bills_first_downs" real,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the opponent score on Sept. 14?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "bills_first_downs"=23; |
## Task
Generate a SQL query to answer the following question:
`What team were the bills playing where their first down was 23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bills_points" real,
"opponents" real,
"bills_first_downs" real,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team were the bills playing where their first down was 23?`:
```sql
|
SELECT "record" FROM "schedule" WHERE "date"='Sept. 14'; |
## Task
Generate a SQL query to answer the following question:
`What was the record for the game on Sept. 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bills_points" real,
"opponents" real,
"bills_first_downs" real,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record for the game on Sept. 14?`:
```sql
|
SELECT MAX("gore_hundred") FROM "table1_16677738_1" WHERE "spelthorne_hundred"=12743; |
## Task
Generate a SQL query to answer the following question:
`When 12743 is the spelthorne what is the largest gore hundred?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16677738_1" (
"year" real,
"edmonton_hundred" real,
"elthorne_hundred" real,
"gore_hundred" real,
"isleworth_hundred" real,
"holborn_division" real,
"finsbury_division" real,
"kensington_division" real,
"tower_division" real,
"spelthorne_hundred" real,
"within_the_walls" real,
"without_the_walls" real,
"inns_of_court_and_chancery" real,
"westminster_city_and_liberty" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 12743 is the spelthorne what is the largest gore hundred?`:
```sql
|
SELECT "finsbury_division" FROM "table1_16677738_1" WHERE "inns_of_court_and_chancery"=1546; |
## Task
Generate a SQL query to answer the following question:
`When 1546 is inns of court and chancery what is the finsbury division?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16677738_1" (
"year" real,
"edmonton_hundred" real,
"elthorne_hundred" real,
"gore_hundred" real,
"isleworth_hundred" real,
"holborn_division" real,
"finsbury_division" real,
"kensington_division" real,
"tower_division" real,
"spelthorne_hundred" real,
"within_the_walls" real,
"without_the_walls" real,
"inns_of_court_and_chancery" real,
"westminster_city_and_liberty" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 1546 is inns of court and chancery what is the finsbury division?`:
```sql
|
SELECT MIN("year") FROM "table1_16677738_1"; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall year?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16677738_1" (
"year" real,
"edmonton_hundred" real,
"elthorne_hundred" real,
"gore_hundred" real,
"isleworth_hundred" real,
"holborn_division" real,
"finsbury_division" real,
"kensington_division" real,
"tower_division" real,
"spelthorne_hundred" real,
"within_the_walls" real,
"without_the_walls" real,
"inns_of_court_and_chancery" real,
"westminster_city_and_liberty" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest overall year?`:
```sql
|
SELECT "inns_of_court_and_chancery" FROM "table1_16677738_1" WHERE "without_the_walls"=70489; |
## Task
Generate a SQL query to answer the following question:
`When 70489 is without walls what is the inns of court and chancery?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16677738_1" (
"year" real,
"edmonton_hundred" real,
"elthorne_hundred" real,
"gore_hundred" real,
"isleworth_hundred" real,
"holborn_division" real,
"finsbury_division" real,
"kensington_division" real,
"tower_division" real,
"spelthorne_hundred" real,
"within_the_walls" real,
"without_the_walls" real,
"inns_of_court_and_chancery" real,
"westminster_city_and_liberty" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 70489 is without walls what is the inns of court and chancery?`:
```sql
|
SELECT MIN("without_the_walls") FROM "table1_16677738_1" WHERE "within_the_walls">56174.0; |
## Task
Generate a SQL query to answer the following question:
`When within the walls is larger than 56174.0 what is the lowest amount without the walls?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16677738_1" (
"year" real,
"edmonton_hundred" real,
"elthorne_hundred" real,
"gore_hundred" real,
"isleworth_hundred" real,
"holborn_division" real,
"finsbury_division" real,
"kensington_division" real,
"tower_division" real,
"spelthorne_hundred" real,
"within_the_walls" real,
"without_the_walls" real,
"inns_of_court_and_chancery" real,
"westminster_city_and_liberty" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `When within the walls is larger than 56174.0 what is the lowest amount without the walls?`:
```sql
|
SELECT MAX("holborn_division") FROM "table1_16677738_1" WHERE "tower_division"=272966; |
## Task
Generate a SQL query to answer the following question:
`When 272966 is the tower division what is the highest holborn division?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16677738_1" (
"year" real,
"edmonton_hundred" real,
"elthorne_hundred" real,
"gore_hundred" real,
"isleworth_hundred" real,
"holborn_division" real,
"finsbury_division" real,
"kensington_division" real,
"tower_division" real,
"spelthorne_hundred" real,
"within_the_walls" real,
"without_the_walls" real,
"inns_of_court_and_chancery" real,
"westminster_city_and_liberty" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 272966 is the tower division what is the highest holborn division?`:
```sql
|
SELECT "stolen_ends_against" FROM "standings" WHERE "skip"='Thomas Dufour'; |
## Task
Generate a SQL query to answer the following question:
`How many stolen ends against where there when Thomas Dufour was skip? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"country" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends_f_a" text,
"stolen_ends_for" real,
"stolen_ends_against" real,
"shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many stolen ends against where there when Thomas Dufour was skip? `:
```sql
|
SELECT MAX("stolen_ends_against") FROM "standings" WHERE "country"='Japan'; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of stolen ends against for Japan? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"country" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends_f_a" text,
"stolen_ends_for" real,
"stolen_ends_against" real,
"shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of stolen ends against for Japan? `:
```sql
|
SELECT "skip" FROM "standings" WHERE "stolen_ends_against"=13; |
## Task
Generate a SQL query to answer the following question:
`Who was the skip when the stolen ends against was 13? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"country" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends_f_a" text,
"stolen_ends_for" real,
"stolen_ends_against" real,
"shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the skip when the stolen ends against was 13? `:
```sql
|
SELECT MAX("glucose_mg_dl") FROM "composition_of_common_crystalloid_soluti" WHERE "cl_mmol_l"=154; |
## Task
Generate a SQL query to answer the following question:
`Name the most glucolse where cl is 154`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "composition_of_common_crystalloid_soluti" (
"solution" text,
"other_name" text,
"na_mmol_l" real,
"cl_mmol_l" real,
"glucose_mmol_l" real,
"glucose_mg_dl" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most glucolse where cl is 154`:
```sql
|
SELECT "other_name" FROM "composition_of_common_crystalloid_soluti" WHERE "glucose_mg_dl"=5000; |
## Task
Generate a SQL query to answer the following question:
`Name the other name where glucose is 5000`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "composition_of_common_crystalloid_soluti" (
"solution" text,
"other_name" text,
"na_mmol_l" real,
"cl_mmol_l" real,
"glucose_mmol_l" real,
"glucose_mg_dl" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the other name where glucose is 5000`:
```sql
|
SELECT "other_name" FROM "composition_of_common_crystalloid_soluti" WHERE "na_mmol_l"=77; |
## Task
Generate a SQL query to answer the following question:
`Name the other name where na plus is 77`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "composition_of_common_crystalloid_soluti" (
"solution" text,
"other_name" text,
"na_mmol_l" real,
"cl_mmol_l" real,
"glucose_mmol_l" real,
"glucose_mg_dl" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the other name where na plus is 77`:
```sql
|
SELECT "batting_partners" FROM "test_record_partnerships_by_wicket" WHERE "season"='1997'; |
## Task
Generate a SQL query to answer the following question:
`Who are the batting partners for the 1997 season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "test_record_partnerships_by_wicket" (
"wicket" text,
"runs" real,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the batting partners for the 1997 season?`:
```sql
|
SELECT "season" FROM "test_record_partnerships_by_wicket" WHERE "wicket"='7th'; |
## Task
Generate a SQL query to answer the following question:
`Which season reported wickets of 7th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "test_record_partnerships_by_wicket" (
"wicket" text,
"runs" real,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season reported wickets of 7th?`:
```sql
|
SELECT "fielding_team" FROM "test_record_partnerships_by_wicket" WHERE "wicket"='9th'; |
## Task
Generate a SQL query to answer the following question:
`Which team is 9th in wickets?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "test_record_partnerships_by_wicket" (
"wicket" text,
"runs" real,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team is 9th in wickets?`:
```sql
|
SELECT "venue" FROM "test_record_partnerships_by_wicket" WHERE "batting_partners"='Mahela Jayawardene and Prasanna Jayawardene'; |
## Task
Generate a SQL query to answer the following question:
`What is the venue for batting partners Mahela Jayawardene and Prasanna Jayawardene`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "test_record_partnerships_by_wicket" (
"wicket" text,
"runs" real,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue for batting partners Mahela Jayawardene and Prasanna Jayawardene`:
```sql
|
SELECT COUNT("batting_team") FROM "test_record_partnerships_by_wicket" WHERE "wicket"='3rd'; |
## Task
Generate a SQL query to answer the following question:
`How many teams are listed for 3rd wickets?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "test_record_partnerships_by_wicket" (
"wicket" text,
"runs" real,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams are listed for 3rd wickets?`:
```sql
|
SELECT COUNT("batting_partners") FROM "top_10_test_partnerships_for_any_wicket" WHERE "season"='2006'; |
## Task
Generate a SQL query to answer the following question:
`How many total batting partners were most successful in the 2006 season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_test_partnerships_for_any_wicket" (
"runs" text,
"wicket" text,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total batting partners were most successful in the 2006 season?`:
```sql
|
SELECT "batting_partners" FROM "top_10_test_partnerships_for_any_wicket" WHERE "batting_team"='Pakistan'; |
## Task
Generate a SQL query to answer the following question:
`What batting partners batted for pakistan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_test_partnerships_for_any_wicket" (
"runs" text,
"wicket" text,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What batting partners batted for pakistan?`:
```sql
|
SELECT "runs" FROM "top_10_test_partnerships_for_any_wicket" WHERE "fielding_team"='Bangladesh'; |
## Task
Generate a SQL query to answer the following question:
`How many runs when bangladesh was the fielding team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_test_partnerships_for_any_wicket" (
"runs" text,
"wicket" text,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many runs when bangladesh was the fielding team?`:
```sql
|
SELECT "wicket" FROM "top_10_test_partnerships_for_any_wicket" WHERE "runs"='451' AND "fielding_team"='India'; |
## Task
Generate a SQL query to answer the following question:
`What are the wickets when there are 451 runs and india is the fielding team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_test_partnerships_for_any_wicket" (
"runs" text,
"wicket" text,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the wickets when there are 451 runs and india is the fielding team?`:
```sql
|
SELECT "batting_partners" FROM "top_10_test_partnerships_for_any_wicket" WHERE "venue"='Sydney'; |
## Task
Generate a SQL query to answer the following question:
`What batting partners played in sydney?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_test_partnerships_for_any_wicket" (
"runs" text,
"wicket" text,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What batting partners played in sydney?`:
```sql
|
SELECT "batting_partners" FROM "top_10_test_partnerships_for_any_wicket" WHERE "season"='2004'; |
## Task
Generate a SQL query to answer the following question:
`What batting partners were the most successful in 2004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_test_partnerships_for_any_wicket" (
"runs" text,
"wicket" text,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What batting partners were the most successful in 2004?`:
```sql
|
SELECT "falcons_points" FROM "schedule" WHERE "record"='3-2'; |
## Task
Generate a SQL query to answer the following question:
`Name the falcons points for record of 3-2`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"falcons_points" real,
"opponents" real,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the falcons points for record of 3-2`:
```sql
|
SELECT "date" FROM "schedule" WHERE "game"=9; |
## Task
Generate a SQL query to answer the following question:
`Name the date for game 9`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"falcons_points" real,
"opponents" real,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for game 9`:
```sql
|
SELECT MAX("game") FROM "schedule" WHERE "attendance"=54774; |
## Task
Generate a SQL query to answer the following question:
`Name the max game for attendance being 54774`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"falcons_points" real,
"opponents" real,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the max game for attendance being 54774`:
```sql
|
SELECT COUNT("result") FROM "schedule" WHERE "opponent"='New Orleans Saints'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of results for new orleans saints`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"falcons_points" real,
"opponents" real,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of results for new orleans saints`:
```sql
|
SELECT COUNT("opponent") FROM "schedule" WHERE "record"='1-3'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of opponents for the game recorded as 1-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"falcons_points" real,
"opponents" real,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of opponents for the game recorded as 1-3?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "record"='1-2'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the 1978 Atlanta Falcons season when the record was 1-2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"falcons_points" real,
"opponents" real,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the 1978 Atlanta Falcons season when the record was 1-2?`:
```sql
|
SELECT "falcons_points" FROM "schedule" WHERE "record"='4-4'; |
## Task
Generate a SQL query to answer the following question:
`How many points did the Falcons score when the record was 4-4? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"falcons_points" real,
"opponents" real,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the Falcons score when the record was 4-4? `:
```sql
|
SELECT COUNT("opponents") FROM "schedule" WHERE "record"='6-4'; |
## Task
Generate a SQL query to answer the following question:
`How many opponents were there for the game recorded as 6-4 in the Atlanta Falcons 1978 season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"falcons_points" real,
"opponents" real,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many opponents were there for the game recorded as 6-4 in the Atlanta Falcons 1978 season?`:
```sql
|
SELECT MIN("falcons_points") FROM "schedule" WHERE "opponent"='San Francisco 49ers'; |
## Task
Generate a SQL query to answer the following question:
`In games where the opponent was the San Francisco 49ers what was the minimum amount of points scored?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"falcons_points" real,
"opponents" real,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `In games where the opponent was the San Francisco 49ers what was the minimum amount of points scored?`:
```sql
|
SELECT "pts" FROM "by_seasons_and_teams" WHERE "team"='Kiefer-Bos-Castrol Honda'; |
## Task
Generate a SQL query to answer the following question:
`How many points did kiefer-bos-castrol honda have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_seasons_and_teams" (
"season" real,
"class" text,
"team" text,
"motorcycle" text,
"type" text,
"races" real,
"wins" real,
"podiums" real,
"poles" real,
"fastest_laps" real,
"pts" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did kiefer-bos-castrol honda have?`:
```sql
|
SELECT "position" FROM "by_seasons_and_teams" WHERE "motorcycle"='KTM'; |
## Task
Generate a SQL query to answer the following question:
`What result did the ktm motorcycle achieve?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_seasons_and_teams" (
"season" real,
"class" text,
"team" text,
"motorcycle" text,
"type" text,
"races" real,
"wins" real,
"podiums" real,
"poles" real,
"fastest_laps" real,
"pts" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What result did the ktm motorcycle achieve?`:
```sql
|
SELECT MIN("poles") FROM "by_seasons_and_teams"; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of poles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_seasons_and_teams" (
"season" real,
"class" text,
"team" text,
"motorcycle" text,
"type" text,
"races" real,
"wins" real,
"podiums" real,
"poles" real,
"fastest_laps" real,
"pts" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of poles?`:
```sql
|
SELECT MIN("top_5") FROM "nascar_sprint_cup_series"; |
## Task
Generate a SQL query to answer the following question:
`Name the least top 5`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least top 5`:
```sql
|
SELECT "top_5" FROM "nascar_camping_world_truck_series" WHERE "winnings"='$52,595'; |
## Task
Generate a SQL query to answer the following question:
`name the top 5 where the winnings is $52,595`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_camping_world_truck_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `name the top 5 where the winnings is $52,595`:
```sql
|
SELECT COUNT("top_10") FROM "nascar_camping_world_truck_series" WHERE "position"='51st'; |
## Task
Generate a SQL query to answer the following question:
`name the total number of top 10 also where the position is 51st `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_camping_world_truck_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `name the total number of top 10 also where the position is 51st `:
```sql
|
SELECT "winnings" FROM "nascar_camping_world_truck_series" WHERE "starts"=7; |
## Task
Generate a SQL query to answer the following question:
`name all the winnings that the start appears to be 7`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_camping_world_truck_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `name all the winnings that the start appears to be 7`:
```sql
|
SELECT COUNT("winnings") FROM "nascar_nationwide_series" WHERE "year"=1995; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of winnings for 1995`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of winnings for 1995`:
```sql
|
SELECT MAX("top_5") FROM "nascar_nationwide_series" WHERE "avg_finish"='5.0'; |
## Task
Generate a SQL query to answer the following question:
`Name the max top 5 for 5.0 avg finish`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the max top 5 for 5.0 avg finish`:
```sql
|
SELECT "poles" FROM "nascar_nationwide_series" WHERE "avg_finish"='26.8'; |
## Task
Generate a SQL query to answer the following question:
`Name the poles for avg finish is 26.8`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the poles for avg finish is 26.8`:
```sql
|
SELECT COUNT("team_s") FROM "nascar_nationwide_series" WHERE "top_10"=5; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of teams for top 10 being 5`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of teams for top 10 being 5`:
```sql
|
SELECT COUNT("mens_u20") FROM "results_by_year" WHERE "womens_40"='Sydney Scorpions def North Queensland Cyclones'; |
## Task
Generate a SQL query to answer the following question:
`How many times was the mens u20 recorded when the Womens 40 were Sydney Scorpions def North Queensland Cyclones?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_by_year" (
"year" real,
"mens_open" text,
"womens_open" text,
"mixed_open" text,
"mens_u20" text,
"womens_u20" text,
"senior_mixed" text,
"mens_30" text,
"womens_30" text,
"mens_35" text,
"womens_35" text,
"mens_40" text,
"womens_40" text,
"mens_45" text,
"mens_50" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the mens u20 recorded when the Womens 40 were Sydney Scorpions def North Queensland Cyclones?`:
```sql
|
SELECT "mens_40" FROM "results_by_year" WHERE "mens_u20"='Southern Suns def Gold Coast Sharks'; |
## Task
Generate a SQL query to answer the following question:
`What were the results for mens 40 when the mens u20 was Southern Suns def Gold Coast Sharks?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_by_year" (
"year" real,
"mens_open" text,
"womens_open" text,
"mixed_open" text,
"mens_u20" text,
"womens_u20" text,
"senior_mixed" text,
"mens_30" text,
"womens_30" text,
"mens_35" text,
"womens_35" text,
"mens_40" text,
"womens_40" text,
"mens_45" text,
"mens_50" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the results for mens 40 when the mens u20 was Southern Suns def Gold Coast Sharks?`:
```sql
|
SELECT "mens_open" FROM "results_by_year" WHERE "womens_40"='Sydney Scorpions defeated Hunter Hornets'; |
## Task
Generate a SQL query to answer the following question:
`What were the results of the mens open when the womens 40 was Sydney Scorpions defeated Hunter Hornets?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_by_year" (
"year" real,
"mens_open" text,
"womens_open" text,
"mixed_open" text,
"mens_u20" text,
"womens_u20" text,
"senior_mixed" text,
"mens_30" text,
"womens_30" text,
"mens_35" text,
"womens_35" text,
"mens_40" text,
"womens_40" text,
"mens_45" text,
"mens_50" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the results of the mens open when the womens 40 was Sydney Scorpions defeated Hunter Hornets?`:
```sql
|
SELECT "womens_u20" FROM "results_by_year" WHERE "mens_45"='SunWest Razorbacks def Northern Eagles'; |
## Task
Generate a SQL query to answer the following question:
`What were the results of the womens u20 when the mens 45 was Sunwest Razorbacks def Northern Eagles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_by_year" (
"year" real,
"mens_open" text,
"womens_open" text,
"mixed_open" text,
"mens_u20" text,
"womens_u20" text,
"senior_mixed" text,
"mens_30" text,
"womens_30" text,
"mens_35" text,
"womens_35" text,
"mens_40" text,
"womens_40" text,
"mens_45" text,
"mens_50" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the results of the womens u20 when the mens 45 was Sunwest Razorbacks def Northern Eagles?`:
```sql
|
SELECT "mens_45" FROM "results_by_year" WHERE "mens_40"='SunWest Razorbacks def Sydney Mets'; |
## Task
Generate a SQL query to answer the following question:
`What was the mens 45 when mens 40 was Sunwest Razorbacks def Sydney Mets?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_by_year" (
"year" real,
"mens_open" text,
"womens_open" text,
"mixed_open" text,
"mens_u20" text,
"womens_u20" text,
"senior_mixed" text,
"mens_30" text,
"womens_30" text,
"mens_35" text,
"womens_35" text,
"mens_40" text,
"womens_40" text,
"mens_45" text,
"mens_50" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the mens 45 when mens 40 was Sunwest Razorbacks def Sydney Mets?`:
```sql
|
SELECT "mens_open" FROM "results_by_year" WHERE "mens_u20"='Qld Country Rustlers def Southern Suns'; |
## Task
Generate a SQL query to answer the following question:
`What was the mens open when the mens u20 was Qld Country Rustlers def Southern Suns?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_by_year" (
"year" real,
"mens_open" text,
"womens_open" text,
"mixed_open" text,
"mens_u20" text,
"womens_u20" text,
"senior_mixed" text,
"mens_30" text,
"womens_30" text,
"mens_35" text,
"womens_35" text,
"mens_40" text,
"womens_40" text,
"mens_45" text,
"mens_50" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the mens open when the mens u20 was Qld Country Rustlers def Southern Suns?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "opponent"='Los Angeles Raiders'; |
## Task
Generate a SQL query to answer the following question:
`What date was the opponent the Los Angeles Raiders?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the opponent the Los Angeles Raiders?`:
```sql
|
SELECT COUNT("date") FROM "schedule" WHERE "game_site"='Cleveland Stadium'; |
## Task
Generate a SQL query to answer the following question:
`How many games were played at Cleveland Stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were played at Cleveland Stadium?`:
```sql
|
SELECT COUNT("week") FROM "schedule" WHERE "attendance"=74716; |
## Task
Generate a SQL query to answer the following question:
`In what week number was the attendance 74716?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what week number was the attendance 74716?`:
```sql
|
SELECT "region" FROM "by_population" WHERE "name_of_city"='Iquitos'; |
## Task
Generate a SQL query to answer the following question:
`What is the region where Iquitos is located?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_population" (
"province" text,
"population" real,
"region" text,
"name_of_city" text,
"districts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the region where Iquitos is located?`:
```sql
|
SELECT "region" FROM "by_population" WHERE "province"='Constitutional Province of Callao'; |
## Task
Generate a SQL query to answer the following question:
`What is the region containing the Constitutional Province of Callao?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_population" (
"province" text,
"population" real,
"region" text,
"name_of_city" text,
"districts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the region containing the Constitutional Province of Callao?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "opponent"='New Orleans Saints'; |
## Task
Generate a SQL query to answer the following question:
`How did the game end against the New Orleans Saints?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How did the game end against the New Orleans Saints?`:
```sql
|
SELECT COUNT("week") FROM "schedule" WHERE "attendance"=60038; |
## Task
Generate a SQL query to answer the following question:
`How many weeks had an attendance of 60038?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks had an attendance of 60038?`:
```sql
|
SELECT MIN("points") FROM "the_2012_season" WHERE "driver_passenger"='Daniël Willemsen / Kenny van Gaalen'; |
## Task
Generate a SQL query to answer the following question:
`Name the least points for daniël willemsen / kenny van gaalen`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_2012_season" (
"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 least points for daniël willemsen / kenny van gaalen`:
```sql
|
SELECT "driver_passenger" FROM "the_2012_season" WHERE "position"=4; |
## Task
Generate a SQL query to answer the following question:
`Name the driver passenger for position 4`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_2012_season" (
"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 position 4`:
```sql
|
SELECT "driver_passenger" FROM "the_2011_season" WHERE "position"=8; |
## Task
Generate a SQL query to answer the following question:
`Name the driver/passenger for position 8`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_2011_season" (
"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 position 8`:
```sql
|
SELECT "driver_passenger" FROM "the_2011_season" WHERE "position"=6; |
## Task
Generate a SQL query to answer the following question:
`Name the driver/passenger for 6 position`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_2011_season" (
"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 6 position`:
```sql
|
SELECT "winner" FROM "table1_1672976_5" WHERE "attendance"=16597; |
## Task
Generate a SQL query to answer the following question:
`Who was the winner when the total attendance was 16597?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1672976_5" (
"date" text,
"time" text,
"acc_team" text,
"big_ten_team" text,
"location" text,
"television" text,
"attendance" real,
"winner" text,
"challenge_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner when the total attendance was 16597?`:
```sql
|
SELECT "socket" FROM "45_nm" WHERE "frequency"='1.3 GHz'; |
## Task
Generate a SQL query to answer the following question:
`What is the socket for microprocessors with a frequency of 1.3 ghz?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "45_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"gpu_frequency" text,
"l2_cache" text,
"i_o_bus" text,
"memory" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the socket for microprocessors with a frequency of 1.3 ghz?`:
```sql
|
SELECT "tdp" FROM "45_nm" WHERE "release_price_usd"='$72'; |
## Task
Generate a SQL query to answer the following question:
`For a release price of $72, what is the TDP of the microprocessor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "45_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"gpu_frequency" text,
"l2_cache" text,
"i_o_bus" text,
"memory" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `For a release price of $72, what is the TDP of the microprocessor?`:
```sql
|
SELECT "gpu_frequency" FROM "45_nm" WHERE "tdp"='3.6 W' AND "part_number_s"='CY80632007221AB'; |
## Task
Generate a SQL query to answer the following question:
`For a processor with part number cy80632007221ab and TDP of 3.6 W, What are the available GPU frequencies?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "45_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"gpu_frequency" text,
"l2_cache" text,
"i_o_bus" text,
"memory" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `For a processor with part number cy80632007221ab and TDP of 3.6 W, What are the available GPU frequencies?`:
```sql
|
SELECT "s_spec_number" FROM "45_nm" WHERE "tdp"='3.6 W' AND "model_number"='Atom E665C'; |
## Task
Generate a SQL query to answer the following question:
`For a processor with model number atom e665c and a TDP of 3.6 W, what is the sSpec number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "45_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"gpu_frequency" text,
"l2_cache" text,
"i_o_bus" text,
"memory" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `For a processor with model number atom e665c and a TDP of 3.6 W, what is the sSpec number?`:
```sql
|
SELECT "release_price_usd" FROM "45_nm" WHERE "part_number_s"='CY80632007227AB'; |
## Task
Generate a SQL query to answer the following question:
`What is the release price for a processor with part number cy80632007227ab?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "45_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"gpu_frequency" text,
"l2_cache" text,
"i_o_bus" text,
"memory" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the release price for a processor with part number cy80632007227ab?`:
```sql
|
SELECT "fsb" FROM "45_nm" WHERE "model_number"='Atom Z540'; |
## Task
Generate a SQL query to answer the following question:
`Name the fsb for atom z540`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "45_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"fsb" text,
"mult" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the fsb for atom z540`:
```sql
|
SELECT "frequency" FROM "45_nm" WHERE "part_number_s"='AC80566UE041DW'; |
## Task
Generate a SQL query to answer the following question:
`Name the frequency for part number of ac80566ue041dw`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "45_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"fsb" text,
"mult" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the frequency for part number of ac80566ue041dw`:
```sql
|
SELECT "memory" FROM "45_nm" WHERE "part_number_s"='CT80618003201AA'; |
## Task
Generate a SQL query to answer the following question:
`Name the memory for part number of ct80618003201aa`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "45_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"gpu_frequency" text,
"l2_cache" text,
"i_o_bus" text,
"memory" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the memory for part number of ct80618003201aa`:
```sql
|
SELECT "memory" FROM "45_nm" WHERE "model_number"='Atom E640T'; |
## Task
Generate a SQL query to answer the following question:
`Name the memory for meodel number for atom e640t`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "45_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"gpu_frequency" text,
"l2_cache" text,
"i_o_bus" text,
"memory" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the memory for meodel number for atom e640t`:
```sql
|
SELECT "memory" FROM "45_nm" WHERE "frequency"='1.6 GHz'; |
## Task
Generate a SQL query to answer the following question:
`Name the memory for frequency of 1.6 ghz`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "45_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"gpu_frequency" text,
"l2_cache" text,
"i_o_bus" text,
"memory" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the memory for frequency of 1.6 ghz`:
```sql
|
SELECT "winner" FROM "table1_1672976_6" WHERE "challenge_leader"='ACC (2-1)'; |
## Task
Generate a SQL query to answer the following question:
`Who won the game where the Challenge Leader is ACC (2-1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1672976_6" (
"date" text,
"time" text,
"acc_team" text,
"big_ten_team" text,
"location" text,
"television" text,
"attendance" real,
"winner" text,
"challenge_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the game where the Challenge Leader is ACC (2-1)?`:
```sql
|
SELECT "television" FROM "table1_1672976_6" WHERE "time"='9:00PM'; |
## Task
Generate a SQL query to answer the following question:
`What station aired a game at 9:00pm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1672976_6" (
"date" text,
"time" text,
"acc_team" text,
"big_ten_team" text,
"location" text,
"television" text,
"attendance" real,
"winner" text,
"challenge_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `What station aired a game at 9:00pm?`:
```sql
|
SELECT MIN("rnd") FROM "races" WHERE "date"='June 11'; |
## Task
Generate a SQL query to answer the following question:
`ON JUNE 11, WHAT WAS THE NUMBER OF RNDS ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races" (
"rnd" real,
"race_name" text,
"circuit" text,
"city_location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `ON JUNE 11, WHAT WAS THE NUMBER OF RNDS ?`:
```sql
|
SELECT MAX("rnd") FROM "races" WHERE "date"='August 13'; |
## Task
Generate a SQL query to answer the following question:
`FOR AUGUST 13 WHAT IS THE RND ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races" (
"rnd" real,
"race_name" text,
"circuit" text,
"city_location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `FOR AUGUST 13 WHAT IS THE RND ?`:
```sql
|
SELECT "race_name" FROM "races" WHERE "rnd"=13; |
## Task
Generate a SQL query to answer the following question:
`PLEASE LIST ALL RACES WHERE THE RND IS 13.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races" (
"rnd" real,
"race_name" text,
"circuit" text,
"city_location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `PLEASE LIST ALL RACES WHERE THE RND IS 13.`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.