output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "specific_impulse_s" FROM "specific_fuel_consumption_sfc_specific_i" WHERE "scenario"='sr-71 at mach 3.2 (wet)'; |
## Task
Generate a SQL query to answer the following question:
`What is the specific impulse for the engine with a scenario of sr-71 at mach 3.2 (wet)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "specific_fuel_consumption_sfc_specific_i" (
"engine_type" text,
"scenario" text,
"sfc_in_lb_lbf_h" real,
"sfc_in_g_k_n_s" real,
"specific_impulse_s" real,
"effective_exhaust_velocity_m_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the specific impulse for the engine with a scenario of sr-71 at mach 3.2 (wet)?`:
```sql
|
SELECT AVG("specific_impulse_s") FROM "specific_fuel_consumption_sfc_specific_i" WHERE "sfc_in_lb_lbf_h"=7.95 AND "effective_exhaust_velocity_m_s">'4,423'; |
## Task
Generate a SQL query to answer the following question:
`what is the average specific impulse for engines that have a SFC in lb/(lbf·h) of 7.95, and a Effective exhaust velocity (m/s) larger than 4,423`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "specific_fuel_consumption_sfc_specific_i" (
"engine_type" text,
"scenario" text,
"sfc_in_lb_lbf_h" real,
"sfc_in_g_k_n_s" real,
"specific_impulse_s" real,
"effective_exhaust_velocity_m_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average specific impulse for engines that have a SFC in lb/(lbf·h) of 7.95, and a Effective exhaust velocity (m/s) larger than 4,423`:
```sql
|
SELECT "college" FROM "draft_picks" WHERE "round"<4; |
## Task
Generate a SQL query to answer the following question:
`The draft pick that was taken before round 4 went to what college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `The draft pick that was taken before round 4 went to what college?`:
```sql
|
SELECT "player" FROM "draft_picks" WHERE "college"='depaul'; |
## Task
Generate a SQL query to answer the following question:
`What player went to DePaul University?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player went to DePaul University?`:
```sql
|
SELECT "1st_round" FROM "round_of_16" WHERE "team_1"='sporting toulon var (d2)'; |
## Task
Generate a SQL query to answer the following question:
`What is 1st Round, when Team 1 is Sporting Toulon Var (D2)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"team_1" text,
"score" text,
"team_2" text,
"1st_round" text,
"2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1st Round, when Team 1 is Sporting Toulon Var (D2)?`:
```sql
|
SELECT "score" FROM "round_of_16" WHERE "1st_round"='2 - 0' AND "team_2"='stade brestois (d1)'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when 1st Round is 2 - 0, and when Team 2 is Stade Brestois (D1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"team_1" text,
"score" text,
"team_2" text,
"1st_round" text,
"2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when 1st Round is 2 - 0, and when Team 2 is Stade Brestois (D1)?`:
```sql
|
SELECT "team_2" FROM "round_of_16" WHERE "score"='2 - 1'; |
## Task
Generate a SQL query to answer the following question:
`What is Team 2, when Score is 2 - 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"team_1" text,
"score" text,
"team_2" text,
"1st_round" text,
"2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team 2, when Score is 2 - 1?`:
```sql
|
SELECT "viewers" FROM "ufc_on_fox_s_nielsen_rating" WHERE "event"='johnson vs. moraga'; |
## Task
Generate a SQL query to answer the following question:
`What is Viewers, when Event is Johnson Vs. Moraga?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ufc_on_fox_s_nielsen_rating" (
"event" text,
"date" text,
"rating" text,
"share" text,
"viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Viewers, when Event is Johnson Vs. Moraga?`:
```sql
|
SELECT "rating" FROM "ufc_on_fox_s_nielsen_rating" WHERE "event"='johnson vs. dodson'; |
## Task
Generate a SQL query to answer the following question:
`What is Rating, when Event is Johnson Vs. Dodson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ufc_on_fox_s_nielsen_rating" (
"event" text,
"date" text,
"rating" text,
"share" text,
"viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Rating, when Event is Johnson Vs. Dodson?`:
```sql
|
SELECT "event" FROM "ufc_on_fox_s_nielsen_rating" WHERE "viewers"='2.4 million' AND "rating"='1.4'; |
## Task
Generate a SQL query to answer the following question:
`What is Event, when Viewers is 2.4 Million, and when Rating is 1.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ufc_on_fox_s_nielsen_rating" (
"event" text,
"date" text,
"rating" text,
"share" text,
"viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Event, when Viewers is 2.4 Million, and when Rating is 1.4?`:
```sql
|
SELECT "event" FROM "ufc_on_fox_s_nielsen_rating" WHERE "date"='april 20, 2013'; |
## Task
Generate a SQL query to answer the following question:
`What is Event, when Date is April 20, 2013?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ufc_on_fox_s_nielsen_rating" (
"event" text,
"date" text,
"rating" text,
"share" text,
"viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Event, when Date is April 20, 2013?`:
```sql
|
SELECT "date" FROM "ufc_on_fox_s_nielsen_rating" WHERE "rating"='1.5' AND "event"='johnson vs. moraga'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Rating 1.5, and when Event is Johnson Vs. Moraga?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ufc_on_fox_s_nielsen_rating" (
"event" text,
"date" text,
"rating" text,
"share" text,
"viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Rating 1.5, and when Event is Johnson Vs. Moraga?`:
```sql
|
SELECT "date" FROM "ufc_on_fox_s_nielsen_rating" WHERE "viewers"='4.4 million'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Viewers is 4.4 million?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ufc_on_fox_s_nielsen_rating" (
"event" text,
"date" text,
"rating" text,
"share" text,
"viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Viewers is 4.4 million?`:
```sql
|
SELECT "score" FROM "third_round" WHERE "player"='tiger woods'; |
## Task
Generate a SQL query to answer the following question:
`What was Tiger Woods' score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Tiger Woods' score?`:
```sql
|
SELECT "score" FROM "third_round" WHERE "country"='united states' AND "player"='justin leonard'; |
## Task
Generate a SQL query to answer the following question:
`How did Justin Leonard of the United States score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `How did Justin Leonard of the United States score?`:
```sql
|
SELECT "player" FROM "third_round" WHERE "country"='england'; |
## Task
Generate a SQL query to answer the following question:
`Which player is from England?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player is from England?`:
```sql
|
SELECT "player" FROM "third_round" WHERE "place"='t5' AND "score"='74-70-67=211'; |
## Task
Generate a SQL query to answer the following question:
`Who scored 74-70-67=211 and placed t5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who scored 74-70-67=211 and placed t5?`:
```sql
|
SELECT "player" FROM "first_round" WHERE "score"<72 AND "to_par"='+1'; |
## Task
Generate a SQL query to answer the following question:
`Who is the player with a score less than 72 and a to par of +1?`
### 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 `Who is the player with a score less than 72 and a to par of +1?`:
```sql
|
SELECT "player" FROM "first_round" WHERE "to_par"='+1'; |
## Task
Generate a SQL query to answer the following question:
`Who is the player with a to par of +1?`
### 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 `Who is the player with a to par of +1?`:
```sql
|
SELECT "to_par" FROM "first_round" WHERE "place"='t9' AND "country"='united states' AND "player"='john buczek'; |
## Task
Generate a SQL query to answer the following question:
`What is the to par of player john buczek, who has a t9 place and is from the United States?`
### 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 `What is the to par of player john buczek, who has a t9 place and is from the United States?`:
```sql
|
SELECT "to_par" FROM "first_round" WHERE "player"='bobby nichols'; |
## Task
Generate a SQL query to answer the following question:
`What is the to par of player bobby nichols?`
### 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 `What is the to par of player bobby nichols?`:
```sql
|
SELECT "date" FROM "release_history" WHERE "catalog"='xllp 369'; |
## Task
Generate a SQL query to answer the following question:
`What was the date for XLLP 369?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date for XLLP 369?`:
```sql
|
SELECT "label" FROM "release_history" WHERE "region"='canada'; |
## Task
Generate a SQL query to answer the following question:
`What was the label in the region of Canada?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the label in the region of Canada?`:
```sql
|
SELECT "format" FROM "release_history" WHERE "label"='xl' AND "catalog"='xlcd369' AND "region"='europe'; |
## Task
Generate a SQL query to answer the following question:
`What is the format in the region of Europe with an XLCD369 and a label of XL?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the format in the region of Europe with an XLCD369 and a label of XL?`:
```sql
|
SELECT "date" FROM "release_history" WHERE "region"='united states'; |
## Task
Generate a SQL query to answer the following question:
`What date was the United States the region?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the United States the region?`:
```sql
|
SELECT "label" FROM "release_history" WHERE "format"='cd' AND "region"='argentina'; |
## Task
Generate a SQL query to answer the following question:
`What was the label in the region of Argentina and had a format of CD?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the label in the region of Argentina and had a format of CD?`:
```sql
|
SELECT "catalog" FROM "release_history" WHERE "region"='united states'; |
## Task
Generate a SQL query to answer the following question:
`What is the catalog with the region of the United States?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the catalog with the region of the United States?`:
```sql
|
SELECT "opponent" FROM "schedule_and_results" WHERE "november">26 AND "game">18; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Opponent that has the November larger than 26, and the Game larger than 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Opponent that has the November larger than 26, and the Game larger than 18?`:
```sql
|
SELECT "record" FROM "schedule_and_results" WHERE "game"=19; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Record that has the Game of 19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Record that has the Game of 19?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "rockets_score"=94 AND "game"=66; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Rockets score of 94, and a Game of 66?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"rockets_score" real,
"opponents" real,
"record" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Rockets score of 94, and a Game of 66?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "rockets_score">86 AND "streak"='won 1' AND "opponents"<101; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Rockets score larger than 86, a Streak of won 1, and Opponents smaller than 101?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"rockets_score" real,
"opponents" real,
"record" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Rockets score larger than 86, a Streak of won 1, and Opponents smaller than 101?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "rockets_score"=107; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Rockets score of 107?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"rockets_score" real,
"opponents" real,
"record" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Rockets score of 107?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "date"='march 16'; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Date of march 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"rockets_score" real,
"opponents" real,
"record" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Date of march 16?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "score"='l 111–122 (ot)'; |
## Task
Generate a SQL query to answer the following question:
`When was the score l 111–122 (ot)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the score l 111–122 (ot)?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "date"='january 26'; |
## Task
Generate a SQL query to answer the following question:
`What was the score on January 26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on January 26?`:
```sql
|
SELECT COUNT("game") FROM "game_log" WHERE "team"='minnesota'; |
## Task
Generate a SQL query to answer the following question:
`What game was Minnesota the team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game was Minnesota the team?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "game"=43; |
## Task
Generate a SQL query to answer the following question:
`What was the record of Game 43?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record of Game 43?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "high_points"='leandro barbosa (32)'; |
## Task
Generate a SQL query to answer the following question:
`What's the record of the game that Leandro Barbosa (32) had the high points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the record of the game that Leandro Barbosa (32) had the high points?`:
```sql
|
SELECT "score" FROM "first_round_proper" WHERE "tie_no"='29'; |
## Task
Generate a SQL query to answer the following question:
`What is the score when the tie no is 29?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score when the tie no is 29?`:
```sql
|
SELECT "tie_no" FROM "first_round_proper" WHERE "away_team"='watford'; |
## Task
Generate a SQL query to answer the following question:
`What was the tie no when Watford was the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tie no when Watford was the away team?`:
```sql
|
SELECT "home_team" FROM "first_round_proper" WHERE "away_team"='luton town'; |
## Task
Generate a SQL query to answer the following question:
`What team was the home team when Luton Town was the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team was the home team when Luton Town was the home team?`:
```sql
|
SELECT "home_team" FROM "first_round_proper" WHERE "tie_no"='27'; |
## Task
Generate a SQL query to answer the following question:
`What team was the home team when the tie no was 27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team was the home team when the tie no was 27?`:
```sql
|
SELECT "bass" FROM "discography" WHERE "label"='atlantic' AND "year"=1994; |
## Task
Generate a SQL query to answer the following question:
`Who played bass in 1994 for the Atlantic label?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "discography" (
"year" real,
"album" text,
"vocals" text,
"bass" text,
"drums" text,
"label" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played bass in 1994 for the Atlantic label?`:
```sql
|
SELECT "drums" FROM "discography" WHERE "album"='the gray race'; |
## Task
Generate a SQL query to answer the following question:
`Who played drums for the Gray Race album?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "discography" (
"year" real,
"album" text,
"vocals" text,
"bass" text,
"drums" text,
"label" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played drums for the Gray Race album?`:
```sql
|
SELECT "album" FROM "discography" WHERE "bass"='jay bentley' AND "drums"='bobby schayer'; |
## Task
Generate a SQL query to answer the following question:
`Which album had Jay Bentley on bass and Bobby Schayer on drums?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "discography" (
"year" real,
"album" text,
"vocals" text,
"bass" text,
"drums" text,
"label" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which album had Jay Bentley on bass and Bobby Schayer on drums?`:
```sql
|
SELECT "bass" FROM "discography" WHERE "year">1982 AND "album"='against the grain'; |
## Task
Generate a SQL query to answer the following question:
`Who played the bass for the Against the Grain album after 1982?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "discography" (
"year" real,
"album" text,
"vocals" text,
"bass" text,
"drums" text,
"label" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played the bass for the Against the Grain album after 1982?`:
```sql
|
SELECT AVG("position") FROM "premier_division_final_table" WHERE "lost"<7; |
## Task
Generate a SQL query to answer the following question:
`What is the position when lost is less than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "premier_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position when lost is less than 7?`:
```sql
|
SELECT MAX("drawn") FROM "premier_division_final_table" WHERE "position"=14 AND "goals_for">66; |
## Task
Generate a SQL query to answer the following question:
`What is the largest drawn number when 14 is the position, and goals for is more than 66?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "premier_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest drawn number when 14 is the position, and goals for is more than 66?`:
```sql
|
SELECT COUNT("played") FROM "premier_division_final_table" WHERE "points_1"='80' AND "goals_for">77; |
## Task
Generate a SQL query to answer the following question:
`What is the played number with points 1 is 80, and goals for is more than 77?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "premier_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the played number with points 1 is 80, and goals for is more than 77?`:
```sql
|
SELECT COUNT("played") FROM "premier_division_final_table" WHERE "position"<4 AND "team"='witton albion'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of played when the position is less than 4, and the team is Witton Albion?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "premier_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of played when the position is less than 4, and the team is Witton Albion?`:
```sql
|
SELECT SUM("position") FROM "premier_division_final_table" WHERE "points_1"='61'; |
## Task
Generate a SQL query to answer the following question:
`What is the position when the points 1 is 61?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "premier_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position when the points 1 is 61?`:
```sql
|
SELECT "locality" FROM "list_of_schools_in_atherton" WHERE "ofsted"<106478 AND "school"='meadowbank primary and nursery school'; |
## Task
Generate a SQL query to answer the following question:
`Where is the locality with Ofsted less than 106478 for Meadowbank Primary and Nursery School?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_schools_in_atherton" (
"school" text,
"locality" text,
"description" text,
"ofsted" real,
"website" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the locality with Ofsted less than 106478 for Meadowbank Primary and Nursery School?`:
```sql
|
SELECT "website" FROM "list_of_schools_in_atherton" WHERE "ofsted"<106478 AND "locality"='atherton'; |
## Task
Generate a SQL query to answer the following question:
`What website has an Ofsted less than 106478 in Atherton?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_schools_in_atherton" (
"school" text,
"locality" text,
"description" text,
"ofsted" real,
"website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What website has an Ofsted less than 106478 in Atherton?`:
```sql
|
SELECT COUNT("ofsted") FROM "list_of_schools_in_atherton" WHERE "school"='chowbent primary school'; |
## Task
Generate a SQL query to answer the following question:
`How many values for Ofsted occurr at Chowbent Primary School?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_schools_in_atherton" (
"school" text,
"locality" text,
"description" text,
"ofsted" real,
"website" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many values for Ofsted occurr at Chowbent Primary School?`:
```sql
|
SELECT MIN("league_championships") FROM "sports_teams" WHERE "venue"='penn state ice pavilion' AND "club"='penn state nittany lions men''s ice hockey'; |
## Task
Generate a SQL query to answer the following question:
`Which League championship is the lowest one that has a Venue of penn state ice pavilion, and a Club of penn state nittany lions men's ice hockey?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sports_teams" (
"sport" text,
"league" text,
"club" text,
"founded" real,
"venue" text,
"league_championships" real,
"championship_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which League championship is the lowest one that has a Venue of penn state ice pavilion, and a Club of penn state nittany lions men's ice hockey?`:
```sql
|
SELECT COUNT("founded") FROM "sports_teams" WHERE "league_championships">0 AND "club"='penn state nittany lions women''s volleyball'; |
## Task
Generate a SQL query to answer the following question:
`How much Founded has a League championships larger than 0, and a Club of penn state nittany lions women's volleyball?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sports_teams" (
"sport" text,
"league" text,
"club" text,
"founded" real,
"venue" text,
"league_championships" real,
"championship_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Founded has a League championships larger than 0, and a Club of penn state nittany lions women's volleyball?`:
```sql
|
SELECT "venue" FROM "sports_teams" WHERE "league"='ncaa' AND "founded"<1965 AND "club"='penn state nittany lions men''s ice hockey'; |
## Task
Generate a SQL query to answer the following question:
`Which Venue has a League of ncaa, and a Founded smaller than 1965, and a Club of penn state nittany lions men's ice hockey?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sports_teams" (
"sport" text,
"league" text,
"club" text,
"founded" real,
"venue" text,
"league_championships" real,
"championship_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Venue has a League of ncaa, and a Founded smaller than 1965, and a Club of penn state nittany lions men's ice hockey?`:
```sql
|
SELECT COUNT("total") FROM "census_of_2010" WHERE "hindu">'1,076' AND "province"='jawa barat'; |
## Task
Generate a SQL query to answer the following question:
`What is the total when the Hindu is greater than 1,076, in the Jawa Barat province?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "census_of_2010" (
"province" text,
"total" real,
"hindu" real,
"pct_hindu_2010" text,
"pct_hindu_2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total when the Hindu is greater than 1,076, in the Jawa Barat province?`:
```sql
|
SELECT "pct_hindu_2010" FROM "census_of_2010" WHERE "pct_hindu_2000"='0.01%' AND "hindu">136; |
## Task
Generate a SQL query to answer the following question:
`What % Hindu 2010 has a 0.01% % Hindu 2000, and a greater than 136 Hindu?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "census_of_2010" (
"province" text,
"total" real,
"hindu" real,
"pct_hindu_2010" text,
"pct_hindu_2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What % Hindu 2010 has a 0.01% % Hindu 2000, and a greater than 136 Hindu?`:
```sql
|
SELECT "freestyle_leg" FROM "final" WHERE "country"='netherlands'; |
## Task
Generate a SQL query to answer the following question:
`What is the freestyle leg for the Netherlands?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final" (
"country" text,
"backstroke_leg" text,
"breaststroke_leg" text,
"butterfly_leg" text,
"freestyle_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the freestyle leg for the Netherlands?`:
```sql
|
SELECT "state" FROM "vassal_states" WHERE "name"='li' AND "title"='marquis'; |
## Task
Generate a SQL query to answer the following question:
`In which state did Marquis Li rule?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which state did Marquis Li rule?`:
```sql
|
SELECT "royal_house" FROM "vassal_states" WHERE "state"='song'; |
## Task
Generate a SQL query to answer the following question:
`What was the Royal House for the state of Song?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Royal House for the state of Song?`:
```sql
|
SELECT "type" FROM "vassal_states" WHERE "state"='chu'; |
## Task
Generate a SQL query to answer the following question:
`What type of state was Chu?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of state was Chu?`:
```sql
|
SELECT "type" FROM "vassal_states" WHERE "royal_house"='ji' AND "name"='yi' AND "state"='lu'; |
## Task
Generate a SQL query to answer the following question:
`What type of state was Lu, when Yi was the ruler from the royal house of Ji?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of state was Lu, when Yi was the ruler from the royal house of Ji?`:
```sql
|
SELECT "score" FROM "international_goals" WHERE "competition"='euro 2004 qualifier'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when Competition is "Euro 2004 Qualifier"?`
### 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 is Score, when Competition is "Euro 2004 Qualifier"?`:
```sql
|
SELECT "competition" FROM "international_goals" WHERE "date"='28 march 2001'; |
## Task
Generate a SQL query to answer the following question:
`What is Competition, when Date is "28 March 2001"?`
### 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 is Competition, when Date is "28 March 2001"?`:
```sql
|
SELECT "opponent" FROM "kickboxing_record" WHERE "date"='2004-06-26' AND "result"='loss'; |
## Task
Generate a SQL query to answer the following question:
`who is the opponent on 2004-06-26 with the result of loss?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kickboxing_record" (
"date" text,
"result" text,
"opponent" text,
"event" text,
"location" text,
"method" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the opponent on 2004-06-26 with the result of loss?`:
```sql
|
SELECT "location" FROM "kickboxing_record" WHERE "opponent"='aleksandr pitchkounov'; |
## Task
Generate a SQL query to answer the following question:
`what is the location when the opponent is aleksandr pitchkounov?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kickboxing_record" (
"date" text,
"result" text,
"opponent" text,
"event" text,
"location" text,
"method" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the location when the opponent is aleksandr pitchkounov?`:
```sql
|
SELECT "event" FROM "kickboxing_record" WHERE "location"='saitama, japan'; |
## Task
Generate a SQL query to answer the following question:
`what is the event when the location is saitama, japan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kickboxing_record" (
"date" text,
"result" text,
"opponent" text,
"event" text,
"location" text,
"method" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the event when the location is saitama, japan?`:
```sql
|
SELECT "location" FROM "kickboxing_record" WHERE "event"='k-1 world grand prix 2004 in saitama'; |
## Task
Generate a SQL query to answer the following question:
`what is the location when the event is k-1 world grand prix 2004 in saitama?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kickboxing_record" (
"date" text,
"result" text,
"opponent" text,
"event" text,
"location" text,
"method" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the location when the event is k-1 world grand prix 2004 in saitama?`:
```sql
|
SELECT "record" FROM "kickboxing_record" WHERE "result"='win' AND "date"='2004-06-26'; |
## Task
Generate a SQL query to answer the following question:
`what is the record when the result is win on 2004-06-26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kickboxing_record" (
"date" text,
"result" text,
"opponent" text,
"event" text,
"location" text,
"method" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the record when the result is win on 2004-06-26?`:
```sql
|
SELECT "event" FROM "kickboxing_record" WHERE "result"='loss' AND "record"='7-5'; |
## Task
Generate a SQL query to answer the following question:
`what is the event when the result is loss and the record is 7-5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kickboxing_record" (
"date" text,
"result" text,
"opponent" text,
"event" text,
"location" text,
"method" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the event when the result is loss and the record is 7-5?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "result"='w 13-10'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the game with a result of W 13-10?`
### 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 `What is the date of the game with a result of W 13-10?`:
```sql
|
SELECT COUNT("total") FROM "made_the_cut" WHERE "finish"='t21' AND "to_par">23; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Total(s), when Finish is "T21", and when To Par is greater than 23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Total(s), when Finish is "T21", and when To Par is greater than 23?`:
```sql
|
SELECT "finish" FROM "made_the_cut" WHERE "total"=306; |
## Task
Generate a SQL query to answer the following question:
`What is Finish, when Total is "306"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Finish, when Total is "306"?`:
```sql
|
SELECT COUNT("to_par") FROM "made_the_cut" WHERE "player"='julius boros' AND "total">295; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of To Par, when Player is "Julius Boros", and when Total is greater than 295?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of To Par, when Player is "Julius Boros", and when Total is greater than 295?`:
```sql
|
SELECT COUNT("to_par") FROM "made_the_cut" WHERE "total"=295; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of To Par, when Total is "295"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of To Par, when Total is "295"?`:
```sql
|
SELECT MIN("total") FROM "made_the_cut" WHERE "year_s_won"='1948 , 1950 , 1951 , 1953'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Total, when Year(s) Won is "1948 , 1950 , 1951 , 1953"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Total, when Year(s) Won is "1948 , 1950 , 1951 , 1953"?`:
```sql
|
SELECT SUM("year") FROM "television" WHERE "role"='himself' AND "notes"='celebrity guest alongside yg family'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Year, when Role is "himself", and when Notes is "celebrity guest alongside yg family"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television" (
"year" real,
"title" text,
"role" text,
"network" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Year, when Role is "himself", and when Notes is "celebrity guest alongside yg family"?`:
```sql
|
SELECT MAX("year") FROM "television" WHERE "notes"='celebrity guest alongside yg family'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Year, when Notes is "Celebrity Guest Alongside YG Family"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television" (
"year" real,
"title" text,
"role" text,
"network" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Year, when Notes is "Celebrity Guest Alongside YG Family"?`:
```sql
|
SELECT "year" FROM "television" WHERE "role"='himself' AND "title"='epik high''s love and delusion'; |
## Task
Generate a SQL query to answer the following question:
`What is the Year, when Role is "himself", and when Title is "Epik High's Love And Delusion"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television" (
"year" real,
"title" text,
"role" text,
"network" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Year, when Role is "himself", and when Title is "Epik High's Love And Delusion"?`:
```sql
|
SELECT SUM("year") FROM "television" WHERE "title"='mnet director''s cut'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Year, when Title is "Mnet Director's Cut"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television" (
"year" real,
"title" text,
"role" text,
"network" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Year, when Title is "Mnet Director's Cut"?`:
```sql
|
SELECT "network" FROM "television" WHERE "title"='epik high''s love and delusion'; |
## Task
Generate a SQL query to answer the following question:
`What is the Network, when Title is "Epik High's Love And Delusion"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television" (
"year" real,
"title" text,
"role" text,
"network" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Network, when Title is "Epik High's Love And Delusion"?`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "week"=12; |
## Task
Generate a SQL query to answer the following question:
`How many were in attendance during week 12?`
### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were in attendance during week 12?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "result"='l 38-14'; |
## Task
Generate a SQL query to answer the following question:
`On what date was the Result l 38-14?`
### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the Result l 38-14?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "week"<3 AND "result"='w 24-13'; |
## Task
Generate a SQL query to answer the following question:
`On what date was the week less than 3 with a result of w 24-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,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the week less than 3 with a result of w 24-13?`:
```sql
|
SELECT "water_park" FROM "water_parks_in_terms_of_attendance" WHERE "rank"=20; |
## Task
Generate a SQL query to answer the following question:
`what is the water park with the rank 20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "water_parks_in_terms_of_attendance" (
"rank" real,
"water_park" text,
"location" text,
"2011" real,
"2012" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the water park with the rank 20?`:
```sql
|
SELECT SUM("2011") FROM "water_parks_in_terms_of_attendance" WHERE "rank"<8 AND "water_park"='ocean world'; |
## Task
Generate a SQL query to answer the following question:
`what is 2011 when the rank is less than 8 and the water park is ocean world?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "water_parks_in_terms_of_attendance" (
"rank" real,
"water_park" text,
"location" text,
"2011" real,
"2012" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is 2011 when the rank is less than 8 and the water park is ocean world?`:
```sql
|
SELECT MIN("2011") FROM "water_parks_in_terms_of_attendance" WHERE "water_park"='sunway lagoon' AND "2012"<'1,200,000'; |
## Task
Generate a SQL query to answer the following question:
`what is the lowest 2011 for sunway lagoon water park and 2012 is less than 1,200,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "water_parks_in_terms_of_attendance" (
"rank" real,
"water_park" text,
"location" text,
"2011" real,
"2012" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest 2011 for sunway lagoon water park and 2012 is less than 1,200,000?`:
```sql
|
SELECT "pct_hindu" FROM "demographics" WHERE "area"='azad kashmir'; |
## Task
Generate a SQL query to answer the following question:
`What percentage of Azad Kashmir is Hindu?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "demographics" (
"area" text,
"population" text,
"pct_muslim" text,
"pct_hindu" text,
"pct_buddhist" text,
"pct_other" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of Azad Kashmir is Hindu?`:
```sql
|
SELECT "area" FROM "demographics" WHERE "pct_hindu"='statistics from the bbc in depth report.'; |
## Task
Generate a SQL query to answer the following question:
`What area shows % Hindu of statistics from the bbc in depth report.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "demographics" (
"area" text,
"population" text,
"pct_muslim" text,
"pct_hindu" text,
"pct_buddhist" text,
"pct_other" text
);
### SQL
Given the database schema, here is the SQL query that answers `What area shows % Hindu of statistics from the bbc in depth report.?`:
```sql
|
SELECT "population" FROM "demographics" WHERE "pct_muslim"='30%'; |
## Task
Generate a SQL query to answer the following question:
`What is the population when the % Muslim shows 30%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "demographics" (
"area" text,
"population" text,
"pct_muslim" text,
"pct_hindu" text,
"pct_buddhist" text,
"pct_other" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population when the % Muslim shows 30%?`:
```sql
|
SELECT "pct_buddhist" FROM "demographics" WHERE "population"='~2.6 million (2.6million)'; |
## Task
Generate a SQL query to answer the following question:
`What is the percentage of Buddhist when the Population is ~2.6 million (2.6million)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "demographics" (
"area" text,
"population" text,
"pct_muslim" text,
"pct_hindu" text,
"pct_buddhist" text,
"pct_other" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage of Buddhist when the Population is ~2.6 million (2.6million)?`:
```sql
|
SELECT "area" FROM "demographics" WHERE "pct_other"='–' AND "pct_muslim"='95%'; |
## Task
Generate a SQL query to answer the following question:
`What area has a % Other of –, and a % Muslim of 95%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "demographics" (
"area" text,
"population" text,
"pct_muslim" text,
"pct_hindu" text,
"pct_buddhist" text,
"pct_other" text
);
### SQL
Given the database schema, here is the SQL query that answers `What area has a % Other of –, and a % Muslim of 95%?`:
```sql
|
SELECT "area" FROM "demographics" WHERE "pct_other"='3%'; |
## Task
Generate a SQL query to answer the following question:
`What area has a percentage of other of 3%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "demographics" (
"area" text,
"population" text,
"pct_muslim" text,
"pct_hindu" text,
"pct_buddhist" text,
"pct_other" text
);
### SQL
Given the database schema, here is the SQL query that answers `What area has a percentage of other of 3%?`:
```sql
|
SELECT "game" FROM "nba_finals" WHERE "result"='125-123 (ot)'; |
## Task
Generate a SQL query to answer the following question:
`What Game had a Result of 125-123 (OT)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Game had a Result of 125-123 (OT)?`:
```sql
|
SELECT "date" FROM "nba_finals" WHERE "road_team"='st. louis' AND "game"='game 5'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date of Game 5 with Road Team St. Louis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of Game 5 with Road Team St. Louis?`:
```sql
|
SELECT "road_team" FROM "nba_finals" WHERE "game"='game 3'; |
## Task
Generate a SQL query to answer the following question:
`What is the Road Team of Game 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Road Team of Game 3?`:
```sql
|
SELECT "game" FROM "nba_finals" WHERE "road_team"='st. louis' AND "date"='april 13'; |
## Task
Generate a SQL query to answer the following question:
`What is the Game on April 13 with Road Team St. Louis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Game on April 13 with Road Team St. Louis?`:
```sql
|
SELECT "home_team" FROM "nba_finals" WHERE "result"='124-109'; |
## Task
Generate a SQL query to answer the following question:
`What is the Home Team in the game with a Result of 124-109?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home Team in the game with a Result of 124-109?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.