output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "team_num2" FROM "third_round" WHERE "team_num1"='Ilisiakos'; |
## Task
Generate a SQL query to answer the following question:
`What's team #2 in the round where team $1 is Ilisiakos?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"team_num1" text,
"agg_score" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's team #2 in the round where team $1 is Ilisiakos?`:
```sql
|
SELECT "team_num2" FROM "third_round" WHERE "team_num1"='Iraklis'; |
## Task
Generate a SQL query to answer the following question:
`What's the team #2 in the round where team #1 is Iraklis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"team_num1" text,
"agg_score" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the team #2 in the round where team #1 is Iraklis?`:
```sql
|
SELECT "1st_leg" FROM "third_round" WHERE "team_num1"='Iraklis'; |
## Task
Generate a SQL query to answer the following question:
`What's the 1st leg result in the round where team #1 is Iraklis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"team_num1" text,
"agg_score" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 1st leg result in the round where team #1 is Iraklis?`:
```sql
|
SELECT "2nd_leg" FROM "third_round" WHERE "team_num2"='Panionios'; |
## Task
Generate a SQL query to answer the following question:
`What's the 2nd leg result in the round where Panionios is team #2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"team_num1" text,
"agg_score" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 2nd leg result in the round where Panionios is team #2?`:
```sql
|
SELECT "2nd_leg" FROM "third_round" WHERE "team_num1"='Iraklis'; |
## Task
Generate a SQL query to answer the following question:
`What's the 2nd leg result in the round where team #1 is Iraklis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"team_num1" text,
"agg_score" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 2nd leg result in the round where team #1 is Iraklis?`:
```sql
|
SELECT MIN("dma") FROM "stations" WHERE "format"='Rhythmic Contemporary'; |
## Task
Generate a SQL query to answer the following question:
`What is the dma when the format is rhythmic contemporary?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"dma" real,
"market" text,
"station" text,
"frequency" text,
"branding" text,
"format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the dma when the format is rhythmic contemporary?`:
```sql
|
SELECT "frequency" FROM "stations" WHERE "station"='WLFV-FM'; |
## Task
Generate a SQL query to answer the following question:
`Which frequency is station wlfv-fm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"dma" real,
"market" text,
"station" text,
"frequency" text,
"branding" text,
"format" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which frequency is station wlfv-fm?`:
```sql
|
SELECT "station" FROM "stations" WHERE "frequency"='107.3'; |
## Task
Generate a SQL query to answer the following question:
`Which station has the frequency of 107.3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"dma" real,
"market" text,
"station" text,
"frequency" text,
"branding" text,
"format" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which station has the frequency of 107.3?`:
```sql
|
SELECT MIN("dma") FROM "stations"; |
## Task
Generate a SQL query to answer the following question:
`What is dma?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"dma" real,
"market" text,
"station" text,
"frequency" text,
"branding" text,
"format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is dma?`:
```sql
|
SELECT "dma" FROM "stations" WHERE "branding"='Big Oldies 107.3' AND "station"='WARV-FM'; |
## Task
Generate a SQL query to answer the following question:
`What is the dma of branding is big oldies 107.3 with the station warv-fm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"dma" real,
"market" text,
"station" text,
"frequency" text,
"branding" text,
"format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the dma of branding is big oldies 107.3 with the station warv-fm?`:
```sql
|
SELECT "branding" FROM "stations" WHERE "format"='Southern Country'; |
## Task
Generate a SQL query to answer the following question:
`Which branding has the format of southern country?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"dma" real,
"market" text,
"station" text,
"frequency" text,
"branding" text,
"format" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which branding has the format of southern country?`:
```sql
|
SELECT COUNT("direction") FROM "fuxi_earlier_heaven" WHERE "personality"='Gentle'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of gentle personalities?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fuxi_earlier_heaven" (
"name" text,
"nature" text,
"season" text,
"personality" text,
"family" text,
"direction" text,
"meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of gentle personalities?`:
```sql
|
SELECT "meaning" FROM "fuxi_earlier_heaven" WHERE "personality"='Gentle'; |
## Task
Generate a SQL query to answer the following question:
`What is the meaning of a gentle personality?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fuxi_earlier_heaven" (
"name" text,
"nature" text,
"season" text,
"personality" text,
"family" text,
"direction" text,
"meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the meaning of a gentle personality?`:
```sql
|
SELECT "family" FROM "fuxi_earlier_heaven" WHERE "personality"='Gentle'; |
## Task
Generate a SQL query to answer the following question:
`Who in the family has a gentle personality?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fuxi_earlier_heaven" (
"name" text,
"nature" text,
"season" text,
"personality" text,
"family" text,
"direction" text,
"meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who in the family has a gentle personality?`:
```sql
|
SELECT "mission_no" FROM "launches" WHERE "alt_name"='1962-F01'; |
## Task
Generate a SQL query to answer the following question:
`Which mission number has alternate name 1962-f01`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "launches" (
"mission_no" text,
"cover_name" text,
"launch_date" text,
"nssdc_id_no" text,
"alt_name" text,
"camera" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which mission number has alternate name 1962-f01`:
```sql
|
SELECT "notes" FROM "launches" WHERE "nssdc_id_no"='1959-002A'; |
## Task
Generate a SQL query to answer the following question:
`What are the notes of the satellite whose nssdc id number is 1959-002a?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "launches" (
"mission_no" text,
"cover_name" text,
"launch_date" text,
"nssdc_id_no" text,
"alt_name" text,
"camera" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes of the satellite whose nssdc id number is 1959-002a?`:
```sql
|
SELECT "alt_name" FROM "launches" WHERE "nssdc_id_no"='1970-054A'; |
## Task
Generate a SQL query to answer the following question:
`What are the alternative name/s of those satellites whose nssdc id number is 1970-054a?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "launches" (
"mission_no" text,
"cover_name" text,
"launch_date" text,
"nssdc_id_no" text,
"alt_name" text,
"camera" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the alternative name/s of those satellites whose nssdc id number is 1970-054a?`:
```sql
|
SELECT "alt_name" FROM "launches" WHERE "notes"='Mission failed. Guidance system failed. No orbit.'; |
## Task
Generate a SQL query to answer the following question:
`What are the alternative names of those satellites where the notes are: mission failed. guidance system failed. no orbit.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "launches" (
"mission_no" text,
"cover_name" text,
"launch_date" text,
"nssdc_id_no" text,
"alt_name" text,
"camera" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the alternative names of those satellites where the notes are: mission failed. guidance system failed. no orbit.`:
```sql
|
SELECT "name" FROM "final_results" WHERE "750m"='46.436'; |
## Task
Generate a SQL query to answer the following question:
`If -750m is 46.436, what is the name of the cyclist? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_results" (
"rank" real,
"race_number" real,
"name" text,
"noc" text,
"250m" text,
"500m" text,
"750m" text,
"1_000m" text
);
### SQL
Given the database schema, here is the SQL query that answers `If -750m is 46.436, what is the name of the cyclist? `:
```sql
|
SELECT "500m" FROM "final_results" WHERE "name"='Theo Bos'; |
## Task
Generate a SQL query to answer the following question:
`What is the -500 number for Theo Bos?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_results" (
"rank" real,
"race_number" real,
"name" text,
"noc" text,
"250m" text,
"500m" text,
"750m" text,
"1_000m" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the -500 number for Theo Bos?`:
```sql
|
SELECT "750m" FROM "final_results" WHERE "250m"='18.852'; |
## Task
Generate a SQL query to answer the following question:
`If the -250m is 18.852, what is the `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_results" (
"rank" real,
"race_number" real,
"name" text,
"noc" text,
"250m" text,
"500m" text,
"750m" text,
"1_000m" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the -250m is 18.852, what is the `:
```sql
|
SELECT MAX("rank") FROM "final_results" WHERE "750m"='45.505'; |
## Task
Generate a SQL query to answer the following question:
`If -750 is 45.505, what is the maximum rank?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_results" (
"rank" real,
"race_number" real,
"name" text,
"noc" text,
"250m" text,
"500m" text,
"750m" text,
"1_000m" text
);
### SQL
Given the database schema, here is the SQL query that answers `If -750 is 45.505, what is the maximum rank?`:
```sql
|
SELECT "region_2" FROM "table1_191591_5" WHERE "number_of_episodes"='25' AND "dvd_title"='Catfights and Brawls'; |
## Task
Generate a SQL query to answer the following question:
`Where are there 25 episodes in Catfights and Brawls?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_191591_5" (
"dvd_title" text,
"number_of_episodes" text,
"region_2" text,
"region_4_au" text,
"region_1_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where are there 25 episodes in Catfights and Brawls?`:
```sql
|
SELECT "missouri" FROM "regional_championship" WHERE "year"=2002; |
## Task
Generate a SQL query to answer the following question:
`Name the missouri for 2002`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regional_championship" (
"year" real,
"iowa" text,
"kansas" text,
"minnesota" text,
"missouri" text,
"nebraska" text,
"north_south_dakota" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the missouri for 2002`:
```sql
|
SELECT MIN("bangladeshi_population") FROM "asian_population_of_london" WHERE "rank"=7; |
## Task
Generate a SQL query to answer the following question:
`How many Bangladeshi citizens are there in the borough ranked at number 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "asian_population_of_london" (
"rank" real,
"london_borough" text,
"indian_population" real,
"pakistani_population" real,
"bangladeshi_population" real,
"chinese_population" real,
"other_asian_population" real,
"total_asian_population" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Bangladeshi citizens are there in the borough ranked at number 7?`:
```sql
|
SELECT "london_borough" FROM "asian_population_of_london" WHERE "pakistani_population"=7797; |
## Task
Generate a SQL query to answer the following question:
`What's the London borough with 7797 Pakistani citizens?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "asian_population_of_london" (
"rank" real,
"london_borough" text,
"indian_population" real,
"pakistani_population" real,
"bangladeshi_population" real,
"chinese_population" real,
"other_asian_population" real,
"total_asian_population" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the London borough with 7797 Pakistani citizens?`:
```sql
|
SELECT COUNT("rank") FROM "asian_population_of_london" WHERE "total_asian_population"=33338; |
## Task
Generate a SQL query to answer the following question:
`How many boroughs with different ranks have a total Asian population of 33338?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "asian_population_of_london" (
"rank" real,
"london_borough" text,
"indian_population" real,
"pakistani_population" real,
"bangladeshi_population" real,
"chinese_population" real,
"other_asian_population" real,
"total_asian_population" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many boroughs with different ranks have a total Asian population of 33338?`:
```sql
|
SELECT "chinese_population" FROM "asian_population_of_london" WHERE "pakistani_population"=26347; |
## Task
Generate a SQL query to answer the following question:
`What's the Chinese population in the borough with 26347 Pakistanis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "asian_population_of_london" (
"rank" real,
"london_borough" text,
"indian_population" real,
"pakistani_population" real,
"bangladeshi_population" real,
"chinese_population" real,
"other_asian_population" real,
"total_asian_population" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Chinese population in the borough with 26347 Pakistanis?`:
```sql
|
SELECT MIN("total_asian_population") FROM "asian_population_of_london" WHERE "chinese_population"=8109; |
## Task
Generate a SQL query to answer the following question:
`How many Asians live in the borough with 8109 Chinese population?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "asian_population_of_london" (
"rank" real,
"london_borough" text,
"indian_population" real,
"pakistani_population" real,
"bangladeshi_population" real,
"chinese_population" real,
"other_asian_population" real,
"total_asian_population" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Asians live in the borough with 8109 Chinese population?`:
```sql
|
SELECT MAX("bangladeshi_population") FROM "asian_population_of_london" WHERE "rank"=14; |
## Task
Generate a SQL query to answer the following question:
`How many Bangladeshi citizens live in the borough ranked at number 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "asian_population_of_london" (
"rank" real,
"london_borough" text,
"indian_population" real,
"pakistani_population" real,
"bangladeshi_population" real,
"chinese_population" real,
"other_asian_population" real,
"total_asian_population" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Bangladeshi citizens live in the borough ranked at number 14?`:
```sql
|
SELECT "africa" FROM "chronology_of_worldwide_membership" WHERE "australia"=94615; |
## Task
Generate a SQL query to answer the following question:
`How many members did Africa have the year that Australia had 94615?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chronology_of_worldwide_membership" (
"year" real,
"worldwide" real,
"africa" real,
"america" real,
"asia" real,
"australia" real,
"europe" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many members did Africa have the year that Australia had 94615?`:
```sql
|
SELECT "europe" FROM "chronology_of_worldwide_membership" WHERE "america"=403892; |
## Task
Generate a SQL query to answer the following question:
`How many members did Europe have the year that America had 403892?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chronology_of_worldwide_membership" (
"year" real,
"worldwide" real,
"africa" real,
"america" real,
"asia" real,
"australia" real,
"europe" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many members did Europe have the year that America had 403892?`:
```sql
|
SELECT MIN("europe") FROM "chronology_of_worldwide_membership" WHERE "africa"=7375139; |
## Task
Generate a SQL query to answer the following question:
`What is the minimum number of members Europe had at the time Africa had 7375139?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chronology_of_worldwide_membership" (
"year" real,
"worldwide" real,
"africa" real,
"america" real,
"asia" real,
"australia" real,
"europe" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum number of members Europe had at the time Africa had 7375139?`:
```sql
|
SELECT MIN("africa") FROM "chronology_of_worldwide_membership" WHERE "year"=2001; |
## Task
Generate a SQL query to answer the following question:
`What is the minimum number of members Africa had in 2001?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chronology_of_worldwide_membership" (
"year" real,
"worldwide" real,
"africa" real,
"america" real,
"asia" real,
"australia" real,
"europe" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum number of members Africa had in 2001?`:
```sql
|
SELECT MAX("europe") FROM "chronology_of_worldwide_membership" WHERE "australia"=94615; |
## Task
Generate a SQL query to answer the following question:
`What is the most members Europe had when Australia had 94615?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chronology_of_worldwide_membership" (
"year" real,
"worldwide" real,
"africa" real,
"america" real,
"asia" real,
"australia" real,
"europe" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most members Europe had when Australia had 94615?`:
```sql
|
SELECT MAX("year") FROM "chronology_of_worldwide_membership" WHERE "europe"=471895; |
## Task
Generate a SQL query to answer the following question:
`What is the latest year that Europe had 471895?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chronology_of_worldwide_membership" (
"year" real,
"worldwide" real,
"africa" real,
"america" real,
"asia" real,
"australia" real,
"europe" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest year that Europe had 471895?`:
```sql
|
SELECT COUNT("bus_width_bit") FROM "table1_19161046_1" WHERE "core_m_hz"=650; |
## Task
Generate a SQL query to answer the following question:
`What's the bus width (in bit) of the model whose core is 650 MHz?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19161046_1" (
"model" text,
"year" text,
"code_name" text,
"fab_nm" real,
"bus_interface" text,
"transistor_count_millions" real,
"memory_max_mi_b" text,
"core_m_hz" real,
"memory_m_hz" text,
"type" text,
"bus_width_bit" real,
"direct_x" text,
"shader_model" text,
"open_gl" text,
"maximum_resolution" text,
"ice_q4_cooling_system" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the bus width (in bit) of the model whose core is 650 MHz?`:
```sql
|
SELECT "direct_x" FROM "table1_19161046_1" WHERE "code_name"='RV770 PRO' AND "core_m_hz">650.0; |
## Task
Generate a SQL query to answer the following question:
`What's the directx of the model with code name RV770 PRO and a core bigger than 650.0 MHz?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19161046_1" (
"model" text,
"year" text,
"code_name" text,
"fab_nm" real,
"bus_interface" text,
"transistor_count_millions" real,
"memory_max_mi_b" text,
"core_m_hz" real,
"memory_m_hz" text,
"type" text,
"bus_width_bit" real,
"direct_x" text,
"shader_model" text,
"open_gl" text,
"maximum_resolution" text,
"ice_q4_cooling_system" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the directx of the model with code name RV770 PRO and a core bigger than 650.0 MHz?`:
```sql
|
SELECT "notes" FROM "table1_19161046_1" WHERE "model"='HIS HD4850 (512MB)'; |
## Task
Generate a SQL query to answer the following question:
`What are the notes recorded for the model HIS HD4850 (512MB)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19161046_1" (
"model" text,
"year" text,
"code_name" text,
"fab_nm" real,
"bus_interface" text,
"transistor_count_millions" real,
"memory_max_mi_b" text,
"core_m_hz" real,
"memory_m_hz" text,
"type" text,
"bus_width_bit" real,
"direct_x" text,
"shader_model" text,
"open_gl" text,
"maximum_resolution" text,
"ice_q4_cooling_system" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes recorded for the model HIS HD4850 (512MB)?`:
```sql
|
SELECT "directed_by" FROM "table1_19161605_2" WHERE "title"='\"Fever\"'; |
## Task
Generate a SQL query to answer the following question:
`Who directed "Fever"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19161605_2" (
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed "Fever"?`:
```sql
|
SELECT "original_air_date" FROM "table1_19161605_2" WHERE "title"='\"Cursed\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the original air date of "Cursed"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19161605_2" (
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date of "Cursed"?`:
```sql
|
SELECT "original_air_date" FROM "table1_19161605_2" WHERE "title"='\"Prophecy\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the original air date of "Prophecy"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19161605_2" (
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date of "Prophecy"?`:
```sql
|
SELECT "written_by" FROM "table1_19161605_2" WHERE "title"='\"Confession\"'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode "Confession"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19161605_2" (
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode "Confession"?`:
```sql
|
SELECT "title" FROM "table1_19161605_2" WHERE "num"=14; |
## Task
Generate a SQL query to answer the following question:
`What is the title of episode number 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19161605_2" (
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of episode number 14?`:
```sql
|
SELECT "current_ratio" FROM "example_data" WHERE "net_worth_to_fixed_assets"=621; |
## Task
Generate a SQL query to answer the following question:
`If the net worth of fixed assets is 621, what is the current ratio?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "example_data" (
"pair_i_d" real,
"survive" real,
"industry" text,
"current_ratio" real,
"quick_ratio" real,
"net_worth_to_fixed_assets" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the net worth of fixed assets is 621, what is the current ratio?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "opponent"='Cleveland'; |
## Task
Generate a SQL query to answer the following question:
`Name the score for opponent of cleveland`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for opponent of cleveland`:
```sql
|
SELECT COUNT("played") FROM "table" WHERE "club"='Featherstone Rovers'; |
## Task
Generate a SQL query to answer the following question:
`Featherstone Rovers club played a total of how many games?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table" (
"position" real,
"club" text,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"pts_for" real,
"pts_agst" real,
"pts_diff" real,
"b_p" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Featherstone Rovers club played a total of how many games?`:
```sql
|
SELECT MIN("lost") FROM "table" WHERE "points"=34; |
## Task
Generate a SQL query to answer the following question:
`How many games were lost when the club got 34 points`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table" (
"position" real,
"club" text,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"pts_for" real,
"pts_agst" real,
"pts_diff" real,
"b_p" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were lost when the club got 34 points`:
```sql
|
SELECT "b_p" FROM "table" WHERE "club"='Halifax'; |
## Task
Generate a SQL query to answer the following question:
`What was the B.P. of club Halifax?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table" (
"position" real,
"club" text,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"pts_for" real,
"pts_agst" real,
"pts_diff" real,
"b_p" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the B.P. of club Halifax?`:
```sql
|
SELECT MIN("year") FROM "women_s_doubles_14_9_titles_5_runner_ups" WHERE "championship"='French Open'; |
## Task
Generate a SQL query to answer the following question:
`What is the first year she played in the french open?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_s_doubles_14_9_titles_5_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first year she played in the french open?`:
```sql
|
SELECT COUNT("opponents") FROM "women_s_doubles_14_9_titles_5_runner_ups" WHERE "score"='6–7(5), 6–2, 6–3'; |
## Task
Generate a SQL query to answer the following question:
`How many times was the score 6–7(5), 6–2, 6–3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_s_doubles_14_9_titles_5_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the score 6–7(5), 6–2, 6–3?`:
```sql
|
SELECT "partner" FROM "mixed_doubles_8_5_titles_3_runner_ups" WHERE "championship"='US Open' AND "outcome"='Runner-up'; |
## Task
Generate a SQL query to answer the following question:
`Who was her partner at the US Open and they were runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_doubles_8_5_titles_3_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was her partner at the US Open and they were runner-up?`:
```sql
|
SELECT "partner" FROM "mixed_doubles_8_5_titles_3_runner_ups" WHERE "outcome"='Runner-up' AND "championship"='US Open'; |
## Task
Generate a SQL query to answer the following question:
`Who was her partner at the US Open and they were runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_doubles_8_5_titles_3_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was her partner at the US Open and they were runner-up?`:
```sql
|
SELECT "partner" FROM "mixed_doubles_8_5_titles_3_runner_ups" WHERE "surface"='Clay'; |
## Task
Generate a SQL query to answer the following question:
`Who did she play with on clay?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_doubles_8_5_titles_3_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did she play with on clay?`:
```sql
|
SELECT COUNT("surface") FROM "mixed_doubles_7_5_titles_2_runner_ups" WHERE "championship"='Australian Open' AND "score_in_the_final"='6–3, 4–6, 11–9'; |
## Task
Generate a SQL query to answer the following question:
`state the number of surface where championship is australian open and score in the final is 6–3, 4–6, 11–9`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_doubles_7_5_titles_2_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `state the number of surface where championship is australian open and score in the final is 6–3, 4–6, 11–9`:
```sql
|
SELECT "championship" FROM "mixed_doubles_7_5_titles_2_runner_ups" WHERE "opponents_in_the_final"='Arantxa Sánchez Vicario Todd Woodbridge'; |
## Task
Generate a SQL query to answer the following question:
`which championship had arantxa sánchez vicario todd woodbridge as opponents in the final `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_doubles_7_5_titles_2_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `which championship had arantxa sánchez vicario todd woodbridge as opponents in the final `:
```sql
|
SELECT "surface" FROM "mixed_doubles_7_5_titles_2_runner_ups" WHERE "score_in_the_final"='6-2, 6-3'; |
## Task
Generate a SQL query to answer the following question:
`what is the surface of the final which had score 6-2, 6-3`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_doubles_7_5_titles_2_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the surface of the final which had score 6-2, 6-3`:
```sql
|
SELECT "year" FROM "mixed_doubles_7_5_titles_2_runner_ups" WHERE "opponents_in_the_final"='Helena Suková Todd Woodbridge'; |
## Task
Generate a SQL query to answer the following question:
`when were helena suková todd woodbridge the opponents in the final`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_doubles_7_5_titles_2_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `when were helena suková todd woodbridge the opponents in the final`:
```sql
|
SELECT "championship" FROM "mixed_doubles_7_5_titles_2_runner_ups" WHERE "outcome"='Winner' AND "surface"='Hard' AND "partner"='Nicole Provis' AND "opponents_in_the_final"='Helena Suková Tom Nijssen'; |
## Task
Generate a SQL query to answer the following question:
`which championship had helena suková tom nijssen as opponents in the final and nicole provis as partner, the surface was hard and the outcome was winner`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_doubles_7_5_titles_2_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `which championship had helena suková tom nijssen as opponents in the final and nicole provis as partner, the surface was hard and the outcome was winner`:
```sql
|
SELECT "last_performance" FROM "table1_19189856_1" WHERE "first_performance"='11/15/1909'; |
## Task
Generate a SQL query to answer the following question:
`when was the last performance of the first performance on 11/15/1909`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19189856_1" (
"performer" text,
"performances" real,
"category" text,
"first_performance" text,
"last_performance" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the last performance of the first performance on 11/15/1909`:
```sql
|
SELECT COUNT("first_performance") FROM "table1_19189856_1" WHERE "performer"='Wilfred Engelman Category:Articles with hCards'; |
## Task
Generate a SQL query to answer the following question:
`how many first performances where performer is wilfred engelman category:articles with hcards`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19189856_1" (
"performer" text,
"performances" real,
"category" text,
"first_performance" text,
"last_performance" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many first performances where performer is wilfred engelman category:articles with hcards`:
```sql
|
SELECT "performer" FROM "table1_19189856_1" WHERE "last_performance"='04/08/1963'; |
## Task
Generate a SQL query to answer the following question:
`who was the performer that did last performance on 04/08/1963`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19189856_1" (
"performer" text,
"performances" real,
"category" text,
"first_performance" text,
"last_performance" text
);
### SQL
Given the database schema, here is the SQL query that answers `who was the performer that did last performance on 04/08/1963`:
```sql
|
SELECT "first_performance" FROM "table1_19189856_1" WHERE "last_performance"='03/29/1957'; |
## Task
Generate a SQL query to answer the following question:
`what is the first performance of the last performance on 03/29/1957`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19189856_1" (
"performer" text,
"performances" real,
"category" text,
"first_performance" text,
"last_performance" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the first performance of the last performance on 03/29/1957`:
```sql
|
SELECT "last_performance" FROM "table1_19189856_1" WHERE "performer"='Leon Varkas Category:Articles with hCards'; |
## Task
Generate a SQL query to answer the following question:
`what is the last performance of leon varkas category:articles with hcards`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19189856_1" (
"performer" text,
"performances" real,
"category" text,
"first_performance" text,
"last_performance" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the last performance of leon varkas category:articles with hcards`:
```sql
|
SELECT COUNT("finale") FROM "highest_rating_drama_series_of_2009" WHERE "english_title"='Beyond the Realm of Conscience'; |
## Task
Generate a SQL query to answer the following question:
`How many different finales had the English title "Beyond the Realm of Conscience"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_rating_drama_series_of_2009" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different finales had the English title "Beyond the Realm of Conscience"?`:
```sql
|
SELECT MAX("average") FROM "highest_rating_drama_series_of_2009" WHERE "chinese_title"='古靈精探B'; |
## Task
Generate a SQL query to answer the following question:
`What was the maximum average of the episode with a Chinese title 古靈精探b?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_rating_drama_series_of_2009" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the maximum average of the episode with a Chinese title 古靈精探b?`:
```sql
|
SELECT "rank" FROM "highest_rating_drama_series_of_2009" WHERE "hk_viewers"='2.26 million'; |
## Task
Generate a SQL query to answer the following question:
`How was the episode seen by 2.26 million HK viewers ranked?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_rating_drama_series_of_2009" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `How was the episode seen by 2.26 million HK viewers ranked?`:
```sql
|
SELECT "finale" FROM "highest_rating_drama_series_of_2009" WHERE "rank"=7; |
## Task
Generate a SQL query to answer the following question:
`What is the finale number ranked at number 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_rating_drama_series_of_2009" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the finale number ranked at number 7?`:
```sql
|
SELECT "conflict" FROM "involvement_in_military_conflicts" WHERE "location"='Iraq'; |
## Task
Generate a SQL query to answer the following question:
`What is every conflict in Iraq?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "involvement_in_military_conflicts" (
"start_of_conflict" real,
"end_of_conflict" text,
"conflict" text,
"continent" text,
"location" text,
"branches_involved" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every conflict in Iraq?`:
```sql
|
SELECT "branches_involved" FROM "involvement_in_military_conflicts" WHERE "location"='Afghanistan'; |
## Task
Generate a SQL query to answer the following question:
`What is every branch involved in Afghanistan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "involvement_in_military_conflicts" (
"start_of_conflict" real,
"end_of_conflict" text,
"conflict" text,
"continent" text,
"location" text,
"branches_involved" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every branch involved in Afghanistan?`:
```sql
|
SELECT "conflict" FROM "involvement_in_military_conflicts" WHERE "location"='Yemen'; |
## Task
Generate a SQL query to answer the following question:
`Which conflicts took place in Yemen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "involvement_in_military_conflicts" (
"start_of_conflict" real,
"end_of_conflict" text,
"conflict" text,
"continent" text,
"location" text,
"branches_involved" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which conflicts took place in Yemen?`:
```sql
|
SELECT COUNT("start_of_conflict") FROM "involvement_in_military_conflicts" WHERE "location"='Afghanistan'; |
## Task
Generate a SQL query to answer the following question:
`How many conflicts started in Afghanistan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "involvement_in_military_conflicts" (
"start_of_conflict" real,
"end_of_conflict" text,
"conflict" text,
"continent" text,
"location" text,
"branches_involved" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many conflicts started in Afghanistan?`:
```sql
|
SELECT "original_air_date" FROM "table1_19229713_6" WHERE "title"='\"Secret Weapons\"'; |
## Task
Generate a SQL query to answer the following question:
`When did the title "secret weapons" originally air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19229713_6" (
"no" real,
"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 `When did the title "secret weapons" originally air?`:
```sql
|
SELECT "u_s_viewers_million" FROM "table1_19229713_6" WHERE "num"=16; |
## Task
Generate a SQL query to answer the following question:
`How many u.s. viewers (million) have the number 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19229713_6" (
"no" real,
"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 `How many u.s. viewers (million) have the number 16?`:
```sql
|
SELECT "production_code" FROM "table1_19229713_6" WHERE "title"='\"Secret Weapons\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the production code of the title "secret weapons"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19229713_6" (
"no" real,
"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 production code of the title "secret weapons"?`:
```sql
|
SELECT "u_s_viewers_million" FROM "table1_19229713_6" WHERE "production_code"='5.09'; |
## Task
Generate a SQL query to answer the following question:
`How many u.s. viewers (million) have the production code of 5.09?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19229713_6" (
"no" real,
"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 `How many u.s. viewers (million) have the production code of 5.09?`:
```sql
|
SELECT MAX("of_which_currently_forests_km") FROM "natural_habitat" WHERE "land_formation"='Middle Prut Valley'; |
## Task
Generate a SQL query to answer the following question:
`When middle prut valley is the land formation what is the highest of which currently forests, km² ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "natural_habitat" (
"land_formation" text,
"area_km" real,
"of_which_currently_forests_km" real,
"pct_forests" text,
"habitat_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `When middle prut valley is the land formation what is the highest of which currently forests, km² ?`:
```sql
|
SELECT "land_formation" FROM "natural_habitat" WHERE "of_which_currently_forests_km"=312; |
## Task
Generate a SQL query to answer the following question:
`When 312 is of which currently forests, km² what is the land formation? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "natural_habitat" (
"land_formation" text,
"area_km" real,
"of_which_currently_forests_km" real,
"pct_forests" text,
"habitat_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 312 is of which currently forests, km² what is the land formation? `:
```sql
|
SELECT "original_air_date" FROM "table1_19236587_4" WHERE "title"='\"The Fashion Show\"'; |
## Task
Generate a SQL query to answer the following question:
`When did the episode titled "The Fashion Show" air for the first time?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19236587_4" (
"series_no" real,
"season_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_k_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the episode titled "The Fashion Show" air for the first time?`:
```sql
|
SELECT MIN("series_no") FROM "table1_19236587_4" WHERE "season_no"=2; |
## Task
Generate a SQL query to answer the following question:
`What's the series number of the episode with season number 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19236587_4" (
"series_no" real,
"season_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_k_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the series number of the episode with season number 2?`:
```sql
|
SELECT "series_no" FROM "table1_19236587_4" WHERE "u_k_viewers_million"='2.43'; |
## Task
Generate a SQL query to answer the following question:
`What's the series number of the episode seen by 2.43 million viewers in the UK?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19236587_4" (
"series_no" real,
"season_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_k_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the series number of the episode seen by 2.43 million viewers in the UK?`:
```sql
|
SELECT COUNT("original_air_date") FROM "table1_19236587_4" WHERE "series_no"=13; |
## Task
Generate a SQL query to answer the following question:
`How many different original air dates does the episode with series number 13 have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19236587_4" (
"series_no" real,
"season_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_k_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different original air dates does the episode with series number 13 have?`:
```sql
|
SELECT MAX("num") FROM "table1_19229713_4" WHERE "u_s_viewers_million"='1.87'; |
## Task
Generate a SQL query to answer the following question:
`Name the number for viewers being 1.87`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19229713_4" (
"no" real,
"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 `Name the number for viewers being 1.87`:
```sql
|
SELECT "production_code" FROM "table1_19229713_4" WHERE "u_s_viewers_million"='1.69'; |
## Task
Generate a SQL query to answer the following question:
`Name the production code for viewers for 1.69`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19229713_4" (
"no" real,
"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 `Name the production code for viewers for 1.69`:
```sql
|
SELECT "launch_date_dd_mm_yyyy" FROM "table1_19246_2" WHERE "up"='5.76 Mbit/s' AND "carrier"='Orange'; |
## Task
Generate a SQL query to answer the following question:
`whare are al of the launche dates where th carrier is orange and the up is 5.76 mbit/s`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19246_2" (
"carrier" text,
"standard" text,
"frequency" text,
"down" text,
"up" text,
"launch_date_dd_mm_yyyy" text
);
### SQL
Given the database schema, here is the SQL query that answers `whare are al of the launche dates where th carrier is orange and the up is 5.76 mbit/s`:
```sql
|
SELECT "song" FROM "final" WHERE "result"='Out' AND "country"='Sweden'; |
## Task
Generate a SQL query to answer the following question:
`With the country of Sweden and the result is out, what is the song?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final" (
"draw" real,
"country" text,
"language" text,
"artist" text,
"song" text,
"english_translation" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `With the country of Sweden and the result is out, what is the song?`:
```sql
|
SELECT "language" FROM "final" WHERE "english_translation"='Hello girl'; |
## Task
Generate a SQL query to answer the following question:
`If the English translation is hello girl, what was the language?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final" (
"draw" real,
"country" text,
"language" text,
"artist" text,
"song" text,
"english_translation" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the English translation is hello girl, what was the language?`:
```sql
|
SELECT "connection_speed" FROM "table1_19246_1" WHERE "launch_date_dd_mm_yyyy"='07.06.2005'; |
## Task
Generate a SQL query to answer the following question:
`What was the connection speed when launched on 07.06.2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19246_1" (
"carrier" text,
"standard" text,
"frequency" text,
"connection_speed" text,
"launch_date_dd_mm_yyyy" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the connection speed when launched on 07.06.2005?`:
```sql
|
SELECT "frequency" FROM "table1_19246_1" WHERE "carrier"='IDC'; |
## Task
Generate a SQL query to answer the following question:
`When the carrier is idc, what are the frequencies?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19246_1" (
"carrier" text,
"standard" text,
"frequency" text,
"connection_speed" text,
"launch_date_dd_mm_yyyy" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the carrier is idc, what are the frequencies?`:
```sql
|
SELECT COUNT("carrier") FROM "table1_19246_1" WHERE "frequency"='900MHz and 1800MHz' AND "launch_date_dd_mm_yyyy"='14.09.2005'; |
## Task
Generate a SQL query to answer the following question:
`When the launch date is 14.09.2005, and the frequency is 900mhz and 1800mhz, how many carriers are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19246_1" (
"carrier" text,
"standard" text,
"frequency" text,
"connection_speed" text,
"launch_date_dd_mm_yyyy" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the launch date is 14.09.2005, and the frequency is 900mhz and 1800mhz, how many carriers are there?`:
```sql
|
SELECT COUNT("standard") FROM "table1_19246_1" WHERE "launch_date_dd_mm_yyyy"='17.04.2006'; |
## Task
Generate a SQL query to answer the following question:
`How many standards are there, when the launch date was 17.04.2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19246_1" (
"carrier" text,
"standard" text,
"frequency" text,
"connection_speed" text,
"launch_date_dd_mm_yyyy" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many standards are there, when the launch date was 17.04.2006?`:
```sql
|
SELECT "2_car_sets" FROM "production" WHERE "total_vehicles"=622; |
## Task
Generate a SQL query to answer the following question:
`Name the 2 car sets for 622 `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "production" (
"fiscal_year" real,
"2_car_sets" real,
"3_car_sets" real,
"4_car_sets" real,
"6_car_sets" real,
"8_car_sets" real,
"total_vehicles" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2 car sets for 622 `:
```sql
|
SELECT MAX("3_car_sets") FROM "production"; |
## Task
Generate a SQL query to answer the following question:
`Name the most 3 car sets`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "production" (
"fiscal_year" real,
"2_car_sets" real,
"3_car_sets" real,
"4_car_sets" real,
"6_car_sets" real,
"8_car_sets" real,
"total_vehicles" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most 3 car sets`:
```sql
|
SELECT MIN("4_car_sets") FROM "production" WHERE "6_car_sets"=44; |
## Task
Generate a SQL query to answer the following question:
`Name the 4 car sets for 6 car sets being 44`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "production" (
"fiscal_year" real,
"2_car_sets" real,
"3_car_sets" real,
"4_car_sets" real,
"6_car_sets" real,
"8_car_sets" real,
"total_vehicles" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 4 car sets for 6 car sets being 44`:
```sql
|
SELECT MIN("4_car_sets") FROM "production"; |
## Task
Generate a SQL query to answer the following question:
`Name the least 4 car sets`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "production" (
"fiscal_year" real,
"2_car_sets" real,
"3_car_sets" real,
"4_car_sets" real,
"6_car_sets" real,
"8_car_sets" real,
"total_vehicles" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least 4 car sets`:
```sql
|
SELECT "code_name" FROM "table1_19264489_1" WHERE "kernel_version"='2.6.27'; |
## Task
Generate a SQL query to answer the following question:
`What is the code name of the OS with Kernel version 2.6.27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19264489_1" (
"version" text,
"code_name" text,
"release_date" text,
"desktops" text,
"servers" text,
"kernel_version" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the code name of the OS with Kernel version 2.6.27?`:
```sql
|
SELECT "release_date" FROM "table1_19264489_1" WHERE "kernel_version"='2.6.31'; |
## Task
Generate a SQL query to answer the following question:
`When was the release date of the operating system with kernel version 2.6.31?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19264489_1" (
"version" text,
"code_name" text,
"release_date" text,
"desktops" text,
"servers" text,
"kernel_version" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the release date of the operating system with kernel version 2.6.31?`:
```sql
|
SELECT "desktops" FROM "table1_19264489_1" WHERE "kernel_version"='2.6.31'; |
## Task
Generate a SQL query to answer the following question:
`What is the status of the desktop version of the OS with kernel version 2.6.31?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19264489_1" (
"version" text,
"code_name" text,
"release_date" text,
"desktops" text,
"servers" text,
"kernel_version" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of the desktop version of the OS with kernel version 2.6.31?`:
```sql
|
SELECT COUNT("servers") FROM "table1_19264489_1" WHERE "kernel_version"='3.11'; |
## Task
Generate a SQL query to answer the following question:
`How many servers have a kernel version 3.11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19264489_1" (
"version" text,
"code_name" text,
"release_date" text,
"desktops" text,
"servers" text,
"kernel_version" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many servers have a kernel version 3.11?`:
```sql
|
SELECT "pct" FROM "cultural_and_ethnic_composition" WHERE "pct_core_moldova"='4.36%'; |
## Task
Generate a SQL query to answer the following question:
`Name the % for core moldova being 4.36%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cultural_and_ethnic_composition" (
"self_identification" text,
"moldovan_census" real,
"pct_core_moldova" text,
"transnistrian_census" real,
"pct_transnistria_bender" text,
"total" real,
"pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the % for core moldova being 4.36%`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.