output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "tournament" FROM "senior_pga_tour_wins_10" WHERE "runner_s_up"='chi-chi rodriguez'; |
## Task
Generate a SQL query to answer the following question:
`What races were Chi-Chi Rodriguez the runner-up in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senior_pga_tour_wins_10" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What races were Chi-Chi Rodriguez the runner-up in?`:
```sql
|
SELECT "margin_of_victory" FROM "senior_pga_tour_wins_10" WHERE "runner_s_up"='isao aoki'; |
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory for Isao Aoki when he was a runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senior_pga_tour_wins_10" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the margin of victory for Isao Aoki when he was a runner-up?`:
```sql
|
SELECT "winning_score" FROM "senior_pga_tour_wins_10" WHERE "tournament"='mazda senior tournament players championship'; |
## Task
Generate a SQL query to answer the following question:
`What was the winning score in the mazda senior tournament players championship?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senior_pga_tour_wins_10" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning score in the mazda senior tournament players championship?`:
```sql
|
SELECT "tournament" FROM "senior_pga_tour_wins_10" WHERE "winning_score"='–27 (65-68-64-64=261)'; |
## Task
Generate a SQL query to answer the following question:
`Which tournament ended with a winning score of –27 (65-68-64-64=261)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senior_pga_tour_wins_10" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament ended with a winning score of –27 (65-68-64-64=261)?`:
```sql
|
SELECT "runner_s_up" FROM "senior_pga_tour_wins_10" WHERE "date"='feb 18, 1996'; |
## Task
Generate a SQL query to answer the following question:
`Who was the runner(s)-up for the Feb 18, 1996 tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senior_pga_tour_wins_10" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the runner(s)-up for the Feb 18, 1996 tournament?`:
```sql
|
SELECT AVG("grid") FROM "race" WHERE "laps">43 AND "driver"='oriol servia'; |
## Task
Generate a SQL query to answer the following question:
`What is Oriol Servia's average Grid on races with more than 43 laps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Oriol Servia's average Grid on races with more than 43 laps?`:
```sql
|
SELECT "laps" FROM "race" WHERE "points"=19; |
## Task
Generate a SQL query to answer the following question:
`How many laps were there in the race that netted the winner 19 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps were there in the race that netted the winner 19 points?`:
```sql
|
SELECT "season" FROM "domestic_goals_summary" WHERE "opponent"='necaxa'; |
## Task
Generate a SQL query to answer the following question:
`In what Season is Necaxa an Opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "domestic_goals_summary" (
"date" text,
"season" text,
"playing_for" text,
"opponent" text,
"final_score" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Season is Necaxa an Opponent?`:
```sql
|
SELECT "season" FROM "domestic_goals_summary" WHERE "opponent"='victoria'; |
## Task
Generate a SQL query to answer the following question:
`In what season is Victoria the Opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "domestic_goals_summary" (
"date" text,
"season" text,
"playing_for" text,
"opponent" text,
"final_score" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what season is Victoria the Opponent?`:
```sql
|
SELECT "authority" FROM "tararua_district" WHERE "decile"=6 AND "name"='pongaroa school'; |
## Task
Generate a SQL query to answer the following question:
`Name the authority when the decile is 6 for pongaroa school`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tararua_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the authority when the decile is 6 for pongaroa school`:
```sql
|
SELECT "years" FROM "tararua_district" WHERE "name"='dannevirke south school'; |
## Task
Generate a SQL query to answer the following question:
`Name the years for dannevirke south school`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tararua_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the years for dannevirke south school`:
```sql
|
SELECT MIN("decile") FROM "tararua_district" WHERE "authority"='state' AND "area"='eketahuna' AND "roll">44; |
## Task
Generate a SQL query to answer the following question:
`Name the least decile for state authority and area of eketahuna with roll more than 44`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tararua_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least decile for state authority and area of eketahuna with roll more than 44`:
```sql
|
SELECT "name" FROM "tararua_district" WHERE "area"='eketahuna'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the name with area of eketahuna`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tararua_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the name with area of eketahuna`:
```sql
|
SELECT "completed" FROM "e_class" WHERE "launched"='12 april 1934'; |
## Task
Generate a SQL query to answer the following question:
`Name what was completed on 12 april 1934`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "e_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name what was completed on 12 april 1934`:
```sql
|
SELECT "launched" FROM "e_class" WHERE "completed"='13 september 1934'; |
## Task
Generate a SQL query to answer the following question:
`Name the launched for 13 september 1934 completion`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "e_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the launched for 13 september 1934 completion`:
```sql
|
SELECT "ship" FROM "e_class" WHERE "launched"='29 may 1934'; |
## Task
Generate a SQL query to answer the following question:
`Name the ship launched 29 may 1934`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "e_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the ship launched 29 may 1934`:
```sql
|
SELECT "laid_down" FROM "e_class" WHERE "launched"='16 february 1934'; |
## Task
Generate a SQL query to answer the following question:
`Name the laid down for launched being 16 february 1934`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "e_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the laid down for launched being 16 february 1934`:
```sql
|
SELECT "pennant_number" FROM "e_class" WHERE "launched"='29 march 1934' AND "completed"='30 october 1934'; |
## Task
Generate a SQL query to answer the following question:
`Name the pennant number for completion of 30 october 1934 and launched 29 march 1934`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "e_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the pennant number for completion of 30 october 1934 and launched 29 march 1934`:
```sql
|
SELECT "laid_down" FROM "e_class" WHERE "completed"='22 october 1934'; |
## Task
Generate a SQL query to answer the following question:
`Name the laid down for completed of 22 october 1934`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "e_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the laid down for completed of 22 october 1934`:
```sql
|
SELECT "candidate_s_name" FROM "36_seats" WHERE "rank"='8th'; |
## Task
Generate a SQL query to answer the following question:
`what is the candidates name who is ranked 8th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "36_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the candidates name who is ranked 8th?`:
```sql
|
SELECT "riding" FROM "36_seats" WHERE "votes">484 AND "candidate_s_name"='harold j. ludwig'; |
## Task
Generate a SQL query to answer the following question:
`where is harold j. ludwig riding when the votes are more than 484?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "36_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `where is harold j. ludwig riding when the votes are more than 484?`:
```sql
|
SELECT "gender" FROM "36_seats" WHERE "rank"='5th' AND "candidate_s_name"='ron gray'; |
## Task
Generate a SQL query to answer the following question:
`what is the gender of Ron Gray, ranked 5th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "36_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the gender of Ron Gray, ranked 5th?`:
```sql
|
SELECT MIN("votes") FROM "36_seats" WHERE "rank"='5th' AND "riding"='victoria'; |
## Task
Generate a SQL query to answer the following question:
`what is the lowest votes of the candidate ranked 5th and riding in victoria?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "36_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest votes of the candidate ranked 5th and riding in victoria?`:
```sql
|
SELECT "home_captain" FROM "england_in_australia" WHERE "result"='aus by 295 runs'; |
## Task
Generate a SQL query to answer the following question:
`Which home captian has aus by 295 runs as the result?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "england_in_australia" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home captian has aus by 295 runs as the result?`:
```sql
|
SELECT "result" FROM "england_in_australia" WHERE "venue"='adelaide oval'; |
## Task
Generate a SQL query to answer the following question:
`Which result has adelaide oval as the venue?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "england_in_australia" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which result has adelaide oval as the venue?`:
```sql
|
SELECT "height" FROM "fiba_euro_basket_2007_squads" WHERE "position"='guard' AND "year_born"=1982; |
## Task
Generate a SQL query to answer the following question:
`Born in 1982, this guard has what listed as a height?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2007_squads" (
"player" text,
"height" real,
"position" text,
"year_born" real,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Born in 1982, this guard has what listed as a height?`:
```sql
|
SELECT "points_classification_navy_blue_jersey" FROM "jersey_progress_chart" WHERE "general_classification_yellow_jersey"='graeme brown'; |
## Task
Generate a SQL query to answer the following question:
`Which Points Classification Navy Blue Jersey that has a Jersey of Graeme Brown`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress_chart" (
"stage_winner" text,
"general_classification_yellow_jersey" text,
"mountains_classification_green_jersey" text,
"points_classification_navy_blue_jersey" text,
"intermediate_sprints_classification_red_jersey" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points Classification Navy Blue Jersey that has a Jersey of Graeme Brown`:
```sql
|
SELECT "intermediate_sprints_classification_red_jersey" FROM "jersey_progress_chart" WHERE "mountains_classification_green_jersey"='murilo antonio fischer' AND "points_classification_navy_blue_jersey"='jose joaquin rojas gil'; |
## Task
Generate a SQL query to answer the following question:
`What is the Intermediate Sprints Classification Red Jersey that has a Green Jersey of Murilo Antonio Fischer, and Jose Joaquin Rojas Gil?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress_chart" (
"stage_winner" text,
"general_classification_yellow_jersey" text,
"mountains_classification_green_jersey" text,
"points_classification_navy_blue_jersey" text,
"intermediate_sprints_classification_red_jersey" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Intermediate Sprints Classification Red Jersey that has a Green Jersey of Murilo Antonio Fischer, and Jose Joaquin Rojas Gil?`:
```sql
|
SELECT "general_classification_yellow_jersey" FROM "jersey_progress_chart" WHERE "mountains_classification_green_jersey"='murilo antonio fischer' AND "team_classification"='lampre-fondital'; |
## Task
Generate a SQL query to answer the following question:
`What is General Classification Yellow Jersey that has a Murilo Antonio Fischer, and Lampre-Fondital?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress_chart" (
"stage_winner" text,
"general_classification_yellow_jersey" text,
"mountains_classification_green_jersey" text,
"points_classification_navy_blue_jersey" text,
"intermediate_sprints_classification_red_jersey" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is General Classification Yellow Jersey that has a Murilo Antonio Fischer, and Lampre-Fondital?`:
```sql
|
SELECT "points_classification_navy_blue_jersey" FROM "jersey_progress_chart" WHERE "mountains_classification_green_jersey"='yoann le boulanger' AND "team_classification"='gerolsteiner'; |
## Task
Generate a SQL query to answer the following question:
`What is the Points Classification Navy Blue Jersey that has Yoann le Boulanger, and Gerolsteiner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress_chart" (
"stage_winner" text,
"general_classification_yellow_jersey" text,
"mountains_classification_green_jersey" text,
"points_classification_navy_blue_jersey" text,
"intermediate_sprints_classification_red_jersey" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Points Classification Navy Blue Jersey that has Yoann le Boulanger, and Gerolsteiner?`:
```sql
|
SELECT SUM("attendance") FROM "game_log" WHERE "date"='april 7'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance on April 7?`
### 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 attendance on April 7?`:
```sql
|
SELECT "northumberland_senior_cup" FROM "list_of_recent_northumberland_cup_winner" WHERE "northumberland_women_s_cup"='whitley bay women' AND "northumberland_senior_benevolent_bowl"='alnwick town'; |
## Task
Generate a SQL query to answer the following question:
`Who wins the Northumberland Senior Cup, when the Northumberland Women's Cup is won by Whitley Bay Women, and when the Northumberland Senior Benevolent Bowl is won by Alnwick Town?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_recent_northumberland_cup_winner" (
"season" text,
"northumberland_senior_cup" text,
"northumberland_senior_benevolent_bowl" text,
"northumberland_minor_cup" text,
"northumberland_women_s_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wins the Northumberland Senior Cup, when the Northumberland Women's Cup is won by Whitley Bay Women, and when the Northumberland Senior Benevolent Bowl is won by Alnwick Town?`:
```sql
|
SELECT "northumberland_senior_benevolent_bowl" FROM "list_of_recent_northumberland_cup_winner" WHERE "northumberland_minor_cup"='whitley bay ''a'''; |
## Task
Generate a SQL query to answer the following question:
`Who won the Northumberland Senior Benevolent Bowl, when the Northumberland Minor Cup was won by Whitley Bay 'a'?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_recent_northumberland_cup_winner" (
"season" text,
"northumberland_senior_cup" text,
"northumberland_senior_benevolent_bowl" text,
"northumberland_minor_cup" text,
"northumberland_women_s_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the Northumberland Senior Benevolent Bowl, when the Northumberland Minor Cup was won by Whitley Bay 'a'?`:
```sql
|
SELECT "northumberland_senior_benevolent_bowl" FROM "list_of_recent_northumberland_cup_winner" WHERE "northumberland_women_s_cup"='blyth spartans ladies'; |
## Task
Generate a SQL query to answer the following question:
`Who won the Northumberland Senior Benevolent Bowl, when the Northumberland Women's Cup was won by Blyth Spartans Ladies?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_recent_northumberland_cup_winner" (
"season" text,
"northumberland_senior_cup" text,
"northumberland_senior_benevolent_bowl" text,
"northumberland_minor_cup" text,
"northumberland_women_s_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the Northumberland Senior Benevolent Bowl, when the Northumberland Women's Cup was won by Blyth Spartans Ladies?`:
```sql
|
SELECT "northumberland_women_s_cup" FROM "list_of_recent_northumberland_cup_winner" WHERE "northumberland_senior_benevolent_bowl"='percy main amateurs'; |
## Task
Generate a SQL query to answer the following question:
`Who won the Northumberland Women's Cup when the Northumberland Senior Benevolent Bowl was won by Percy Main Amateurs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_recent_northumberland_cup_winner" (
"season" text,
"northumberland_senior_cup" text,
"northumberland_senior_benevolent_bowl" text,
"northumberland_minor_cup" text,
"northumberland_women_s_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the Northumberland Women's Cup when the Northumberland Senior Benevolent Bowl was won by Percy Main Amateurs?`:
```sql
|
SELECT "film_title_used_in_nomination" FROM "references" WHERE "country"='netherlands'; |
## Task
Generate a SQL query to answer the following question:
`What was the film nomination in the Netherlands?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"country" text,
"film_title_used_in_nomination" text,
"language" text,
"original_title" text,
"director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the film nomination in the Netherlands?`:
```sql
|
SELECT "director" FROM "references" WHERE "original_title"='turks fruit'; |
## Task
Generate a SQL query to answer the following question:
`Who directed Turks Fruit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"country" text,
"film_title_used_in_nomination" text,
"language" text,
"original_title" text,
"director" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed Turks Fruit?`:
```sql
|
SELECT "director" FROM "references" WHERE "country"='poland'; |
## Task
Generate a SQL query to answer the following question:
`What director is from Poland?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"country" text,
"film_title_used_in_nomination" text,
"language" text,
"original_title" text,
"director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What director is from Poland?`:
```sql
|
SELECT "director" FROM "references" WHERE "language"='romanian'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the Romanian film?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"country" text,
"film_title_used_in_nomination" text,
"language" text,
"original_title" text,
"director" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the Romanian film?`:
```sql
|
SELECT "place" FROM "final_leaderboard" WHERE "money">400; |
## Task
Generate a SQL query to answer the following question:
`What placement gets more than $400?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What placement gets more than $400?`:
```sql
|
SELECT AVG("money") FROM "final_leaderboard" WHERE "to_par"='+2' AND "player"='toney penna'; |
## Task
Generate a SQL query to answer the following question:
`What's the average payout of toney penna with a +2 par?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average payout of toney penna with a +2 par?`:
```sql
|
SELECT COUNT("attendance") FROM "game_log" WHERE "date"='april 16'; |
## Task
Generate a SQL query to answer the following question:
`What is the attendance number of the game on April 16?`
### 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 number of the game on April 16?`:
```sql
|
SELECT AVG("pick") FROM "1981_kansas_city_chiefs_season" WHERE "round"<3 AND "college"='northwestern state'; |
## Task
Generate a SQL query to answer the following question:
`What was the average pick of northwestern state college under round 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1981_kansas_city_chiefs_season" (
"round" real,
"pick" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average pick of northwestern state college under round 3?`:
```sql
|
SELECT "position" FROM "1981_kansas_city_chiefs_season" WHERE "college"='rutgers'; |
## Task
Generate a SQL query to answer the following question:
`Rutgers college holds what position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1981_kansas_city_chiefs_season" (
"round" real,
"pick" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Rutgers college holds what position?`:
```sql
|
SELECT MIN("pick") FROM "1981_kansas_city_chiefs_season" WHERE "position"='center' AND "name"='les studdard' AND "round"<10; |
## Task
Generate a SQL query to answer the following question:
`In what round smaller than 10, was the center les studdard picked in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1981_kansas_city_chiefs_season" (
"round" real,
"pick" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what round smaller than 10, was the center les studdard picked in?`:
```sql
|
SELECT "college" FROM "1981_kansas_city_chiefs_season" WHERE "round"<2; |
## Task
Generate a SQL query to answer the following question:
`Which college had rounds smaller than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1981_kansas_city_chiefs_season" (
"round" real,
"pick" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which college had rounds smaller than 2?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "score"='7 - 2'; |
## Task
Generate a SQL query to answer the following question:
`What record was reached with a score of 7 - 2?`
### 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,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What record was reached with a score of 7 - 2?`:
```sql
|
SELECT "club" FROM "most_games_for_each_club" WHERE "rank"='5'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the club with a rank of 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_games_for_each_club" (
"rank" text,
"games" text,
"player" text,
"club" text,
"career_span" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the club with a rank of 5?`:
```sql
|
SELECT "rank" FROM "most_games_for_each_club" WHERE "games"='276'; |
## Task
Generate a SQL query to answer the following question:
`What is the rank that shows 276 games?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_games_for_each_club" (
"rank" text,
"games" text,
"player" text,
"club" text,
"career_span" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank that shows 276 games?`:
```sql
|
SELECT "rank" FROM "most_games_for_each_club" WHERE "games"='426'; |
## Task
Generate a SQL query to answer the following question:
`What is the rank that shows 426 games?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_games_for_each_club" (
"rank" text,
"games" text,
"player" text,
"club" text,
"career_span" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank that shows 426 games?`:
```sql
|
SELECT "games" FROM "most_games_for_each_club" WHERE "player"='roger merrett'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of games for Roger Merrett?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_games_for_each_club" (
"rank" text,
"games" text,
"player" text,
"club" text,
"career_span" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of games for Roger Merrett?`:
```sql
|
SELECT "engine" FROM "indianapolis_500" WHERE "finish"='27'; |
## Task
Generate a SQL query to answer the following question:
`What Engine had a Finish of 27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indianapolis_500" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text,
"entrant" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Engine had a Finish of 27?`:
```sql
|
SELECT "engine" FROM "indianapolis_500" WHERE "chassis"='march 85c'; |
## Task
Generate a SQL query to answer the following question:
`What Engine had a chassis of March 85c?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indianapolis_500" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text,
"entrant" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Engine had a chassis of March 85c?`:
```sql
|
SELECT "engine" FROM "indianapolis_500" WHERE "finish"='21'; |
## Task
Generate a SQL query to answer the following question:
`What Engine has a Finish of 21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indianapolis_500" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text,
"entrant" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Engine has a Finish of 21?`:
```sql
|
SELECT "platform" FROM "cry_engine_2" WHERE "publisher"='mindark'; |
## Task
Generate a SQL query to answer the following question:
`On what platform does Mindark publish?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cry_engine_2" (
"title" text,
"year" text,
"developer" text,
"publisher" text,
"platform" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what platform does Mindark publish?`:
```sql
|
SELECT "year" FROM "cry_engine_2" WHERE "developer"='avatar reality'; |
## Task
Generate a SQL query to answer the following question:
`What year did Avatar Reality release a game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cry_engine_2" (
"title" text,
"year" text,
"developer" text,
"publisher" text,
"platform" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did Avatar Reality release a game?`:
```sql
|
SELECT "publisher" FROM "cry_engine_2" WHERE "title"='crysis warhead'; |
## Task
Generate a SQL query to answer the following question:
`What publisher created Crysis Warhead?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cry_engine_2" (
"title" text,
"year" text,
"developer" text,
"publisher" text,
"platform" text
);
### SQL
Given the database schema, here is the SQL query that answers `What publisher created Crysis Warhead?`:
```sql
|
SELECT "platform" FROM "cry_engine_2" WHERE "publisher"='mindark'; |
## Task
Generate a SQL query to answer the following question:
`For what platform does Mindark publish?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cry_engine_2" (
"title" text,
"year" text,
"developer" text,
"publisher" text,
"platform" text
);
### SQL
Given the database schema, here is the SQL query that answers `For what platform does Mindark publish?`:
```sql
|
SELECT "publisher" FROM "cry_engine_2" WHERE "developer"='paleo entertainment'; |
## Task
Generate a SQL query to answer the following question:
`What publisher does Paleo Entertainment develop for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cry_engine_2" (
"title" text,
"year" text,
"developer" text,
"publisher" text,
"platform" text
);
### SQL
Given the database schema, here is the SQL query that answers `What publisher does Paleo Entertainment develop for?`:
```sql
|
SELECT "developer" FROM "cry_engine_2" WHERE "title"='vigilance'; |
## Task
Generate a SQL query to answer the following question:
`Who was the developer for Vigilance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cry_engine_2" (
"title" text,
"year" text,
"developer" text,
"publisher" text,
"platform" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the developer for Vigilance?`:
```sql
|
SELECT "player" FROM "2013_2014_roster" WHERE "home_town"='swift current, ab'; |
## Task
Generate a SQL query to answer the following question:
`Which player's home town is Swift Current, AB?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013_2014_roster" (
"number" text,
"player" text,
"position" text,
"height" text,
"weight" text,
"home_town" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player's home town is Swift Current, AB?`:
```sql
|
SELECT "position" FROM "2013_2014_roster" WHERE "number"='23'; |
## Task
Generate a SQL query to answer the following question:
`Which position does number 23 play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013_2014_roster" (
"number" text,
"player" text,
"position" text,
"height" text,
"weight" text,
"home_town" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position does number 23 play?`:
```sql
|
SELECT "number" FROM "2013_2014_roster" WHERE "position"='skaters'; |
## Task
Generate a SQL query to answer the following question:
`Which number plays the skaters position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013_2014_roster" (
"number" text,
"player" text,
"position" text,
"height" text,
"weight" text,
"home_town" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which number plays the skaters position?`:
```sql
|
SELECT "weight" FROM "2013_2014_roster" WHERE "number"='26'; |
## Task
Generate a SQL query to answer the following question:
`How much does number 26 weigh?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013_2014_roster" (
"number" text,
"player" text,
"position" text,
"height" text,
"weight" text,
"home_town" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much does number 26 weigh?`:
```sql
|
SELECT "family" FROM "cetacea" WHERE "name"='humpback whale'; |
## Task
Generate a SQL query to answer the following question:
`Which family has a Name of humpback whale?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cetacea" (
"name" text,
"species_authority" text,
"order" text,
"family" text,
"red_list" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which family has a Name of humpback whale?`:
```sql
|
SELECT "name" FROM "cetacea" WHERE "red_list">0 AND "species_authority"='balaenoptera acutorostrata lacépède, 1804'; |
## Task
Generate a SQL query to answer the following question:
`Which name has a Red List larger than 0, and a Species/Authority of balaenoptera acutorostrata lacépède, 1804?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cetacea" (
"name" text,
"species_authority" text,
"order" text,
"family" text,
"red_list" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which name has a Red List larger than 0, and a Species/Authority of balaenoptera acutorostrata lacépède, 1804?`:
```sql
|
SELECT "species_authority" FROM "cetacea" WHERE "name"='true''s beaked whale'; |
## Task
Generate a SQL query to answer the following question:
`Which Species/Authority has a Name of true's beaked whale?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cetacea" (
"name" text,
"species_authority" text,
"order" text,
"family" text,
"red_list" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Species/Authority has a Name of true's beaked whale?`:
```sql
|
SELECT "engine_s" FROM "complete_world_championship_formula_one_" WHERE "points"='2'; |
## Task
Generate a SQL query to answer the following question:
`What engine has 2 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What engine has 2 points?`:
```sql
|
SELECT "tyres" FROM "complete_world_championship_formula_one_" WHERE "year">1974 AND "points"='5'; |
## Task
Generate a SQL query to answer the following question:
`What tyres are associated with a year after 1974 and 5 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tyres are associated with a year after 1974 and 5 points?`:
```sql
|
SELECT "engine_s" FROM "complete_world_championship_formula_one_" WHERE "chassis"='ensign n177' AND "year"<1978; |
## Task
Generate a SQL query to answer the following question:
`What is the engine(s) on the car before 1978 with ensign n177 chassis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the engine(s) on the car before 1978 with ensign n177 chassis?`:
```sql
|
SELECT "tyres" FROM "complete_world_championship_formula_one_" WHERE "points"='1' AND "chassis"='ensign n177'; |
## Task
Generate a SQL query to answer the following question:
`What tyres have 1 point and an ensign n177 chassis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tyres have 1 point and an ensign n177 chassis?`:
```sql
|
SELECT "entrant" FROM "complete_formula_one_results" WHERE "year"<1987 AND "engine"='bmw straight-4 (t/c)' AND "pts">2; |
## Task
Generate a SQL query to answer the following question:
`Before 1987, what is the Entrant with bmw straight-4 (t/c) as Engine and a great than 2 Pts?`
### 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,
"pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `Before 1987, what is the Entrant with bmw straight-4 (t/c) as Engine and a great than 2 Pts?`:
```sql
|
SELECT COUNT("rank") FROM "semifinal_1" WHERE "name"='ku hyo-jin'; |
## Task
Generate a SQL query to answer the following question:
`What did Ku Hyo-Jin rank?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did Ku Hyo-Jin rank?`:
```sql
|
SELECT SUM("rank") FROM "semifinal_1" WHERE "time"='2:25.86' AND "lane"<7; |
## Task
Generate a SQL query to answer the following question:
`What was the rank of the person who swam in Lane 7 with a time of 2:25.86?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rank of the person who swam in Lane 7 with a time of 2:25.86?`:
```sql
|
SELECT "laid_down" FROM "f_class" WHERE "ship"='fearless'; |
## Task
Generate a SQL query to answer the following question:
`Which Laid down has a Ship of fearless?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "f_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Laid down has a Ship of fearless?`:
```sql
|
SELECT "ship" FROM "f_class" WHERE "pennant_number"='h.69'; |
## Task
Generate a SQL query to answer the following question:
`Which ship has a Pennant number of h.69?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "f_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which ship has a Pennant number of h.69?`:
```sql
|
SELECT "launched" FROM "f_class" WHERE "commissioned"='6 june 1935'; |
## Task
Generate a SQL query to answer the following question:
`Which Launched has Commissioned 6 june 1935?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "f_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Launched has Commissioned 6 june 1935?`:
```sql
|
SELECT "launched" FROM "f_class" WHERE "ship"='fearless'; |
## Task
Generate a SQL query to answer the following question:
`What launch has a Ship of fearless?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "f_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `What launch has a Ship of fearless?`:
```sql
|
SELECT "commissioned" FROM "f_class" WHERE "launched"='28 june 1934' AND "pennant_number"='h.78'; |
## Task
Generate a SQL query to answer the following question:
`Which commission was launched 28 june 1934, and has a Pennant number of h.78?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "f_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which commission was launched 28 june 1934, and has a Pennant number of h.78?`:
```sql
|
SELECT "year" FROM "highest_scores_for_each_quarter" WHERE "round"='17'; |
## Task
Generate a SQL query to answer the following question:
`Which year has a Round of 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_scores_for_each_quarter" (
"quarter" text,
"score" text,
"club" text,
"opponent" text,
"year" text,
"round" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year has a Round of 17?`:
```sql
|
SELECT "opponent" FROM "highest_scores_for_each_quarter" WHERE "club"='essendon' AND "score"='13.4.82'; |
## Task
Generate a SQL query to answer the following question:
`Which opponent has a Club of essendon, and a Score of 13.4.82?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_scores_for_each_quarter" (
"quarter" text,
"score" text,
"club" text,
"opponent" text,
"year" text,
"round" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent has a Club of essendon, and a Score of 13.4.82?`:
```sql
|
SELECT "opponent" FROM "highest_scores_for_each_quarter" WHERE "score"='15.4.94'; |
## Task
Generate a SQL query to answer the following question:
`Which opponent has a Score of 15.4.94?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_scores_for_each_quarter" (
"quarter" text,
"score" text,
"club" text,
"opponent" text,
"year" text,
"round" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent has a Score of 15.4.94?`:
```sql
|
SELECT "opponent" FROM "highest_scores_for_each_quarter" WHERE "round"='12'; |
## Task
Generate a SQL query to answer the following question:
`Which opponent has a Round of 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_scores_for_each_quarter" (
"quarter" text,
"score" text,
"club" text,
"opponent" text,
"year" text,
"round" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent has a Round of 12?`:
```sql
|
SELECT "quarter" FROM "highest_scores_for_each_quarter" WHERE "round"='17'; |
## Task
Generate a SQL query to answer the following question:
`Which Quarter has a Round of 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_scores_for_each_quarter" (
"quarter" text,
"score" text,
"club" text,
"opponent" text,
"year" text,
"round" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Quarter has a Round of 17?`:
```sql
|
SELECT "whenbuilt" FROM "references" WHERE "name"='moray firth'; |
## Task
Generate a SQL query to answer the following question:
`When was moray firth built?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"br_no" real,
"name" text,
"builder" text,
"whenbuilt" text,
"withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was moray firth built?`:
```sql
|
SELECT "withdrawn" FROM "references" WHERE "name"='charles dickens'; |
## Task
Generate a SQL query to answer the following question:
`Name the withdrawn for charles dickens`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"br_no" real,
"name" text,
"builder" text,
"whenbuilt" text,
"withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the withdrawn for charles dickens`:
```sql
|
SELECT "loss" FROM "game_log" WHERE "attendance">'20,841' AND "date"='july 9'; |
## Task
Generate a SQL query to answer the following question:
`Which loss has an Attendance larger than 20,841, and a Date of july 9?`
### 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 an Attendance larger than 20,841, and a Date of july 9?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "date"='july 27'; |
## Task
Generate a SQL query to answer the following question:
`Which opponent has a Date of july 27?`
### 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 opponent has a Date of july 27?`:
```sql
|
SELECT "venue" FROM "achievements" WHERE "year"<2008 AND "tournament"='world race walking cup'; |
## Task
Generate a SQL query to answer the following question:
`What Venue held the World Race Walking Cup tourney before 2008?`
### 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,
"event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Venue held the World Race Walking Cup tourney before 2008?`:
```sql
|
SELECT "event" FROM "achievements" WHERE "venue"='helsinki, finland'; |
## Task
Generate a SQL query to answer the following question:
`What tournement was held in Helsinki, Finland in 2005?`
### 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,
"event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournement was held in Helsinki, Finland in 2005?`:
```sql
|
SELECT "venue" FROM "achievements" WHERE "tournament"='olympic games' AND "year"=2012; |
## Task
Generate a SQL query to answer the following question:
`What Venue held the Olympic games in 2012?`
### 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,
"event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Venue held the Olympic games in 2012?`:
```sql
|
SELECT "website" FROM "asia" WHERE "name"='yamagata international documentary film festival'; |
## Task
Generate a SQL query to answer the following question:
`What's the website for the yamagata international documentary film festival?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "asia" (
"name" text,
"est" real,
"city" text,
"country" text,
"website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the website for the yamagata international documentary film festival?`:
```sql
|
SELECT "rank" FROM "indy_500_results" WHERE "qual"='135.328'; |
## Task
Generate a SQL query to answer the following question:
`How did Johnnie Parsons finish when his qualifying time was 135.328?`
### 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 `How did Johnnie Parsons finish when his qualifying time was 135.328?`:
```sql
|
SELECT "rank" FROM "indy_500_results" WHERE "laps">200; |
## Task
Generate a SQL query to answer the following question:
`What was Johnnie Parsons rank when he completed over 200 laps?`
### 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 Johnnie Parsons rank when he completed over 200 laps?`:
```sql
|
SELECT "podiums" FROM "career_summary" WHERE "wins"='2' AND "season"=2008; |
## Task
Generate a SQL query to answer the following question:
`What is the value for Podiums when the value for Wins is 2, and when the Season is 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"wins" text,
"podiums" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value for Podiums when the value for Wins is 2, and when the Season is 2008?`:
```sql
|
SELECT "position" FROM "career_summary" WHERE "series"='macau grand prix' AND "season"<2007; |
## Task
Generate a SQL query to answer the following question:
`What is the value for Position, when the Series is the Macau Grand Prix, and when the Season is before 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"wins" text,
"podiums" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value for Position, when the Series is the Macau Grand Prix, and when the Season is before 2007?`:
```sql
|
SELECT "wins" FROM "career_summary" WHERE "position"='7th'; |
## Task
Generate a SQL query to answer the following question:
`What is the value for Wins when the Position is 7th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"wins" text,
"podiums" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value for Wins when the Position is 7th?`:
```sql
|
SELECT "series" FROM "career_summary" WHERE "season">2008 AND "podiums"='3' AND "position"='8th'; |
## Task
Generate a SQL query to answer the following question:
`What is the Series, when the Season is after 2008, when the value for Podiums is 3, and when the Position is 8th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"wins" text,
"podiums" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Series, when the Season is after 2008, when the value for Podiums is 3, and when the Position is 8th?`:
```sql
|
SELECT "podiums" FROM "career_summary" WHERE "season">2008 AND "series"='gp2 asia series'; |
## Task
Generate a SQL query to answer the following question:
`What is the value for Podiums, when the Season is after 2008, and when the Series is GP2 Asia Series?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"wins" text,
"podiums" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value for Podiums, when the Season is after 2008, and when the Series is GP2 Asia Series?`:
```sql
|
SELECT "wins" FROM "career_summary" WHERE "series"='gp2 series' AND "season"<2009; |
## Task
Generate a SQL query to answer the following question:
`What is the value for Wins, when the Series is GP2 Series, and when the Season is before 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"wins" text,
"podiums" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value for Wins, when the Series is GP2 Series, and when the Season is before 2009?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.