output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "circuit" FROM "grands_prix" WHERE "round"=18; |
## Task
Generate a SQL query to answer the following question:
`Name the circuit for round 18`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grands_prix" (
"round" real,
"date" text,
"grand_prix" text,
"circuit" text,
"125cc_winner" text,
"250cc_winner" text,
"moto_gp_winner" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the circuit for round 18`:
```sql
|
SELECT "grand_prix" FROM "grands_prix" WHERE "moto_gp_winner"='casey stoner' AND "circuit"='losail'; |
## Task
Generate a SQL query to answer the following question:
`Name the grand prix for casey stoner and circuit of losail`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grands_prix" (
"round" real,
"date" text,
"grand_prix" text,
"circuit" text,
"125cc_winner" text,
"250cc_winner" text,
"moto_gp_winner" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the grand prix for casey stoner and circuit of losail`:
```sql
|
SELECT "venue" FROM "international_goals" WHERE "date"='2002-03-07'; |
## Task
Generate a SQL query to answer the following question:
`Where was the game held that was played on 2002-03-07?`
### 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 `Where was the game held that was played on 2002-03-07?`:
```sql
|
SELECT SUM("gold") FROM "medal_table" WHERE "nation"='new zealand' AND "rank"<14; |
## Task
Generate a SQL query to answer the following question:
`What is the total gold from New zealand and a rank less than 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"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 total gold from New zealand and a rank less than 14?`:
```sql
|
SELECT AVG("silver") FROM "medal_table" WHERE "gold"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the average of the silver that has less than 0 gold`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"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 average of the silver that has less than 0 gold`:
```sql
|
SELECT "nation" FROM "medal_table" WHERE "gold"=0 AND "silver"=0 AND "total"=2; |
## Task
Generate a SQL query to answer the following question:
`Which nation has 0 gold, 0 silver and 2 total?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which nation has 0 gold, 0 silver and 2 total?`:
```sql
|
SELECT SUM("gold") FROM "medal_table" WHERE "nation"='norway' AND "bronze">1; |
## Task
Generate a SQL query to answer the following question:
`What is the total gold in Norway with more than 1 bronze?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"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 total gold in Norway with more than 1 bronze?`:
```sql
|
SELECT SUM("bronze") FROM "medal_table" WHERE "nation"='puerto rico' AND "total"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the total bronze from Puerto Rico with a total of less than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"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 total bronze from Puerto Rico with a total of less than 1?`:
```sql
|
SELECT "season" FROM "past_opponents" WHERE "club"='celtic'; |
## Task
Generate a SQL query to answer the following question:
`Which season has the Celtic club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_opponents" (
"season" text,
"competition" text,
"round" text,
"club" text,
"1st_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season has the Celtic club?`:
```sql
|
SELECT "party" FROM "list_of_agriculture_ministers" WHERE "minister"='parker moloney' AND "title"='minister for markets'; |
## Task
Generate a SQL query to answer the following question:
`What was Parker Moloney's party affiliation when he was the Minister for Markets?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_agriculture_ministers" (
"order" text,
"minister" text,
"party" text,
"prime_minister" text,
"title" text,
"term_start" text,
"term_end" text,
"term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Parker Moloney's party affiliation when he was the Minister for Markets?`:
```sql
|
SELECT "term_start" FROM "list_of_agriculture_ministers" WHERE "title"='minister for agriculture, fisheries and forestry' AND "order"='25'; |
## Task
Generate a SQL query to answer the following question:
`What was the starting date for the Minister for agriculture, fisheries and forestry that is in order number 25??`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_agriculture_ministers" (
"order" text,
"minister" text,
"party" text,
"prime_minister" text,
"title" text,
"term_start" text,
"term_end" text,
"term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the starting date for the Minister for agriculture, fisheries and forestry that is in order number 25??`:
```sql
|
SELECT "score" FROM "international_goals" WHERE "venue"='seoul' AND "result"='8-0'; |
## Task
Generate a SQL query to answer the following question:
`What was the score in the venue of Seoul that resulted in 8-0?`
### 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 was the score in the venue of Seoul that resulted in 8-0?`:
```sql
|
SELECT "date" FROM "international_goals" WHERE "result"='8-0'; |
## Task
Generate a SQL query to answer the following question:
`What date had a result of 8-0?`
### 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 date had a result of 8-0?`:
```sql
|
SELECT "competition" FROM "international_goals" WHERE "venue"='kuala lumpur' AND "result"='4-0' AND "date"='july 26, 1977'; |
## Task
Generate a SQL query to answer the following question:
`On July 26, 1977, what competition played at the venue of Kuala Lumpur, resulted in 4-0?`
### 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 `On July 26, 1977, what competition played at the venue of Kuala Lumpur, resulted in 4-0?`:
```sql
|
SELECT "venue" FROM "international_goals" WHERE "competition"='1986 asian games' AND "result"='2-0'; |
## Task
Generate a SQL query to answer the following question:
`What venue were the 1986 Asian games resulting in 2-0 played at?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue were the 1986 Asian games resulting in 2-0 played at?`:
```sql
|
SELECT SUM("league_goals") FROM "premier_division" WHERE "player"='john o''flynn'; |
## Task
Generate a SQL query to answer the following question:
`How many total League goals does Player John O'Flynn have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "premier_division" (
"player" text,
"club" text,
"league_goals" real,
"cup_goals" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many total League goals does Player John O'Flynn have?`:
```sql
|
SELECT MIN("year") FROM "complete_formula_one_world_championship_" WHERE "chassis"='lotus 49b'; |
## Task
Generate a SQL query to answer the following question:
`What is the earliest year that had a Lotus 49B chassis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year that had a Lotus 49B chassis?`:
```sql
|
SELECT MIN("lane") FROM "semifinal_2" WHERE "name"='lenny krayzelburg'; |
## Task
Generate a SQL query to answer the following question:
`Name the least lane for lenny krayzelburg`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least lane for lenny krayzelburg`:
```sql
|
SELECT "name" FROM "indianapolis_colts_draft_history" WHERE "round"=9; |
## Task
Generate a SQL query to answer the following question:
`Round of 9 involved what name?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Round of 9 involved what name?`:
```sql
|
SELECT COUNT("overall") FROM "indianapolis_colts_draft_history" WHERE "name"='calvin o''neal' AND "round"<6; |
## Task
Generate a SQL query to answer the following question:
`Name of calvin o'neal, and a Round smaller than 6 had what number total overall?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name of calvin o'neal, and a Round smaller than 6 had what number total overall?`:
```sql
|
SELECT "work" FROM "awards_and_nominations" WHERE "year"<2007 AND "award"='blockbuster entertainment awards'; |
## Task
Generate a SQL query to answer the following question:
`Name the work for years before 2007 that won blockbuster entertainment awards`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"work" text,
"cole" text,
"dylan" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the work for years before 2007 that won blockbuster entertainment awards`:
```sql
|
SELECT "cole" FROM "awards_and_nominations" WHERE "year"<2009 AND "dylan"='nominated' AND "work"='big daddy' AND "award"='mtv movie awards'; |
## Task
Generate a SQL query to answer the following question:
`Name the Cole for years before 2009 where Dylan was nominated for big daddy at mtv movie awards`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"work" text,
"cole" text,
"dylan" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Cole for years before 2009 where Dylan was nominated for big daddy at mtv movie awards`:
```sql
|
SELECT "college" FROM "indianapolis_colts_draft_history" WHERE "position"='running back'; |
## Task
Generate a SQL query to answer the following question:
`Position of running back involves which college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Position of running back involves which college?`:
```sql
|
SELECT "college" FROM "indianapolis_colts_draft_history" WHERE "round">2 AND "position"='guard'; |
## Task
Generate a SQL query to answer the following question:
`Round larger than 2, and a Position of guard involves what college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Round larger than 2, and a Position of guard involves what college?`:
```sql
|
SELECT "college" FROM "indianapolis_colts_draft_history" WHERE "pick_num"<46 AND "round"=5 AND "position"='defensive tackle'; |
## Task
Generate a SQL query to answer the following question:
`Pick # smaller than 46, and a Round of 5, and a Position of defensive tackle involves which college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Pick # smaller than 46, and a Round of 5, and a Position of defensive tackle involves which college?`:
```sql
|
SELECT "percentage_pct" FROM "language" WHERE "language"='russian'; |
## Task
Generate a SQL query to answer the following question:
`What is the percentage who speak Russian?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage who speak Russian?`:
```sql
|
SELECT "number" FROM "language" WHERE "language"='german'; |
## Task
Generate a SQL query to answer the following question:
`How many speak german?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many speak german?`:
```sql
|
SELECT "percentage_pct" FROM "language" WHERE "males"='99'; |
## Task
Generate a SQL query to answer the following question:
`What is the percentage where males equal 99?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage where males equal 99?`:
```sql
|
SELECT "females" FROM "language" WHERE "language"='german'; |
## Task
Generate a SQL query to answer the following question:
`How many women speak German?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many women speak German?`:
```sql
|
SELECT "3rd_place" FROM "winners" WHERE "winners"='weymouth wildcats' AND "4th_place"='boston barracudas'; |
## Task
Generate a SQL query to answer the following question:
`Name the 3rd place with winners of weymouth wildcats and 4th place of boston barracudas`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"winners" text,
"2nd_place" text,
"3rd_place" text,
"4th_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 3rd place with winners of weymouth wildcats and 4th place of boston barracudas`:
```sql
|
SELECT "3rd_place" FROM "winners" WHERE "4th_place"='boston barracudas' AND "2nd_place"='oxford cheetahs'; |
## Task
Generate a SQL query to answer the following question:
`Name the 3rd place for 4th place of boston barracudas and 2nd place of oxford cheetahs`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"winners" text,
"2nd_place" text,
"3rd_place" text,
"4th_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 3rd place for 4th place of boston barracudas and 2nd place of oxford cheetahs`:
```sql
|
SELECT "winners" FROM "winners" WHERE "3rd_place"='weymouth wildcats'; |
## Task
Generate a SQL query to answer the following question:
`Name the winners when 3rd place is weymouth wildcats`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"winners" text,
"2nd_place" text,
"3rd_place" text,
"4th_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winners when 3rd place is weymouth wildcats`:
```sql
|
SELECT MIN("league_cup") FROM "yellow_cards" WHERE "fa_cup"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of league cups associated with 0 FA cups?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "yellow_cards" (
"name" text,
"championship" real,
"league_cup" real,
"fa_cup" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of league cups associated with 0 FA cups?`:
```sql
|
SELECT SUM("fa_cup") FROM "yellow_cards" WHERE "championship"<5 AND "league_cup"=0 AND "total">3; |
## Task
Generate a SQL query to answer the following question:
`How many FA cups for the player with under 5 champs, 0 league cups, and over 3 total?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "yellow_cards" (
"name" text,
"championship" real,
"league_cup" real,
"fa_cup" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many FA cups for the player with under 5 champs, 0 league cups, and over 3 total?`:
```sql
|
SELECT SUM("league_cup") FROM "yellow_cards" WHERE "championship"<10 AND "total"<3; |
## Task
Generate a SQL query to answer the following question:
`How many league cups associated with under 10 championships and a total of under 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "yellow_cards" (
"name" text,
"championship" real,
"league_cup" real,
"fa_cup" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many league cups associated with under 10 championships and a total of under 3?`:
```sql
|
SELECT "group_position" FROM "group_stage" WHERE "result_f_a"='2–0'; |
## Task
Generate a SQL query to answer the following question:
`Result F–A of 2–0 had what group position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_stage" (
"date" text,
"opponents" text,
"result_f_a" text,
"attendance" real,
"group_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Result F–A of 2–0 had what group position?`:
```sql
|
SELECT "group_position" FROM "group_stage" WHERE "result_f_a"='5–0'; |
## Task
Generate a SQL query to answer the following question:
`Result F–A of 5–0 had what group position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_stage" (
"date" text,
"opponents" text,
"result_f_a" text,
"attendance" real,
"group_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Result F–A of 5–0 had what group position?`:
```sql
|
SELECT AVG("attendance") FROM "group_stage" WHERE "group_position"='1st' AND "result_f_a"='2–0'; |
## Task
Generate a SQL query to answer the following question:
`Group position of 1st, and a Result F–A of 2–0 has what average attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_stage" (
"date" text,
"opponents" text,
"result_f_a" text,
"attendance" real,
"group_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Group position of 1st, and a Result F–A of 2–0 has what average attendance?`:
```sql
|
SELECT "date" FROM "group_stage" WHERE "result_f_a"='5–0'; |
## Task
Generate a SQL query to answer the following question:
`Result F–A of 5–0 had what date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_stage" (
"date" text,
"opponents" text,
"result_f_a" text,
"attendance" real,
"group_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Result F–A of 5–0 had what date?`:
```sql
|
SELECT "attendance" FROM "group_stage" WHERE "date"='1 october 2003'; |
## Task
Generate a SQL query to answer the following question:
`Date of 1 october 2003 had what attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_stage" (
"date" text,
"opponents" text,
"result_f_a" text,
"attendance" real,
"group_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Date of 1 october 2003 had what attendance?`:
```sql
|
SELECT "score" FROM "doubles_55_31_24" WHERE "partner"='tathiana garbin'; |
## Task
Generate a SQL query to answer the following question:
`what score is it with tathiana garbin as partner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_55_31_24" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what score is it with tathiana garbin as partner?`:
```sql
|
SELECT "date" FROM "doubles_55_31_24" WHERE "partner"='giulia casoni'; |
## Task
Generate a SQL query to answer the following question:
`what date was giulia casoni the partner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_55_31_24" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what date was giulia casoni the partner?`:
```sql
|
SELECT "city" FROM "list" WHERE "country"='spain' AND "iata"='ibz'; |
## Task
Generate a SQL query to answer the following question:
`for country of spain and iata of ibz, what's the city?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `for country of spain and iata of ibz, what's the city?`:
```sql
|
SELECT "icao" FROM "list" WHERE "airport"='fiumicino airport'; |
## Task
Generate a SQL query to answer the following question:
`for fiumicino airport what is the icao?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `for fiumicino airport what is the icao?`:
```sql
|
SELECT "airport" FROM "list" WHERE "city"='milan' AND "iata"='lin'; |
## Task
Generate a SQL query to answer the following question:
`for milan and the iata of lin what is the airport?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `for milan and the iata of lin what is the airport?`:
```sql
|
SELECT "iata" FROM "list" WHERE "icao"='eheh'; |
## Task
Generate a SQL query to answer the following question:
`what's the iata for the icao of eheh?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the iata for the icao of eheh?`:
```sql
|
SELECT "airport" FROM "list" WHERE "country"='united kingdom' AND "iata"='lcy'; |
## Task
Generate a SQL query to answer the following question:
`which aiport is in the united kingdom and has iata of lcy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `which aiport is in the united kingdom and has iata of lcy?`:
```sql
|
SELECT "f_goals" FROM "players" WHERE "games"='22 22' AND "points"='012 12'; |
## Task
Generate a SQL query to answer the following question:
`Name the F. Goals for games of 22 22 and points of 012 12`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players" (
"player" text,
"games" text,
"tries" text,
"goals" text,
"f_goals" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the F. Goals for games of 22 22 and points of 012 12`:
```sql
|
SELECT "points" FROM "players" WHERE "games"='16 16'; |
## Task
Generate a SQL query to answer the following question:
`Name the points for games of 16 16`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players" (
"player" text,
"games" text,
"tries" text,
"goals" text,
"f_goals" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the points for games of 16 16`:
```sql
|
SELECT "tries" FROM "players" WHERE "points"='008 8' AND "games"='27 27'; |
## Task
Generate a SQL query to answer the following question:
`Name the tries that has a points of 008 8 and games of 27 27`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players" (
"player" text,
"games" text,
"tries" text,
"goals" text,
"f_goals" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the tries that has a points of 008 8 and games of 27 27`:
```sql
|
SELECT "f_goals" FROM "players" WHERE "tries"='0 0' AND "games"='05 5'; |
## Task
Generate a SQL query to answer the following question:
`Name the F. Goals with tries of 0 0 and games of 05 5`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players" (
"player" text,
"games" text,
"tries" text,
"goals" text,
"f_goals" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the F. Goals with tries of 0 0 and games of 05 5`:
```sql
|
SELECT "player" FROM "players" WHERE "tries"='02 2' AND "points"='008 8'; |
## Task
Generate a SQL query to answer the following question:
`Name the player with tries of 02 2 and points of 008 8`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players" (
"player" text,
"games" text,
"tries" text,
"goals" text,
"f_goals" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the player with tries of 02 2 and points of 008 8`:
```sql
|
SELECT "area" FROM "napier_city" WHERE "name"='william colenso college'; |
## Task
Generate a SQL query to answer the following question:
`Which area has a Name of william colenso college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "napier_city" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which area has a Name of william colenso college?`:
```sql
|
SELECT "authority" FROM "napier_city" WHERE "name"='tamatea high school'; |
## Task
Generate a SQL query to answer the following question:
`Which authority has a Name of tamatea high school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "napier_city" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which authority has a Name of tamatea high school?`:
```sql
|
SELECT "gender" FROM "napier_city" WHERE "decile"=8 AND "area"='taradale' AND "years"='1–13'; |
## Task
Generate a SQL query to answer the following question:
`Which gender has a Decile of 8, an Area of taradale, and Years of 1–13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "napier_city" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which gender has a Decile of 8, an Area of taradale, and Years of 1–13?`:
```sql
|
SELECT "decile" FROM "napier_city" WHERE "years"='–' AND "gender"='coed'; |
## Task
Generate a SQL query to answer the following question:
`Which Decile has Years of –, and a Gender of coed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "napier_city" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Decile has Years of –, and a Gender of coed?`:
```sql
|
SELECT COUNT("division") FROM "career_statistics" WHERE "apps">5 AND "country"='greece'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of division for apps more than 5 for greece`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_statistics" (
"season" text,
"team" text,
"country" text,
"division" real,
"apps" real,
"goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of division for apps more than 5 for greece`:
```sql
|
SELECT AVG("apps") FROM "career_statistics" WHERE "team"='smederevo'; |
## Task
Generate a SQL query to answer the following question:
`Name the average apps for smederevo`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_statistics" (
"season" text,
"team" text,
"country" text,
"division" real,
"apps" real,
"goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average apps for smederevo`:
```sql
|
SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "chassis"='lotus 16'; |
## Task
Generate a SQL query to answer the following question:
`What model engine has a lotus 16 chassis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What model engine has a lotus 16 chassis?`:
```sql
|
SELECT MAX("points") FROM "complete_formula_one_world_championship_" WHERE "entrant"='fred tuck cars' AND "year">1960; |
## Task
Generate a SQL query to answer the following question:
`How many points after 1960 for fred tuck cars?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points after 1960 for fred tuck cars?`:
```sql
|
SELECT "dist_miles" FROM "summary" WHERE "race_name"='unnamed race' AND "runners"='3' AND "course"='newcastle'; |
## Task
Generate a SQL query to answer the following question:
`What is the distance for the unnamed race with 3 runners at Newcastle?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"race_name" text,
"dist_miles" text,
"course" text,
"prize" text,
"jockey" text,
"odds" text,
"runners" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the distance for the unnamed race with 3 runners at Newcastle?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "record"='18-25'; |
## Task
Generate a SQL query to answer the following question:
`Name the score when the record was 18-25`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score when the record was 18-25`:
```sql
|
SELECT "loss" FROM "game_log" WHERE "opponent"='angels'; |
## Task
Generate a SQL query to answer the following question:
`Name the loss for the angels opponent`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the loss for the angels opponent`:
```sql
|
SELECT COUNT("attendance") FROM "game_log" WHERE "record"='16-22'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of people that went when the record was 16-22`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of people that went when the record was 16-22`:
```sql
|
SELECT "score" FROM "game_log" WHERE "opponent"='mariners' AND "date"='may 10'; |
## Task
Generate a SQL query to answer the following question:
`Name the score for the mariners opponent on may 10`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for the mariners opponent on may 10`:
```sql
|
SELECT "outcome" FROM "doubles_8_5_3" WHERE "partner"='jürgen melzer' AND "date"='january 7, 2012'; |
## Task
Generate a SQL query to answer the following question:
`What was the Outcome for the Partner of Jürgen Melzer and the Date of January 7, 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_8_5_3" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Outcome for the Partner of Jürgen Melzer and the Date of January 7, 2012?`:
```sql
|
SELECT "surface" FROM "doubles_8_5_3" WHERE "partner"='jürgen melzer' AND "date"='july 16, 2011'; |
## Task
Generate a SQL query to answer the following question:
`What was the Surface for the Partner of Jürgen Melzer, and a Date of July 16, 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_8_5_3" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Surface for the Partner of Jürgen Melzer, and a Date of July 16, 2011?`:
```sql
|
SELECT "outcome" FROM "doubles_8_5_3" WHERE "date"='july 16, 2011'; |
## Task
Generate a SQL query to answer the following question:
`What's the Outcome for the Date of July 16, 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_8_5_3" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Outcome for the Date of July 16, 2011?`:
```sql
|
SELECT "outcome" FROM "doubles_8_5_3" WHERE "partner"='jürgen melzer' AND "date"='february 7, 2010'; |
## Task
Generate a SQL query to answer the following question:
`What's the Outcome for the Partner of Jürgen Melzer on the Date of February 7, 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_8_5_3" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Outcome for the Partner of Jürgen Melzer on the Date of February 7, 2010?`:
```sql
|
SELECT "nation" FROM "cultural_events" WHERE "rank">9; |
## Task
Generate a SQL query to answer the following question:
`Name the nation with rank more than 9`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cultural_events" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the nation with rank more than 9`:
```sql
|
SELECT MIN("bronze") FROM "cultural_events" WHERE "silver"<0; |
## Task
Generate a SQL query to answer the following question:
`Name the least bronze for silver being less than 0`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cultural_events" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least bronze for silver being less than 0`:
```sql
|
SELECT SUM("rank") FROM "cultural_events" WHERE "bronze"<1 AND "gold"=1 AND "total"<1; |
## Task
Generate a SQL query to answer the following question:
`Name the sum of rank for bronze less than 1 and gold of 1 with total less than 1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cultural_events" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of rank for bronze less than 1 and gold of 1 with total less than 1`:
```sql
|
SELECT SUM("rank") FROM "cultural_events" WHERE "silver"<0; |
## Task
Generate a SQL query to answer the following question:
`Name the sum of rank for silver less than 0`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cultural_events" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of rank for silver less than 0`:
```sql
|
SELECT MIN("rank") FROM "cultural_events" WHERE "silver"<1 AND "total">1 AND "bronze"<1; |
## Task
Generate a SQL query to answer the following question:
`Name the least rank when silver is less than 1 and bronze is less than 1 with total more than 1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cultural_events" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least rank when silver is less than 1 and bronze is less than 1 with total more than 1`:
```sql
|
SELECT "date" FROM "game_log" WHERE "series"='1-4'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the game in which the series was 1-4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game in which the series was 1-4?`:
```sql
|
SELECT "score" FROM "montreal_canadiens_3_chicago_black_hawks" WHERE "home"='montreal canadiens' AND "date"='april 11'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score that has a Home of montreal canadiens on april 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "montreal_canadiens_3_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score that has a Home of montreal canadiens on april 11?`:
```sql
|
SELECT "record" FROM "montreal_canadiens_3_chicago_black_hawks" WHERE "date"='april 13'; |
## Task
Generate a SQL query to answer the following question:
`What is the Record on april 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "montreal_canadiens_3_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Record on april 13?`:
```sql
|
SELECT "date" FROM "montreal_canadiens_3_chicago_black_hawks" WHERE "home"='chicago black hawks' AND "record"='0–1'; |
## Task
Generate a SQL query to answer the following question:
`When is Home of chicago black hawks has a Record of 0–1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "montreal_canadiens_3_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is Home of chicago black hawks has a Record of 0–1?`:
```sql
|
SELECT "date" FROM "montreal_canadiens_3_chicago_black_hawks" WHERE "visitor"='chicago black hawks' AND "record"='2–2'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date that chicago black hawks has a Record of 2–2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "montreal_canadiens_3_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date that chicago black hawks has a Record of 2–2?`:
```sql
|
SELECT "record" FROM "montreal_canadiens_3_chicago_black_hawks" WHERE "score"='0–2'; |
## Task
Generate a SQL query to answer the following question:
`Which Record has a Score of 0–2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "montreal_canadiens_3_chicago_black_hawks" (
"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 Score of 0–2?`:
```sql
|
SELECT "visitor" FROM "montreal_canadiens_3_chicago_black_hawks" WHERE "date"='april 5'; |
## Task
Generate a SQL query to answer the following question:
`Who is the visitor on April 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "montreal_canadiens_3_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the visitor on April 5?`:
```sql
|
SELECT "team" FROM "career_statistics" WHERE "year"='2011'; |
## Task
Generate a SQL query to answer the following question:
`What is the Team, when the Year is 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_statistics" (
"year" text,
"team" text,
"tackles" text,
"solo" real,
"sacks" real,
"int_yds" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Team, when the Year is 2011?`:
```sql
|
SELECT "int_yds" FROM "career_statistics" WHERE "team"='new orleans saints' AND "sacks">0 AND "solo"=71; |
## Task
Generate a SQL query to answer the following question:
`What is the value for INT YDS, when the Team is New Orleans Saints, and when the value for Sacks is greater than 0, and when the vale for Solo is 71?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_statistics" (
"year" text,
"team" text,
"tackles" text,
"solo" real,
"sacks" real,
"int_yds" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value for INT YDS, when the Team is New Orleans Saints, and when the value for Sacks is greater than 0, and when the vale for Solo is 71?`:
```sql
|
SELECT MIN("sacks") FROM "career_statistics" WHERE "team"='new orleans saints' AND "tackles"='132'; |
## Task
Generate a SQL query to answer the following question:
`What is the value for lowest Sacks, when the Team is New Orleans Saints, and when the value for Tackles is 132?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_statistics" (
"year" text,
"team" text,
"tackles" text,
"solo" real,
"sacks" real,
"int_yds" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value for lowest Sacks, when the Team is New Orleans Saints, and when the value for Tackles is 132?`:
```sql
|
SELECT "tackles" FROM "career_statistics" WHERE "solo">67 AND "sacks"<2 AND "int_yds">1; |
## Task
Generate a SQL query to answer the following question:
`What is the value for Tackles, when the value for Solo is greater than 67, when the value for Sacks is less than 2, and when the value for INT YDS is greater than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_statistics" (
"year" text,
"team" text,
"tackles" text,
"solo" real,
"sacks" real,
"int_yds" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value for Tackles, when the value for Solo is greater than 67, when the value for Sacks is less than 2, and when the value for INT YDS is greater than 1?`:
```sql
|
SELECT COUNT("solo") FROM "career_statistics" WHERE "sacks"=2 AND "team"='new york jets'; |
## Task
Generate a SQL query to answer the following question:
`What is the total value for Solo, when the value of Sacks is 2, and when the Team is New York Jets?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_statistics" (
"year" text,
"team" text,
"tackles" text,
"solo" real,
"sacks" real,
"int_yds" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total value for Solo, when the value of Sacks is 2, and when the Team is New York Jets?`:
```sql
|
SELECT "outcome" FROM "itf_circuit_singles_finals_7_6" WHERE "score"='6–4, 6–1'; |
## Task
Generate a SQL query to answer the following question:
`What is the outcome of the match with a score of 6–4, 6–1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "itf_circuit_singles_finals_7_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the outcome of the match with a score of 6–4, 6–1?`:
```sql
|
SELECT "date" FROM "itf_circuit_singles_finals_7_6" WHERE "surface"='clay' AND "opponent"='andrea hlaváčková'; |
## Task
Generate a SQL query to answer the following question:
`What date was the match on a clay surface against Andrea Hlaváčková?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "itf_circuit_singles_finals_7_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the match on a clay surface against Andrea Hlaváčková?`:
```sql
|
SELECT "opponent" FROM "itf_circuit_singles_finals_7_6" WHERE "tournament"='herceg novi'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the opponent at the Herceg Novi tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "itf_circuit_singles_finals_7_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the opponent at the Herceg Novi tournament?`:
```sql
|
SELECT "loss" FROM "game_log" WHERE "record"='50-32'; |
## Task
Generate a SQL query to answer the following question:
`What was the loss of the game when the record was 50-32?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the loss of the game when the record was 50-32?`:
```sql
|
SELECT "opponent" FROM "season_schedule" WHERE "result"='l 14–6'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent with a result of l 14–6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent with a result of l 14–6?`:
```sql
|
SELECT SUM("attendance") FROM "season_schedule" WHERE "date"='november 17, 1961'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of all attendance on November 17, 1961?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_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 sum of all attendance on November 17, 1961?`:
```sql
|
SELECT MIN("attendance") FROM "season_schedule" WHERE "week"=5; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest attendance in week 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_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 smallest attendance in week 5?`:
```sql
|
SELECT "3_rd" FROM "all_time_liga_acb_table" WHERE "season"<4 AND "lost"=61; |
## Task
Generate a SQL query to answer the following question:
`Name the 3rd for season less than 4 and lost of 61`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "all_time_liga_acb_table" (
"team" text,
"season" real,
"played" real,
"lost" real,
"1_st" text,
"2_nd" text,
"3_rd" text,
"4_th" text,
"debut" text,
"since_last_app" text,
"best" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 3rd for season less than 4 and lost of 61`:
```sql
|
SELECT SUM("played") FROM "rugby_belgium_internationals_1986" WHERE "first_game"<2000 AND "lost"<21 AND "drawn"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of matches played that has a year of first match before 2000, fewer than 21 lost, and 0 drawn?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rugby_belgium_internationals_1986" (
"first_game" real,
"played" real,
"drawn" real,
"lost" real,
"percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of matches played that has a year of first match before 2000, fewer than 21 lost, and 0 drawn?`:
```sql
|
SELECT MIN("played") FROM "rugby_belgium_internationals_1986" WHERE "drawn">0 AND "percentage"='12.50%' AND "lost"<3; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of matches played that has more than 0 draws, a percentage of 12.50%, and fewer than 3 losses?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rugby_belgium_internationals_1986" (
"first_game" real,
"played" real,
"drawn" real,
"lost" real,
"percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of matches played that has more than 0 draws, a percentage of 12.50%, and fewer than 3 losses?`:
```sql
|
SELECT SUM("value") FROM "numbers_from_30_90" WHERE "word_form"='សាមសិប'; |
## Task
Generate a SQL query to answer the following question:
`What's the total value of សាមសិប?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "numbers_from_30_90" (
"value" real,
"khmer" real,
"word_form" text,
"ungegn" text,
"ala_lc" text,
"other" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total value of សាមសិប?`:
```sql
|
SELECT "word_form" FROM "numbers_from_30_90" WHERE "other"='sam sep'; |
## Task
Generate a SQL query to answer the following question:
`What can you say is the word from of sam sep?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "numbers_from_30_90" (
"value" real,
"khmer" real,
"word_form" text,
"ungegn" text,
"ala_lc" text,
"other" text
);
### SQL
Given the database schema, here is the SQL query that answers `What can you say is the word from of sam sep?`:
```sql
|
SELECT MIN("khmer") FROM "numbers_from_30_90" WHERE "ala_lc"='kau sip' AND "value"<90; |
## Task
Generate a SQL query to answer the following question:
`What is smallest Khmer valued less than 90 have a kau sip ALA-LC?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "numbers_from_30_90" (
"value" real,
"khmer" real,
"word_form" text,
"ungegn" text,
"ala_lc" text,
"other" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is smallest Khmer valued less than 90 have a kau sip ALA-LC?`:
```sql
|
SELECT SUM("value") FROM "numbers_from_30_90" WHERE "ungegn"='kau sĕb'; |
## Task
Generate a SQL query to answer the following question:
`How much is the total value of kau sĕb UNGEGN ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "numbers_from_30_90" (
"value" real,
"khmer" real,
"word_form" text,
"ungegn" text,
"ala_lc" text,
"other" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much is the total value of kau sĕb UNGEGN ?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.