output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "position" FROM "roster" WHERE "home_town"='North Babylon, NY'; |
## Task
Generate a SQL query to answer the following question:
`What is the position of the player who's hometown is North Babylon, NY?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"num" real,
"height" text,
"weight" real,
"position" text,
"year" text,
"home_town" text,
"high_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the player who's hometown is North Babylon, NY?`:
```sql
|
SELECT "position" FROM "roster" WHERE "home_town"='Chapel Hill, NC'; |
## Task
Generate a SQL query to answer the following question:
`What position is the player from Chapel Hill, NC?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"num" real,
"height" text,
"weight" real,
"position" text,
"year" text,
"home_town" text,
"high_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position is the player from Chapel Hill, NC?`:
```sql
|
SELECT "height" FROM "roster" WHERE "home_town"='Gulfport, MS'; |
## Task
Generate a SQL query to answer the following question:
`What is the height of the player from Gulfport, MS?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"num" real,
"height" text,
"weight" real,
"position" text,
"year" text,
"home_town" text,
"high_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of the player from Gulfport, MS?`:
```sql
|
SELECT "county" FROM "by_county" WHERE "mc_cainpct"='57.8%'; |
## Task
Generate a SQL query to answer the following question:
`In what county did McCain get 57.8%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"county" text,
"obamanum" real,
"obamapct" text,
"mc_cainnum" real,
"mc_cainpct" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what county did McCain get 57.8%?`:
```sql
|
SELECT COUNT("mc_cainpct") FROM "by_county" WHERE "county"='DAVIDSON'; |
## Task
Generate a SQL query to answer the following question:
`How many figures are given for McCain's % in Davidson county?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"county" text,
"obamanum" real,
"obamapct" text,
"mc_cainnum" real,
"mc_cainpct" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many figures are given for McCain's % in Davidson county?`:
```sql
|
SELECT "obamapct" FROM "by_county" WHERE "county"='RUTHERFORD'; |
## Task
Generate a SQL query to answer the following question:
`What percentage did Obama get in Rutherford county?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"county" text,
"obamanum" real,
"obamapct" text,
"mc_cainnum" real,
"mc_cainpct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage did Obama get in Rutherford county?`:
```sql
|
SELECT "mc_cainpct" FROM "by_county" WHERE "county"='HAMILTON'; |
## Task
Generate a SQL query to answer the following question:
`What percentage did McCain get in Hamilton county?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"county" text,
"obamanum" real,
"obamapct" text,
"mc_cainnum" real,
"mc_cainpct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage did McCain get in Hamilton county?`:
```sql
|
SELECT "obamapct" FROM "by_county" WHERE "mc_cainpct"='52.8%'; |
## Task
Generate a SQL query to answer the following question:
`What percentage did Obama get when McCain got 52.8%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"county" text,
"obamanum" real,
"obamapct" text,
"mc_cainnum" real,
"mc_cainpct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage did Obama get when McCain got 52.8%?`:
```sql
|
SELECT MIN("obamanum") FROM "by_county" WHERE "county"='LAKE'; |
## Task
Generate a SQL query to answer the following question:
`How many votes did Obama get in Lake County?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"county" text,
"obamanum" real,
"obamapct" text,
"mc_cainnum" real,
"mc_cainpct" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes did Obama get in Lake County?`:
```sql
|
SELECT COUNT("county") FROM "by_county" WHERE "mc_cainpct"='65.72%'; |
## Task
Generate a SQL query to answer the following question:
`In how many counties did McCain get 65.72% of the votes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `In how many counties did McCain get 65.72% of the votes?`:
```sql
|
SELECT MIN("obamanum") FROM "by_county" WHERE "mc_cainpct"='72.75%'; |
## Task
Generate a SQL query to answer the following question:
`How many people voted for Obama in the county where McCain got 72.75% of the votes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people voted for Obama in the county where McCain got 72.75% of the votes?`:
```sql
|
SELECT "mc_cainpct" FROM "by_county" WHERE "county"='Hinds'; |
## Task
Generate a SQL query to answer the following question:
`What percentage of the votes did McCain get in Hinds?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of the votes did McCain get in Hinds?`:
```sql
|
SELECT MIN("mc_cainnum") FROM "by_county" WHERE "county"='Scott'; |
## Task
Generate a SQL query to answer the following question:
`How many votes did McCain get in Scott?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes did McCain get in Scott?`:
```sql
|
SELECT "obamapct" FROM "by_county" WHERE "county"='Tippah'; |
## Task
Generate a SQL query to answer the following question:
`What percentage of the votes in Tippah did Obama get?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of the votes in Tippah did Obama get?`:
```sql
|
SELECT "mc_cainpct" FROM "by_county" WHERE "county"='Copiah'; |
## Task
Generate a SQL query to answer the following question:
`What percentage of the votes in Copiah did McCain get?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of the votes in Copiah did McCain get?`:
```sql
|
SELECT COUNT("type_of_fare") FROM "fares" WHERE "31_day_pass"='N/A' AND "cash_fare"='N/A'; |
## Task
Generate a SQL query to answer the following question:
`When n/a is the cash fate and n/a is the 31-day pass how many types of fare are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fares" (
"type_of_fare" text,
"cash_fare" text,
"day_pass" text,
"31_day_pass" text,
"monthly_pass" text
);
### SQL
Given the database schema, here is the SQL query that answers `When n/a is the cash fate and n/a is the 31-day pass how many types of fare are there?`:
```sql
|
SELECT "31_day_pass" FROM "fares" WHERE "type_of_fare"='Fixed Route'; |
## Task
Generate a SQL query to answer the following question:
`When fixed route is the type of fare how much is the 31-day pass?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fares" (
"type_of_fare" text,
"cash_fare" text,
"day_pass" text,
"31_day_pass" text,
"monthly_pass" text
);
### SQL
Given the database schema, here is the SQL query that answers `When fixed route is the type of fare how much is the 31-day pass?`:
```sql
|
SELECT "cash_fare" FROM "fares" WHERE "type_of_fare"='Mega Pass* (Senior/Disabled)'; |
## Task
Generate a SQL query to answer the following question:
`When mega pass* (senior/disabled) is the type of fare what is the cash fare?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fares" (
"type_of_fare" text,
"cash_fare" text,
"day_pass" text,
"31_day_pass" text,
"monthly_pass" text
);
### SQL
Given the database schema, here is the SQL query that answers `When mega pass* (senior/disabled) is the type of fare what is the cash fare?`:
```sql
|
SELECT "day_pass" FROM "fares" WHERE "type_of_fare"='Mega Pass* (Senior/Disabled)'; |
## Task
Generate a SQL query to answer the following question:
`When mega pass* (senior/disabled) is the type of fare what is the day pass?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fares" (
"type_of_fare" text,
"cash_fare" text,
"day_pass" text,
"31_day_pass" text,
"monthly_pass" text
);
### SQL
Given the database schema, here is the SQL query that answers `When mega pass* (senior/disabled) is the type of fare what is the day pass?`:
```sql
|
SELECT "cash_fare" FROM "fares" WHERE "type_of_fare"='Fort Irwin-Barstow/Victorville'; |
## Task
Generate a SQL query to answer the following question:
`When fort irwin-barstow/victorville is the type of fare what is the cash fare?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fares" (
"type_of_fare" text,
"cash_fare" text,
"day_pass" text,
"31_day_pass" text,
"monthly_pass" text
);
### SQL
Given the database schema, here is the SQL query that answers `When fort irwin-barstow/victorville is the type of fare what is the cash fare?`:
```sql
|
SELECT MIN("no") FROM "player_statistics" WHERE "total_goals"=1 AND "total_apps"=33; |
## Task
Generate a SQL query to answer the following question:
`Where total goals is 1 and total apps is 33, what is the smallest no.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_statistics" (
"no" real,
"player" text,
"league_apps" real,
"league_goals" real,
"cup_apps" real,
"cup_goals" real,
"total_apps" real,
"total_goals" real,
"yc" real,
"rc" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where total goals is 1 and total apps is 33, what is the smallest no.?`:
```sql
|
SELECT "residential_monthly_usage_1000_k_wh" FROM "table1_2082992_5" WHERE "large_power_power_demand_50_000_k_w_consumption_30_600_000_k_wh_load_factor_85pct"='6.86'; |
## Task
Generate a SQL query to answer the following question:
`What is every residential monthly usage if large power demand is 6.86?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2082992_5" (
"city_utility" text,
"residential_monthly_usage_1000_k_wh" text,
"small_power_power_demand_40_k_w_consumption_10_000_k_wh_load_factor_35pct" text,
"medium_power_power_demand_1_000_k_w_consumption_400_000_k_wh_load_factor_56_pct" text,
"large_power_power_demand_50_000_k_w_consumption_30_600_000_k_wh_load_factor_85pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every residential monthly usage if large power demand is 6.86?`:
```sql
|
SELECT COUNT("small_power_power_demand_40_k_w_consumption_10_000_k_wh_load_factor_35pct") FROM "table1_2082992_5" WHERE "medium_power_power_demand_1_000_k_w_consumption_400_000_k_wh_load_factor_56_pct"='11.07'; |
## Task
Generate a SQL query to answer the following question:
`How many values for small power demand occur when medium power demand is 11.07?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2082992_5" (
"city_utility" text,
"residential_monthly_usage_1000_k_wh" text,
"small_power_power_demand_40_k_w_consumption_10_000_k_wh_load_factor_35pct" text,
"medium_power_power_demand_1_000_k_w_consumption_400_000_k_wh_load_factor_56_pct" text,
"large_power_power_demand_50_000_k_w_consumption_30_600_000_k_wh_load_factor_85pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many values for small power demand occur when medium power demand is 11.07?`:
```sql
|
SELECT "large_power_power_demand_50_000_k_w_consumption_30_600_000_k_wh_load_factor_85pct" FROM "table1_2082992_5" WHERE "small_power_power_demand_40_k_w_consumption_10_000_k_wh_load_factor_35pct"='13.41'; |
## Task
Generate a SQL query to answer the following question:
`What is every value for large power demand when small power demand is 13.41?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2082992_5" (
"city_utility" text,
"residential_monthly_usage_1000_k_wh" text,
"small_power_power_demand_40_k_w_consumption_10_000_k_wh_load_factor_35pct" text,
"medium_power_power_demand_1_000_k_w_consumption_400_000_k_wh_load_factor_56_pct" text,
"large_power_power_demand_50_000_k_w_consumption_30_600_000_k_wh_load_factor_85pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value for large power demand when small power demand is 13.41?`:
```sql
|
SELECT "city_utility" FROM "table1_2082992_5" WHERE "residential_monthly_usage_1000_k_wh"='11.80'; |
## Task
Generate a SQL query to answer the following question:
`What is every city with a residential monthly usage of 11.80?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2082992_5" (
"city_utility" text,
"residential_monthly_usage_1000_k_wh" text,
"small_power_power_demand_40_k_w_consumption_10_000_k_wh_load_factor_35pct" text,
"medium_power_power_demand_1_000_k_w_consumption_400_000_k_wh_load_factor_56_pct" text,
"large_power_power_demand_50_000_k_w_consumption_30_600_000_k_wh_load_factor_85pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every city with a residential monthly usage of 11.80?`:
```sql
|
SELECT MAX("position") FROM "line_honours_results_top_10" WHERE "loa_metres"='20.12'; |
## Task
Generate a SQL query to answer the following question:
`What position is the boat with 20.12 LOA (metres)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position is the boat with 20.12 LOA (metres)?`:
```sql
|
SELECT "loa_metres" FROM "line_honours_results_top_10" WHERE "sail_number"='M10'; |
## Task
Generate a SQL query to answer the following question:
`What are the LOA (metres) of boat with sail number M10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the LOA (metres) of boat with sail number M10?`:
```sql
|
SELECT "race_number" FROM "line_honours_results_top_10" WHERE "elapsed_time_d_hh_mm_ss"='1:23:19:31'; |
## Task
Generate a SQL query to answer the following question:
`What is the race number with time 1:23:19:31?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the race number with time 1:23:19:31?`:
```sql
|
SELECT COUNT("loa_metres") FROM "line_honours_results_top_10" WHERE "yacht"='Black Jack'; |
## Task
Generate a SQL query to answer the following question:
`How many LOA (metres) reported for Black Jack?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many LOA (metres) reported for Black Jack?`:
```sql
|
SELECT "race_number" FROM "line_honours_results_top_10" WHERE "sail_number"='AUS 98888'; |
## Task
Generate a SQL query to answer the following question:
`What race number had sail number AUS 98888?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What race number had sail number AUS 98888?`:
```sql
|
SELECT COUNT("sail_number") FROM "line_honours_results_top_10" WHERE "skipper"='Geoff Ross'; |
## Task
Generate a SQL query to answer the following question:
`How many sail numbers for boat skippered by Geoff Ross?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many sail numbers for boat skippered by Geoff Ross?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "opponent"='West Virginia'; |
## Task
Generate a SQL query to answer the following question:
`When did they play against West Virginia?`
### 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,
"orangemen_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did they play against West Virginia?`:
```sql
|
SELECT "season" FROM "regular_season_record" WHERE "l_ot_so"='22 (3/4)'; |
## Task
Generate a SQL query to answer the following question:
`When l (ot/so) is 22 (3/4), what is the season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season_record" (
"season" text,
"gp" real,
"w_ot_so" text,
"l_ot_so" text,
"pts" real,
"pts_gp" text,
"gf_ga" text,
"rank_league_conference" text,
"top_scorer" text
);
### SQL
Given the database schema, here is the SQL query that answers `When l (ot/so) is 22 (3/4), what is the season?`:
```sql
|
SELECT "w_ot_so" FROM "regular_season_record" WHERE "season"='2008–09'; |
## Task
Generate a SQL query to answer the following question:
`In season is 2008–09, how many wins did they have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season_record" (
"season" text,
"gp" real,
"w_ot_so" text,
"l_ot_so" text,
"pts" real,
"pts_gp" text,
"gf_ga" text,
"rank_league_conference" text,
"top_scorer" text
);
### SQL
Given the database schema, here is the SQL query that answers `In season is 2008–09, how many wins did they have?`:
```sql
|
SELECT MAX("weight") FROM "table1_20860739_1" WHERE "player"='Eben Britton'; |
## Task
Generate a SQL query to answer the following question:
`What is the weight of Eben Britton?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20860739_1" (
"round" real,
"choice" real,
"player" text,
"position" text,
"height" text,
"weight" real,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the weight of Eben Britton?`:
```sql
|
SELECT "round" FROM "table1_20860739_1" WHERE "college"='Virginia'; |
## Task
Generate a SQL query to answer the following question:
`How many rounds did Virginia have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20860739_1" (
"round" real,
"choice" real,
"player" text,
"position" text,
"height" text,
"weight" real,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds did Virginia have?`:
```sql
|
SELECT "round" FROM "table1_20860739_1" WHERE "height"='6''5'; |
## Task
Generate a SQL query to answer the following question:
`How many rounds were there a height of 6'5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20860739_1" (
"round" real,
"choice" real,
"player" text,
"position" text,
"height" text,
"weight" real,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds were there a height of 6'5?`:
```sql
|
SELECT "college" FROM "table1_20860739_1" WHERE "height"='6''1'; |
## Task
Generate a SQL query to answer the following question:
`What college has a player that is 6'1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20860739_1" (
"round" real,
"choice" real,
"player" text,
"position" text,
"height" text,
"weight" real,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college has a player that is 6'1?`:
```sql
|
SELECT COUNT("position") FROM "table1_20860739_1" WHERE "player"='Mike Thomas'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of Mike Thomas?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20860739_1" (
"round" real,
"choice" real,
"player" text,
"position" text,
"height" text,
"weight" real,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of Mike Thomas?`:
```sql
|
SELECT "college" FROM "table1_20861261_4" WHERE "player"='Terrance Taylor'; |
## Task
Generate a SQL query to answer the following question:
`What college did Terrance Taylor play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20861261_4" (
"round" real,
"choice" real,
"player" text,
"position" text,
"height" text,
"weight" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college did Terrance Taylor play for?`:
```sql
|
SELECT "position" FROM "table1_20861261_4" WHERE "player"='Curtis Painter'; |
## Task
Generate a SQL query to answer the following question:
`What's Curtis Painter's position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20861261_4" (
"round" real,
"choice" real,
"player" text,
"position" text,
"height" text,
"weight" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's Curtis Painter's position?`:
```sql
|
SELECT "weight" FROM "table1_20861261_4" WHERE "college"='Southern California'; |
## Task
Generate a SQL query to answer the following question:
`How much does the player from Southern California weight?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20861261_4" (
"round" real,
"choice" real,
"player" text,
"position" text,
"height" text,
"weight" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much does the player from Southern California weight?`:
```sql
|
SELECT "position" FROM "table1_20861261_4" WHERE "player"='Curtis Painter'; |
## Task
Generate a SQL query to answer the following question:
`What's Curtis Painter's position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20861261_4" (
"round" real,
"choice" real,
"player" text,
"position" text,
"height" text,
"weight" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's Curtis Painter's position?`:
```sql
|
SELECT MAX("round") FROM "table1_20861261_4" WHERE "weight"='192lb (87kg)'; |
## Task
Generate a SQL query to answer the following question:
`In what round did the player who weights 192lb (87kg) play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20861261_4" (
"round" real,
"choice" real,
"player" text,
"position" text,
"height" text,
"weight" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what round did the player who weights 192lb (87kg) play?`:
```sql
|
SELECT MIN("choice") FROM "table1_20861261_4" WHERE "weight"='303lb (137kg)'; |
## Task
Generate a SQL query to answer the following question:
`What's the choice score of the player who weights 303lb (137kg)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20861261_4" (
"round" real,
"choice" real,
"player" text,
"position" text,
"height" text,
"weight" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the choice score of the player who weights 303lb (137kg)?`:
```sql
|
SELECT COUNT("engine") FROM "technical_specifications" WHERE "model_designation"='97G00'; |
## Task
Generate a SQL query to answer the following question:
`How many different engines are there for the model with model designation 97G00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "technical_specifications" (
"model_type" text,
"model_designation" text,
"engine" text,
"wheelbase_mm_inch" text,
"gvw_kg_ton" text,
"axle_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different engines are there for the model with model designation 97G00?`:
```sql
|
SELECT "engine" FROM "technical_specifications" WHERE "gvw_kg_ton"='2500/2.46' AND "model_designation"='97G00'; |
## Task
Generate a SQL query to answer the following question:
`What's the engine for the model model designation 97G00 and GVW of 2500/2.46 kg/ton?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "technical_specifications" (
"model_type" text,
"model_designation" text,
"engine" text,
"wheelbase_mm_inch" text,
"gvw_kg_ton" text,
"axle_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the engine for the model model designation 97G00 and GVW of 2500/2.46 kg/ton?`:
```sql
|
SELECT "model_type" FROM "technical_specifications" WHERE "model_designation"='97500'; |
## Task
Generate a SQL query to answer the following question:
`What model type has model designation 97500?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "technical_specifications" (
"model_type" text,
"model_designation" text,
"engine" text,
"wheelbase_mm_inch" text,
"gvw_kg_ton" text,
"axle_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What model type has model designation 97500?`:
```sql
|
SELECT "axle_ratio" FROM "technical_specifications" WHERE "model_designation"='97G00'; |
## Task
Generate a SQL query to answer the following question:
`What's the axle ratio of the model with model designation 97G00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "technical_specifications" (
"model_type" text,
"model_designation" text,
"engine" text,
"wheelbase_mm_inch" text,
"gvw_kg_ton" text,
"axle_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the axle ratio of the model with model designation 97G00?`:
```sql
|
SELECT "model_type" FROM "technical_specifications" WHERE "model_designation"='97100'; |
## Task
Generate a SQL query to answer the following question:
`What model type has 97100 model designation?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "technical_specifications" (
"model_type" text,
"model_designation" text,
"engine" text,
"wheelbase_mm_inch" text,
"gvw_kg_ton" text,
"axle_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What model type has 97100 model designation?`:
```sql
|
SELECT "engine" FROM "technical_specifications" WHERE "model_designation"='97100'; |
## Task
Generate a SQL query to answer the following question:
`What type of engine does the model with model designation 97100 have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "technical_specifications" (
"model_type" text,
"model_designation" text,
"engine" text,
"wheelbase_mm_inch" text,
"gvw_kg_ton" text,
"axle_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of engine does the model with model designation 97100 have?`:
```sql
|
SELECT "wheelbase_mm_inch" FROM "technical_specifications" WHERE "model_designation"='97G00'; |
## Task
Generate a SQL query to answer the following question:
`What's the wheelbase (in mm/inch) of the model with model designation 97G00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "technical_specifications" (
"model_type" text,
"model_designation" text,
"engine" text,
"wheelbase_mm_inch" text,
"gvw_kg_ton" text,
"axle_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the wheelbase (in mm/inch) of the model with model designation 97G00?`:
```sql
|
SELECT "engine" FROM "technical_specifications" WHERE "model_designation"='97F00'; |
## Task
Generate a SQL query to answer the following question:
`What type of engine does the model with model designation 97F00 have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "technical_specifications" (
"model_type" text,
"model_designation" text,
"engine" text,
"wheelbase_mm_inch" text,
"gvw_kg_ton" text,
"axle_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of engine does the model with model designation 97F00 have?`:
```sql
|
SELECT "model_designation" FROM "technical_specifications" WHERE "gvw_kg_ton"='2828/2.78' AND "axle_ratio"='9/47'; |
## Task
Generate a SQL query to answer the following question:
`What's the model designation of the model with GVW of 2828/2.78 kg/ton and axle ratio of 9/47?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "technical_specifications" (
"model_type" text,
"model_designation" text,
"engine" text,
"wheelbase_mm_inch" text,
"gvw_kg_ton" text,
"axle_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the model designation of the model with GVW of 2828/2.78 kg/ton and axle ratio of 9/47?`:
```sql
|
SELECT "player_name" FROM "table1_20871703_1" WHERE "college"='Eastern Michigan'; |
## Task
Generate a SQL query to answer the following question:
`Who is the player name when eastern michigan is the college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20871703_1" (
"round" real,
"choice" real,
"player_name" text,
"position" text,
"height" text,
"weight" real,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player name when eastern michigan is the college?`:
```sql
|
SELECT "height" FROM "table1_20871703_1" WHERE "position"='OT'; |
## Task
Generate a SQL query to answer the following question:
`What is the height if ot is the position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20871703_1" (
"round" real,
"choice" real,
"player_name" text,
"position" text,
"height" text,
"weight" real,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height if ot is the position?`:
```sql
|
SELECT "player_name" FROM "table1_20871703_1" WHERE "college"='South Carolina'; |
## Task
Generate a SQL query to answer the following question:
`Who is the player for south carolina college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20871703_1" (
"round" real,
"choice" real,
"player_name" text,
"position" text,
"height" text,
"weight" real,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player for south carolina college?`:
```sql
|
SELECT COUNT("height") FROM "table1_20871703_1" WHERE "position"='DE'; |
## Task
Generate a SQL query to answer the following question:
`What is the height if de is the position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20871703_1" (
"round" real,
"choice" real,
"player_name" text,
"position" text,
"height" text,
"weight" real,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height if de is the position?`:
```sql
|
SELECT "college" FROM "table1_20871703_1" WHERE "position"='FB'; |
## Task
Generate a SQL query to answer the following question:
`Which college has fb as the position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20871703_1" (
"round" real,
"choice" real,
"player_name" text,
"position" text,
"height" text,
"weight" real,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which college has fb as the position?`:
```sql
|
SELECT "gvw_kg_ton" FROM "technical_specifications" WHERE "model_designation"='97H00'; |
## Task
Generate a SQL query to answer the following question:
`What is the GVW for model 97H00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "technical_specifications" (
"model_type" text,
"model_designation" text,
"engine" text,
"wheelbase_mm_inch" text,
"gvw_kg_ton" text,
"axle_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the GVW for model 97H00?`:
```sql
|
SELECT COUNT("engine") FROM "technical_specifications" WHERE "model_designation"='97H00'; |
## Task
Generate a SQL query to answer the following question:
`How many engines are there for model 97H00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "technical_specifications" (
"model_type" text,
"model_designation" text,
"engine" text,
"wheelbase_mm_inch" text,
"gvw_kg_ton" text,
"axle_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many engines are there for model 97H00?`:
```sql
|
SELECT "wheelbase_mm_inch" FROM "technical_specifications" WHERE "model_designation"='97300'; |
## Task
Generate a SQL query to answer the following question:
`What is the Wheelbase for Model 97300?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "technical_specifications" (
"model_type" text,
"model_designation" text,
"engine" text,
"wheelbase_mm_inch" text,
"gvw_kg_ton" text,
"axle_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Wheelbase for Model 97300?`:
```sql
|
SELECT "engine" FROM "technical_specifications" WHERE "model_type"='CF350'; |
## Task
Generate a SQL query to answer the following question:
`Name the Engine for model CF350.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "technical_specifications" (
"model_type" text,
"model_designation" text,
"engine" text,
"wheelbase_mm_inch" text,
"gvw_kg_ton" text,
"axle_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Engine for model CF350.`:
```sql
|
SELECT "report" FROM "race_calendar" WHERE "race_title"='Supercheap Auto Bathurst 1000'; |
## Task
Generate a SQL query to answer the following question:
`Was the result of the supercheap auto bathurst 1000 reported?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar" (
"rd" real,
"race_title" text,
"circuit" text,
"location" text,
"date" text,
"format" text,
"winner" text,
"team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Was the result of the supercheap auto bathurst 1000 reported?`:
```sql
|
SELECT "winner" FROM "race_calendar" WHERE "circuit"='Barbagallo Raceway'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winner of the race at barbagallo raceway?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar" (
"rd" real,
"race_title" text,
"circuit" text,
"location" text,
"date" text,
"format" text,
"winner" text,
"team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner of the race at barbagallo raceway?`:
```sql
|
SELECT COUNT("player") FROM "2009_pittsburgh_steelers_draft_selection" WHERE "status"='Made 53-man roster at start of 2009 season' AND "position"='Running back'; |
## Task
Generate a SQL query to answer the following question:
`how many players played running back where status is made 53-man roster at start of 2009 season`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_pittsburgh_steelers_draft_selection" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"height" text,
"weight" text,
"college" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many players played running back where status is made 53-man roster at start of 2009 season`:
```sql
|
SELECT COUNT("position") FROM "2009_pittsburgh_steelers_draft_selection" WHERE "player"='Wallace, Mike Mike Wallace'; |
## Task
Generate a SQL query to answer the following question:
`howe many positions did wallace, mike mike wallace play for `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_pittsburgh_steelers_draft_selection" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"height" text,
"weight" text,
"college" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `howe many positions did wallace, mike mike wallace play for `:
```sql
|
SELECT "status" FROM "2009_pittsburgh_steelers_draft_selection" WHERE "pick_num"=32; |
## Task
Generate a SQL query to answer the following question:
`state the status of pick # 32`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_pittsburgh_steelers_draft_selection" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"height" text,
"weight" text,
"college" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `state the status of pick # 32`:
```sql
|
SELECT "college" FROM "2009_pittsburgh_steelers_draft_selection" WHERE "position"='Running back'; |
## Task
Generate a SQL query to answer the following question:
`which college had a running back player`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_pittsburgh_steelers_draft_selection" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"height" text,
"weight" text,
"college" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `which college had a running back player`:
```sql
|
SELECT "position" FROM "2009_pittsburgh_steelers_draft_selection" WHERE "height"='ft0in (m)'; |
## Task
Generate a SQL query to answer the following question:
`what is the position of the player of height ft0in (m)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_pittsburgh_steelers_draft_selection" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"height" text,
"weight" text,
"college" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the position of the player of height ft0in (m)`:
```sql
|
SELECT "position" FROM "2009_pittsburgh_steelers_draft_selection" WHERE "pick_num"=79; |
## Task
Generate a SQL query to answer the following question:
`what's the position of pick # 79`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_pittsburgh_steelers_draft_selection" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"height" text,
"weight" text,
"college" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the position of pick # 79`:
```sql
|
SELECT MAX("touchdowns") FROM "team_career_passing_records" WHERE "qb_rating"='82.7'; |
## Task
Generate a SQL query to answer the following question:
`How many touchdowns were scored when QB rating was 82.7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_career_passing_records" (
"name" text,
"completions" real,
"attempts" real,
"completion_pct" text,
"yards" real,
"touchdowns" real,
"interceptions" real,
"qb_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many touchdowns were scored when QB rating was 82.7?`:
```sql
|
SELECT "qb_rating" FROM "team_career_passing_records" WHERE "name"='Neil Lomax'; |
## Task
Generate a SQL query to answer the following question:
`What was the QB rating for Neil lomax?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_career_passing_records" (
"name" text,
"completions" real,
"attempts" real,
"completion_pct" text,
"yards" real,
"touchdowns" real,
"interceptions" real,
"qb_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the QB rating for Neil lomax?`:
```sql
|
SELECT COUNT("attempts") FROM "team_career_passing_records" WHERE "name"='Charley Johnson'; |
## Task
Generate a SQL query to answer the following question:
`How many attempts did Charley Johnson have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_career_passing_records" (
"name" text,
"completions" real,
"attempts" real,
"completion_pct" text,
"yards" real,
"touchdowns" real,
"interceptions" real,
"qb_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many attempts did Charley Johnson have?`:
```sql
|
SELECT "touchdowns" FROM "team_career_passing_records" WHERE "qb_rating"='66.6'; |
## Task
Generate a SQL query to answer the following question:
`How many touchdowns were there with QB rating of 66.6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_career_passing_records" (
"name" text,
"completions" real,
"attempts" real,
"completion_pct" text,
"yards" real,
"touchdowns" real,
"interceptions" real,
"qb_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many touchdowns were there with QB rating of 66.6?`:
```sql
|
SELECT COUNT("opponent") FROM "schedule" WHERE "result"='Loss'; |
## Task
Generate a SQL query to answer the following question:
`Name the number opponent for loss result`
### 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,
"cardinals_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number opponent for loss result`:
```sql
|
SELECT "game" FROM "schedule" WHERE "record"='3-0'; |
## Task
Generate a SQL query to answer the following question:
`Name the game for record being 3-0`
### 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,
"cardinals_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the game for record being 3-0`:
```sql
|
SELECT "date" FROM "schedule" WHERE "game"=6; |
## Task
Generate a SQL query to answer the following question:
`What was the date of game 6?`
### 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,
"cardinals_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of game 6?`:
```sql
|
SELECT "record" FROM "schedule" WHERE "cardinals_points"=7; |
## Task
Generate a SQL query to answer the following question:
`What was the record for the game where the cardinals scored 7 points?`
### 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,
"cardinals_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record for the game where the cardinals scored 7 points?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "record"='1-2'; |
## Task
Generate a SQL query to answer the following question:
`What game date had the record of 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,
"cardinals_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game date had the record of 1-2?`:
```sql
|
SELECT COUNT("opponents") FROM "schedule" WHERE "opponent"='North Carolina State'; |
## Task
Generate a SQL query to answer the following question:
`How many opponents were in North Carolina state game?`
### 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,
"cardinals_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many opponents were in North Carolina state game?`:
```sql
|
SELECT COUNT("125cc_winner") FROM "grands_prix" WHERE "moto2_winner"='Shoya Tomizawa'; |
## Task
Generate a SQL query to answer the following question:
`How many 125cc winners were in the same events as when the Moto2 winner was Shoya Tomizawa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grands_prix" (
"round" real,
"date" text,
"grand_prix" text,
"circuit" text,
"moto_gp_winner" text,
"moto2_winner" text,
"125cc_winner" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many 125cc winners were in the same events as when the Moto2 winner was Shoya Tomizawa?`:
```sql
|
SELECT COUNT("opponents") FROM "schedule" WHERE "record"='1-0-0'; |
## Task
Generate a SQL query to answer the following question:
`After how many opponents was the overall record 1-0-0?`
### 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,
"hurricanes_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `After how many opponents was the overall record 1-0-0?`:
```sql
|
SELECT "record" FROM "schedule" WHERE "hurricanes_points"=24; |
## Task
Generate a SQL query to answer the following question:
`What was the record after the game in which the Hurricanes scored 24 points?`
### 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,
"hurricanes_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record after the game in which the Hurricanes scored 24 points?`:
```sql
|
SELECT MIN("game") FROM "schedule" WHERE "opponent"='Georgia'; |
## Task
Generate a SQL query to answer the following question:
`Which game number was played against Georgia?`
### 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,
"hurricanes_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which game number was played against Georgia?`:
```sql
|
SELECT COUNT("opponents") FROM "schedule" WHERE "opponent"='Tulane'; |
## Task
Generate a SQL query to answer the following question:
`How many games were played against Tulane?`
### 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,
"hurricanes_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were played against Tulane?`:
```sql
|
SELECT "parking" FROM "table1_2093995_1" WHERE "city_neighborhood"='Van Nuys' AND "stations"='Sepulveda'; |
## Task
Generate a SQL query to answer the following question:
`How much parking is in Van Nuys at the Sepulveda station? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2093995_1" (
"stations" text,
"connections" text,
"city_neighborhood" text,
"parking" text,
"date_opened" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much parking is in Van Nuys at the Sepulveda station? `:
```sql
|
SELECT "stations" FROM "table1_2093995_1" WHERE "city_neighborhood"='Tarzana'; |
## Task
Generate a SQL query to answer the following question:
`What are the stations in Tarzana? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2093995_1" (
"stations" text,
"connections" text,
"city_neighborhood" text,
"parking" text,
"date_opened" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the stations in Tarzana? `:
```sql
|
SELECT COUNT("connections") FROM "table1_2093995_1" WHERE "stations"='Tampa'; |
## Task
Generate a SQL query to answer the following question:
`How many connection catagories are there for Tampa? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2093995_1" (
"stations" text,
"connections" text,
"city_neighborhood" text,
"parking" text,
"date_opened" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many connection catagories are there for Tampa? `:
```sql
|
SELECT "stations" FROM "table1_2093995_1" WHERE "parking"='Park & Ride Lot'; |
## Task
Generate a SQL query to answer the following question:
`Which station has park & ride lot parking? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2093995_1" (
"stations" text,
"connections" text,
"city_neighborhood" text,
"parking" text,
"date_opened" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which station has park & ride lot parking? `:
```sql
|
SELECT "player" FROM "statistics" WHERE "3_dart_average"='92.58'; |
## Task
Generate a SQL query to answer the following question:
`Which player has a 92.58 3-dart average?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"player" text,
"played" real,
"legs_won" real,
"legs_lost" real,
"lwat" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has a 92.58 3-dart average?`:
```sql
|
SELECT "3_dart_average" FROM "statistics" WHERE "high_checkout"=112; |
## Task
Generate a SQL query to answer the following question:
`What is the 3-dart average with a high checkout of 112?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"player" text,
"played" real,
"legs_won" real,
"legs_lost" real,
"lwat" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 3-dart average with a high checkout of 112?`:
```sql
|
SELECT MIN("high_checkout") FROM "statistics" WHERE "played"=2 AND "100"=36; |
## Task
Generate a SQL query to answer the following question:
`What is the high checkout when played is 2 and 36 is 100+?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"player" text,
"played" real,
"legs_won" real,
"legs_lost" real,
"lwat" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the high checkout when played is 2 and 36 is 100+?`:
```sql
|
SELECT MAX("180s") FROM "statistics" WHERE "legs_won"=45; |
## Task
Generate a SQL query to answer the following question:
`How many 180s have legs won of 45?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"player" text,
"played" real,
"legs_won" real,
"legs_lost" real,
"lwat" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many 180s have legs won of 45?`:
```sql
|
SELECT "legs_won" FROM "statistics" WHERE "3_dart_average"='95.29'; |
## Task
Generate a SQL query to answer the following question:
`How many legs won have 95.29 as a 3-dart average?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"player" text,
"played" real,
"legs_won" real,
"legs_lost" real,
"lwat" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many legs won have 95.29 as a 3-dart average?`:
```sql
|
SELECT COUNT("touchdowns") FROM "2003_fed_ex_ground_winners" WHERE "yards"=145; |
## Task
Generate a SQL query to answer the following question:
`The player who had 145 yards had how many touchdowns?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003_fed_ex_ground_winners" (
"week" real,
"player" text,
"team" text,
"opponent" text,
"carries" real,
"yards" real,
"average" text,
"touchdowns" real
);
### SQL
Given the database schema, here is the SQL query that answers `The player who had 145 yards had how many touchdowns?`:
```sql
|
SELECT "team" FROM "2003_fed_ex_ground_winners" WHERE "carries"=27; |
## Task
Generate a SQL query to answer the following question:
`Which team did the player have who had 27 total carries?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003_fed_ex_ground_winners" (
"week" real,
"player" text,
"team" text,
"opponent" text,
"carries" real,
"yards" real,
"average" text,
"touchdowns" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team did the player have who had 27 total carries?`:
```sql
|
SELECT "opponent" FROM "2003_fed_ex_ground_winners" WHERE "week"=12; |
## Task
Generate a SQL query to answer the following question:
`What was the player's team's opponent for Week 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003_fed_ex_ground_winners" (
"week" real,
"player" text,
"team" text,
"opponent" text,
"carries" real,
"yards" real,
"average" text,
"touchdowns" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the player's team's opponent for Week 12?`:
```sql
|
SELECT "directed_by" FROM "table1_20967430_4" WHERE "original_air_date"='March 18, 1988'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode that originally aired on March 18, 1988?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20967430_4" (
"ep" real,
"season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode that originally aired on March 18, 1988?`:
```sql
|
SELECT MIN("ep") FROM "table1_20967430_4" WHERE "directed_by"='Don Corvan' AND "title"='\"Graduation\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the episode number in the series for "graduation" that was directed by Don Corvan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20967430_4" (
"ep" real,
"season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the episode number in the series for "graduation" that was directed by Don Corvan?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.