output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "memory" FROM "45_nm" WHERE "turbo"='2/2/4/5' AND "release_date"='may 2010'; |
## Task
Generate a SQL query to answer the following question:
`What Memory has a Turbo of 2/2/4/5 and the Release date of May 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "45_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"turbo" text,
"cores" text,
"l2_cache" text,
"l3_cache" text,
"i_o_bus" text,
"mult" text,
"memory" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Memory has a Turbo of 2/2/4/5 and the Release date of May 2010?`:
```sql
|
SELECT "model_number" FROM "45_nm" WHERE "s_spec_number"='slbjg(b1)'; |
## Task
Generate a SQL query to answer the following question:
`What Model number has the sSpec numebr of SLBJG(B1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "45_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"turbo" text,
"cores" text,
"l2_cache" text,
"l3_cache" text,
"i_o_bus" text,
"mult" text,
"memory" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Model number has the sSpec numebr of SLBJG(B1)?`:
```sql
|
SELECT "turbo" FROM "45_nm" WHERE "release_price_usd"='$583'; |
## Task
Generate a SQL query to answer the following question:
`What Turbo has the Release price (USD) of $583?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "45_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"turbo" text,
"cores" text,
"l2_cache" text,
"l3_cache" text,
"i_o_bus" text,
"mult" text,
"memory" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Turbo has the Release price (USD) of $583?`:
```sql
|
SELECT MIN("prominence_m") FROM "list_of_ultras_of_africa" WHERE "elevation_m"='3,615'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest prominence for a peak with elevation of 3,615 meters?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_ultras_of_africa" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest prominence for a peak with elevation of 3,615 meters?`:
```sql
|
SELECT COUNT("col_m") FROM "list_of_ultras_of_africa" WHERE "elevation_m"='2,308'; |
## Task
Generate a SQL query to answer the following question:
`What is the Col entry for the peak with an elevation of 2,308 meters?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_ultras_of_africa" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Col entry for the peak with an elevation of 2,308 meters?`:
```sql
|
SELECT "actor" FROM "various" WHERE "character"='rachel mckenna'; |
## Task
Generate a SQL query to answer the following question:
`who is the actor that played rachel mckenna?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "various" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the actor that played rachel mckenna?`:
```sql
|
SELECT "actor" FROM "various" WHERE "soap_opera"='shortland street' AND "years"='1993–1999, 2001–2003, 2007, 2009—'; |
## Task
Generate a SQL query to answer the following question:
`who is the actor for shortland street for the years 1993–1999, 2001–2003, 2007, 2009—?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "various" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the actor for shortland street for the years 1993–1999, 2001–2003, 2007, 2009—?`:
```sql
|
SELECT "soap_opera" FROM "various" WHERE "years"='2000–2004, 2005—'; |
## Task
Generate a SQL query to answer the following question:
`what is the soap opera when the years are 2000–2004, 2005—?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "various" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the soap opera when the years are 2000–2004, 2005—?`:
```sql
|
SELECT "character" FROM "various" WHERE "duration"='11 years'; |
## Task
Generate a SQL query to answer the following question:
`what is the character with the duration of 11 years?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "various" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the character with the duration of 11 years?`:
```sql
|
SELECT "soap_opera" FROM "various" WHERE "actor"='elin sogn'; |
## Task
Generate a SQL query to answer the following question:
`what is the soap opera for elin sogn?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "various" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the soap opera for elin sogn?`:
```sql
|
SELECT "station" FROM "television_stations" WHERE "owned_since"=2011 AND "channel_tv_rf"='27'; |
## Task
Generate a SQL query to answer the following question:
`What station was owned since 2011, and a channel (tv/rf) of 27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television_stations" (
"city_of_license_market" text,
"station" text,
"channel_tv_rf" text,
"owned_since" real,
"affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What station was owned since 2011, and a channel (tv/rf) of 27?`:
```sql
|
SELECT "affiliation" FROM "television_stations" WHERE "owned_since">1991 AND "channel_tv_rf"='42'; |
## Task
Generate a SQL query to answer the following question:
`What affiliation has an owned since larger than 1991, and also has a channel (tv/rf) of 42?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television_stations" (
"city_of_license_market" text,
"station" text,
"channel_tv_rf" text,
"owned_since" real,
"affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What affiliation has an owned since larger than 1991, and also has a channel (tv/rf) of 42?`:
```sql
|
SELECT "city_of_license_market" FROM "television_stations" WHERE "owned_since"<2011 AND "affiliation"='abc' AND "channel_tv_rf"='9 (22)'; |
## Task
Generate a SQL query to answer the following question:
`What city of license/market has an owned since before 2011,and a affiliation of abc and channel (tv/rf) of 9 (22)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television_stations" (
"city_of_license_market" text,
"station" text,
"channel_tv_rf" text,
"owned_since" real,
"affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city of license/market has an owned since before 2011,and a affiliation of abc and channel (tv/rf) of 9 (22)?`:
```sql
|
SELECT SUM("col_m") FROM "list_of_ultras_of_africa" WHERE "elevation_m"='3,011' AND "country"='equatorial guinea ( bioko )'; |
## Task
Generate a SQL query to answer the following question:
`Count the sum of Col (m) which has an Elevation (m) of 3,011, and a Country of equatorial guinea ( bioko )?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_ultras_of_africa" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Count the sum of Col (m) which has an Elevation (m) of 3,011, and a Country of equatorial guinea ( bioko )?`:
```sql
|
SELECT SUM("prominence_m") FROM "list_of_ultras_of_africa" WHERE "elevation_m"='2,024'; |
## Task
Generate a SQL query to answer the following question:
`COunt the sum of Prominence (m) of an Elevation (m) of 2,024?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_ultras_of_africa" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `COunt the sum of Prominence (m) of an Elevation (m) of 2,024?`:
```sql
|
SELECT AVG("prominence_m") FROM "list_of_ultras_of_africa" WHERE "col_m"<0; |
## Task
Generate a SQL query to answer the following question:
`Count the Prominence (m) of Col (m) smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_ultras_of_africa" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Count the Prominence (m) of Col (m) smaller than 0?`:
```sql
|
SELECT MIN("col_m") FROM "list_of_ultras_of_africa" WHERE "peak"='pico basilé' AND "prominence_m"<'3,011'; |
## Task
Generate a SQL query to answer the following question:
`Name the lowest Col (m) with a Peak of pico basilé, and a Prominence (m) smaller than 3,011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_ultras_of_africa" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lowest Col (m) with a Peak of pico basilé, and a Prominence (m) smaller than 3,011?`:
```sql
|
SELECT COUNT("week") FROM "schedule" WHERE "tv_time"='fox 4:15et'; |
## Task
Generate a SQL query to answer the following question:
`What is the Week of the game with TV Time of Fox 4:15ET?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"tv_time" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Week of the game with TV Time of Fox 4:15ET?`:
```sql
|
SELECT "tv_time" FROM "schedule" WHERE "date"='december 27, 2003'; |
## Task
Generate a SQL query to answer the following question:
`What is the TV Time of the game on December 27, 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"tv_time" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the TV Time of the game on December 27, 2003?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "attendance"='68,436'; |
## Task
Generate a SQL query to answer the following question:
`What is the Opponent at the game with Attendance of 68,436?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"tv_time" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Opponent at the game with Attendance of 68,436?`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "opponent"='cincinnati bengals'; |
## Task
Generate a SQL query to answer the following question:
`What is the Attendance at the game against the Cincinnati Bengals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"tv_time" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Attendance at the game against the Cincinnati Bengals?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "week">3 AND "result"='l 10–6'; |
## Task
Generate a SQL query to answer the following question:
`What is the Opponent of the game after Week 3 with a Result of L 10–6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"tv_time" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Opponent of the game after Week 3 with a Result of L 10–6?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "tv_time"='cbs 1:00et' AND "result"='w 22–16'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date of the Game with a Result of w 22–16 in TV Time of CBS 1:00ET?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"tv_time" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the Game with a Result of w 22–16 in TV Time of CBS 1:00ET?`:
```sql
|
SELECT "venue" FROM "tests" WHERE "attendance"='47,678'; |
## Task
Generate a SQL query to answer the following question:
`At what Venue was the Attendance 47,678?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tests" (
"date" text,
"opponent" text,
"score" text,
"venue" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what Venue was the Attendance 47,678?`:
```sql
|
SELECT "attendance" FROM "tests" WHERE "date"='new zealand scores in bold'; |
## Task
Generate a SQL query to answer the following question:
`What is the Attendance of New Zealand Scores in bold?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tests" (
"date" text,
"opponent" text,
"score" text,
"venue" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Attendance of New Zealand Scores in bold?`:
```sql
|
SELECT "lost" FROM "table" WHERE "drawn"='2' AND "bonus_points"='6'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of lost games when 2 were drawn, and there were 6 bonus points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"bonus_points" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of lost games when 2 were drawn, and there were 6 bonus points?`:
```sql
|
SELECT "bonus_points" FROM "table" WHERE "drawn"='4'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of bonus points when there are 4 drawn?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"bonus_points" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of bonus points when there are 4 drawn?`:
```sql
|
SELECT "bonus_points" FROM "table" WHERE "drawn"='2' AND "points_against"='599'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of bonus points when there are 2 drawn and the points against is 599?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"bonus_points" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of bonus points when there are 2 drawn and the points against is 599?`:
```sql
|
SELECT "lost" FROM "table" WHERE "played"='26' AND "points"='83'; |
## Task
Generate a SQL query to answer the following question:
`What is the lost number when the team played 26 games and there were 83 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"bonus_points" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lost number when the team played 26 games and there were 83 points?`:
```sql
|
SELECT "lost" FROM "table" WHERE "drawn"='2' AND "points_against"='572'; |
## Task
Generate a SQL query to answer the following question:
`What is the lost number for the team with 2 drawn games, and 572 points against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"bonus_points" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lost number for the team with 2 drawn games, and 572 points against?`:
```sql
|
SELECT "bonus_points" FROM "table" WHERE "drawn"='2' AND "points_for"='475'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of bonus points for the team with 2 drawn games and 475 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"bonus_points" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of bonus points for the team with 2 drawn games and 475 points?`:
```sql
|
SELECT "transfer_fee" FROM "in" WHERE "name"='helguera'; |
## Task
Generate a SQL query to answer the following question:
`What is the transfer fee for Helguera?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"ends" real,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transfer fee for Helguera?`:
```sql
|
SELECT "transfer_fee" FROM "in" WHERE "moving_from"='celta de vigo'; |
## Task
Generate a SQL query to answer the following question:
`What was the transfer fee when the moving from was celta de Vigo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"ends" real,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the transfer fee when the moving from was celta de Vigo?`:
```sql
|
SELECT "transfer_window" FROM "in" WHERE "moving_from"='fenerbahçe'; |
## Task
Generate a SQL query to answer the following question:
`What was the transfer window with a moving from of fenerbahçe?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"ends" real,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the transfer window with a moving from of fenerbahçe?`:
```sql
|
SELECT "nat" FROM "in" WHERE "moving_from"='espanyol'; |
## Task
Generate a SQL query to answer the following question:
`What nation had a moving from of espanyol?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"ends" real,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nation had a moving from of espanyol?`:
```sql
|
SELECT "transfer_fee" FROM "in" WHERE "ends"=2007; |
## Task
Generate a SQL query to answer the following question:
`What was the transfer fee for the player with an ends of 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"ends" real,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the transfer fee for the player with an ends of 2007?`:
```sql
|
SELECT "series" FROM "1946" WHERE "release_date"='1946-03-16'; |
## Task
Generate a SQL query to answer the following question:
`What is the Series of the Filmography with a Release date of 1946-03-16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1946" (
"title" text,
"series" text,
"director" text,
"production_number" text,
"release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Series of the Filmography with a Release date of 1946-03-16?`:
```sql
|
SELECT "director" FROM "1946" WHERE "production_number"='11-14'; |
## Task
Generate a SQL query to answer the following question:
`Who is the Director of the Filmography with Production Number of 11-14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1946" (
"title" text,
"series" text,
"director" text,
"production_number" text,
"release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Director of the Filmography with Production Number of 11-14?`:
```sql
|
SELECT "series" FROM "1946" WHERE "release_date"='1946-01-05'; |
## Task
Generate a SQL query to answer the following question:
`What is the Series of the Filmography with Release date of 1946-01-05?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1946" (
"title" text,
"series" text,
"director" text,
"production_number" text,
"release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Series of the Filmography with Release date of 1946-01-05?`:
```sql
|
SELECT "series" FROM "1946" WHERE "production_number"='m-4-15'; |
## Task
Generate a SQL query to answer the following question:
`What is the Series of the Filmography with a Production Number of M-4-15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1946" (
"title" text,
"series" text,
"director" text,
"production_number" text,
"release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Series of the Filmography with a Production Number of M-4-15?`:
```sql
|
SELECT "venue" FROM "international_goals" WHERE "score"='4-0' AND "competition"='2002 tiger cup'; |
## Task
Generate a SQL query to answer the following question:
`What venue has a score of 4-0 with the 2002 Tiger Cup listed as the competition?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue has a score of 4-0 with the 2002 Tiger Cup listed as the competition?`:
```sql
|
SELECT "competition" FROM "international_goals" WHERE "score"='1-3'; |
## Task
Generate a SQL query to answer the following question:
`What competition has a score of 1-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What competition has a score of 1-3?`:
```sql
|
SELECT "competition" FROM "international_goals" WHERE "date"='november 17, 2003'; |
## Task
Generate a SQL query to answer the following question:
`What competition listed is dated November 17, 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What competition listed is dated November 17, 2003?`:
```sql
|
SELECT "venue" FROM "international_goals" WHERE "date"='february 22, 2003'; |
## Task
Generate a SQL query to answer the following question:
`What venue listed is dated February 22, 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue listed is dated February 22, 2003?`:
```sql
|
SELECT "venue" FROM "international_goals" WHERE "competition"='friendly'; |
## Task
Generate a SQL query to answer the following question:
`What venue is listed as having a competition titled Friendly?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue is listed as having a competition titled Friendly?`:
```sql
|
SELECT "notes" FROM "heat_4" WHERE "time_sec">23.34 AND "rank"=8; |
## Task
Generate a SQL query to answer the following question:
`Which Notes have a Time larger than 23.34, and a Rank of 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heat_4" (
"rank" real,
"lane" real,
"athlete" text,
"time_sec" real,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Notes have a Time larger than 23.34, and a Rank of 8?`:
```sql
|
SELECT AVG("week") FROM "schedule" WHERE "date"='december 21, 1969'; |
## Task
Generate a SQL query to answer the following question:
`In what week was the December 21, 1969 game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what week was the December 21, 1969 game?`:
```sql
|
SELECT "opposing_team" FROM "matches" WHERE "venue"='rectory ground, devonport'; |
## Task
Generate a SQL query to answer the following question:
`Which Opposing Team has a Venue of rectory ground, devonport?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opposing Team has a Venue of rectory ground, devonport?`:
```sql
|
SELECT "date" FROM "matches" WHERE "opposing_team"='mid-districts'; |
## Task
Generate a SQL query to answer the following question:
`When has an Opposing Team of mid-districts?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has an Opposing Team of mid-districts?`:
```sql
|
SELECT "class_old_to_1868" FROM "early_broad_gauge_locomotives_for_all_tr" WHERE "quantity">8; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Class (old) to 1868 that has the Quantity larger than 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "early_broad_gauge_locomotives_for_all_tr" (
"class_old_to_1868" text,
"railway_number_s" text,
"quantity" real,
"year_s_of_manufacture" text,
"type" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Class (old) to 1868 that has the Quantity larger than 8?`:
```sql
|
SELECT "date" FROM "more_than_one_country" WHERE "year"='2008'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the Cross Code debut that had an Int'l Debut in the year 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "more_than_one_country" (
"player" text,
"int_l_debut" text,
"year" text,
"cross_code_debut" text,
"date" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the Cross Code debut that had an Int'l Debut in the year 2008?`:
```sql
|
SELECT "int_l_debut" FROM "more_than_one_country" WHERE "position"='back' AND "cross_code_debut"='ru australia v wales'; |
## Task
Generate a SQL query to answer the following question:
`What was the Int'l Debut for a player in the back position, that also had a Cross Code Debut of RU Australia v Wales?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "more_than_one_country" (
"player" text,
"int_l_debut" text,
"year" text,
"cross_code_debut" text,
"date" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Int'l Debut for a player in the back position, that also had a Cross Code Debut of RU Australia v Wales?`:
```sql
|
SELECT "year" FROM "more_than_one_country" WHERE "player"='coenraad breytenbach'; |
## Task
Generate a SQL query to answer the following question:
`What year did Coenraad Breytenbach have their Int'l Debut?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "more_than_one_country" (
"player" text,
"int_l_debut" text,
"year" text,
"cross_code_debut" text,
"date" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did Coenraad Breytenbach have their Int'l Debut?`:
```sql
|
SELECT "cross_code_debut" FROM "more_than_one_country" WHERE "int_l_debut"='ru test new zealand v australia'; |
## Task
Generate a SQL query to answer the following question:
`What is the Cross Code Debut for a player that had their Int'l Debut of RU test New Zealand v Australia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "more_than_one_country" (
"player" text,
"int_l_debut" text,
"year" text,
"cross_code_debut" text,
"date" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Cross Code Debut for a player that had their Int'l Debut of RU test New Zealand v Australia?`:
```sql
|
SELECT "george_h_w_bush" FROM "gallup_poll_2012" WHERE "result"='no opinion'; |
## Task
Generate a SQL query to answer the following question:
`What percent of respondents had no opinion on George H.W. Bush?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "gallup_poll_2012" (
"result" text,
"barack_obama" text,
"george_h_w_bush" text,
"ronald_reagan" text,
"jimmy_carter" text,
"gerald_ford" text,
"richard_nixon" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percent of respondents had no opinion on George H.W. Bush?`:
```sql
|
SELECT SUM("lane") FROM "heats" WHERE "time"='dns' AND "name"='christian kubusch' AND "heat">2; |
## Task
Generate a SQL query to answer the following question:
`What was Christian Kubusch's lane when the heat was more than 2 and time was DNS?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Christian Kubusch's lane when the heat was more than 2 and time was DNS?`:
```sql
|
SELECT AVG("lane") FROM "heats" WHERE "nationality"='bulgaria'; |
## Task
Generate a SQL query to answer the following question:
`What's Bulgaria's lane?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's Bulgaria's lane?`:
```sql
|
SELECT AVG("lane") FROM "heats" WHERE "nationality"='great britain' AND "heat"<3; |
## Task
Generate a SQL query to answer the following question:
`What's Great Britain's lane with a heat less than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's Great Britain's lane with a heat less than 3?`:
```sql
|
SELECT AVG("lane") FROM "heats" WHERE "nationality"='spain' AND "heat"<4; |
## Task
Generate a SQL query to answer the following question:
`What's Spain's lane with a heat less than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's Spain's lane with a heat less than 4?`:
```sql
|
SELECT AVG("heat") FROM "heats" WHERE "lane"<3 AND "time"='14:48.39'; |
## Task
Generate a SQL query to answer the following question:
`What's the heat in the lane less than 3 with a time of 14:48.39?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the heat in the lane less than 3 with a time of 14:48.39?`:
```sql
|
SELECT SUM("heat") FROM "heats" WHERE "nationality"='china' AND "name"='zhang lin' AND "lane">6; |
## Task
Generate a SQL query to answer the following question:
`What's China's heat for Zhang Lin in a lane after 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's China's heat for Zhang Lin in a lane after 6?`:
```sql
|
SELECT "bronze" FROM "world_championships_men" WHERE "year"=1994; |
## Task
Generate a SQL query to answer the following question:
`Who won bronze in 1994?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "world_championships_men" (
"year" real,
"place" text,
"gold" text,
"silver" text,
"bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won bronze in 1994?`:
```sql
|
SELECT "position" FROM "eighth_round" WHERE "pick"<63 AND "college"='oklahoma'; |
## Task
Generate a SQL query to answer the following question:
`Which position was picked before 63, for Oklahoma College?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eighth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position was picked before 63, for Oklahoma College?`:
```sql
|
SELECT "college" FROM "eighth_round" WHERE "position"='offensive tackle'; |
## Task
Generate a SQL query to answer the following question:
`Which College has a Position of Offensive Tackle?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eighth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which College has a Position of Offensive Tackle?`:
```sql
|
SELECT "player" FROM "centuries_in_the_friends_life_t20" WHERE "balls"=50; |
## Task
Generate a SQL query to answer the following question:
`Which player had 50 balls?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "centuries_in_the_friends_life_t20" (
"rank" real,
"player" text,
"team" text,
"runs" text,
"balls" real,
"year" real,
"against" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player had 50 balls?`:
```sql
|
SELECT "release_date" FROM "1959" WHERE "director"='friz freleng' AND "production_number">1496 AND "series"='mm' AND "title"='apes of wrath'; |
## Task
Generate a SQL query to answer the following question:
`What date was Apes of Wrath written by Friz Freleng, production number higher than 1496 from series mm released?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1959" (
"title" text,
"series" text,
"director" text,
"production_number" real,
"release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was Apes of Wrath written by Friz Freleng, production number higher than 1496 from series mm released?`:
```sql
|
SELECT SUM("production_number") FROM "1959" WHERE "director"='robert mckimson' AND "series"='mm' AND "title"='people are bunny'; |
## Task
Generate a SQL query to answer the following question:
`What is the production number directed by Robert McKimson in series mm titled People Are Bunny?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1959" (
"title" text,
"series" text,
"director" text,
"production_number" real,
"release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production number directed by Robert McKimson in series mm titled People Are Bunny?`:
```sql
|
SELECT "series" FROM "1959" WHERE "director"='abe levitow' AND "release_date"='1959-06-27'; |
## Task
Generate a SQL query to answer the following question:
`What was the series of the episode directed by Abe Levitow released on 1959-06-27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1959" (
"title" text,
"series" text,
"director" text,
"production_number" real,
"release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the series of the episode directed by Abe Levitow released on 1959-06-27?`:
```sql
|
SELECT "release_date" FROM "1959" WHERE "production_number"<1495 AND "director"='robert mckimson' AND "title"='mouse-placed kitten'; |
## Task
Generate a SQL query to answer the following question:
`What is the release date of the episode named Mouse-Placed Kitten with an episode number less than 1495 directed by Robert McKimson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1959" (
"title" text,
"series" text,
"director" text,
"production_number" real,
"release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the release date of the episode named Mouse-Placed Kitten with an episode number less than 1495 directed by Robert McKimson?`:
```sql
|
SELECT "player" FROM "amateur_draft" WHERE "round">8; |
## Task
Generate a SQL query to answer the following question:
`Which Player has a Round larger than 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "amateur_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a Round larger than 8?`:
```sql
|
SELECT "nationality" FROM "amateur_draft" WHERE "player"='tom cassidy'; |
## Task
Generate a SQL query to answer the following question:
`What is tom cassidy's nationality?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "amateur_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is tom cassidy's nationality?`:
```sql
|
SELECT "college_junior_club_team" FROM "amateur_draft" WHERE "pick">70 AND "round"<7; |
## Task
Generate a SQL query to answer the following question:
`Which College/Junior/Club Team has a Pick larger than 70, and a Round smaller than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "amateur_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which College/Junior/Club Team has a Pick larger than 70, and a Round smaller than 7?`:
```sql
|
SELECT "player" FROM "amateur_draft" WHERE "round">8; |
## Task
Generate a SQL query to answer the following question:
`Which Player has a Round larger than 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "amateur_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a Round larger than 8?`:
```sql
|
SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "location"='edinburgh'; |
## Task
Generate a SQL query to answer the following question:
`Which County has a Location of edinburgh?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which County has a Location of edinburgh?`:
```sql
|
SELECT AVG("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "location"='hope'; |
## Task
Generate a SQL query to answer the following question:
`COunt the average Enrollment in hope?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"county" text
);
### SQL
Given the database schema, here is the SQL query that answers `COunt the average Enrollment in hope?`:
```sql
|
SELECT "mascot" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_class"='aa' AND "enrollment">369; |
## Task
Generate a SQL query to answer the following question:
`Which Mascot has IHSAA Class of aa, and a Enrollment larger than 369?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Mascot has IHSAA Class of aa, and a Enrollment larger than 369?`:
```sql
|
SELECT MIN("league_goals") FROM "appearances_and_goals" WHERE "league_apps"='1' AND "fa_cup_goals">0; |
## Task
Generate a SQL query to answer the following question:
`what is the lowest league goals when the league apps is 1 and the fa cup goals is more than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
"total_apps" text,
"total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest league goals when the league apps is 1 and the fa cup goals is more than 0?`:
```sql
|
SELECT MAX("fa_cup_goals") FROM "appearances_and_goals" WHERE "total_goals">3 AND "total_apps"='31 (1)'; |
## Task
Generate a SQL query to answer the following question:
`what is the highest fa cup goals when the total goals is more than 3 and total apps is 31 (1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
"total_apps" text,
"total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest fa cup goals when the total goals is more than 3 and total apps is 31 (1)?`:
```sql
|
SELECT "league_goals" FROM "appearances_and_goals" WHERE "fa_cup_goals">0 AND "fa_cup_apps"='2' AND "league_apps"='45'; |
## Task
Generate a SQL query to answer the following question:
`what is the league goals when the fa cup goals is higher than 0, the fa cup apps is 2 and the league apps is 45?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
"total_apps" text,
"total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the league goals when the fa cup goals is higher than 0, the fa cup apps is 2 and the league apps is 45?`:
```sql
|
SELECT COUNT("total_goals") FROM "appearances_and_goals" WHERE "total_apps"='1' AND "name"='bob mountain' AND "fa_cup_goals"<0; |
## Task
Generate a SQL query to answer the following question:
`how many times is the total apps 1 and the fa cup goals less than 0 for bob mountain?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
"total_apps" text,
"total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is the total apps 1 and the fa cup goals less than 0 for bob mountain?`:
```sql
|
SELECT MAX("attendance") FROM "fa_premier_league" WHERE "venue"='a' AND "opponent"='west ham united'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest attendance for the match against west ham united at the venue of a?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fa_premier_league" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest attendance for the match against west ham united at the venue of a?`:
```sql
|
SELECT "country" FROM "first_round" WHERE "score"=67; |
## Task
Generate a SQL query to answer the following question:
`Which Country has a Score of 67?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a Score of 67?`:
```sql
|
SELECT "to_par" FROM "first_round" WHERE "player"='momoko ueda'; |
## Task
Generate a SQL query to answer the following question:
`Which To par has a Player of momoko ueda?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which To par has a Player of momoko ueda?`:
```sql
|
SELECT "to_par" FROM "first_round" WHERE "player"='johanna head'; |
## Task
Generate a SQL query to answer the following question:
`Which To par has a Player of johanna head?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which To par has a Player of johanna head?`:
```sql
|
SELECT "notes" FROM "semifinal_a_b_2" WHERE "country"='denmark'; |
## Task
Generate a SQL query to answer the following question:
`What is the notes for the team from Denmark?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semifinal_a_b_2" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the notes for the team from Denmark?`:
```sql
|
SELECT "athlete" FROM "quarterfinal_2" WHERE "notes"='sc/d' AND "rank"=6; |
## Task
Generate a SQL query to answer the following question:
`Which athlete had a rank of 6 and notes of sc/d?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "quarterfinal_2" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which athlete had a rank of 6 and notes of sc/d?`:
```sql
|
SELECT "country" FROM "quarterfinal_2" WHERE "notes"='sc/d' AND "athlete"='latt shwe zin'; |
## Task
Generate a SQL query to answer the following question:
`Which country is the athlete latt shwe zin with notes of sc/d from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "quarterfinal_2" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country is the athlete latt shwe zin with notes of sc/d from?`:
```sql
|
SELECT "hr_no" FROM "numbers_and_names" WHERE "lms_no"=14758; |
## Task
Generate a SQL query to answer the following question:
`What's the HR number when the LMS number is 14758?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "numbers_and_names" (
"hr_no" text,
"hr_name" text,
"cr_no" real,
"lms_no" real,
"built" text,
"works" text,
"withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the HR number when the LMS number is 14758?`:
```sql
|
SELECT AVG("cr_no") FROM "numbers_and_names" WHERE "works"='hawthorn leslie 3100' AND "lms_no"<14761; |
## Task
Generate a SQL query to answer the following question:
`What's the CR number that has an LMS number less than 14761 and works of Hawthorn Leslie 3100?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "numbers_and_names" (
"hr_no" text,
"hr_name" text,
"cr_no" real,
"lms_no" real,
"built" text,
"works" text,
"withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the CR number that has an LMS number less than 14761 and works of Hawthorn Leslie 3100?`:
```sql
|
SELECT "hr_no" FROM "numbers_and_names" WHERE "built"='9/1915' AND "lms_no"=14757; |
## Task
Generate a SQL query to answer the following question:
`What's the HR Number when the LMS number is 14757 and has a built of 9/1915?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "numbers_and_names" (
"hr_no" text,
"hr_name" text,
"cr_no" real,
"lms_no" real,
"built" text,
"works" text,
"withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the HR Number when the LMS number is 14757 and has a built of 9/1915?`:
```sql
|
SELECT "built" FROM "numbers_and_names" WHERE "cr_no">940 AND "lms_no"=14760; |
## Task
Generate a SQL query to answer the following question:
`What's the built date when the CR number is more than 940 and the LMS number is 14760?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "numbers_and_names" (
"hr_no" text,
"hr_name" text,
"cr_no" real,
"lms_no" real,
"built" text,
"works" text,
"withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the built date when the CR number is more than 940 and the LMS number is 14760?`:
```sql
|
SELECT "home" FROM "game_log" WHERE "visitor"='modo hockey' AND "date"='thursday, december 11'; |
## Task
Generate a SQL query to answer the following question:
`What is the Home team of the event on Thursday, December 11 with Visitor Modo Hockey?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"round" real,
"date" text,
"home" text,
"result" text,
"visitor" text,
"venue" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home team of the event on Thursday, December 11 with Visitor Modo Hockey?`:
```sql
|
SELECT "chinese_traditional" FROM "studio" WHERE "english_title"='sunrise'; |
## Task
Generate a SQL query to answer the following question:
`What is the traditional Chinese name for the record titled Sunrise?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "studio" (
"albumnum" text,
"english_title" text,
"chinese_traditional" text,
"chinese_simplified" text,
"release_date" text,
"label" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the traditional Chinese name for the record titled Sunrise?`:
```sql
|
SELECT "chinese_traditional" FROM "studio" WHERE "chinese_simplified"='崇拜'; |
## Task
Generate a SQL query to answer the following question:
`What would be the traditional Chinese name tat is simplified as 崇拜?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "studio" (
"albumnum" text,
"english_title" text,
"chinese_traditional" text,
"chinese_simplified" text,
"release_date" text,
"label" text
);
### SQL
Given the database schema, here is the SQL query that answers `What would be the traditional Chinese name tat is simplified as 崇拜?`:
```sql
|
SELECT "chinese_traditional" FROM "studio" WHERE "label"='rock records' AND "english_title"='grown up overnight'; |
## Task
Generate a SQL query to answer the following question:
`What traditional Chinese name would the Rock Records release Grown up Overnight be given?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "studio" (
"albumnum" text,
"english_title" text,
"chinese_traditional" text,
"chinese_simplified" text,
"release_date" text,
"label" text
);
### SQL
Given the database schema, here is the SQL query that answers `What traditional Chinese name would the Rock Records release Grown up Overnight be given?`:
```sql
|
SELECT "chinese_traditional" FROM "studio" WHERE "english_title"='beautiful'; |
## Task
Generate a SQL query to answer the following question:
`What is the traditional Chinese name for the record Beautiful?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "studio" (
"albumnum" text,
"english_title" text,
"chinese_traditional" text,
"chinese_simplified" text,
"release_date" text,
"label" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the traditional Chinese name for the record Beautiful?`:
```sql
|
SELECT "albumnum" FROM "studio" WHERE "chinese_simplified"='情歌没有告诉你'; |
## Task
Generate a SQL query to answer the following question:
`What is the album number for the record 情歌没有告诉你, simplified from the traditional Chinese name?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "studio" (
"albumnum" text,
"english_title" text,
"chinese_traditional" text,
"chinese_simplified" text,
"release_date" text,
"label" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the album number for the record 情歌没有告诉你, simplified from the traditional Chinese name?`:
```sql
|
SELECT "chinese_simplified" FROM "studio" WHERE "albumnum"='9th'; |
## Task
Generate a SQL query to answer the following question:
`What is the simplified Chinese name for the 9th album?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "studio" (
"albumnum" text,
"english_title" text,
"chinese_traditional" text,
"chinese_simplified" text,
"release_date" text,
"label" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the simplified Chinese name for the 9th album?`:
```sql
|
SELECT "eliminated_by" FROM "tag_team_turmoil_match" WHERE "tag_team"='jindrak and cade'; |
## Task
Generate a SQL query to answer the following question:
`Which Eliminated has a Tag Team of jindrak and cade?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tag_team_turmoil_match" (
"eliminated" text,
"tag_team" text,
"entered" real,
"eliminated_by" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Eliminated has a Tag Team of jindrak and cade?`:
```sql
|
SELECT "eliminated_by" FROM "tag_team_turmoil_match" WHERE "entered"<2; |
## Task
Generate a SQL query to answer the following question:
`Which Eliminated has an Entered smaller than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tag_team_turmoil_match" (
"eliminated" text,
"tag_team" text,
"entered" real,
"eliminated_by" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Eliminated has an Entered smaller than 2?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.