output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "title" FROM "singles" WHERE "label"='warp records / paper bag records'; |
## Task
Generate a SQL query to answer the following question:
`What title has a Label of warp records / paper bag records?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"year" real,
"title" text,
"label" text,
"format" text,
"album" text
);
### SQL
Given the database schema, here is the SQL query that answers `What title has a Label of warp records / paper bag records?`:
```sql
|
SELECT MAX("average") FROM "relegation" WHERE "1987_88"='55' AND "played">114; |
## Task
Generate a SQL query to answer the following question:
`What's the highest Average that has a 1987-88 of 55 and a Played that's larger than 114?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1986_87" text,
"1987_88" text,
"1988_89" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest Average that has a 1987-88 of 55 and a Played that's larger than 114?`:
```sql
|
SELECT MIN("points") FROM "relegation" WHERE "team"='san martín de tucumán' AND "played"<38; |
## Task
Generate a SQL query to answer the following question:
`What's the lowest Points for the Team of San Martín De Tucumán, and a Played that's smaller than 38?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1986_87" text,
"1987_88" text,
"1988_89" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest Points for the Team of San Martín De Tucumán, and a Played that's smaller than 38?`:
```sql
|
SELECT "1986_87" FROM "relegation" WHERE "1988_89">42 AND "points"=109; |
## Task
Generate a SQL query to answer the following question:
`What's the 1986-87 that's got a 1988-89 that's larger than 42, and Points of 109?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1986_87" text,
"1987_88" text,
"1988_89" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 1986-87 that's got a 1988-89 that's larger than 42, and Points of 109?`:
```sql
|
SELECT SUM("1988_89") FROM "relegation" WHERE "1986_87"='38' AND "points"<109; |
## Task
Generate a SQL query to answer the following question:
`What's the total of 1988-89 that has a 1986-87 of 38, and Points that's smaller than 109?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1986_87" text,
"1987_88" text,
"1988_89" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total of 1988-89 that has a 1986-87 of 38, and Points that's smaller than 109?`:
```sql
|
SELECT "nation" FROM "medal_table" WHERE "total">3 AND "bronze">5 AND "silver"<4; |
## Task
Generate a SQL query to answer the following question:
`What nation has a total more than 3, with more than 5 for bronze, and less than 4 for the silver?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What nation has a total more than 3, with more than 5 for bronze, and less than 4 for the silver?`:
```sql
|
SELECT MAX("bronze") FROM "medal_table" WHERE "rank"='19'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest number for bronze with a rank of 19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number for bronze with a rank of 19?`:
```sql
|
SELECT "season" FROM "last_encounters_since_2006" WHERE "score"='1:0'; |
## Task
Generate a SQL query to answer the following question:
`what season had a score of 1:0`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "last_encounters_since_2006" (
"season" text,
"home" text,
"score" text,
"away" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `what season had a score of 1:0`:
```sql
|
SELECT "record" FROM "nasl_indoor_soccer" WHERE "indoor_year"='1978'; |
## Task
Generate a SQL query to answer the following question:
`indoor year is 1978, what is the record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nasl_indoor_soccer" (
"indoor_year" text,
"record" text,
"regular_season_finish" text,
"playoffs" text,
"avg_attend" real
);
### SQL
Given the database schema, here is the SQL query that answers `indoor year is 1978, what is the record?`:
```sql
|
SELECT SUM("game_num") FROM "december" WHERE "record"='11-10-3'; |
## Task
Generate a SQL query to answer the following question:
`Record of 11-10-3 is what sum of game #?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"game_num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Record of 11-10-3 is what sum of game #?`:
```sql
|
SELECT "home" FROM "december" WHERE "points"=31 AND "score"='1 - 5'; |
## Task
Generate a SQL query to answer the following question:
`Points of 31, and a Score of 1 - 5 is what home?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"game_num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Points of 31, and a Score of 1 - 5 is what home?`:
```sql
|
SELECT "record" FROM "december" WHERE "visitor"='calgary'; |
## Task
Generate a SQL query to answer the following question:
`Visitor of calgary has what record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"game_num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Visitor of calgary has what record?`:
```sql
|
SELECT "points" FROM "december" WHERE "score"='2 - 2'; |
## Task
Generate a SQL query to answer the following question:
`Score of 2 - 2 had what points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"game_num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Score of 2 - 2 had what points?`:
```sql
|
SELECT "date" FROM "second_division" WHERE "opponents"='gainsborough trinity' AND "h_a"='h'; |
## Task
Generate a SQL query to answer the following question:
`On what Date was Gainsborough Trinity the Opponents with H/A of H?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_division" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date was Gainsborough Trinity the Opponents with H/A of H?`:
```sql
|
SELECT "h_a" FROM "second_division" WHERE "attendance">'15,000' AND "opponents"='blackpool'; |
## Task
Generate a SQL query to answer the following question:
`What H/A had more than 15,000 in Attendance and Blackpool as Opponents?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_division" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What H/A had more than 15,000 in Attendance and Blackpool as Opponents?`:
```sql
|
SELECT COUNT("attendance") FROM "second_division" WHERE "opponents"='lincoln city' AND "h_a"='a'; |
## Task
Generate a SQL query to answer the following question:
`What was the Attendance when Lincoln City was the Opponents with H/A of A?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_division" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Attendance when Lincoln City was the Opponents with H/A of A?`:
```sql
|
SELECT "area_served" FROM "defunct_callsigns" WHERE "frequency"='100.3' AND "on_air_id"='yass fm'; |
## Task
Generate a SQL query to answer the following question:
`what Area has the frequency of 100.3 and an On-air ID of yass fm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"on_air_id" text,
"purpose" text
);
### SQL
Given the database schema, here is the SQL query that answers `what Area has the frequency of 100.3 and an On-air ID of yass fm?`:
```sql
|
SELECT "callsign" FROM "defunct_callsigns" WHERE "area_served"='tamworth' AND "frequency"='0 88.9'; |
## Task
Generate a SQL query to answer the following question:
`What is the Callsign with an Area of tamworth and frequency of 0 88.9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"on_air_id" text,
"purpose" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Callsign with an Area of tamworth and frequency of 0 88.9?`:
```sql
|
SELECT "purpose" FROM "defunct_callsigns" WHERE "area_served"='braidwood'; |
## Task
Generate a SQL query to answer the following question:
`What is the Purpose of the Area Braidwood?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"on_air_id" text,
"purpose" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Purpose of the Area Braidwood?`:
```sql
|
SELECT "band" FROM "defunct_callsigns" WHERE "frequency"='0 99.7' AND "area_served"='newcastle'; |
## Task
Generate a SQL query to answer the following question:
`What Band has a Frequency of 0 99.7 in the Area of Newcastle?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"on_air_id" text,
"purpose" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Band has a Frequency of 0 99.7 in the Area of Newcastle?`:
```sql
|
SELECT "frequency" FROM "defunct_callsigns" WHERE "area_served"='gosford' AND "callsign"='2cfm'; |
## Task
Generate a SQL query to answer the following question:
`What is the Frequency of Gosford when the Callsign of 2cfm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"on_air_id" text,
"purpose" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Frequency of Gosford when the Callsign of 2cfm?`:
```sql
|
SELECT "on_air_id" FROM "defunct_callsigns" WHERE "frequency"='105.9' AND "purpose"='commercial'; |
## Task
Generate a SQL query to answer the following question:
`What is the On-air ID with the frequency of 105.9, and purpose of commercial?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"on_air_id" text,
"purpose" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the On-air ID with the frequency of 105.9, and purpose of commercial?`:
```sql
|
SELECT "time_retired" FROM "race" WHERE "points"<11 AND "laps"=74; |
## Task
Generate a SQL query to answer the following question:
`What Time/Retired has a Points that's smaller than 11 and has a Laps of 74?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Time/Retired has a Points that's smaller than 11 and has a Laps of 74?`:
```sql
|
SELECT "time_retired" FROM "race" WHERE "laps"=86 AND "team"='hvm racing'; |
## Task
Generate a SQL query to answer the following question:
`What Time/Retired has a Laps of 86 and the Team of HVM Racing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Time/Retired has a Laps of 86 and the Team of HVM Racing?`:
```sql
|
SELECT "catalog" FROM "release_history" WHERE "region"='france'; |
## Task
Generate a SQL query to answer the following question:
`What is the Catalog number in France?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Catalog number in France?`:
```sql
|
SELECT "format" FROM "release_history" WHERE "catalog"='f4 87199'; |
## Task
Generate a SQL query to answer the following question:
`What is the Format o Catalog F4 87199?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Format o Catalog F4 87199?`:
```sql
|
SELECT "region" FROM "release_history" WHERE "catalog"='885 973-4'; |
## Task
Generate a SQL query to answer the following question:
`What is the Region of Catalog 885 973-4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Region of Catalog 885 973-4?`:
```sql
|
SELECT "catalog" FROM "release_history" WHERE "region"='france'; |
## Task
Generate a SQL query to answer the following question:
`What is the Catalog number in the Region of France?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Catalog number in the Region of France?`:
```sql
|
SELECT "label" FROM "release_history" WHERE "format"='7\" single' AND "catalog"='885 572-7'; |
## Task
Generate a SQL query to answer the following question:
`What Label has a Catalog number of 885 572-7 in 7" single Format?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Label has a Catalog number of 885 572-7 in 7" single Format?`:
```sql
|
SELECT COUNT("attendance") FROM "march_may" WHERE "date"='1 november 1997'; |
## Task
Generate a SQL query to answer the following question:
`How many people in total attended the game on 1 november 1997?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march_may" (
"date" text,
"opponents" text,
"result_f_a" text,
"attendance" real,
"league_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people in total attended the game on 1 november 1997?`:
```sql
|
SELECT AVG("loses") FROM "group_b_b_blingen" WHERE "wins"=3 AND "pos">3; |
## Task
Generate a SQL query to answer the following question:
`Wins of 3, and a Pos. larger than 3 is what average loses?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_b_b_blingen" (
"pos" real,
"matches" real,
"wins" real,
"loses" real,
"results" text,
"points" real,
"diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `Wins of 3, and a Pos. larger than 3 is what average loses?`:
```sql
|
SELECT SUM("pos") FROM "group_b_b_blingen" WHERE "matches">5; |
## Task
Generate a SQL query to answer the following question:
`Matches larger than 5 is the sum of what position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_b_b_blingen" (
"pos" real,
"matches" real,
"wins" real,
"loses" real,
"results" text,
"points" real,
"diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `Matches larger than 5 is the sum of what position?`:
```sql
|
SELECT "years" FROM "head_coaches_results" WHERE "pct"<0.389 AND "lost"<12 AND "name"='dwane morrison'; |
## Task
Generate a SQL query to answer the following question:
`What years did Dwane Morrison had a pct less than 0.389 and losses less than 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "head_coaches_results" (
"name" text,
"years" text,
"seasons" real,
"lost" real,
"pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What years did Dwane Morrison had a pct less than 0.389 and losses less than 12?`:
```sql
|
SELECT COUNT("seasons") FROM "head_coaches_results" WHERE "name"='charles c. farrell'; |
## Task
Generate a SQL query to answer the following question:
`How many seasons did Charles C. Farrell coach?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "head_coaches_results" (
"name" text,
"years" text,
"seasons" real,
"lost" real,
"pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons did Charles C. Farrell coach?`:
```sql
|
SELECT AVG("pct") FROM "head_coaches_results" WHERE "lost">7 AND "name"='george felton'; |
## Task
Generate a SQL query to answer the following question:
`What's the average pct for George Felton when he had losses greater than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "head_coaches_results" (
"name" text,
"years" text,
"seasons" real,
"lost" real,
"pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average pct for George Felton when he had losses greater than 7?`:
```sql
|
SELECT "margin_of_victory" FROM "european_tour_wins_8" WHERE "runner_s_up"='josé maria cañizares'; |
## Task
Generate a SQL query to answer the following question:
`Which Margin of victory has a Runner(s)-up of josé maria cañizares?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_tour_wins_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Margin of victory has a Runner(s)-up of josé maria cañizares?`:
```sql
|
SELECT "tournament" FROM "european_tour_wins_8" WHERE "runner_s_up"='bob charles'; |
## Task
Generate a SQL query to answer the following question:
`Which Tournament has a Runner(s)-up of bob charles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_tour_wins_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tournament has a Runner(s)-up of bob charles?`:
```sql
|
SELECT "winning_score" FROM "european_tour_wins_8" WHERE "date"='7 jun 1976'; |
## Task
Generate a SQL query to answer the following question:
`What was the winning score on 7 jun 1976?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_tour_wins_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning score on 7 jun 1976?`:
```sql
|
SELECT "winning_score" FROM "european_tour_wins_8" WHERE "margin_of_victory"='1 stroke' AND "date"='21 jun 1981'; |
## Task
Generate a SQL query to answer the following question:
`Which Winning score has a Margin of victory of 1 stroke, and a Date of 21 jun 1981?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_tour_wins_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Winning score has a Margin of victory of 1 stroke, and a Date of 21 jun 1981?`:
```sql
|
SELECT "date" FROM "european_tour_wins_8" WHERE "winning_score"='–5 (70-65-69-75=279)'; |
## Task
Generate a SQL query to answer the following question:
`On which date was the Winning score –5 (70-65-69-75=279)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_tour_wins_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which date was the Winning score –5 (70-65-69-75=279)?`:
```sql
|
SELECT "runner_s_up" FROM "european_tour_wins_8" WHERE "winning_score"='–9 (71-68-72-68=279)'; |
## Task
Generate a SQL query to answer the following question:
`Which Runner(s)-up has a Winning score of –9 (71-68-72-68=279)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_tour_wins_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Runner(s)-up has a Winning score of –9 (71-68-72-68=279)?`:
```sql
|
SELECT "leading_scorer" FROM "december" WHERE "attendance"='14,096'; |
## Task
Generate a SQL query to answer the following question:
`What is the leading scorer of the game with an attendance of 14,096?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the leading scorer of the game with an attendance of 14,096?`:
```sql
|
SELECT "leading_scorer" FROM "december" WHERE "visitor"='celtics'; |
## Task
Generate a SQL query to answer the following question:
`What is the leading scorer of the game with the Celtics as the visiting team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the leading scorer of the game with the Celtics as the visiting team?`:
```sql
|
SELECT "date" FROM "december" WHERE "attendance"='19,183'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the game with an attendance of 19,183?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game with an attendance of 19,183?`:
```sql
|
SELECT "time" FROM "track_listing" WHERE "track_number"<4 AND "song_title"='you''re my everything'; |
## Task
Generate a SQL query to answer the following question:
`Name the time with track number less than 4 for you're my everything`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "track_listing" (
"track_number" real,
"song_title" text,
"songwriter_s" text,
"orchestra" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the time with track number less than 4 for you're my everything`:
```sql
|
SELECT "orchestra" FROM "track_listing" WHERE "songwriter_s"='ted varnick'; |
## Task
Generate a SQL query to answer the following question:
`Name the orchestra for ted varnick`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "track_listing" (
"track_number" real,
"song_title" text,
"songwriter_s" text,
"orchestra" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the orchestra for ted varnick`:
```sql
|
SELECT "songwriter_s" FROM "track_listing" WHERE "track_number"=12; |
## Task
Generate a SQL query to answer the following question:
`Name the songwriter for track number 12`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "track_listing" (
"track_number" real,
"song_title" text,
"songwriter_s" text,
"orchestra" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the songwriter for track number 12`:
```sql
|
SELECT MAX("round") FROM "nba_draft" WHERE "player"='dan federman' AND "pick">114; |
## Task
Generate a SQL query to answer the following question:
`Player of dan federman, and a Pick larger than 114 involves which highest round?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Player of dan federman, and a Pick larger than 114 involves which highest round?`:
```sql
|
SELECT "round" FROM "nba_draft" WHERE "college"='villanova'; |
## Task
Generate a SQL query to answer the following question:
`College of villanova has what round?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `College of villanova has what round?`:
```sql
|
SELECT "pick" FROM "nba_draft" WHERE "college"='boston college'; |
## Task
Generate a SQL query to answer the following question:
`College of boston college has what pick?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `College of boston college has what pick?`:
```sql
|
SELECT SUM("finalists") FROM "performance_by_nation" WHERE "years_won"='2008' AND "pct_won">33; |
## Task
Generate a SQL query to answer the following question:
`How many finalists were there when the years won was 2008 and the won % was greater than 33?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_by_nation" (
"nation" text,
"finalists" real,
"winners" real,
"runners_up" real,
"pct_won" real,
"years_won" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many finalists were there when the years won was 2008 and the won % was greater than 33?`:
```sql
|
SELECT "game_site" FROM "regular_season" WHERE "record"='2-2'; |
## Task
Generate a SQL query to answer the following question:
`Where was the game site for the game that had a packers record of 2-2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"time_time_zone" text,
"game_site" text,
"final_score" text,
"record" text,
"match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game site for the game that had a packers record of 2-2?`:
```sql
|
SELECT "final_score" FROM "regular_season" WHERE "game_site"='raymond james stadium'; |
## Task
Generate a SQL query to answer the following question:
`What is the final score of the game that was at raymond james stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"time_time_zone" text,
"game_site" text,
"final_score" text,
"record" text,
"match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the final score of the game that was at raymond james stadium?`:
```sql
|
SELECT "match_report" FROM "regular_season" WHERE "opponent"='houston'; |
## Task
Generate a SQL query to answer the following question:
`What is the match report for the game that was against Houston?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"time_time_zone" text,
"game_site" text,
"final_score" text,
"record" text,
"match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the match report for the game that was against Houston?`:
```sql
|
SELECT "game_site" FROM "regular_season" WHERE "record"='2-3'; |
## Task
Generate a SQL query to answer the following question:
`Where is the game site for the game that had a packers record of 2-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"time_time_zone" text,
"game_site" text,
"final_score" text,
"record" text,
"match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the game site for the game that had a packers record of 2-3?`:
```sql
|
SELECT "record" FROM "season_schedule" WHERE "score"='118–105'; |
## Task
Generate a SQL query to answer the following question:
`What was the Record of the game with a Score of 118–105?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Record of the game with a Score of 118–105?`:
```sql
|
SELECT "record" FROM "season_schedule" WHERE "score"='107–108'; |
## Task
Generate a SQL query to answer the following question:
`What is the Record of the game with a Score of 107–108?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Record of the game with a Score of 107–108?`:
```sql
|
SELECT "record" FROM "season_schedule" WHERE "score"='113–103'; |
## Task
Generate a SQL query to answer the following question:
`What was the Record during the game with a Score of 113–103?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Record during the game with a Score of 113–103?`:
```sql
|
SELECT SUM("points") FROM "most_championship_points_in_a_season_up_" WHERE "percentage_of_possible_points"='67.22%'; |
## Task
Generate a SQL query to answer the following question:
`How many points have a percentage of possible points of 67.22%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_championship_points_in_a_season_up_" (
"driver" text,
"points" real,
"season" real,
"races" real,
"percentage_of_possible_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points have a percentage of possible points of 67.22%?`:
```sql
|
SELECT "races" FROM "most_championship_points_in_a_season_up_" WHERE "points">123 AND "driver"='fernando alonso' AND "percentage_of_possible_points"='74.44%'; |
## Task
Generate a SQL query to answer the following question:
`Which races have points greater than 123, fernando alonso as the driver and a percentage of possible points of 74.44%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_championship_points_in_a_season_up_" (
"driver" text,
"points" real,
"season" real,
"races" real,
"percentage_of_possible_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which races have points greater than 123, fernando alonso as the driver and a percentage of possible points of 74.44%?`:
```sql
|
SELECT SUM("season") FROM "most_championship_points_in_a_season_up_" WHERE "driver"='fernando alonso' AND "percentage_of_possible_points"='64.12%' AND "points"<109; |
## Task
Generate a SQL query to answer the following question:
`How many seasons have fernando alonso as the driver, and a percentage of possible points of 64.12% and points less than 109?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_championship_points_in_a_season_up_" (
"driver" text,
"points" real,
"season" real,
"races" real,
"percentage_of_possible_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons have fernando alonso as the driver, and a percentage of possible points of 64.12% and points less than 109?`:
```sql
|
SELECT "remixed_by" FROM "official_versions" WHERE "year">1999; |
## Task
Generate a SQL query to answer the following question:
`Who remixed the version after 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who remixed the version after 1999?`:
```sql
|
SELECT "remixed_by" FROM "official_versions" WHERE "length"='3:58'; |
## Task
Generate a SQL query to answer the following question:
`Who remixed the version with a length of 3:58?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who remixed the version with a length of 3:58?`:
```sql
|
SELECT "album" FROM "official_versions" WHERE "remixed_by"='royal garden sound' AND "version"='royal g''s club mix'; |
## Task
Generate a SQL query to answer the following question:
`Which album is the royal g's club mix version, which is remixed by royal garden sound, from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which album is the royal g's club mix version, which is remixed by royal garden sound, from?`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "week"<4 AND "record"='2–1'; |
## Task
Generate a SQL query to answer the following question:
`How many were in attendance in a week less than 4 with a record of 2–1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were in attendance in a week less than 4 with a record of 2–1?`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "game_site"='griffith stadium' AND "opponent"='philadelphia eagles'; |
## Task
Generate a SQL query to answer the following question:
`How many were in attendance at Griffith Stadium with Philadelphia Eagles as an opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were in attendance at Griffith Stadium with Philadelphia Eagles as an opponent?`:
```sql
|
SELECT "week" FROM "schedule" WHERE "attendance"='25,000'; |
## Task
Generate a SQL query to answer the following question:
`In what week was the attendance 25,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what week was the attendance 25,000?`:
```sql
|
SELECT "game_site" FROM "schedule" WHERE "result"='l 21–13'; |
## Task
Generate a SQL query to answer the following question:
`What game site had a result at l 21–13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game site had a result at l 21–13?`:
```sql
|
SELECT "score" FROM "schedule_and_results" WHERE "record"='34-19-6'; |
## Task
Generate a SQL query to answer the following question:
`What score has 34-19-6 as the record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has 34-19-6 as the record?`:
```sql
|
SELECT AVG("february") FROM "schedule_and_results" WHERE "game"=56; |
## Task
Generate a SQL query to answer the following question:
`What is the average February that has 56 as the game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average February that has 56 as the game?`:
```sql
|
SELECT SUM("round") FROM "race_calendar_and_results" WHERE "team"='team impul' AND "date"='8 july'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of team impul with the date of 8 july`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar_and_results" (
"round" real,
"track" text,
"date" text,
"pole_position" text,
"fastest_race_lap" text,
"winner" text,
"team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of team impul with the date of 8 july`:
```sql
|
SELECT "pole_position" FROM "race_calendar_and_results" WHERE "round"=9; |
## Task
Generate a SQL query to answer the following question:
`what is the pole position of Round 9`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar_and_results" (
"round" real,
"track" text,
"date" text,
"pole_position" text,
"fastest_race_lap" text,
"winner" text,
"team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the pole position of Round 9`:
```sql
|
SELECT MIN("round") FROM "race_calendar_and_results" WHERE "pole_position"='satoshi motoyama'; |
## Task
Generate a SQL query to answer the following question:
`what is the lowest round pole position of satoshi motoyama`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar_and_results" (
"round" real,
"track" text,
"date" text,
"pole_position" text,
"fastest_race_lap" text,
"winner" text,
"team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest round pole position of satoshi motoyama`:
```sql
|
SELECT "home_team" FROM "third_round" WHERE "away_team"='rushden & diamonds'; |
## Task
Generate a SQL query to answer the following question:
`What was the home team with the away team of rushden & diamonds?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home team with the away team of rushden & diamonds?`:
```sql
|
SELECT "tie_no" FROM "third_round" WHERE "attendance"='2 january 1999' AND "home_team"='plymouth argyle'; |
## Task
Generate a SQL query to answer the following question:
`For the attendance of 2 january 1999 with a home team of plymouth argyle what is the tie no. ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the attendance of 2 january 1999 with a home team of plymouth argyle what is the tie no. ?`:
```sql
|
SELECT MIN("lost") FROM "world_championship_group_b_austria" WHERE "drawn">1 AND "games"<7; |
## Task
Generate a SQL query to answer the following question:
`Which Lost has a Drawn larger than 1, and Games smaller than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "world_championship_group_b_austria" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Lost has a Drawn larger than 1, and Games smaller than 7?`:
```sql
|
SELECT SUM("drawn") FROM "world_championship_group_b_austria" WHERE "games"<7; |
## Task
Generate a SQL query to answer the following question:
`Which Drawn has Games smaller than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "world_championship_group_b_austria" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Drawn has Games smaller than 7?`:
```sql
|
SELECT COUNT("games") FROM "world_championship_group_b_austria" WHERE "drawn"<1 AND "lost">4; |
## Task
Generate a SQL query to answer the following question:
`How many Games have a Drawn smaller than 1, and a Lost larger than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "world_championship_group_b_austria" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Games have a Drawn smaller than 1, and a Lost larger than 4?`:
```sql
|
SELECT "winning_driver" FROM "other_grands_prix" WHERE "circuit"='taunus'; |
## Task
Generate a SQL query to answer the following question:
`what is the winning driver in taunus`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the winning driver in taunus`:
```sql
|
SELECT "record" FROM "montreal_canadiens_4_quebec_nordiques_2" WHERE "home"='montreal canadiens' AND "date"='april 22'; |
## Task
Generate a SQL query to answer the following question:
`Which Record has a Home of Montreal Canadiens and a Date of April 22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "montreal_canadiens_4_quebec_nordiques_2" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has a Home of Montreal Canadiens and a Date of April 22?`:
```sql
|
SELECT "score" FROM "montreal_canadiens_4_quebec_nordiques_2" WHERE "home"='montreal canadiens' AND "date"='april 22'; |
## Task
Generate a SQL query to answer the following question:
`What Score has a Home of Montreal Canadiens and a Date of April 22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "montreal_canadiens_4_quebec_nordiques_2" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Score has a Home of Montreal Canadiens and a Date of April 22?`:
```sql
|
SELECT MIN("bronze") FROM "medallists_by_nation" WHERE "gold"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of bronze medals received by a nation with fewer than 0 gold medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medallists_by_nation" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of bronze medals received by a nation with fewer than 0 gold medals?`:
```sql
|
SELECT MIN("silver") FROM "medallists_by_nation" WHERE "total"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of silver medals for a nation with fewer than 1 total medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medallists_by_nation" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of silver medals for a nation with fewer than 1 total medals?`:
```sql
|
SELECT "rank" FROM "total_all_around_medals_by_country_1963_" WHERE "total">17 AND "silver"<13; |
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Total larger than 17, and a Silver smaller than 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "total_all_around_medals_by_country_1963_" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has a Total larger than 17, and a Silver smaller than 13?`:
```sql
|
SELECT MAX("total") FROM "total_all_around_medals_by_country_1963_" WHERE "gold"=1 AND "nation"='czechoslovakia'; |
## Task
Generate a SQL query to answer the following question:
`Which Total is the highest one that has a Gold of 1, and a Nation of czechoslovakia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "total_all_around_medals_by_country_1963_" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total is the highest one that has a Gold of 1, and a Nation of czechoslovakia?`:
```sql
|
SELECT COUNT("total") FROM "total_all_around_medals_by_country_1963_" WHERE "silver"<0; |
## Task
Generate a SQL query to answer the following question:
`How much Total has a Silver smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "total_all_around_medals_by_country_1963_" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Total has a Silver smaller than 0?`:
```sql
|
SELECT AVG("total") FROM "total_all_around_medals_by_country_1963_" WHERE "rank"='4' AND "silver"<4; |
## Task
Generate a SQL query to answer the following question:
`Which Total has a Rank of 4, and a Silver smaller than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "total_all_around_medals_by_country_1963_" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total has a Rank of 4, and a Silver smaller than 4?`:
```sql
|
SELECT MIN("silver") FROM "total_all_around_medals_by_country_1963_" WHERE "bronze"<1 AND "gold">0; |
## Task
Generate a SQL query to answer the following question:
`Which Silver is the lowest one that has a Bronze smaller than 1, and a Gold larger than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "total_all_around_medals_by_country_1963_" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Silver is the lowest one that has a Bronze smaller than 1, and a Gold larger than 0?`:
```sql
|
SELECT SUM("year") FROM "filmfare_awards" WHERE "music_director_s"='anu malik'; |
## Task
Generate a SQL query to answer the following question:
`WHich Year has a Music director(s) of anu malik?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "filmfare_awards" (
"year" real,
"song" text,
"film" text,
"music_director_s" text,
"lyricist" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich Year has a Music director(s) of anu malik?`:
```sql
|
SELECT MAX("year") FROM "filmfare_awards" WHERE "film"='baazigar'; |
## Task
Generate a SQL query to answer the following question:
`Which Year has a Film of baazigar?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "filmfare_awards" (
"year" real,
"song" text,
"film" text,
"music_director_s" text,
"lyricist" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year has a Film of baazigar?`:
```sql
|
SELECT "film" FROM "filmfare_awards" WHERE "song"='\"ek ladki ko dekha\"'; |
## Task
Generate a SQL query to answer the following question:
`Which Film has a Song of "ek ladki ko dekha"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "filmfare_awards" (
"year" real,
"song" text,
"film" text,
"music_director_s" text,
"lyricist" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Film has a Song of "ek ladki ko dekha"?`:
```sql
|
SELECT "record" FROM "schedule" WHERE "opponent_score"<100 AND "date"='december 6'; |
## Task
Generate a SQL query to answer the following question:
`Which Record has an Opponent score smaller than 100, and a Date of december 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bulls_score" real,
"opponent_score" real,
"record" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has an Opponent score smaller than 100, and a Date of december 6?`:
```sql
|
SELECT "record" FROM "schedule" WHERE "opponent"='detroit' AND "opponent_score"<87; |
## Task
Generate a SQL query to answer the following question:
`Which Record has an Opponent of detroit, and an Opponent score smaller than 87?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bulls_score" real,
"opponent_score" real,
"record" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has an Opponent of detroit, and an Opponent score smaller than 87?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "streak"='lost 1' AND "date"='april 30'; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Streak of lost 1, and a Date of april 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bulls_score" real,
"opponent_score" real,
"record" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Streak of lost 1, and a Date of april 30?`:
```sql
|
SELECT "number_of_sequences_number_of_sequences" FROM "nc_rna_gene_prediction_software" WHERE "name"='alifoldz'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of sequences for the name Alifoldz?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nc_rna_gene_prediction_software" (
"name" text,
"number_of_sequences_number_of_sequences" text,
"alignment_alignment_predicts_an_alignment" text,
"structure_structure_predicts_structure" text,
"link" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of sequences for the name Alifoldz?`:
```sql
|
SELECT "link" FROM "nc_rna_gene_prediction_software" WHERE "alignment_alignment_predicts_an_alignment"='input' AND "number_of_sequences_number_of_sequences"='any'; |
## Task
Generate a SQL query to answer the following question:
`What is the link with an alignment input and any number of sequences?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nc_rna_gene_prediction_software" (
"name" text,
"number_of_sequences_number_of_sequences" text,
"alignment_alignment_predicts_an_alignment" text,
"structure_structure_predicts_structure" text,
"link" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the link with an alignment input and any number of sequences?`:
```sql
|
SELECT "alignment_alignment_predicts_an_alignment" FROM "nc_rna_gene_prediction_software" WHERE "link"='linuxbinary'; |
## Task
Generate a SQL query to answer the following question:
`What is the alignment that predicts an alignment of the linuxbinary link?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nc_rna_gene_prediction_software" (
"name" text,
"number_of_sequences_number_of_sequences" text,
"alignment_alignment_predicts_an_alignment" text,
"structure_structure_predicts_structure" text,
"link" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the alignment that predicts an alignment of the linuxbinary link?`:
```sql
|
SELECT "link" FROM "nc_rna_gene_prediction_software" WHERE "alignment_alignment_predicts_an_alignment"='input' AND "name"='rnaz'; |
## Task
Generate a SQL query to answer the following question:
`What is the link of rnaz that predicts an alignment of input?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nc_rna_gene_prediction_software" (
"name" text,
"number_of_sequences_number_of_sequences" text,
"alignment_alignment_predicts_an_alignment" text,
"structure_structure_predicts_structure" text,
"link" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the link of rnaz that predicts an alignment of input?`:
```sql
|
SELECT "playoffs" FROM "year_by_year" WHERE "year"<2012 AND "open_cup"='did not enter'; |
## Task
Generate a SQL query to answer the following question:
`Which Playoffs have a Year smaller than 2012, and an Open Cup of did not enter?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Playoffs have a Year smaller than 2012, and an Open Cup of did not enter?`:
```sql
|
SELECT MIN("year") FROM "year_by_year" WHERE "regular_season"='5th, atlantic' AND "division">4; |
## Task
Generate a SQL query to answer the following question:
`Which Year is the lowest one that has a Regular Season of 5th, atlantic, and a Division larger than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year is the lowest one that has a Regular Season of 5th, atlantic, and a Division larger than 4?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.