output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "2007" FROM "singles_performance_timeline" WHERE "2000"='0 / 4'; |
## Task
Generate a SQL query to answer the following question:
`What is 2007, when 2000 is "0 / 4"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"career_wr" text,
"career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2007, when 2000 is "0 / 4"?`:
```sql
|
SELECT "2007" FROM "singles_performance_timeline" WHERE "2003"='85'; |
## Task
Generate a SQL query to answer the following question:
`What is 2007, when 2003 is "85"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"career_wr" text,
"career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2007, when 2003 is "85"?`:
```sql
|
SELECT "2004" FROM "singles_performance_timeline" WHERE "2007"='a' AND "1997"='a'; |
## Task
Generate a SQL query to answer the following question:
`What is 2004, when 2007 is "A", and when 1997 is "A"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"career_wr" text,
"career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2004, when 2007 is "A", and when 1997 is "A"?`:
```sql
|
SELECT "2000" FROM "singles_performance_timeline" WHERE "1996"='a' AND "1997"='a' AND "2007"='a'; |
## Task
Generate a SQL query to answer the following question:
`What is 2000, when 1996 is "A", when 1997 is "A", and when 2007 is "A"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"career_wr" text,
"career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2000, when 1996 is "A", when 1997 is "A", and when 2007 is "A"?`:
```sql
|
SELECT "award" FROM "awards" WHERE "category"='cabello maluco'; |
## Task
Generate a SQL query to answer the following question:
`What is Award, when Category is Cabello Maluco?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards" (
"year" real,
"award" text,
"nominated_work" text,
"category" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Award, when Category is Cabello Maluco?`:
```sql
|
SELECT SUM("year") FROM "awards" WHERE "nominated_work"='eiza gonzález' AND "category"='solista favorito'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of years in which Eiza González had a nominated work in the category of solista favorito?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards" (
"year" real,
"award" text,
"nominated_work" text,
"category" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of years in which Eiza González had a nominated work in the category of solista favorito?`:
```sql
|
SELECT "award" FROM "awards" WHERE "year"<2012 AND "category"='revelación pop del año'; |
## Task
Generate a SQL query to answer the following question:
`Before the year 2012, what award was given to the artist in the category of revelación pop del año?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards" (
"year" real,
"award" text,
"nominated_work" text,
"category" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Before the year 2012, what award was given to the artist in the category of revelación pop del año?`:
```sql
|
SELECT "method" FROM "mixed_martial_arts_record" WHERE "record"='1-1'; |
## Task
Generate a SQL query to answer the following question:
`what is the method when the record is 1-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the method when the record is 1-1?`:
```sql
|
SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='yuji hisamatsu'; |
## Task
Generate a SQL query to answer the following question:
`what is the event when the opponent is yuji hisamatsu?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the event when the opponent is yuji hisamatsu?`:
```sql
|
SELECT "time" FROM "mixed_martial_arts_record" WHERE "event"='ufc 154'; |
## Task
Generate a SQL query to answer the following question:
`What is the time of ufc 154?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time of ufc 154?`:
```sql
|
SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "opponent"='kevin manderson'; |
## Task
Generate a SQL query to answer the following question:
`What is the average round of the match with kevin manderson as the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average round of the match with kevin manderson as the opponent?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "date"='january 19'; |
## Task
Generate a SQL query to answer the following question:
`What was the location attendance on January 19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location attendance on January 19?`:
```sql
|
SELECT SUM("game") FROM "game_log" WHERE "team"='@ miami'; |
## Task
Generate a SQL query to answer the following question:
`What number game was it that the Spurs were @ Miami?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number game was it that the Spurs were @ Miami?`:
```sql
|
SELECT COUNT("lost") FROM "main_round" WHERE "drawn"=1 AND "played"<12; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of losses of the player that has drawn 1 and played smaller than 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "main_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of losses of the player that has drawn 1 and played smaller than 12?`:
```sql
|
SELECT "surface" FROM "singles_19_13_titles_6_runners_up" WHERE "tournament"='canada f9, markham'; |
## Task
Generate a SQL query to answer the following question:
`What type of surface did the tournament canada f9, markham have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_19_13_titles_6_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of surface did the tournament canada f9, markham have?`:
```sql
|
SELECT "score" FROM "season_schedule" WHERE "date"='december 23'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when Date is December 23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"team" text,
"score" text,
"record" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Date is December 23?`:
```sql
|
SELECT "score" FROM "season_schedule" WHERE "team"='@ kansas city-omaha kings'; |
## Task
Generate a SQL query to answer the following question:
`What is Score when Team is @ Kansas City-Omaha Kings?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"team" text,
"score" text,
"record" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score when Team is @ Kansas City-Omaha Kings?`:
```sql
|
SELECT "position" FROM "washington_redskins_draft_history" WHERE "overall"<64 AND "round"=1; |
## Task
Generate a SQL query to answer the following question:
`Which position has an Overall smaller than 64, and a Round of 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position has an Overall smaller than 64, and a Round of 1?`:
```sql
|
SELECT AVG("overall") FROM "washington_redskins_draft_history" WHERE "pick"<5; |
## Task
Generate a SQL query to answer the following question:
`Which average overall has a Pick smaller than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which average overall has a Pick smaller than 5?`:
```sql
|
SELECT MAX("overall") FROM "washington_redskins_draft_history" WHERE "college"='idaho' AND "round"<1; |
## Task
Generate a SQL query to answer the following question:
`Which highest overall has a College of idaho, and a Round smaller than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which highest overall has a College of idaho, and a Round smaller than 1?`:
```sql
|
SELECT COUNT("round") FROM "washington_redskins_draft_history" WHERE "pick"<10 AND "name"='larry hendershot'; |
## Task
Generate a SQL query to answer the following question:
`How many rounds have a Pick smaller than 10, and a Name of larry hendershot?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds have a Pick smaller than 10, and a Name of larry hendershot?`:
```sql
|
SELECT "part_1" FROM "north_germanic" WHERE "part_2"='fraus'; |
## Task
Generate a SQL query to answer the following question:
`What is Part 1, when Part 2 is "fraus"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "north_germanic" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Part 1, when Part 2 is "fraus"?`:
```sql
|
SELECT "part_3" FROM "north_germanic" WHERE "part_1"='frjósa'; |
## Task
Generate a SQL query to answer the following question:
`What is Part 3, when Part 1 is "frjósa"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "north_germanic" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Part 3, when Part 1 is "frjósa"?`:
```sql
|
SELECT "class" FROM "north_germanic" WHERE "part_3"='blétu'; |
## Task
Generate a SQL query to answer the following question:
`What is Class, when Part 2 is "blétu"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "north_germanic" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Class, when Part 2 is "blétu"?`:
```sql
|
SELECT "part_4" FROM "north_germanic" WHERE "part_2"='hljóp'; |
## Task
Generate a SQL query to answer the following question:
`What is Part 4, when Part 2 is "hljóp"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "north_germanic" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Part 4, when Part 2 is "hljóp"?`:
```sql
|
SELECT "part_4" FROM "north_germanic" WHERE "part_2"='batt'; |
## Task
Generate a SQL query to answer the following question:
`What is Part 4, when Part 2 is "batt"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "north_germanic" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Part 4, when Part 2 is "batt"?`:
```sql
|
SELECT "part_1" FROM "north_germanic" WHERE "part_3"='heldu'; |
## Task
Generate a SQL query to answer the following question:
`What is Part 1, when Part 3 is "heldu"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "north_germanic" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Part 1, when Part 3 is "heldu"?`:
```sql
|
SELECT "home_team" FROM "round_16" WHERE "venue"='win entertainment centre'; |
## Task
Generate a SQL query to answer the following question:
`What is the home team which plays at a venue called Win Entertainment Centre?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_16" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" real,
"box_score" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home team which plays at a venue called Win Entertainment Centre?`:
```sql
|
SELECT "away_team" FROM "round_16" WHERE "score"='103-94'; |
## Task
Generate a SQL query to answer the following question:
`What away team had a 103-94 score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_16" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" real,
"box_score" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What away team had a 103-94 score?`:
```sql
|
SELECT "venue" FROM "round_16" WHERE "home_team"='cairns taipans'; |
## Task
Generate a SQL query to answer the following question:
`When the home team is Cairns Taipans, at which venue do they play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_16" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" real,
"box_score" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the home team is Cairns Taipans, at which venue do they play?`:
```sql
|
SELECT "bird_uniform" FROM "team_variations_across_different_version" WHERE "eagle_riders"='mickey dugan'; |
## Task
Generate a SQL query to answer the following question:
`What is the bird uniform for Eagle Rider Mickey Dugan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_variations_across_different_version" (
"gatchaman" text,
"eagle_riders" text,
"rank" text,
"bird_uniform" text,
"weapon" text,
"mecha" text,
"japanese_voice_actor" text,
"voice_actor_eagle_riders" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the bird uniform for Eagle Rider Mickey Dugan?`:
```sql
|
SELECT "japanese_voice_actor" FROM "team_variations_across_different_version" WHERE "eagle_riders"='ollie keeawani'; |
## Task
Generate a SQL query to answer the following question:
`Who is the Japanese voice actor of Eagle Rider Ollie Keeawani?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_variations_across_different_version" (
"gatchaman" text,
"eagle_riders" text,
"rank" text,
"bird_uniform" text,
"weapon" text,
"mecha" text,
"japanese_voice_actor" text,
"voice_actor_eagle_riders" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Japanese voice actor of Eagle Rider Ollie Keeawani?`:
```sql
|
SELECT "bird_uniform" FROM "team_variations_across_different_version" WHERE "voice_actor_eagle_riders"='heidi noelle lenhart'; |
## Task
Generate a SQL query to answer the following question:
`What is the bird uniform for the voice actor Heidi Noelle Lenhart?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_variations_across_different_version" (
"gatchaman" text,
"eagle_riders" text,
"rank" text,
"bird_uniform" text,
"weapon" text,
"mecha" text,
"japanese_voice_actor" text,
"voice_actor_eagle_riders" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the bird uniform for the voice actor Heidi Noelle Lenhart?`:
```sql
|
SELECT "mecha" FROM "team_variations_across_different_version" WHERE "japanese_voice_actor"='shingo kanemoto'; |
## Task
Generate a SQL query to answer the following question:
`What is the Mecha of the Japanese voice actor Shingo Kanemoto?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_variations_across_different_version" (
"gatchaman" text,
"eagle_riders" text,
"rank" text,
"bird_uniform" text,
"weapon" text,
"mecha" text,
"japanese_voice_actor" text,
"voice_actor_eagle_riders" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Mecha of the Japanese voice actor Shingo Kanemoto?`:
```sql
|
SELECT "weapon" FROM "team_variations_across_different_version" WHERE "mecha"='motorcycle'; |
## Task
Generate a SQL query to answer the following question:
`What is the weapon for the mecha of motorcycle?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_variations_across_different_version" (
"gatchaman" text,
"eagle_riders" text,
"rank" text,
"bird_uniform" text,
"weapon" text,
"mecha" text,
"japanese_voice_actor" text,
"voice_actor_eagle_riders" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the weapon for the mecha of motorcycle?`:
```sql
|
SELECT "bird_uniform" FROM "team_variations_across_different_version" WHERE "rank"='g2'; |
## Task
Generate a SQL query to answer the following question:
`What is the bird uniform that is associated with the rank of G2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_variations_across_different_version" (
"gatchaman" text,
"eagle_riders" text,
"rank" text,
"bird_uniform" text,
"weapon" text,
"mecha" text,
"japanese_voice_actor" text,
"voice_actor_eagle_riders" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the bird uniform that is associated with the rank of G2?`:
```sql
|
SELECT "team" FROM "playoffs" WHERE "score"='103-96'; |
## Task
Generate a SQL query to answer the following question:
`Which team had a score of 103-96?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"team" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had a score of 103-96?`:
```sql
|
SELECT MIN("game") FROM "playoffs" WHERE "location_attendance"='madison square garden' AND "score"='109-99'; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest game had a location of Madison Square Garden with a score of 109-99?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"team" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest game had a location of Madison Square Garden with a score of 109-99?`:
```sql
|
SELECT "2007" FROM "singles_performance_timeline" WHERE "2006"='wta premier tournaments'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2007 value for the 2006 wta premier tournaments?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"career_sr" text,
"career_w_l" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2007 value for the 2006 wta premier tournaments?`:
```sql
|
SELECT "2007" FROM "singles_performance_timeline" WHERE "2010"='wta premier 5 tournaments'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2007 value for the 2010 wta premier 5 tournaments?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"career_sr" text,
"career_w_l" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2007 value for the 2010 wta premier 5 tournaments?`:
```sql
|
SELECT "2004" FROM "singles_performance_timeline" WHERE "2005"='a' AND "2008"='a' AND "2009"='lq'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2004 value with A in 2005, A in 2008, and lq in 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"career_sr" text,
"career_w_l" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2004 value with A in 2005, A in 2008, and lq in 2009?`:
```sql
|
SELECT "career_sr" FROM "singles_performance_timeline" WHERE "tournament"='wimbledon'; |
## Task
Generate a SQL query to answer the following question:
`What is the career SR for the tournament of wimbledon?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"career_sr" text,
"career_w_l" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the career SR for the tournament of wimbledon?`:
```sql
|
SELECT "score" FROM "fourth_round_proper" WHERE "tie_no"='12'; |
## Task
Generate a SQL query to answer the following question:
`What is the score for the Tie no. 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for the Tie no. 12?`:
```sql
|
SELECT "home_team" FROM "fourth_round_proper" WHERE "away_team"='norwich city'; |
## Task
Generate a SQL query to answer the following question:
`What is the home team against the away team Norwich City?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home team against the away team Norwich City?`:
```sql
|
SELECT "home_team" FROM "fourth_round_proper" WHERE "tie_no"='12'; |
## Task
Generate a SQL query to answer the following question:
`Who is the home team with a tie no. 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the home team with a tie no. 12?`:
```sql
|
SELECT "player" FROM "draft_picks" WHERE "pick"=219; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE PLAYER WITH A PICK OF 219?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE PLAYER WITH A PICK OF 219?`:
```sql
|
SELECT "nationality" FROM "draft_picks" WHERE "round"=3; |
## Task
Generate a SQL query to answer the following question:
`WHAT NATIONALITY HAS ROUND 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT NATIONALITY HAS ROUND 3?`:
```sql
|
SELECT "player" FROM "draft_picks" WHERE "pick"<110 AND "college"='duke'; |
## Task
Generate a SQL query to answer the following question:
`WHAT PLAYER HAS A PICK SMALLER THAN 110, AND DUKE AS COLLEGE?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT PLAYER HAS A PICK SMALLER THAN 110, AND DUKE AS COLLEGE?`:
```sql
|
SELECT "position" FROM "j" WHERE "years_with_spurs"='2009-2012'; |
## Task
Generate a SQL query to answer the following question:
`WHAT POSITION HAD SPURS IN 2009-2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "j" (
"player" text,
"no_s" real,
"height_in_ft" text,
"position" text,
"years_with_spurs" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT POSITION HAD SPURS IN 2009-2012?`:
```sql
|
SELECT "winner_and_score" FROM "singles" WHERE "week"='august 10'; |
## Task
Generate a SQL query to answer the following question:
`Who won on the week of August 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" text,
"finalist" text,
"semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won on the week of August 10?`:
```sql
|
SELECT "surface" FROM "singles" WHERE "week"='august 10'; |
## Task
Generate a SQL query to answer the following question:
`What surface was played on during the week of August 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" text,
"finalist" text,
"semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What surface was played on during the week of August 10?`:
```sql
|
SELECT "tournament" FROM "singles" WHERE "finalist"='greg rusedski'; |
## Task
Generate a SQL query to answer the following question:
`What tournament had Greg Rusedski as a finalist?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" text,
"finalist" text,
"semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament had Greg Rusedski as a finalist?`:
```sql
|
SELECT "surface" FROM "singles" WHERE "week"='march 16'; |
## Task
Generate a SQL query to answer the following question:
`What was the surface that was played on during the week of March 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" text,
"finalist" text,
"semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the surface that was played on during the week of March 16?`:
```sql
|
SELECT MIN("laps") FROM "classification" WHERE "driver"='rubens barrichello' AND "grid"<12; |
## Task
Generate a SQL query to answer the following question:
`what is the least laps when the driver is rubens barrichello and the grid is less than 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the least laps when the driver is rubens barrichello and the grid is less than 12?`:
```sql
|
SELECT "time_retired" FROM "classification" WHERE "laps"=55; |
## Task
Generate a SQL query to answer the following question:
`what is the time/retired when the laps is 55?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the time/retired when the laps is 55?`:
```sql
|
SELECT "location" FROM "mixed_martial_arts_record" WHERE "event"='kage kombat 16'; |
## Task
Generate a SQL query to answer the following question:
`Where was the event Kage Kombat 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the event Kage Kombat 16?`:
```sql
|
SELECT "event" FROM "mixed_martial_arts_record" WHERE "record"='18–5 (1)'; |
## Task
Generate a SQL query to answer the following question:
`Which event had the record of 18–5 (1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which event had the record of 18–5 (1)?`:
```sql
|
SELECT "grid" FROM "results" WHERE "driver"='menato boffa'; |
## Task
Generate a SQL query to answer the following question:
`What was Menato Boffa's grid?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"driver" text,
"entrant" text,
"constructor" text,
"time_retired" text,
"grid" text,
"heat_1_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Menato Boffa's grid?`:
```sql
|
SELECT "time_retired" FROM "results" WHERE "driver"='ludovico scarfiotti'; |
## Task
Generate a SQL query to answer the following question:
`What is the Time/Retired value for Ludovico Scarfiotti?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"driver" text,
"entrant" text,
"constructor" text,
"time_retired" text,
"grid" text,
"heat_1_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time/Retired value for Ludovico Scarfiotti?`:
```sql
|
SELECT "constructor" FROM "results" WHERE "driver"='albino buticchi'; |
## Task
Generate a SQL query to answer the following question:
`Who was Albino Buticchi's constructor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"driver" text,
"entrant" text,
"constructor" text,
"time_retired" text,
"grid" text,
"heat_1_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Albino Buticchi's constructor?`:
```sql
|
SELECT "driver" FROM "results" WHERE "entrant"='rovero campello'; |
## Task
Generate a SQL query to answer the following question:
`Who was the driver for Rovero Campello?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"driver" text,
"entrant" text,
"constructor" text,
"time_retired" text,
"grid" text,
"heat_1_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the driver for Rovero Campello?`:
```sql
|
SELECT "score" FROM "final_round" WHERE "player"='jay haas'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of player jay haas?`
### 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" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of player jay haas?`:
```sql
|
SELECT "to_par" FROM "final_round" WHERE "money">'4,100' AND "score"='69-67-72-70=278'; |
## Task
Generate a SQL query to answer the following question:
`What is the to par of the player with more than $4,100 and a score of 69-67-72-70=278?`
### 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" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par of the player with more than $4,100 and a score of 69-67-72-70=278?`:
```sql
|
SELECT "player" FROM "final_round" WHERE "to_par"='+3' AND "score"='72-68-71-72=283'; |
## Task
Generate a SQL query to answer the following question:
`Who is the player with a +3 to par and a 72-68-71-72=283 score?`
### 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" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player with a +3 to par and a 72-68-71-72=283 score?`:
```sql
|
SELECT "country" FROM "final_round" WHERE "score"='74-72-71-67=284'; |
## Task
Generate a SQL query to answer the following question:
`What country has a 74-72-71-67=284 score?`
### 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" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country has a 74-72-71-67=284 score?`:
```sql
|
SELECT MIN("bike_no") FROM "riders" WHERE "driver_passenger"='joris hendrickx / kaspars liepins' AND "position"<4; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Bike No, when Driver / Passenger is Joris Hendrickx / Kaspars Liepins, and when Position is less than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "riders" (
"position" real,
"driver_passenger" text,
"equipment" text,
"bike_no" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Bike No, when Driver / Passenger is Joris Hendrickx / Kaspars Liepins, and when Position is less than 4?`:
```sql
|
SELECT AVG("position") FROM "riders" WHERE "bike_no">8 AND "points"<240; |
## Task
Generate a SQL query to answer the following question:
`What is the average Position, when Bike No is greater than 8, and when Points is less than 240?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "riders" (
"position" real,
"driver_passenger" text,
"equipment" text,
"bike_no" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Position, when Bike No is greater than 8, and when Points is less than 240?`:
```sql
|
SELECT MIN("position") FROM "riders" WHERE "bike_no">10 AND "driver_passenger"='nicky pulinx / ondrej cermak' AND "points">244; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Postion, when Bike No is greater than 10, when Driver / Passenger is Nicky Pulinx / Ondrej Cermak, and when Points is greater than 244?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "riders" (
"position" real,
"driver_passenger" text,
"equipment" text,
"bike_no" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Postion, when Bike No is greater than 10, when Driver / Passenger is Nicky Pulinx / Ondrej Cermak, and when Points is greater than 244?`:
```sql
|
SELECT MAX("points") FROM "riders" WHERE "position"<4 AND "equipment"='zabel - vmc' AND "bike_no"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Points, when Position is less than 4, when Equipment is Zabel - VMC, and when Bike No is less than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "riders" (
"position" real,
"driver_passenger" text,
"equipment" text,
"bike_no" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Points, when Position is less than 4, when Equipment is Zabel - VMC, and when Bike No is less than 1?`:
```sql
|
SELECT AVG("bike_no") FROM "riders" WHERE "driver_passenger"='joris hendrickx / kaspars liepins' AND "position">4; |
## Task
Generate a SQL query to answer the following question:
`What is the average Bike No, when Driver / Passenger is Joris Hendrickx / Kaspars Liepins, and when Position is greater than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "riders" (
"position" real,
"driver_passenger" text,
"equipment" text,
"bike_no" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Bike No, when Driver / Passenger is Joris Hendrickx / Kaspars Liepins, and when Position is greater than 4?`:
```sql
|
SELECT "type" FROM "video_game" WHERE "platform"='gamecube'; |
## Task
Generate a SQL query to answer the following question:
`What is the type of electronic with the Gamecube Platform?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "video_game" (
"publisher" text,
"year" real,
"platform" text,
"type" text,
"metacritic_score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type of electronic with the Gamecube Platform?`:
```sql
|
SELECT "surface" FROM "singles_7" WHERE "date"='13 february 1994'; |
## Task
Generate a SQL query to answer the following question:
`On what type of surface did they play on 13 February 1994?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what type of surface did they play on 13 February 1994?`:
```sql
|
SELECT "tournament" FROM "singles_7" WHERE "opponent_in_the_final"='silke meier'; |
## Task
Generate a SQL query to answer the following question:
`In which tournament was Silke Meier the opponent in the final?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which tournament was Silke Meier the opponent in the final?`:
```sql
|
SELECT "venue" FROM "international_goals" WHERE "score"='2–0'; |
## Task
Generate a SQL query to answer the following question:
`Which venue has a scoreof 2–0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "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 `Which venue has a scoreof 2–0?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "team"='indiana'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE SCORE WITH THE TEAM OF INDIANA?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE SCORE WITH THE TEAM OF INDIANA?`:
```sql
|
SELECT "team" FROM "game_log" WHERE "location_attendance"='target center 11,921'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE TEAM WITH ATTENDANCE AT TARGET CENTER 11,921?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE TEAM WITH ATTENDANCE AT TARGET CENTER 11,921?`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "date"='10/29/1932'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance on 10/29/1932?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance on 10/29/1932?`:
```sql
|
SELECT SUM("attendance") FROM "schedule" WHERE "date"='december 21, 1986' AND "week"<16; |
## Task
Generate a SQL query to answer the following question:
`What was the Attendance on December 21, 1986 before Week 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Attendance on December 21, 1986 before Week 16?`:
```sql
|
SELECT MAX("week") FROM "schedule" WHERE "attendance"='43,430'; |
## Task
Generate a SQL query to answer the following question:
`In what Week was the Attendance 43,430?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what Week was the Attendance 43,430?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "week">11 AND "date"='december 14, 1986'; |
## Task
Generate a SQL query to answer the following question:
`What was the Result of the game on December 14, 1986 after Week 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Result of the game on December 14, 1986 after Week 11?`:
```sql
|
SELECT "team" FROM "playoffs" WHERE "series"='1-1'; |
## Task
Generate a SQL query to answer the following question:
`What team did they play when the series was 1-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team did they play when the series was 1-1?`:
```sql
|
SELECT "high_points" FROM "playoffs" WHERE "date"='may 12'; |
## Task
Generate a SQL query to answer the following question:
`What were the high points on May 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the high points on May 12?`:
```sql
|
SELECT "team" FROM "playoffs" WHERE "series"='2-1'; |
## Task
Generate a SQL query to answer the following question:
`What was the team they played when the series was 2-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team they played when the series was 2-1?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "date"='february 8, 1990'; |
## Task
Generate a SQL query to answer the following question:
`who is the opponent on february 8, 1990?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"score" text,
"record" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the opponent on february 8, 1990?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "streak"='won 9' AND "date"='april 13, 1990'; |
## Task
Generate a SQL query to answer the following question:
`who is the opponent when the streak is won 9 on april 13, 1990?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"score" text,
"record" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the opponent when the streak is won 9 on april 13, 1990?`:
```sql
|
SELECT COUNT("num_of_prefectural_votes") FROM "councillors_election_results" WHERE "num_of_seats_won">69 AND "leader"='yasuhiro nakasone'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of # Of Prefectural Votes, when # Of Seats Won is greater than 69, and when Leader is Yasuhiro Nakasone?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "councillors_election_results" (
"election" real,
"leader" text,
"num_of_seats_won" real,
"num_of_national_votes" real,
"pct_of_national_vote" text,
"num_of_prefectural_votes" real,
"pct_of_prefectural_vote" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of # Of Prefectural Votes, when # Of Seats Won is greater than 69, and when Leader is Yasuhiro Nakasone?`:
```sql
|
SELECT AVG("num_of_national_votes") FROM "councillors_election_results" WHERE "election"<1992 AND "pct_of_prefectural_vote"='39.5%' AND "leader"='takeo fukuda' AND "num_of_seats_won">63; |
## Task
Generate a SQL query to answer the following question:
`What is the average # Of National Votes, when the Election is before 1992, when the % Of Prefectural Vote is 39.5%, when Leader is Takeo Fukuda, and when # Of Seats Won is greater than 63?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "councillors_election_results" (
"election" real,
"leader" text,
"num_of_seats_won" real,
"num_of_national_votes" real,
"pct_of_national_vote" text,
"num_of_prefectural_votes" real,
"pct_of_prefectural_vote" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average # Of National Votes, when the Election is before 1992, when the % Of Prefectural Vote is 39.5%, when Leader is Takeo Fukuda, and when # Of Seats Won is greater than 63?`:
```sql
|
SELECT AVG("election") FROM "councillors_election_results" WHERE "pct_of_prefectural_vote"='38.57%' AND "num_of_prefectural_votes">'21,114,727'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Election, when % Of Prefectural Vote is 38.57%, and when # Of Prefectural Votes is greater than 21,114,727?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "councillors_election_results" (
"election" real,
"leader" text,
"num_of_seats_won" real,
"num_of_national_votes" real,
"pct_of_national_vote" text,
"num_of_prefectural_votes" real,
"pct_of_prefectural_vote" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Election, when % Of Prefectural Vote is 38.57%, and when # Of Prefectural Votes is greater than 21,114,727?`:
```sql
|
SELECT AVG("election") FROM "councillors_election_results" WHERE "pct_of_national_vote"='45.23%' AND "num_of_prefectural_votes"<'14,961,199'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Election, when % Of Nation Vote is 45.23%, and when # Of Prefectural Votes is less than 14,961,199?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "councillors_election_results" (
"election" real,
"leader" text,
"num_of_seats_won" real,
"num_of_national_votes" real,
"pct_of_national_vote" text,
"num_of_prefectural_votes" real,
"pct_of_prefectural_vote" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Election, when % Of Nation Vote is 45.23%, and when # Of Prefectural Votes is less than 14,961,199?`:
```sql
|
SELECT COUNT("num_of_prefectural_votes") FROM "councillors_election_results" WHERE "pct_of_prefectural_vote"='48.4%' AND "num_of_seats_won">61; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of # Of Prefectural Votes, when % Of Prefectural Vote is 48.4%, and when # Of Seats Won is greater than 61?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "councillors_election_results" (
"election" real,
"leader" text,
"num_of_seats_won" real,
"num_of_national_votes" real,
"pct_of_national_vote" text,
"num_of_prefectural_votes" real,
"pct_of_prefectural_vote" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of # Of Prefectural Votes, when % Of Prefectural Vote is 48.4%, and when # Of Seats Won is greater than 61?`:
```sql
|
SELECT "res" FROM "mma_record" WHERE "opponent"='steve schneider'; |
## Task
Generate a SQL query to answer the following question:
`What was the resolution of the fight against steve schneider?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mma_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the resolution of the fight against steve schneider?`:
```sql
|
SELECT "res" FROM "mma_record" WHERE "record"='2-0'; |
## Task
Generate a SQL query to answer the following question:
`What was the resolution of the fight when matt grice had a record of 2-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mma_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the resolution of the fight when matt grice had a record of 2-0?`:
```sql
|
SELECT "record" FROM "mma_record" WHERE "time"='5:00' AND "opponent"='dennis bermudez'; |
## Task
Generate a SQL query to answer the following question:
`What was the record when matt grice fought dennis bermudez with a time of 5:00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mma_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record when matt grice fought dennis bermudez with a time of 5:00?`:
```sql
|
SELECT "outcome" FROM "singles_5_2_titles_3_runners_up" WHERE "opponent"='juan ignacio chela'; |
## Task
Generate a SQL query to answer the following question:
`What was the outcome of the match against Juan Ignacio Chela?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_5_2_titles_3_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome of the match against Juan Ignacio Chela?`:
```sql
|
SELECT "250_cc" FROM "winners_of_the_yugoslavian_motorcycle_gr" WHERE "year">1984; |
## Task
Generate a SQL query to answer the following question:
`What is the 250 cc with a year bigger than 1984?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_yugoslavian_motorcycle_gr" (
"year" real,
"track" text,
"250_cc" text,
"500_cc" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 250 cc with a year bigger than 1984?`:
```sql
|
SELECT "report" FROM "winners_of_the_yugoslavian_motorcycle_gr" WHERE "250_cc"='sito pons' AND "500_cc"='wayne gardner'; |
## Task
Generate a SQL query to answer the following question:
`What is the report for a 250 cc of sito pons, and a 500 cc of wayne gardner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_yugoslavian_motorcycle_gr" (
"year" real,
"track" text,
"250_cc" text,
"500_cc" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the report for a 250 cc of sito pons, and a 500 cc of wayne gardner?`:
```sql
|
SELECT "500_cc" FROM "winners_of_the_yugoslavian_motorcycle_gr" WHERE "250_cc"='freddie spencer'; |
## Task
Generate a SQL query to answer the following question:
`What is the 500 cc with a 250 cc of freddie spencer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_yugoslavian_motorcycle_gr" (
"year" real,
"track" text,
"250_cc" text,
"500_cc" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 500 cc with a 250 cc of freddie spencer?`:
```sql
|
SELECT "track" FROM "winners_of_the_yugoslavian_motorcycle_gr" WHERE "250_cc"='sito pons'; |
## Task
Generate a SQL query to answer the following question:
`What track has a 250 cc of sito pons?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_yugoslavian_motorcycle_gr" (
"year" real,
"track" text,
"250_cc" text,
"500_cc" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What track has a 250 cc of sito pons?`:
```sql
|
SELECT "score" FROM "third_round" WHERE "place"='t9' AND "player"='jerry barber'; |
## Task
Generate a SQL query to answer the following question:
`How much did Jerry Barber score to come in at T9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much did Jerry Barber score to come in at T9?`:
```sql
|
SELECT "place" FROM "third_round" WHERE "country"='united states' AND "player"='jerry barber'; |
## Task
Generate a SQL query to answer the following question:
`What place did Jerry Barber of the United States come in at?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What place did Jerry Barber of the United States come in at?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.