output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "race" FROM "2000_01_season_as_a_five_year_old" WHERE "weight_kg"='55' AND "winner_2nd"='1st - Jim And Tonic'; |
## Task
Generate a SQL query to answer the following question:
`In what race was the weight in kg 55 and the winner/2nd 1st - Jim and Tonic?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000_01_season_as_a_five_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"jockey" text,
"winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what race was the weight in kg 55 and the winner/2nd 1st - Jim and Tonic?`:
```sql
|
SELECT "distance" FROM "2000_01_season_as_a_five_year_old" WHERE "race"='Manikato Stakes'; |
## Task
Generate a SQL query to answer the following question:
`What was the distance in the Manikato Stakes race?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000_01_season_as_a_five_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"jockey" text,
"winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the distance in the Manikato Stakes race?`:
```sql
|
SELECT "distance" FROM "2000_01_season_as_a_five_year_old" WHERE "weight_kg"='56' AND "winner_2nd"='2nd - Fritz'; |
## Task
Generate a SQL query to answer the following question:
`What was the distance in the race where the weight in kg was 56 and the winner/2nd was 2nd - Fritz?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000_01_season_as_a_five_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"jockey" text,
"winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the distance in the race where the weight in kg was 56 and the winner/2nd was 2nd - Fritz?`:
```sql
|
SELECT "date" FROM "2001_02_season_as_a_six_year_old" WHERE "race"='Doncaster'; |
## Task
Generate a SQL query to answer the following question:
`What date was the Doncaster race? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2001_02_season_as_a_six_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"jockey" text,
"winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the Doncaster race? `:
```sql
|
SELECT "air_date" FROM "series_1" WHERE "team_guest_captain"='John Bishop'; |
## Task
Generate a SQL query to answer the following question:
`What was the air date when the team guest captain was john bishop?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1" (
"episode" real,
"air_date" text,
"team_swash" text,
"team_guest_captain" text,
"team_coxy" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the air date when the team guest captain was john bishop?`:
```sql
|
SELECT "team_guest_captain" FROM "series_1" WHERE "episode"=2; |
## Task
Generate a SQL query to answer the following question:
`Who was the team guest captain for episode 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1" (
"episode" real,
"air_date" text,
"team_swash" text,
"team_guest_captain" text,
"team_coxy" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the team guest captain for episode 2?`:
```sql
|
SELECT "team_swash" FROM "series_1" WHERE "team_guest_captain"='Gail Porter'; |
## Task
Generate a SQL query to answer the following question:
`Who was the team swash when the team guest captain was gail porter?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1" (
"episode" real,
"air_date" text,
"team_swash" text,
"team_guest_captain" text,
"team_coxy" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the team swash when the team guest captain was gail porter?`:
```sql
|
SELECT COUNT("team_coxy") FROM "series_1" WHERE "air_date"='24 January 2010' AND "team_guest_captain"='Gail Porter'; |
## Task
Generate a SQL query to answer the following question:
`How many entries are there for team coxy for the air date of 24 january 2010 and team guest captain of gail porter?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1" (
"episode" real,
"air_date" text,
"team_swash" text,
"team_guest_captain" text,
"team_coxy" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many entries are there for team coxy for the air date of 24 january 2010 and team guest captain of gail porter?`:
```sql
|
SELECT COUNT("air_date") FROM "series_1" WHERE "team_guest_captain"='Stephen K Amos'; |
## Task
Generate a SQL query to answer the following question:
`How many entries are shown for an air date when the team guest captain was stephen k amos?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1" (
"episode" real,
"air_date" text,
"team_swash" text,
"team_guest_captain" text,
"team_coxy" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many entries are shown for an air date when the team guest captain was stephen k amos?`:
```sql
|
SELECT "group" FROM "1998_99_season_as_a_three_year_old" WHERE "venue"='Moonee Valley'; |
## Task
Generate a SQL query to answer the following question:
`What group was sunline in when he was at moonee valley?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1998_99_season_as_a_three_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"jockey" text,
"winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What group was sunline in when he was at moonee valley?`:
```sql
|
SELECT "win_loss" FROM "men" WHERE "nationality"='Switzerland'; |
## Task
Generate a SQL query to answer the following question:
`What was the win-loss record for the player from Switzerland? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"player" text,
"nationality" text,
"finals" real,
"win_loss" text,
"year_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the win-loss record for the player from Switzerland? `:
```sql
|
SELECT "win_loss" FROM "table1_25820584_7" WHERE "year_s"='1969'; |
## Task
Generate a SQL query to answer the following question:
`What was the win loss record the lady who appeard in 1969?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25820584_7" (
"player" text,
"nationality" text,
"finals" real,
"win_loss" text,
"year_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the win loss record the lady who appeard in 1969?`:
```sql
|
SELECT "player" FROM "table1_25820584_7" WHERE "year_s"='1969'; |
## Task
Generate a SQL query to answer the following question:
`What player(s) appeared in 1969?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25820584_7" (
"player" text,
"nationality" text,
"finals" real,
"win_loss" text,
"year_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player(s) appeared in 1969?`:
```sql
|
SELECT "name" FROM "final_results" WHERE "nationality"='Norway'; |
## Task
Generate a SQL query to answer the following question:
`Name the name for norway nationality`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_results" (
"position" text,
"name" text,
"nationality" text,
"event_1_super_yoke" text,
"event_2_power_stairs" text,
"event_3_car_lift" text,
"event_4_farmers_walk" text,
"event_5_truck_pull" text,
"event_6_fingals_fingers" text,
"event_7_atlas_stones" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the name for norway nationality`:
```sql
|
SELECT MIN("series_num") FROM "table1_25830834_2" WHERE "title"='\"Tanarak\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the series # of "tanarak"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25830834_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the series # of "tanarak"?`:
```sql
|
SELECT "written_by" FROM "table1_25830834_2" WHERE "production_code"='2J5153'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode with the production code 2j5153?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25830834_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode with the production code 2j5153?`:
```sql
|
SELECT "filter" FROM "observations_made_of_the_hdf_s_with_the_" WHERE "wavelength"='222mm (K-band)'; |
## Task
Generate a SQL query to answer the following question:
`what is the filter when the wavelength is 222mm (k-band)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "observations_made_of_the_hdf_s_with_the_" (
"camera" text,
"filter" text,
"wavelength" text,
"total_exposure_time" text,
"exposures" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the filter when the wavelength is 222mm (k-band)?`:
```sql
|
SELECT COUNT("camera") FROM "observations_made_of_the_hdf_s_with_the_" WHERE "exposures"=53; |
## Task
Generate a SQL query to answer the following question:
`how many times was the exposures 53?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "observations_made_of_the_hdf_s_with_the_" (
"camera" text,
"filter" text,
"wavelength" text,
"total_exposure_time" text,
"exposures" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many times was the exposures 53?`:
```sql
|
SELECT "exposures" FROM "observations_made_of_the_hdf_s_with_the_" WHERE "total_exposure_time"='105,000s'; |
## Task
Generate a SQL query to answer the following question:
`how many exposures where there when the total exposure time is 105,000s?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "observations_made_of_the_hdf_s_with_the_" (
"camera" text,
"filter" text,
"wavelength" text,
"total_exposure_time" text,
"exposures" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many exposures where there when the total exposure time is 105,000s?`:
```sql
|
SELECT "camera" FROM "observations_made_of_the_hdf_s_with_the_" WHERE "wavelength"='814nm (I-band)'; |
## Task
Generate a SQL query to answer the following question:
`what is the camera used when the wavelength is 814nm (i-band)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "observations_made_of_the_hdf_s_with_the_" (
"camera" text,
"filter" text,
"wavelength" text,
"total_exposure_time" text,
"exposures" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the camera used when the wavelength is 814nm (i-band)?`:
```sql
|
SELECT "director" FROM "table1_2582519_6" WHERE "title"='\"New Girls\"'; |
## Task
Generate a SQL query to answer the following question:
`Who is the director of "new girls"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2582519_6" (
"total_num" real,
"series_num" real,
"title" text,
"director" text,
"writer_s" text,
"original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director of "new girls"?`:
```sql
|
SELECT "title" FROM "table1_2582519_6" WHERE "director"='Paul Annett'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the show with director Paul Annett?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2582519_6" (
"total_num" real,
"series_num" real,
"title" text,
"director" text,
"writer_s" text,
"original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the show with director Paul Annett?`:
```sql
|
SELECT "titles" FROM "2013" WHERE "notes"='Undercard of Stevenson/Bellew'; |
## Task
Generate a SQL query to answer the following question:
`What was the title for the Undercard of Stevenson/Bellew?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013" (
"date" text,
"location" text,
"fight" text,
"division" text,
"titles" text,
"rematch" text,
"tv" text,
"promoter" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the title for the Undercard of Stevenson/Bellew?`:
```sql
|
SELECT "titles" FROM "2013" WHERE "date"='November 9' AND "division"='Super Bantamweight'; |
## Task
Generate a SQL query to answer the following question:
`What are the titles for the November 9 Super Bantamweight division?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013" (
"date" text,
"location" text,
"fight" text,
"division" text,
"titles" text,
"rematch" text,
"tv" text,
"promoter" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the titles for the November 9 Super Bantamweight division?`:
```sql
|
SELECT COUNT("notes") FROM "2013" WHERE "fight"='Devon Alexander vs. Shawn Porter'; |
## Task
Generate a SQL query to answer the following question:
`How many notes are there for the Devon Alexander vs. Shawn Porter fight?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013" (
"date" text,
"location" text,
"fight" text,
"division" text,
"titles" text,
"rematch" text,
"tv" text,
"promoter" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many notes are there for the Devon Alexander vs. Shawn Porter fight?`:
```sql
|
SELECT "division" FROM "2013" WHERE "tv"='HBO PPV'; |
## Task
Generate a SQL query to answer the following question:
`What division was on HBO PPV?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013" (
"date" text,
"location" text,
"fight" text,
"division" text,
"titles" text,
"rematch" text,
"tv" text,
"promoter" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What division was on HBO PPV?`:
```sql
|
SELECT "location" FROM "2013" WHERE "notes"='Undercard of Stevenson/Bellew'; |
## Task
Generate a SQL query to answer the following question:
`Where was the Undercard of Stevenson/Bellew?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013" (
"date" text,
"location" text,
"fight" text,
"division" text,
"titles" text,
"rematch" text,
"tv" text,
"promoter" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the Undercard of Stevenson/Bellew?`:
```sql
|
SELECT COUNT("division") FROM "2013" WHERE "location"='Verona, USA'; |
## Task
Generate a SQL query to answer the following question:
`What was the division number for Verona, USA?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013" (
"date" text,
"location" text,
"fight" text,
"division" text,
"titles" text,
"rematch" text,
"tv" text,
"promoter" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the division number for Verona, USA?`:
```sql
|
SELECT "cvt_hd" FROM "table1_25839957_5" WHERE "market"='Mobile'; |
## Task
Generate a SQL query to answer the following question:
`What mobile markets have cvt hd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25839957_5" (
"graphics" text,
"launch" real,
"market" text,
"cpu" text,
"code_name" text,
"device_id" real,
"core_clock_m_hz" text,
"execution_units" real,
"shader_model" text,
"direct_x" text,
"open_gl" text,
"open_cl" text,
"memory_bandwidth_gb_s" text,
"dvmt_mb" real,
"cvt_hd" text,
"qsv" text
);
### SQL
Given the database schema, here is the SQL query that answers `What mobile markets have cvt hd?`:
```sql
|
SELECT COUNT("open_gl") FROM "table1_25839957_5" WHERE "code_name"='Ironlake ( Clarkdale )'; |
## Task
Generate a SQL query to answer the following question:
`How many opengl have the ironlake ( clarkdale ) code name?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25839957_5" (
"graphics" text,
"launch" real,
"market" text,
"cpu" text,
"code_name" text,
"device_id" real,
"core_clock_m_hz" text,
"execution_units" real,
"shader_model" text,
"direct_x" text,
"open_gl" text,
"open_cl" text,
"memory_bandwidth_gb_s" text,
"dvmt_mb" real,
"cvt_hd" text,
"qsv" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many opengl have the ironlake ( clarkdale ) code name?`:
```sql
|
SELECT "core_clock_m_hz" FROM "table1_25839957_5" WHERE "memory_bandwidth_gb_s"='21.3'; |
## Task
Generate a SQL query to answer the following question:
`What core clocks ( mhz ) have a 21.3 memory bandwidth ( gb/s )?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25839957_5" (
"graphics" text,
"launch" real,
"market" text,
"cpu" text,
"code_name" text,
"device_id" real,
"core_clock_m_hz" text,
"execution_units" real,
"shader_model" text,
"direct_x" text,
"open_gl" text,
"open_cl" text,
"memory_bandwidth_gb_s" text,
"dvmt_mb" real,
"cvt_hd" text,
"qsv" text
);
### SQL
Given the database schema, here is the SQL query that answers `What core clocks ( mhz ) have a 21.3 memory bandwidth ( gb/s )?`:
```sql
|
SELECT MIN("execution_units") FROM "table1_25839957_5"; |
## Task
Generate a SQL query to answer the following question:
`What's the minimum number of execution units?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25839957_5" (
"graphics" text,
"launch" real,
"market" text,
"cpu" text,
"code_name" text,
"device_id" real,
"core_clock_m_hz" text,
"execution_units" real,
"shader_model" text,
"direct_x" text,
"open_gl" text,
"open_cl" text,
"memory_bandwidth_gb_s" text,
"dvmt_mb" real,
"cvt_hd" text,
"qsv" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the minimum number of execution units?`:
```sql
|
SELECT COUNT("shader_model") FROM "table1_25839957_5" WHERE "core_clock_m_hz"='900'; |
## Task
Generate a SQL query to answer the following question:
`How many shader models have a 900 core clock ( mhz )?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25839957_5" (
"graphics" text,
"launch" real,
"market" text,
"cpu" text,
"code_name" text,
"device_id" real,
"core_clock_m_hz" text,
"execution_units" real,
"shader_model" text,
"direct_x" text,
"open_gl" text,
"open_cl" text,
"memory_bandwidth_gb_s" text,
"dvmt_mb" real,
"cvt_hd" text,
"qsv" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many shader models have a 900 core clock ( mhz )?`:
```sql
|
SELECT MAX("population_2000_census") FROM "table1_2588674_1" WHERE "area_km"='2.33'; |
## Task
Generate a SQL query to answer the following question:
`What is the population for the place with an area of 2.33 km2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2588674_1" (
"village" text,
"area_km" text,
"population_2000_census" real,
"region" text,
"pop_density" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population for the place with an area of 2.33 km2?`:
```sql
|
SELECT COUNT("region") FROM "table1_2588674_1" WHERE "village"='Asan-Maina'; |
## Task
Generate a SQL query to answer the following question:
`How many places named asan-maina?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2588674_1" (
"village" text,
"area_km" text,
"population_2000_census" real,
"region" text,
"pop_density" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many places named asan-maina?`:
```sql
|
SELECT COUNT("region") FROM "table1_2588674_1" WHERE "village"='Mongmong-Toto-Maite'; |
## Task
Generate a SQL query to answer the following question:
`How many places named mongmong-toto-maite?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2588674_1" (
"village" text,
"area_km" text,
"population_2000_census" real,
"region" text,
"pop_density" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many places named mongmong-toto-maite?`:
```sql
|
SELECT MIN("pop_density") FROM "table1_2588674_1" WHERE "village"='Mongmong-Toto-Maite'; |
## Task
Generate a SQL query to answer the following question:
`What is the population density of mongmong-toto-maite?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2588674_1" (
"village" text,
"area_km" text,
"population_2000_census" real,
"region" text,
"pop_density" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population density of mongmong-toto-maite?`:
```sql
|
SELECT "village" FROM "table1_2588674_1" WHERE "area_km"='27.19'; |
## Task
Generate a SQL query to answer the following question:
`What village has an area of 27.19 km2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2588674_1" (
"village" text,
"area_km" text,
"population_2000_census" real,
"region" text,
"pop_density" real
);
### SQL
Given the database schema, here is the SQL query that answers `What village has an area of 27.19 km2?`:
```sql
|
SELECT "region" FROM "table1_2588674_1" WHERE "village"='Inarajan'; |
## Task
Generate a SQL query to answer the following question:
`What region is inarajan in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2588674_1" (
"village" text,
"area_km" text,
"population_2000_census" real,
"region" text,
"pop_density" real
);
### SQL
Given the database schema, here is the SQL query that answers `What region is inarajan in?`:
```sql
|
SELECT MAX("pos") FROM "relegation" WHERE "avg"='1.8529'; |
## Task
Generate a SQL query to answer the following question:
`How many POS when the average is 1.8529?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"pos" real,
"team" text,
"07_a_pts" real,
"08_c_pts" real,
"08_a_pts" real,
"09_c_pts" real,
"09_a_pts" real,
"10_c_pts" real,
"total_pts" real,
"total_pld" real,
"avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many POS when the average is 1.8529?`:
```sql
|
SELECT MAX("07_a_pts") FROM "relegation" WHERE "avg"='1.4902'; |
## Task
Generate a SQL query to answer the following question:
`How many 07 A points for the team with 1.4902 average?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"pos" real,
"team" text,
"07_a_pts" real,
"08_c_pts" real,
"08_a_pts" real,
"09_c_pts" real,
"09_a_pts" real,
"10_c_pts" real,
"total_pts" real,
"total_pld" real,
"avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many 07 A points for the team with 1.4902 average?`:
```sql
|
SELECT COUNT("08_a_pts") FROM "relegation" WHERE "avg"='1.1863'; |
## Task
Generate a SQL query to answer the following question:
`How many figures for 08 A points for the team with 1.1863 average?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"pos" real,
"team" text,
"07_a_pts" real,
"08_c_pts" real,
"08_a_pts" real,
"09_c_pts" real,
"09_a_pts" real,
"10_c_pts" real,
"total_pts" real,
"total_pld" real,
"avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many figures for 08 A points for the team with 1.1863 average?`:
```sql
|
SELECT MAX("10_c_pts") FROM "relegation" WHERE "total_pts"=39; |
## Task
Generate a SQL query to answer the following question:
`What is the largest number of 10 C points for a team with 39 total points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"pos" real,
"team" text,
"07_a_pts" real,
"08_c_pts" real,
"08_a_pts" real,
"09_c_pts" real,
"09_a_pts" real,
"10_c_pts" real,
"total_pts" real,
"total_pld" real,
"avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number of 10 C points for a team with 39 total points?`:
```sql
|
SELECT "directed_by" FROM "table1_25851971_1" WHERE "u_s_viewers_million"='4.82'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode with 4.82 million U.S. viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25851971_1" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode with 4.82 million U.S. viewers?`:
```sql
|
SELECT "directed_by" FROM "table1_25851971_1" WHERE "production_code"='2J5457'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode that had a production code of 2j5457?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25851971_1" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode that had a production code of 2j5457?`:
```sql
|
SELECT MIN("no") FROM "table1_25851971_1" WHERE "written_by"='Anthony Sparks'; |
## Task
Generate a SQL query to answer the following question:
`What episode number was written by Anthony Sparks?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25851971_1" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number was written by Anthony Sparks?`:
```sql
|
SELECT "production_code" FROM "table1_25851971_1" WHERE "written_by"='Anthony Sparks'; |
## Task
Generate a SQL query to answer the following question:
`What was the production code of the episode written by Anthony Sparks?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25851971_1" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the production code of the episode written by Anthony Sparks?`:
```sql
|
SELECT MAX("no") FROM "table1_25851971_1" WHERE "written_by"='Karin Gist'; |
## Task
Generate a SQL query to answer the following question:
`What episode number was written by Karin Gist?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25851971_1" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number was written by Karin Gist?`:
```sql
|
SELECT "leader_battle" FROM "table1_25920798_2" WHERE "vote"='4-3'; |
## Task
Generate a SQL query to answer the following question:
`Name the leader battle for 4-3 vote`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25920798_2" (
"episode" real,
"reward" text,
"leader_battle" text,
"immunity" text,
"individual_immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the leader battle for 4-3 vote`:
```sql
|
SELECT "finish" FROM "table1_25920798_2" WHERE "vote"='4-4'; |
## Task
Generate a SQL query to answer the following question:
`Name the finish for 4-4`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25920798_2" (
"episode" real,
"reward" text,
"leader_battle" text,
"immunity" text,
"individual_immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the finish for 4-4`:
```sql
|
SELECT "eliminated" FROM "table1_25920798_2" WHERE "finish"='Left Day 9'; |
## Task
Generate a SQL query to answer the following question:
`Name the left day 9 finish for eliminated`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25920798_2" (
"episode" real,
"reward" text,
"leader_battle" text,
"immunity" text,
"individual_immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the left day 9 finish for eliminated`:
```sql
|
SELECT "leader_battle" FROM "table1_25920798_2" WHERE "eliminated"='Plamen'; |
## Task
Generate a SQL query to answer the following question:
`Name the leader battle for plamen`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25920798_2" (
"episode" real,
"reward" text,
"leader_battle" text,
"immunity" text,
"individual_immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the leader battle for plamen`:
```sql
|
SELECT "institution" FROM "member_schools" WHERE "women"='Lady Saints'; |
## Task
Generate a SQL query to answer the following question:
`What institution is represented by the lady saints?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "member_schools" (
"institution" text,
"seniors" text,
"juniors" text,
"women" text,
"status" text,
"founded" real,
"affiliation_population" text,
"color" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What institution is represented by the lady saints?`:
```sql
|
SELECT "status" FROM "member_schools" WHERE "juniors"='Baby Olympians'; |
## Task
Generate a SQL query to answer the following question:
`What status of school is the school represented by the baby olympians?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "member_schools" (
"institution" text,
"seniors" text,
"juniors" text,
"women" text,
"status" text,
"founded" real,
"affiliation_population" text,
"color" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What status of school is the school represented by the baby olympians?`:
```sql
|
SELECT MAX("founded") FROM "member_schools" WHERE "color"='Green and White'; |
## Task
Generate a SQL query to answer the following question:
`What year was the school with green and white colors founded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "member_schools" (
"institution" text,
"seniors" text,
"juniors" text,
"women" text,
"status" text,
"founded" real,
"affiliation_population" text,
"color" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the school with green and white colors founded?`:
```sql
|
SELECT "status" FROM "member_schools" WHERE "institution"='Informatics International College'; |
## Task
Generate a SQL query to answer the following question:
`What status of school is informatics international college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "member_schools" (
"institution" text,
"seniors" text,
"juniors" text,
"women" text,
"status" text,
"founded" real,
"affiliation_population" text,
"color" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What status of school is informatics international college?`:
```sql
|
SELECT COUNT("denominations_gold_weight") FROM "table1_2592308_1" WHERE "country"='Austria'; |
## Task
Generate a SQL query to answer the following question:
`How many catagories for denominations does Austria have? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2592308_1" (
"country" text,
"name_of_bullion_coin" text,
"fineness" text,
"denominations_gold_weight" text,
"years_of_mintage" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many catagories for denominations does Austria have? `:
```sql
|
SELECT "denominations_gold_weight" FROM "table1_2592308_1" WHERE "country"='China'; |
## Task
Generate a SQL query to answer the following question:
`What are all the denominations for China?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2592308_1" (
"country" text,
"name_of_bullion_coin" text,
"fineness" text,
"denominations_gold_weight" text,
"years_of_mintage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the denominations for China?`:
```sql
|
SELECT "name_of_award" FROM "table1_25926120_7" WHERE "name_of_film"='Sana Keithel'; |
## Task
Generate a SQL query to answer the following question:
`what is the name of award when the name of film is sana keithel?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25926120_7" (
"name_of_award" text,
"name_of_film" text,
"language" text,
"awardee_s" text,
"cash_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name of award when the name of film is sana keithel?`:
```sql
|
SELECT "name_of_award" FROM "table1_25926120_7" WHERE "awardee_s"='Elangbam Natasha'; |
## Task
Generate a SQL query to answer the following question:
`what is the name of award when the awardee(s) is elangbam natasha?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25926120_7" (
"name_of_award" text,
"name_of_film" text,
"language" text,
"awardee_s" text,
"cash_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name of award when the awardee(s) is elangbam natasha?`:
```sql
|
SELECT COUNT("cash_prize") FROM "table1_25926120_7" WHERE "name_of_film"='Narmeen'; |
## Task
Generate a SQL query to answer the following question:
`how many times is the name of film narmeen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25926120_7" (
"name_of_award" text,
"name_of_film" text,
"language" text,
"awardee_s" text,
"cash_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is the name of film narmeen?`:
```sql
|
SELECT "language" FROM "table1_25926120_7" WHERE "name_of_award"='Best Editing'; |
## Task
Generate a SQL query to answer the following question:
`what is the language when the name of award is best editing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25926120_7" (
"name_of_award" text,
"name_of_film" text,
"language" text,
"awardee_s" text,
"cash_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the language when the name of award is best editing?`:
```sql
|
SELECT "awardee_s" FROM "table1_25926120_7" WHERE "name_of_award"='Best Agricultural Film'; |
## Task
Generate a SQL query to answer the following question:
`who are the awardees when the name of award is best agricultural film?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25926120_7" (
"name_of_award" text,
"name_of_film" text,
"language" text,
"awardee_s" text,
"cash_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `who are the awardees when the name of award is best agricultural film?`:
```sql
|
SELECT "language" FROM "table1_25926120_7" WHERE "awardee_s"='Re-recordist : Mateen Ahmad'; |
## Task
Generate a SQL query to answer the following question:
`what is the language when the awardee is re-recordist : mateen ahmad?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25926120_7" (
"name_of_award" text,
"name_of_film" text,
"language" text,
"awardee_s" text,
"cash_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the language when the awardee is re-recordist : mateen ahmad?`:
```sql
|
SELECT MAX("jews_and_others_1") FROM "table1_25947046_1"; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Jews and others 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25947046_1" (
"metropolitan_ring" text,
"localities" real,
"total" real,
"jews_and_others_1" real,
"thereof_jews" real,
"arabs" real,
"population_density_per_km" text,
"annual_population_growth_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Jews and others 1?`:
```sql
|
SELECT MIN("jews_and_others_1") FROM "table1_25947046_1" WHERE "localities"=11; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest jews and others 1 for the localities 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25947046_1" (
"metropolitan_ring" text,
"localities" real,
"total" real,
"jews_and_others_1" real,
"thereof_jews" real,
"arabs" real,
"population_density_per_km" text,
"annual_population_growth_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest jews and others 1 for the localities 11?`:
```sql
|
SELECT "arabs" FROM "table1_25947046_1" WHERE "annual_population_growth_rate"='1.7%'; |
## Task
Generate a SQL query to answer the following question:
`What is the arabs when the annual population growth rate is 1.7%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25947046_1" (
"metropolitan_ring" text,
"localities" real,
"total" real,
"jews_and_others_1" real,
"thereof_jews" real,
"arabs" real,
"population_density_per_km" text,
"annual_population_growth_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the arabs when the annual population growth rate is 1.7%?`:
```sql
|
SELECT MIN("total") FROM "table1_25947046_1" WHERE "arabs"=4000; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest total when arabs is 4000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25947046_1" (
"metropolitan_ring" text,
"localities" real,
"total" real,
"jews_and_others_1" real,
"thereof_jews" real,
"arabs" real,
"population_density_per_km" text,
"annual_population_growth_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest total when arabs is 4000?`:
```sql
|
SELECT "awardee_s" FROM "table1_25926120_3" WHERE "name_of_award"='Best Actress'; |
## Task
Generate a SQL query to answer the following question:
`Who won best actress?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25926120_3" (
"name_of_award" text,
"name_of_film" text,
"language" text,
"awardee_s" text,
"cash_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won best actress?`:
```sql
|
SELECT COUNT("cash_prize") FROM "table1_25926120_3" WHERE "language"='Hindi' AND "name_of_film"='Jodhaa Akbar'; |
## Task
Generate a SQL query to answer the following question:
`How many cash prizes were given for the hindi language film jodhaa akbar?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25926120_3" (
"name_of_award" text,
"name_of_film" text,
"language" text,
"awardee_s" text,
"cash_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many cash prizes were given for the hindi language film jodhaa akbar?`:
```sql
|
SELECT COUNT("name_of_film") FROM "table1_25926120_3" WHERE "language"='Hindi'; |
## Task
Generate a SQL query to answer the following question:
`How many films were in hindi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25926120_3" (
"name_of_award" text,
"name_of_film" text,
"language" text,
"awardee_s" text,
"cash_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many films were in hindi?`:
```sql
|
SELECT COUNT("name_of_film") FROM "table1_25926120_3" WHERE "language"='Assamese'; |
## Task
Generate a SQL query to answer the following question:
`How many films were in assamese?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25926120_3" (
"name_of_award" text,
"name_of_film" text,
"language" text,
"awardee_s" text,
"cash_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many films were in assamese?`:
```sql
|
SELECT "awardee_s" FROM "table1_25926120_3" WHERE "name_of_award"='Best Actor'; |
## Task
Generate a SQL query to answer the following question:
`Who won best actor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25926120_3" (
"name_of_award" text,
"name_of_film" text,
"language" text,
"awardee_s" text,
"cash_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won best actor?`:
```sql
|
SELECT "winner" FROM "tournament_results" WHERE "date"='Jan 24'; |
## Task
Generate a SQL query to answer the following question:
`Name the winner for jan 24`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winner for jan 24`:
```sql
|
SELECT COUNT("date") FROM "tournament_results" WHERE "tournament"='Toshiba Classic'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of dates for toshiba classic`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of dates for toshiba classic`:
```sql
|
SELECT "tournament" FROM "tournament_results" WHERE "location"='Dominican Republic'; |
## Task
Generate a SQL query to answer the following question:
`Name the tournament for dominican republic`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the tournament for dominican republic`:
```sql
|
SELECT COUNT("winner") FROM "tournament_results" WHERE "tournament"='Allianz Championship'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of winners for allianz championship`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of winners for allianz championship`:
```sql
|
SELECT "1st_prize" FROM "tournament_results" WHERE "tournament"='Senior PGA Championship'; |
## Task
Generate a SQL query to answer the following question:
`Name the 1st prize for senior pga championship`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 1st prize for senior pga championship`:
```sql
|
SELECT "place" FROM "list_of_contestants" WHERE "aggregate"=35; |
## Task
Generate a SQL query to answer the following question:
`What was the place for the celebrity whose aggregate was 35? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_contestants" (
"celebrity" text,
"known_for" text,
"age" real,
"professional" text,
"series" real,
"place" text,
"dances" real,
"highest_score" real,
"lowest_score" real,
"aggregate" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the place for the celebrity whose aggregate was 35? `:
```sql
|
SELECT MIN("dances") FROM "list_of_contestants" WHERE "celebrity"='John Barnes'; |
## Task
Generate a SQL query to answer the following question:
`How many dances did John Barnes have? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_contestants" (
"celebrity" text,
"known_for" text,
"age" real,
"professional" text,
"series" real,
"place" text,
"dances" real,
"highest_score" real,
"lowest_score" real,
"aggregate" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many dances did John Barnes have? `:
```sql
|
SELECT MAX("age") FROM "list_of_contestants" WHERE "aggregate"=402; |
## Task
Generate a SQL query to answer the following question:
`What is the age of the celebrity who had a 402 aggregate? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_contestants" (
"celebrity" text,
"known_for" text,
"age" real,
"professional" text,
"series" real,
"place" text,
"dances" real,
"highest_score" real,
"lowest_score" real,
"aggregate" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the age of the celebrity who had a 402 aggregate? `:
```sql
|
SELECT MAX("aggregate") FROM "list_of_contestants" WHERE "celebrity"='Ricky Groves'; |
## Task
Generate a SQL query to answer the following question:
`What was the aggregate for Ricky Groves?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_contestants" (
"celebrity" text,
"known_for" text,
"age" real,
"professional" text,
"series" real,
"place" text,
"dances" real,
"highest_score" real,
"lowest_score" real,
"aggregate" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the aggregate for Ricky Groves?`:
```sql
|
SELECT "aggregate" FROM "list_of_contestants" WHERE "dances"=7 AND "known_for"='Singer'; |
## Task
Generate a SQL query to answer the following question:
`What was the aggregate for the celebrity who was known for being a singer and had 7 dances?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_contestants" (
"celebrity" text,
"known_for" text,
"age" real,
"professional" text,
"series" real,
"place" text,
"dances" real,
"highest_score" real,
"lowest_score" real,
"aggregate" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the aggregate for the celebrity who was known for being a singer and had 7 dances?`:
```sql
|
SELECT "conditions_of_access" FROM "europe" WHERE "access_using_a_croatian_identity_card"='Yes' AND "length_of_stay_permitted"='Freedom of movement'; |
## Task
Generate a SQL query to answer the following question:
`What are the conditions of access where access using a Croatian identity card is yes and the length of stay permitted is freedom of movement?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "europe" (
"countries_and_territories" text,
"conditions_of_access" text,
"length_of_stay_permitted" text,
"fee_if_applicable" text,
"access_using_a_croatian_identity_card" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the conditions of access where access using a Croatian identity card is yes and the length of stay permitted is freedom of movement?`:
```sql
|
SELECT "access_using_a_croatian_identity_card" FROM "europe" WHERE "countries_and_territories"='Jersey'; |
## Task
Generate a SQL query to answer the following question:
`Can one access the Jersey territory using a Croatian identity card?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "europe" (
"countries_and_territories" text,
"conditions_of_access" text,
"length_of_stay_permitted" text,
"fee_if_applicable" text,
"access_using_a_croatian_identity_card" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can one access the Jersey territory using a Croatian identity card?`:
```sql
|
SELECT "fee_if_applicable" FROM "europe" WHERE "countries_and_territories"='Norway'; |
## Task
Generate a SQL query to answer the following question:
`What is the fee (if applicable) for Norway?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "europe" (
"countries_and_territories" text,
"conditions_of_access" text,
"length_of_stay_permitted" text,
"fee_if_applicable" text,
"access_using_a_croatian_identity_card" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fee (if applicable) for Norway?`:
```sql
|
SELECT "length_of_stay_permitted" FROM "europe" WHERE "countries_and_territories"='Jersey'; |
## Task
Generate a SQL query to answer the following question:
`What is the permitted length of stay in the Jersey territory?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "europe" (
"countries_and_territories" text,
"conditions_of_access" text,
"length_of_stay_permitted" text,
"fee_if_applicable" text,
"access_using_a_croatian_identity_card" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the permitted length of stay in the Jersey territory?`:
```sql
|
SELECT "access_using_a_croatian_identity_card" FROM "europe" WHERE "countries_and_territories"='Faroe Islands'; |
## Task
Generate a SQL query to answer the following question:
`Can one access the Faroe Islands using a Croatian identity card?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "europe" (
"countries_and_territories" text,
"conditions_of_access" text,
"length_of_stay_permitted" text,
"fee_if_applicable" text,
"access_using_a_croatian_identity_card" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can one access the Faroe Islands using a Croatian identity card?`:
```sql
|
SELECT "length_of_stay_permitted" FROM "europe" WHERE "countries_and_territories"='European Union'; |
## Task
Generate a SQL query to answer the following question:
`What length of stay is permitted in the European Union?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "europe" (
"countries_and_territories" text,
"conditions_of_access" text,
"length_of_stay_permitted" text,
"fee_if_applicable" text,
"access_using_a_croatian_identity_card" text
);
### SQL
Given the database schema, here is the SQL query that answers `What length of stay is permitted in the European Union?`:
```sql
|
SELECT "complement" FROM "table1_2596811_12" WHERE "killed"='3 off 37 men'; |
## Task
Generate a SQL query to answer the following question:
`What was the complement for the unit that had 3 off 37 men killed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2596811_12" (
"unit" text,
"commander" text,
"complement" text,
"killed" text,
"wounded" text,
"missing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the complement for the unit that had 3 off 37 men killed?`:
```sql
|
SELECT COUNT("wounded") FROM "table1_2596811_12" WHERE "complement"='22 off 637 men'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of wounded figures associated with a complement of 22 off 637 men?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2596811_12" (
"unit" text,
"commander" text,
"complement" text,
"killed" text,
"wounded" text,
"missing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of wounded figures associated with a complement of 22 off 637 men?`:
```sql
|
SELECT COUNT("commander") FROM "table1_2596811_12" WHERE "killed"='0 off 63 men'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of commanders that had 0 off 63 men killed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2596811_12" (
"unit" text,
"commander" text,
"complement" text,
"killed" text,
"wounded" text,
"missing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of commanders that had 0 off 63 men killed?`:
```sql
|
SELECT "complement" FROM "table1_2596811_12" WHERE "killed"='0 off 3 men' AND "wounded"='0 off 2 men'; |
## Task
Generate a SQL query to answer the following question:
`What was the complement associated with 0 off 3 men killed and 0 off 2 men wounded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2596811_12" (
"unit" text,
"commander" text,
"complement" text,
"killed" text,
"wounded" text,
"missing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the complement associated with 0 off 3 men killed and 0 off 2 men wounded?`:
```sql
|
SELECT COUNT("rainfall_by_depth_mm_year") FROM "key_characteristics_of_the_major_climati" WHERE "infiltration_km_3_year"='9.3'; |
## Task
Generate a SQL query to answer the following question:
`How many regions had rainfall infiltration (km 3/year) of 9.3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "key_characteristics_of_the_major_climati" (
"region" text,
"land_area_km_2" text,
"rainfall_by_depth_mm_year" real,
"rainfall_by_volume_km_3_year" text,
"surface_run_off_km_3_year" text,
"infiltration_km_3_year" text,
"evapotranspiration_km_3_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many regions had rainfall infiltration (km 3/year) of 9.3?`:
```sql
|
SELECT "rainfall_by_volume_km_3_year" FROM "key_characteristics_of_the_major_climati" WHERE "rainfall_by_depth_mm_year"=3527; |
## Task
Generate a SQL query to answer the following question:
`What was the rainfall by volume in Huetar Atlantico where the rainfall depth (mm/year) was 3527?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "key_characteristics_of_the_major_climati" (
"region" text,
"land_area_km_2" text,
"rainfall_by_depth_mm_year" real,
"rainfall_by_volume_km_3_year" text,
"surface_run_off_km_3_year" text,
"infiltration_km_3_year" text,
"evapotranspiration_km_3_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rainfall by volume in Huetar Atlantico where the rainfall depth (mm/year) was 3527?`:
```sql
|
SELECT "rainfall_by_volume_km_3_year" FROM "key_characteristics_of_the_major_climati" WHERE "rainfall_by_depth_mm_year"=2801; |
## Task
Generate a SQL query to answer the following question:
`In Pacifico Central where the rainfall by depth (mm/year) was 2801 what was the rainfall by volume?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "key_characteristics_of_the_major_climati" (
"region" text,
"land_area_km_2" text,
"rainfall_by_depth_mm_year" real,
"rainfall_by_volume_km_3_year" text,
"surface_run_off_km_3_year" text,
"infiltration_km_3_year" text,
"evapotranspiration_km_3_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `In Pacifico Central where the rainfall by depth (mm/year) was 2801 what was the rainfall by volume?`:
```sql
|
SELECT "evapotranspiration_km_3_year" FROM "key_characteristics_of_the_major_climati" WHERE "rainfall_by_volume_km_3_year"='13.2'; |
## Task
Generate a SQL query to answer the following question:
`In the region where the rainfall by volume (km 3 /year) was 13.2, what was the evapotranspiration (km 3 /year)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "key_characteristics_of_the_major_climati" (
"region" text,
"land_area_km_2" text,
"rainfall_by_depth_mm_year" real,
"rainfall_by_volume_km_3_year" text,
"surface_run_off_km_3_year" text,
"infiltration_km_3_year" text,
"evapotranspiration_km_3_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the region where the rainfall by volume (km 3 /year) was 13.2, what was the evapotranspiration (km 3 /year)?`:
```sql
|
SELECT "infiltration_km_3_year" FROM "key_characteristics_of_the_major_climati" WHERE "region"='Central'; |
## Task
Generate a SQL query to answer the following question:
`In the Central region, what was the infiltration (km 3 /year)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "key_characteristics_of_the_major_climati" (
"region" text,
"land_area_km_2" text,
"rainfall_by_depth_mm_year" real,
"rainfall_by_volume_km_3_year" text,
"surface_run_off_km_3_year" text,
"infiltration_km_3_year" text,
"evapotranspiration_km_3_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the Central region, what was the infiltration (km 3 /year)?`:
```sql
|
SELECT "rainfall_by_depth_mm_year" FROM "key_characteristics_of_the_major_climati" WHERE "land_area_km_2"='8,543.2'; |
## Task
Generate a SQL query to answer the following question:
`In the Central region, where the land area (km 2) is 8,543.2, what was the rainfall by depth (mm/year)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "key_characteristics_of_the_major_climati" (
"region" text,
"land_area_km_2" text,
"rainfall_by_depth_mm_year" real,
"rainfall_by_volume_km_3_year" text,
"surface_run_off_km_3_year" text,
"infiltration_km_3_year" text,
"evapotranspiration_km_3_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the Central region, where the land area (km 2) is 8,543.2, what was the rainfall by depth (mm/year)?`:
```sql
|
SELECT MAX("wins") FROM "nascar_sprint_cup_series" WHERE "winnings"='$90,700'; |
## Task
Generate a SQL query to answer the following question:
`How many wins did Parsons have in the year where his winnings were $90,700? `
### 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 `How many wins did Parsons have in the year where his winnings were $90,700? `:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.