output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "loss" FROM "game_log" WHERE "date"='april 26'; |
## Task
Generate a SQL query to answer the following question:
`Which loss has a Date of april 26?`
### 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 `Which loss has a Date of april 26?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "opponent"='angels' AND "loss"='sanderson (0–1)'; |
## Task
Generate a SQL query to answer the following question:
`Which date has an Opponent of angels, and a Loss of sanderson (0–1)?`
### 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 `Which date has an Opponent of angels, and a Loss of sanderson (0–1)?`:
```sql
|
SELECT MAX("attendance") FROM "game_log" WHERE "loss"='darling (0–1)'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest Attendance with a Loss of darling (0–1)?`
### 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 `What is the largest Attendance with a Loss of darling (0–1)?`:
```sql
|
SELECT "maximum_seating_capacity" FROM "on_campus_arenas" WHERE "arena_venue"='san agustin gym'; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum capacity of the San Agustin Gym?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "on_campus_arenas" (
"arena_venue" text,
"home_campus" text,
"location" text,
"province_region" text,
"maximum_seating_capacity" text,
"year_opened" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum capacity of the San Agustin Gym?`:
```sql
|
SELECT "province_region" FROM "on_campus_arenas" WHERE "location"='cagayan de oro city'; |
## Task
Generate a SQL query to answer the following question:
`Where is the Cagayan de Oro city located?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "on_campus_arenas" (
"arena_venue" text,
"home_campus" text,
"location" text,
"province_region" text,
"maximum_seating_capacity" text,
"year_opened" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the Cagayan de Oro city located?`:
```sql
|
SELECT "province_region" FROM "on_campus_arenas" WHERE "home_campus"='holy cross of davao college'; |
## Task
Generate a SQL query to answer the following question:
`Where is the Holy Cross of Davao College campus located?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "on_campus_arenas" (
"arena_venue" text,
"home_campus" text,
"location" text,
"province_region" text,
"maximum_seating_capacity" text,
"year_opened" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the Holy Cross of Davao College campus located?`:
```sql
|
SELECT "home_campus" FROM "on_campus_arenas" WHERE "arena_venue"='san agustin gym'; |
## Task
Generate a SQL query to answer the following question:
`Which campus has the San Agustin gym?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "on_campus_arenas" (
"arena_venue" text,
"home_campus" text,
"location" text,
"province_region" text,
"maximum_seating_capacity" text,
"year_opened" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which campus has the San Agustin gym?`:
```sql
|
SELECT "year_opened" FROM "on_campus_arenas" WHERE "arena_venue"='san agustin gym'; |
## Task
Generate a SQL query to answer the following question:
`What year did the San Agustin gym open?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "on_campus_arenas" (
"arena_venue" text,
"home_campus" text,
"location" text,
"province_region" text,
"maximum_seating_capacity" text,
"year_opened" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did the San Agustin gym open?`:
```sql
|
SELECT "player" FROM "made_the_cut" WHERE "total">285 AND "to_par"='+14'; |
## Task
Generate a SQL query to answer the following question:
`Which player has a total bigger than 285 and a to par of +14?`
### 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" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has a total bigger than 285 and a to par of +14?`:
```sql
|
SELECT MAX("total") FROM "made_the_cut" WHERE "finish"='t12'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest total with a t12 finish?`
### 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" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest total with a t12 finish?`:
```sql
|
SELECT "country" FROM "made_the_cut" WHERE "finish"='t4'; |
## Task
Generate a SQL query to answer the following question:
`Which country has a finish of t4?`
### 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" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has a finish of t4?`:
```sql
|
SELECT "year_s_won" FROM "made_the_cut" WHERE "total"<281; |
## Task
Generate a SQL query to answer the following question:
`What year won has a total less than 281?`
### 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" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year won has a total less than 281?`:
```sql
|
SELECT "chassis" FROM "cart" WHERE "rank"='24th'; |
## Task
Generate a SQL query to answer the following question:
`Which chassis is ranked 24th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cart" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"rank" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which chassis is ranked 24th?`:
```sql
|
SELECT "chassis" FROM "cart" WHERE "year"=1993; |
## Task
Generate a SQL query to answer the following question:
`Which chassis was made in 1993?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cart" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"rank" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which chassis was made in 1993?`:
```sql
|
SELECT "team" FROM "cart" WHERE "year"<1994; |
## Task
Generate a SQL query to answer the following question:
`Which team is from earlier than 1994?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cart" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"rank" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team is from earlier than 1994?`:
```sql
|
SELECT "rank" FROM "cart" WHERE "year">1994; |
## Task
Generate a SQL query to answer the following question:
`What rank is later than 1994?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cart" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"rank" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What rank is later than 1994?`:
```sql
|
SELECT AVG("year") FROM "cart" WHERE "team"='king' AND "points"<10; |
## Task
Generate a SQL query to answer the following question:
`What year did the King team have fewer than 10 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cart" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"rank" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year did the King team have fewer than 10 points?`:
```sql
|
SELECT AVG("points") FROM "cart" WHERE "engine"='ford xb' AND "team"='project indy'; |
## Task
Generate a SQL query to answer the following question:
`What are the average points for the Project Indy team that has the Ford xb engine?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cart" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"rank" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the average points for the Project Indy team that has the Ford xb engine?`:
```sql
|
SELECT "became_consort" FROM "house_of_oldenburg" WHERE "marriage"='4 april 1721'; |
## Task
Generate a SQL query to answer the following question:
`Name the became consort for marriage of 4 april 1721`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "house_of_oldenburg" (
"birth" text,
"marriage" text,
"became_consort" text,
"ceased_to_be_consort" text,
"death" text,
"spouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the became consort for marriage of 4 april 1721`:
```sql
|
SELECT "birth" FROM "house_of_oldenburg" WHERE "spouse"='frederick iv' AND "became_consort"='4 april 1721'; |
## Task
Generate a SQL query to answer the following question:
`Name the birth of the person that has a spouse of frederick iv and became consort of 4 april 1721`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "house_of_oldenburg" (
"birth" text,
"marriage" text,
"became_consort" text,
"ceased_to_be_consort" text,
"death" text,
"spouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the birth of the person that has a spouse of frederick iv and became consort of 4 april 1721`:
```sql
|
SELECT "became_consort" FROM "house_of_oldenburg" WHERE "ceased_to_be_consort"='4 april 1588 husband''s death'; |
## Task
Generate a SQL query to answer the following question:
`Name the became consort for ceased to be consort of 4 april 1588 husband's death`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "house_of_oldenburg" (
"birth" text,
"marriage" text,
"became_consort" text,
"ceased_to_be_consort" text,
"death" text,
"spouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the became consort for ceased to be consort of 4 april 1588 husband's death`:
```sql
|
SELECT "marriage" FROM "house_of_oldenburg" WHERE "spouse"='christian viii'; |
## Task
Generate a SQL query to answer the following question:
`Name the marriage of the person who is married for christian viii`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "house_of_oldenburg" (
"birth" text,
"marriage" text,
"became_consort" text,
"ceased_to_be_consort" text,
"death" text,
"spouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the marriage of the person who is married for christian viii`:
```sql
|
SELECT "team" FROM "motorcycle_grand_prix_results" WHERE "points"=48 AND "class"='500 cc'; |
## Task
Generate a SQL query to answer the following question:
`Who has 48 points in the class of 500 cc?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who has 48 points in the class of 500 cc?`:
```sql
|
SELECT COUNT("wins") FROM "motorcycle_grand_prix_results" WHERE "team"='benelli' AND "year"<1962; |
## Task
Generate a SQL query to answer the following question:
`How many wins does Benelli have before 1962?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins does Benelli have before 1962?`:
```sql
|
SELECT "natural_wood_keyboard" FROM "keyboard_feel_feature_matrix_for_current" WHERE "model"='clps306'; |
## Task
Generate a SQL query to answer the following question:
`Which is Natural Wood Keyboard with a Model of clps306?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "keyboard_feel_feature_matrix_for_current" (
"model" text,
"graded_hammer_non_gh3" text,
"graded_hammer_three_gh3" text,
"natural_wood_keyboard" text,
"synthetic_ivory_keytops" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which is Natural Wood Keyboard with a Model of clps306?`:
```sql
|
SELECT "graded_hammer_non_gh3" FROM "keyboard_feel_feature_matrix_for_current" WHERE "model"='cvp501'; |
## Task
Generate a SQL query to answer the following question:
`Which Graded Hammer (Non GH3) has a Model of cvp501?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "keyboard_feel_feature_matrix_for_current" (
"model" text,
"graded_hammer_non_gh3" text,
"graded_hammer_three_gh3" text,
"natural_wood_keyboard" text,
"synthetic_ivory_keytops" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Graded Hammer (Non GH3) has a Model of cvp501?`:
```sql
|
SELECT "natural_wood_keyboard" FROM "keyboard_feel_feature_matrix_for_current" WHERE "model"='clp380'; |
## Task
Generate a SQL query to answer the following question:
`Which Natural Wood Keyboard has a CLP380 ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "keyboard_feel_feature_matrix_for_current" (
"model" text,
"graded_hammer_non_gh3" text,
"graded_hammer_three_gh3" text,
"natural_wood_keyboard" text,
"synthetic_ivory_keytops" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Natural Wood Keyboard has a CLP380 ?`:
```sql
|
SELECT "graded_hammer_three_gh3" FROM "keyboard_feel_feature_matrix_for_current" WHERE "model"='clp320'; |
## Task
Generate a SQL query to answer the following question:
`Which Graded Hammer Three (GH3) shows Model of clp320?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "keyboard_feel_feature_matrix_for_current" (
"model" text,
"graded_hammer_non_gh3" text,
"graded_hammer_three_gh3" text,
"natural_wood_keyboard" text,
"synthetic_ivory_keytops" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Graded Hammer Three (GH3) shows Model of clp320?`:
```sql
|
SELECT "date" FROM "world_championship_grands_prix" WHERE "name"='french grand prix'; |
## Task
Generate a SQL query to answer the following question:
`What was the date for the French Grand Prix?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "world_championship_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date for the French Grand Prix?`:
```sql
|
SELECT "name" FROM "world_championship_grands_prix" WHERE "circuit"='miramas'; |
## Task
Generate a SQL query to answer the following question:
`What was the name for the race in the Miramas circuit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "world_championship_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name for the race in the Miramas circuit?`:
```sql
|
SELECT "circuit" FROM "world_championship_grands_prix" WHERE "winning_constructor"='delage'; |
## Task
Generate a SQL query to answer the following question:
`Which circuit was Delage the winning constructor for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "world_championship_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which circuit was Delage the winning constructor for?`:
```sql
|
SELECT "name" FROM "world_championship_grands_prix" WHERE "winning_constructor"='bugatti' AND "circuit"='monza'; |
## Task
Generate a SQL query to answer the following question:
`What is the name for the Monza circuit race were Bugatti was the winning constructor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "world_championship_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name for the Monza circuit race were Bugatti was the winning constructor?`:
```sql
|
SELECT "report" FROM "world_championship_grands_prix" WHERE "winning_drivers"='frank lockhart'; |
## Task
Generate a SQL query to answer the following question:
`Which report shows that Frank Lockhart was a winning driver?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "world_championship_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which report shows that Frank Lockhart was a winning driver?`:
```sql
|
SELECT "ranking" FROM "summer_paralympics" WHERE "gold"<20 AND "event"='1976 toronto'; |
## Task
Generate a SQL query to answer the following question:
`What Ranking has Gold less than 20 and the Event 1976 Toronto?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summer_paralympics" (
"event" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real,
"ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Ranking has Gold less than 20 and the Event 1976 Toronto?`:
```sql
|
SELECT "gold" FROM "summer_paralympics" WHERE "silver">30 AND "total"<107; |
## Task
Generate a SQL query to answer the following question:
`What Gold has a Silver greater than 30 and a Total less than 107?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summer_paralympics" (
"event" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real,
"ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Gold has a Silver greater than 30 and a Total less than 107?`:
```sql
|
SELECT MAX("bronze") FROM "summer_paralympics" WHERE "event"='1972 heidelberg' AND "total"<5; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Bronze with the Event 1972 Heidelberg and Total less than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summer_paralympics" (
"event" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real,
"ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Bronze with the Event 1972 Heidelberg and Total less than 5?`:
```sql
|
SELECT SUM("total") FROM "summer_paralympics" WHERE "event"='2004 athens' AND "gold"<20; |
## Task
Generate a SQL query to answer the following question:
`What is the Total with the Event 2004 Athens and Gold less than 20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summer_paralympics" (
"event" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real,
"ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Total with the Event 2004 Athens and Gold less than 20?`:
```sql
|
SELECT MIN("bronze") FROM "summer_paralympics" WHERE "ranking"='22nd of 32' AND "gold">4; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Bronze with a Ranking of 22nd of 32 and Gold larger than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summer_paralympics" (
"event" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real,
"ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Bronze with a Ranking of 22nd of 32 and Gold larger than 4?`:
```sql
|
SELECT "polling_firm" FROM "opinion_polls" WHERE "t_papadopoulos"='31%'; |
## Task
Generate a SQL query to answer the following question:
`Which polling firm put T. Papadopoulos at 31%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "opinion_polls" (
"polling_firm" text,
"date_published" text,
"t_papadopoulos" text,
"d_christofias" text,
"i_kasoulidis" text,
"k_themistokleous" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which polling firm put T. Papadopoulos at 31%?`:
```sql
|
SELECT "t_papadopoulos" FROM "opinion_polls" WHERE "i_kasoulidis"='27.1%'; |
## Task
Generate a SQL query to answer the following question:
`What was the percentage for T. Papadopoulos when I. Kasoulidis was 27.1%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "opinion_polls" (
"polling_firm" text,
"date_published" text,
"t_papadopoulos" text,
"d_christofias" text,
"i_kasoulidis" text,
"k_themistokleous" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the percentage for T. Papadopoulos when I. Kasoulidis was 27.1%?`:
```sql
|
SELECT "k_themistokleous" FROM "opinion_polls" WHERE "i_kasoulidis"='30.1%'; |
## Task
Generate a SQL query to answer the following question:
`What was the percentage for K. Themistokleous when I. Kasoulidis was 30.1%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "opinion_polls" (
"polling_firm" text,
"date_published" text,
"t_papadopoulos" text,
"d_christofias" text,
"i_kasoulidis" text,
"k_themistokleous" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the percentage for K. Themistokleous when I. Kasoulidis was 30.1%?`:
```sql
|
SELECT "t_papadopoulos" FROM "opinion_polls" WHERE "d_christofias"='28.4%'; |
## Task
Generate a SQL query to answer the following question:
`What was the percentage for T. Papadopoulos when D. Christofias was 28.4%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "opinion_polls" (
"polling_firm" text,
"date_published" text,
"t_papadopoulos" text,
"d_christofias" text,
"i_kasoulidis" text,
"k_themistokleous" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the percentage for T. Papadopoulos when D. Christofias was 28.4%?`:
```sql
|
SELECT "tournament" FROM "women_s_doubles_performance_timeline" WHERE "2007"='2r' AND "2011"='2r'; |
## Task
Generate a SQL query to answer the following question:
`Which tournament has a 2007 of 2r, and a 2011 of 2r?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_s_doubles_performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament has a 2007 of 2r, and a 2011 of 2r?`:
```sql
|
SELECT SUM("titles") FROM "cities" WHERE "city"='győr' AND "rank">4; |
## Task
Generate a SQL query to answer the following question:
`What is the number of titles for the city of győr with a rank larger than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cities" (
"rank" real,
"city" text,
"titles" real,
"winning_clubs" text,
"last_victory" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of titles for the city of győr with a rank larger than 4?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "home"='toronto maple leafs' AND "date"='february 1'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score of the Toronto Maple Leafs home game on February 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"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 of the Toronto Maple Leafs home game on February 1?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "visitor"='boston bruins' AND "date"='march 13'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the Boston Bruins away game on March 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"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 of the Boston Bruins away game on March 13?`:
```sql
|
SELECT "visitor" FROM "game_log" WHERE "record"='9–5–2'; |
## Task
Generate a SQL query to answer the following question:
`What visiting team has a record of 9–5–2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What visiting team has a record of 9–5–2?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "record"='12–8–3'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the game with a record of 12–8–3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"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 of the game with a record of 12–8–3?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "home"='montreal canadiens' AND "record"='14–11–3'; |
## Task
Generate a SQL query to answer the following question:
`What is the date that the Montreal Canadiens hosted a game with a record of 14–11–3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"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 the Montreal Canadiens hosted a game with a record of 14–11–3?`:
```sql
|
SELECT "country" FROM "missed_the_cut" WHERE "player"='craig stadler'; |
## Task
Generate a SQL query to answer the following question:
`What is the country of Craig Stadler?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the country of Craig Stadler?`:
```sql
|
SELECT AVG("total") FROM "missed_the_cut" WHERE "country"='united states' AND "to_par"=9 AND "player"='gay brewer'; |
## Task
Generate a SQL query to answer the following question:
`What is the average total of Gay Brewer from the United States with a to par of 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average total of Gay Brewer from the United States with a to par of 9?`:
```sql
|
SELECT "finish" FROM "made_the_cut" WHERE "country"='west germany'; |
## Task
Generate a SQL query to answer the following question:
`What was the finish by the player from West Germany?`
### 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" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the finish by the player from West Germany?`:
```sql
|
SELECT MIN("goal") FROM "budi_sudarsono_international_goals" WHERE "competition"='2006 fifa world cup qualification'; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest goal during the 2006 fifa world cup qualification competition?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "budi_sudarsono_international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest goal during the 2006 fifa world cup qualification competition?`:
```sql
|
SELECT "representative" FROM "external_links" WHERE "party"='whig'; |
## Task
Generate a SQL query to answer the following question:
`Name the representative for party of whig`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"representative" text,
"years" text,
"state" text,
"party" text,
"lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the representative for party of whig`:
```sql
|
SELECT COUNT("year") FROM "complete_formula_one_world_championship_" WHERE "chassis"='maserati 250f' AND "points"<0; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of years for chassis of maserati 250f and points less than 0`
### 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 `Name the total number of years for chassis of maserati 250f and points less than 0`:
```sql
|
SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "chassis"='maserati 250f' AND "entrant"='luigi piotti' AND "year"<1957; |
## Task
Generate a SQL query to answer the following question:
`Name the engine with chassis of maserati 250f and entrant of luigi piotti with year less than 1957`
### 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 `Name the engine with chassis of maserati 250f and entrant of luigi piotti with year less than 1957`:
```sql
|
SELECT SUM("points") FROM "complete_formula_one_world_championship_" WHERE "chassis"='maserati 250f' AND "entrant"='officine alfieri maserati'; |
## Task
Generate a SQL query to answer the following question:
`Name the sum of points for chassis of maserati 250f and entrant of officine alfieri maserati`
### 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 `Name the sum of points for chassis of maserati 250f and entrant of officine alfieri maserati`:
```sql
|
SELECT MIN("points") FROM "complete_formula_one_world_championship_" WHERE "entrant"='officine alfieri maserati'; |
## Task
Generate a SQL query to answer the following question:
`Name the lowest points for officine alfieri maserati`
### 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 `Name the lowest points for officine alfieri maserati`:
```sql
|
SELECT "height" FROM "current_roster" WHERE "players"='ye fei'; |
## Task
Generate a SQL query to answer the following question:
`How tall is Ye Fei?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_roster" (
"players" text,
"sh_c" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `How tall is Ye Fei?`:
```sql
|
SELECT SUM("attendance") FROM "game_log" WHERE "date"='july 26'; |
## Task
Generate a SQL query to answer the following question:
`What is the attendance of the game on July 26?`
### 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 `What is the attendance of the game on July 26?`:
```sql
|
SELECT COUNT("year") FROM "achievements" WHERE "venue"='antwerp, belgium' AND "result"='2nd'; |
## Task
Generate a SQL query to answer the following question:
`How many years did the team place 2nd in Antwerp, Belgium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years did the team place 2nd in Antwerp, Belgium?`:
```sql
|
SELECT "venue" FROM "achievements" WHERE "year"<1991; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the venue that was used before 1991?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the venue that was used before 1991?`:
```sql
|
SELECT COUNT("year") FROM "achievements" WHERE "result"='2nd' AND "venue"='auckland, new zealand'; |
## Task
Generate a SQL query to answer the following question:
`How many years did the team place 2nd in Auckland, New Zealand?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years did the team place 2nd in Auckland, New Zealand?`:
```sql
|
SELECT "started_round" FROM "overall" WHERE "last_match"='january 16, 2008'; |
## Task
Generate a SQL query to answer the following question:
`What was the started round for the competition that had the last match on January 16, 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overall" (
"competition" text,
"started_round" text,
"final_position" text,
"final_round" text,
"first_match" text,
"last_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the started round for the competition that had the last match on January 16, 2008?`:
```sql
|
SELECT "first_match" FROM "overall" WHERE "last_match"='december 16, 2007'; |
## Task
Generate a SQL query to answer the following question:
`On what date was the first match for the competition that ended its last match on December 16, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overall" (
"competition" text,
"started_round" text,
"final_position" text,
"final_round" text,
"first_match" text,
"last_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the first match for the competition that ended its last match on December 16, 2007?`:
```sql
|
SELECT "competition" FROM "overall" WHERE "final_position"='winners' AND "final_round"='finals'; |
## Task
Generate a SQL query to answer the following question:
`What competition had a final round in the finals and the final position winners?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overall" (
"competition" text,
"started_round" text,
"final_position" text,
"final_round" text,
"first_match" text,
"last_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `What competition had a final round in the finals and the final position winners?`:
```sql
|
SELECT "first_match" FROM "overall" WHERE "final_position"='winners' AND "final_round"='finals'; |
## Task
Generate a SQL query to answer the following question:
`On what date did the first match occur for the competition that ended with a final position of winners and the final round in the finals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overall" (
"competition" text,
"started_round" text,
"final_position" text,
"final_round" text,
"first_match" text,
"last_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did the first match occur for the competition that ended with a final position of winners and the final round in the finals?`:
```sql
|
SELECT "competition" FROM "overall" WHERE "first_match"='december 20, 2007'; |
## Task
Generate a SQL query to answer the following question:
`What competition had its first match on December 20, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overall" (
"competition" text,
"started_round" text,
"final_position" text,
"final_round" text,
"first_match" text,
"last_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `What competition had its first match on December 20, 2007?`:
```sql
|
SELECT "first_match" FROM "overall" WHERE "final_position"='winners' AND "competition"='fifa club world cup'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the first match of the Fifa Club World Cup that ended with the final position as winners?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overall" (
"competition" text,
"started_round" text,
"final_position" text,
"final_round" text,
"first_match" text,
"last_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the first match of the Fifa Club World Cup that ended with the final position as winners?`:
```sql
|
SELECT COUNT("laps") FROM "indy_500_results" WHERE "qual"='142.653'; |
## Task
Generate a SQL query to answer the following question:
`What was Len Sutton's total number of completed laps when his qualifying time was 142.653?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Len Sutton's total number of completed laps when his qualifying time was 142.653?`:
```sql
|
SELECT "call_sign" FROM "translators" WHERE "frequency_m_hz"=91.3; |
## Task
Generate a SQL query to answer the following question:
`What call sign has a frequency of 91.3 MHz?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What call sign has a frequency of 91.3 MHz?`:
```sql
|
SELECT "city_of_license" FROM "translators" WHERE "call_sign"='k293bg'; |
## Task
Generate a SQL query to answer the following question:
`What city of license has a value of k293bg for its call sign?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city of license has a value of k293bg for its call sign?`:
```sql
|
SELECT "call_sign" FROM "translators" WHERE "erp_w">10 AND "frequency_m_hz"=103.7; |
## Task
Generate a SQL query to answer the following question:
`When the frequency is 103.7 MHz and the ERP W is more than 10, what is the call sign?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the frequency is 103.7 MHz and the ERP W is more than 10, what is the call sign?`:
```sql
|
SELECT AVG("frequency_m_hz") FROM "translators" WHERE "city_of_license"='los banos, california' AND "erp_w"<10; |
## Task
Generate a SQL query to answer the following question:
`In Los Banos, California, when the ERP W is than 10, what is the average Frequency MHz?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `In Los Banos, California, when the ERP W is than 10, what is the average Frequency MHz?`:
```sql
|
SELECT "call_sign" FROM "translators" WHERE "frequency_m_hz"<95.5 AND "erp_w">10; |
## Task
Generate a SQL query to answer the following question:
`What is the call sign when the frequency is less than 95.5 MHz, and a ERP W is higher than 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the call sign when the frequency is less than 95.5 MHz, and a ERP W is higher than 10?`:
```sql
|
SELECT "player" FROM "final_round" WHERE "score"='73-69-74-71=287'; |
## Task
Generate a SQL query to answer the following question:
`Name the player with score of 73-69-74-71=287`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the player with score of 73-69-74-71=287`:
```sql
|
SELECT SUM("to_par") FROM "final_round" WHERE "score"='71-74-71-72=288'; |
## Task
Generate a SQL query to answer the following question:
`Name the sum To par for score of 71-74-71-72=288`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum To par for score of 71-74-71-72=288`:
```sql
|
SELECT "tournament" FROM "references" WHERE "opponent"='kathy horvath'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the tournament for kathy horvath opponent`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"tournament" text,
"date" text,
"surface" text,
"round" text,
"opponent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the tournament for kathy horvath opponent`:
```sql
|
SELECT "date" FROM "references" WHERE "surface"='hard' AND "tournament"='maybelline classic' AND "opponent"='wendy turnbull'; |
## Task
Generate a SQL query to answer the following question:
`Name the date for hard surface at maybelline classic with opponent of wendy turnbull`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"tournament" text,
"date" text,
"surface" text,
"round" text,
"opponent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for hard surface at maybelline classic with opponent of wendy turnbull`:
```sql
|
SELECT "tournament" FROM "references" WHERE "round"='semifinal' AND "surface"='hard' AND "opponent"='pam casale'; |
## Task
Generate a SQL query to answer the following question:
`Name the tournament for semifinal hard surface for opponent of pam casale`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"tournament" text,
"date" text,
"surface" text,
"round" text,
"opponent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the tournament for semifinal hard surface for opponent of pam casale`:
```sql
|
SELECT "date" FROM "references" WHERE "surface"='grass' AND "round"='quarterfinal' AND "tournament"='nsw building society open'; |
## Task
Generate a SQL query to answer the following question:
`Name the date for grass surface for quarterfinal at the nsw building society open tournament`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"tournament" text,
"date" text,
"surface" text,
"round" text,
"opponent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for grass surface for quarterfinal at the nsw building society open tournament`:
```sql
|
SELECT "surface" FROM "references" WHERE "tournament"='united airlines tournament of champions' AND "round"='final'; |
## Task
Generate a SQL query to answer the following question:
`Name the surface for united airlines tournament of champions final round`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"tournament" text,
"date" text,
"surface" text,
"round" text,
"opponent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the surface for united airlines tournament of champions final round`:
```sql
|
SELECT "date" FROM "references" WHERE "opponent"='chris evert' AND "surface"='carpet'; |
## Task
Generate a SQL query to answer the following question:
`Name the date for chris evert opponent and carpet surface`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"tournament" text,
"date" text,
"surface" text,
"round" text,
"opponent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for chris evert opponent and carpet surface`:
```sql
|
SELECT "venue" FROM "international_goals" WHERE "date"='25 may 2008'; |
## Task
Generate a SQL query to answer the following question:
`Name the venue for 25 may 2008`
### 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 `Name the venue for 25 may 2008`:
```sql
|
SELECT "score" FROM "international_goals" WHERE "competition"='2015 afc asian cup qualification'; |
## Task
Generate a SQL query to answer the following question:
`Name the score for 2015 afc asian cup qualification`
### 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 `Name the score for 2015 afc asian cup qualification`:
```sql
|
SELECT "competition" FROM "international_goals" WHERE "date"='13 december 2012'; |
## Task
Generate a SQL query to answer the following question:
`Name the competition for 13 december 2012`
### 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 `Name the competition for 13 december 2012`:
```sql
|
SELECT MAX("points") FROM "complete_formula_one_results" WHERE "entrant"='arrows racing team' AND "year">1982; |
## Task
Generate a SQL query to answer the following question:
`What was arrows racing team's highest points after 1982?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was arrows racing team's highest points after 1982?`:
```sql
|
SELECT SUM("year") FROM "complete_formula_one_results" WHERE "points"=2; |
## Task
Generate a SQL query to answer the following question:
`How many years has 2 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many years has 2 points?`:
```sql
|
SELECT "catalogue" FROM "disc_two" WHERE "song_title"='love me tonight'; |
## Task
Generate a SQL query to answer the following question:
`Name the catalogue with song title of love me tonight`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "disc_two" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"song_title" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the catalogue with song title of love me tonight`:
```sql
|
SELECT "song_title" FROM "disc_two" WHERE "time"='1:51'; |
## Task
Generate a SQL query to answer the following question:
`Name the song title with time of 1:51`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "disc_two" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"song_title" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the song title with time of 1:51`:
```sql
|
SELECT MIN("track") FROM "disc_two" WHERE "song_title"='little sister'; |
## Task
Generate a SQL query to answer the following question:
`Name the least track with song of little sister`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "disc_two" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"song_title" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least track with song of little sister`:
```sql
|
SELECT "player" FROM "highest_scores" WHERE "score"='79'; |
## Task
Generate a SQL query to answer the following question:
`What player has a score of 79?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_scores" (
"player" text,
"score" text,
"balls" real,
"opponent" text,
"ground" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player has a score of 79?`:
```sql
|
SELECT "opponent" FROM "highest_scores" WHERE "ground"='waca ground' AND "score"='79'; |
## Task
Generate a SQL query to answer the following question:
`Who played on waca ground and scored 79 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_scores" (
"player" text,
"score" text,
"balls" real,
"opponent" text,
"ground" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played on waca ground and scored 79 points?`:
```sql
|
SELECT "player" FROM "highest_scores" WHERE "balls"=49; |
## Task
Generate a SQL query to answer the following question:
`What player had 49 balls?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_scores" (
"player" text,
"score" text,
"balls" real,
"opponent" text,
"ground" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player had 49 balls?`:
```sql
|
SELECT MAX("attendance") FROM "game_log" WHERE "score"='3-5'; |
## Task
Generate a SQL query to answer the following question:
`What was the highest attendance of a game that had a score of 3-5?`
### 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 `What was the highest attendance of a game that had a score of 3-5?`:
```sql
|
SELECT "loss" FROM "game_log" WHERE "record"='54-61'; |
## Task
Generate a SQL query to answer the following question:
`Who took the loss in the game that ended with a 54-61 record?`
### 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 `Who took the loss in the game that ended with a 54-61 record?`:
```sql
|
SELECT "report" FROM "grands_prix" WHERE "125cc_winner"='simone corsi' AND "circuit"='valencia'; |
## Task
Generate a SQL query to answer the following question:
`Name the report with 125cc winner of simone corsi and circuit of valencia`
### 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 report with 125cc winner of simone corsi and circuit of valencia`:
```sql
|
SELECT "moto_gp_winner" FROM "grands_prix" WHERE "125cc_winner"='gábor talmácsi' AND "round"=13; |
## Task
Generate a SQL query to answer the following question:
`Name the motogp winner with 125cc winner of gábor talmácsi and round of 13`
### 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 motogp winner with 125cc winner of gábor talmácsi and round of 13`:
```sql
|
SELECT "125cc_winner" FROM "grands_prix" WHERE "circuit"='estoril'; |
## Task
Generate a SQL query to answer the following question:
`Name the 125cc winner with circuit of estoril`
### 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 125cc winner with circuit of estoril`:
```sql
|
SELECT "date" FROM "grands_prix" WHERE "moto_gp_winner"='casey stoner' AND "grand_prix"='valencian grand prix'; |
## Task
Generate a SQL query to answer the following question:
`Name the date for motogp winner of casey stoner and grand prix of valencian grand prix`
### 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 date for motogp winner of casey stoner and grand prix of valencian grand prix`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.