output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "loss" FROM "game_log" WHERE "date"='september 2'; |
## Task
Generate a SQL query to answer the following question:
`What was the loss on September 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,
"loss" text,
"save" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the loss on September 2?`:
```sql
|
SELECT SUM("byes") FROM "2010_ladder" WHERE "draws"=1 AND "wins"=5 AND "losses"<12; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of byes that are associated with 1 draw, 5 wins, and fewer than 12 losses?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_ladder" (
"ntfa_div_1" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of byes that are associated with 1 draw, 5 wins, and fewer than 12 losses?`:
```sql
|
SELECT COUNT("byes") FROM "2010_ladder" WHERE "draws"<1 AND "wins"<8; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of byes associated with fewer than 8 wins and fewer than 1 draw?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_ladder" (
"ntfa_div_1" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of byes associated with fewer than 8 wins and fewer than 1 draw?`:
```sql
|
SELECT "ntfa_div_1" FROM "2010_ladder" WHERE "draws"<1 AND "wins"=15; |
## Task
Generate a SQL query to answer the following question:
`What is the NTFA Div 1 team that has 15 wins and less than 1 draw?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_ladder" (
"ntfa_div_1" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the NTFA Div 1 team that has 15 wins and less than 1 draw?`:
```sql
|
SELECT AVG("losses") FROM "2010_ladder" WHERE "draws"=0 AND "byes"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the average number of losses for teams with 0 draws and 0 byes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_ladder" (
"ntfa_div_1" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of losses for teams with 0 draws and 0 byes?`:
```sql
|
SELECT MAX("losses") FROM "2010_ladder" WHERE "wins"=5 AND "against"<1607; |
## Task
Generate a SQL query to answer the following question:
`What is the most number of losses for teams with 5 wins and an against value under 1607?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_ladder" (
"ntfa_div_1" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most number of losses for teams with 5 wins and an against value under 1607?`:
```sql
|
SELECT COUNT("race") FROM "by_season" WHERE "podium">1 AND "season"='1982' AND "f_lap"<1; |
## Task
Generate a SQL query to answer the following question:
`Race that has a Podium larger than 1, and a Season of 1982, and a flap smaller than 1 had how many number of races?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_season" (
"season" text,
"race" real,
"podium" real,
"pole" real,
"f_lap" real
);
### SQL
Given the database schema, here is the SQL query that answers `Race that has a Podium larger than 1, and a Season of 1982, and a flap smaller than 1 had how many number of races?`:
```sql
|
SELECT MIN("podium") FROM "by_season" WHERE "pole"<0; |
## Task
Generate a SQL query to answer the following question:
`Pole smaller than 0 had what lowest podium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_season" (
"season" text,
"race" real,
"podium" real,
"pole" real,
"f_lap" real
);
### SQL
Given the database schema, here is the SQL query that answers `Pole smaller than 0 had what lowest podium?`:
```sql
|
SELECT AVG("podium") FROM "by_season" WHERE "f_lap"=0 AND "race"<2 AND "season"='1989' AND "pole"<0; |
## Task
Generate a SQL query to answer the following question:
`Flap of 0, and a Race smaller than 2, and a Season of 1989, and a Pole smaller than 0 had what average podium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_season" (
"season" text,
"race" real,
"podium" real,
"pole" real,
"f_lap" real
);
### SQL
Given the database schema, here is the SQL query that answers `Flap of 0, and a Race smaller than 2, and a Season of 1989, and a Pole smaller than 0 had what average podium?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "date"='august 24'; |
## Task
Generate a SQL query to answer the following question:
`What was the record on august 24?`
### 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,
"stadium" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on august 24?`:
```sql
|
SELECT "route" FROM "colorado_highway_summits_not_on_a_pass" WHERE "elevation"='11,158 feet 3401 m'; |
## Task
Generate a SQL query to answer the following question:
`Elevation of 11,158 feet 3401 m had what route?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "colorado_highway_summits_not_on_a_pass" (
"rank" real,
"highway" text,
"elevation" text,
"surface" text,
"route" real
);
### SQL
Given the database schema, here is the SQL query that answers `Elevation of 11,158 feet 3401 m had what route?`:
```sql
|
SELECT "elevation" FROM "colorado_highway_summits_not_on_a_pass" WHERE "route">24 AND "highway"='trail ridge road'; |
## Task
Generate a SQL query to answer the following question:
`Route larger than 24, and a Highway of trail ridge road had what elevation?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "colorado_highway_summits_not_on_a_pass" (
"rank" real,
"highway" text,
"elevation" text,
"surface" text,
"route" real
);
### SQL
Given the database schema, here is the SQL query that answers `Route larger than 24, and a Highway of trail ridge road had what elevation?`:
```sql
|
SELECT AVG("route") FROM "colorado_highway_summits_not_on_a_pass" WHERE "elevation"='12,183 feet 3713 m'; |
## Task
Generate a SQL query to answer the following question:
`Elevation of 12,183 feet 3713 m is what average route?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "colorado_highway_summits_not_on_a_pass" (
"rank" real,
"highway" text,
"elevation" text,
"surface" text,
"route" real
);
### SQL
Given the database schema, here is the SQL query that answers `Elevation of 12,183 feet 3713 m is what average route?`:
```sql
|
SELECT "opponent" FROM "1982" WHERE "results"='1:3'; |
## Task
Generate a SQL query to answer the following question:
`What Opponent has a Results¹ of 1:3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1982" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Opponent has a Results¹ of 1:3?`:
```sql
|
SELECT "date" FROM "1982" WHERE "results"='1:2'; |
## Task
Generate a SQL query to answer the following question:
`On what Date was the Results¹ 1:2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1982" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date was the Results¹ 1:2?`:
```sql
|
SELECT "city" FROM "1982" WHERE "results"='1:2'; |
## Task
Generate a SQL query to answer the following question:
`What City had Results¹ of 1:2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1982" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What City had Results¹ of 1:2?`:
```sql
|
SELECT "date" FROM "1982" WHERE "opponent"='wales'; |
## Task
Generate a SQL query to answer the following question:
`On what Date was Wales the Opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1982" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date was Wales the Opponent?`:
```sql
|
SELECT "city" FROM "1982" WHERE "results"='1:0' AND "opponent"='bulgaria'; |
## Task
Generate a SQL query to answer the following question:
`In what City was Bulgaria the Opponent with Results¹ of 1:0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1982" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what City was Bulgaria the Opponent with Results¹ of 1:0?`:
```sql
|
SELECT MAX("game") FROM "regular_season" WHERE "opponent"='vancouver canucks' AND "november"<4; |
## Task
Generate a SQL query to answer the following question:
`What Vancouver canucks game was on a date closest to November 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Vancouver canucks game was on a date closest to November 4?`:
```sql
|
SELECT "year" FROM "1990s" WHERE "color_commentator_s"='jerry sichting'; |
## Task
Generate a SQL query to answer the following question:
`Name the year for jerry sichting`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1990s" (
"year" text,
"flagship_station" text,
"play_by_play" text,
"color_commentator_s" text,
"studio_host" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year for jerry sichting`:
```sql
|
SELECT "studio_host" FROM "1990s" WHERE "play_by_play"='glenn ordway' AND "color_commentator_s"='jerry sichting' AND "year"='1993-94'; |
## Task
Generate a SQL query to answer the following question:
`Name the studio host for glenn ordway and jerry sichting with year of 1993-94`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1990s" (
"year" text,
"flagship_station" text,
"play_by_play" text,
"color_commentator_s" text,
"studio_host" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the studio host for glenn ordway and jerry sichting with year of 1993-94`:
```sql
|
SELECT "flagship_station" FROM "1990s" WHERE "color_commentator_s"='cedric maxwell' AND "year"='1995-96'; |
## Task
Generate a SQL query to answer the following question:
`Name the flagship station for cedric maxwell and year of 1995-96`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1990s" (
"year" text,
"flagship_station" text,
"play_by_play" text,
"color_commentator_s" text,
"studio_host" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the flagship station for cedric maxwell and year of 1995-96`:
```sql
|
SELECT "architect" FROM "manitoba" WHERE "height_m"=42 AND "floors"=10; |
## Task
Generate a SQL query to answer the following question:
`Who was the architect of the 10 floor building with a height of 42 M?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "manitoba" (
"building" text,
"height_m" real,
"floors" real,
"built" real,
"city" text,
"architect" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the architect of the 10 floor building with a height of 42 M?`:
```sql
|
SELECT "height_m" FROM "manitoba" WHERE "architect"='ross and macfarlane'; |
## Task
Generate a SQL query to answer the following question:
`What is the height of the building built by architects Ross and Macfarlane?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "manitoba" (
"building" text,
"height_m" real,
"floors" real,
"built" real,
"city" text,
"architect" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of the building built by architects Ross and Macfarlane?`:
```sql
|
SELECT "architect" FROM "manitoba" WHERE "built"<1915 AND "building"='electric railway chambers'; |
## Task
Generate a SQL query to answer the following question:
`Who was the architect that built the Electric Railway Chambers before 1915?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "manitoba" (
"building" text,
"height_m" real,
"floors" real,
"built" real,
"city" text,
"architect" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the architect that built the Electric Railway Chambers before 1915?`:
```sql
|
SELECT "time" FROM "game_log" WHERE "date"='july 18' AND "loss"='lilly (3-3)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Time on july 18 that has a Loss of lilly (3-3)?`
### 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,
"time" text,
"att" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time on july 18 that has a Loss of lilly (3-3)?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "record"='43-56'; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Record of 43-56?`
### 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,
"time" text,
"att" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Record of 43-56?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "date"='july 18' AND "record"='41-51'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score on July 18 that has Record of 41-51?`
### 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,
"time" text,
"att" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score on July 18 that has Record of 41-51?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "date"='july 31'; |
## Task
Generate a SQL query to answer the following question:
`Which Record is on july 31?`
### 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,
"time" text,
"att" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record is on july 31?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "loss"='weaver (9-9)'; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Loss of weaver (9-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,
"time" text,
"att" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Loss of weaver (9-9)?`:
```sql
|
SELECT "season" FROM "highest_percentage_of_pole_positions_in_" WHERE "poles">14; |
## Task
Generate a SQL query to answer the following question:
`Which Season was the Poles greater than 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_percentage_of_pole_positions_in_" (
"driver" text,
"season" real,
"races" real,
"poles" real,
"percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Season was the Poles greater than 14?`:
```sql
|
SELECT MAX("season") FROM "highest_percentage_of_pole_positions_in_" WHERE "percentage"='67%' AND "driver"='alberto ascari'; |
## Task
Generate a SQL query to answer the following question:
`Which is the highest Season with a Percentage of 67% and Alberto Ascari as a Driver?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_percentage_of_pole_positions_in_" (
"driver" text,
"season" real,
"races" real,
"poles" real,
"percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the highest Season with a Percentage of 67% and Alberto Ascari as a Driver?`:
```sql
|
SELECT "driver" FROM "highest_percentage_of_pole_positions_in_" WHERE "races">16; |
## Task
Generate a SQL query to answer the following question:
`Name the Driver that has Races greater than 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_percentage_of_pole_positions_in_" (
"driver" text,
"season" real,
"races" real,
"poles" real,
"percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Driver that has Races greater than 16?`:
```sql
|
SELECT AVG("long") FROM "rushing" WHERE "gp_gs"<14 AND "avg_g"<0.8 AND "gain"<3 AND "loss">8; |
## Task
Generate a SQL query to answer the following question:
`What is the average Long that has a GP-GS less than 14, a AVg/G less than 0.8 and a Gain less than 3 and a Loss greater than 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rushing" (
"name" text,
"gp_gs" real,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Long that has a GP-GS less than 14, a AVg/G less than 0.8 and a Gain less than 3 and a Loss greater than 8?`:
```sql
|
SELECT MIN("avg_g") FROM "rushing" WHERE "long"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Avg/G with a Long less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rushing" (
"name" text,
"gp_gs" real,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Avg/G with a Long less than 0?`:
```sql
|
SELECT SUM("avg_g") FROM "rushing" WHERE "name"='blaine gabbert' AND "long">30; |
## Task
Generate a SQL query to answer the following question:
`What is the amount of Avg/G with a Name of blaine gabbert and a Long greater than 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rushing" (
"name" text,
"gp_gs" real,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the amount of Avg/G with a Name of blaine gabbert and a Long greater than 30?`:
```sql
|
SELECT COUNT("long") FROM "rushing" WHERE "loss">0 AND "avg_g"=124.9; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Long with a Av/g of 124.9 but Loss greater than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rushing" (
"name" text,
"gp_gs" real,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Long with a Av/g of 124.9 but Loss greater than 0?`:
```sql
|
SELECT "date" FROM "release_history" WHERE "label"='parlophone' AND "format"='lp'; |
## Task
Generate a SQL query to answer the following question:
`What date has parlophone as the label, and lp as a format?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has parlophone as the label, and lp as a format?`:
```sql
|
SELECT "school" FROM "see_also" WHERE "state"='oregon' AND "city"='ashland'; |
## Task
Generate a SQL query to answer the following question:
`What school has oregon as the state, and ashland as the city?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"school" text,
"team" text,
"city" text,
"state" text,
"conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school has oregon as the state, and ashland as the city?`:
```sql
|
SELECT "conference" FROM "see_also" WHERE "school"='mayville state'; |
## Task
Generate a SQL query to answer the following question:
`What conference has mayville state as the school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"school" text,
"team" text,
"city" text,
"state" text,
"conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What conference has mayville state as the school?`:
```sql
|
SELECT "school" FROM "see_also" WHERE "city"='belleville'; |
## Task
Generate a SQL query to answer the following question:
`What school has belleville as the city?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"school" text,
"team" text,
"city" text,
"state" text,
"conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school has belleville as the city?`:
```sql
|
SELECT "city" FROM "see_also" WHERE "team"='trojans' AND "school"='taylor'; |
## Task
Generate a SQL query to answer the following question:
`What city has trojans as the team, and taylor as the school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"school" text,
"team" text,
"city" text,
"state" text,
"conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city has trojans as the team, and taylor as the school?`:
```sql
|
SELECT "team" FROM "see_also" WHERE "conference"='great plains' AND "school"='concordia (ne)'; |
## Task
Generate a SQL query to answer the following question:
`What team has great plains as the conference, and concordia (ne) as the school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"school" text,
"team" text,
"city" text,
"state" text,
"conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team has great plains as the conference, and concordia (ne) as the school?`:
```sql
|
SELECT "school" FROM "see_also" WHERE "city"='hillsboro'; |
## Task
Generate a SQL query to answer the following question:
`What school is in hillsboro city?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"school" text,
"team" text,
"city" text,
"state" text,
"conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school is in hillsboro city?`:
```sql
|
SELECT COUNT("game") FROM "schedule_and_results" WHERE "february">11 AND "record"='23-7-8'; |
## Task
Generate a SQL query to answer the following question:
`How many games have a February larger than 11, and a Record of 23-7-8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games have a February larger than 11, and a Record of 23-7-8?`:
```sql
|
SELECT COUNT("february") FROM "schedule_and_results" WHERE "game">37 AND "opponent"='chicago black hawks'; |
## Task
Generate a SQL query to answer the following question:
`How much February has a Game larger than 37, and an Opponent of chicago black hawks?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much February has a Game larger than 37, and an Opponent of chicago black hawks?`:
```sql
|
SELECT "february" FROM "schedule_and_results" WHERE "game"=40; |
## Task
Generate a SQL query to answer the following question:
`Which February has a Game of 40?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which February has a Game of 40?`:
```sql
|
SELECT "record" FROM "schedule_and_results" WHERE "february"<8 AND "opponent"='montreal canadiens'; |
## Task
Generate a SQL query to answer the following question:
`Which Record has a February smaller than 8, and an Opponent of montreal canadiens?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has a February smaller than 8, and an Opponent of montreal canadiens?`:
```sql
|
SELECT "score" FROM "schedule_and_results" WHERE "game">40 AND "record"='25-10-8'; |
## Task
Generate a SQL query to answer the following question:
`Which Score has a Game larger than 40, and a Record of 25-10-8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a Game larger than 40, and a Record of 25-10-8?`:
```sql
|
SELECT "team_performance" FROM "nfl_defensive_players_of_the_year" WHERE "year"=1977; |
## Task
Generate a SQL query to answer the following question:
`What was the team performance in 1977?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_defensive_players_of_the_year" (
"year" real,
"nfl_team" text,
"position" text,
"team_defense_rank" real,
"team_performance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team performance in 1977?`:
```sql
|
SELECT "position" FROM "nfl_defensive_players_of_the_year" WHERE "team_defense_rank">3 AND "year"<1992 AND "team_performance"='lost super bowl xxv'; |
## Task
Generate a SQL query to answer the following question:
`What was the position of the player whose team lost super bowl xxv before 1992, with a team defense rank larger than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_defensive_players_of_the_year" (
"year" real,
"nfl_team" text,
"position" text,
"team_defense_rank" real,
"team_performance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position of the player whose team lost super bowl xxv before 1992, with a team defense rank larger than 3?`:
```sql
|
SELECT "round" FROM "nfl_draft" WHERE "pick">68 AND "player"='joe patton'; |
## Task
Generate a SQL query to answer the following question:
`What round was Joe Patton selected with a pick over 68?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was Joe Patton selected with a pick over 68?`:
```sql
|
SELECT "sail_number" FROM "handicap_results_top_10" WHERE "position"<2; |
## Task
Generate a SQL query to answer the following question:
`Which Sail number has a Position smaller than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" real,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Sail number has a Position smaller than 2?`:
```sql
|
SELECT "corrected_time_d_hh_mm_ss" FROM "handicap_results_top_10" WHERE "position"<7 AND "yacht_type"='cookson 50'; |
## Task
Generate a SQL query to answer the following question:
`WHICH Corrected time d:hh:mm:ss has a Position smaller than 7, and a Yacht type of cookson 50`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" real,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHICH Corrected time d:hh:mm:ss has a Position smaller than 7, and a Yacht type of cookson 50`:
```sql
|
SELECT "state_country" FROM "handicap_results_top_10" WHERE "skipper"='ray roberts'; |
## Task
Generate a SQL query to answer the following question:
`WHICH State/country that has ray roberts?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" real,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHICH State/country that has ray roberts?`:
```sql
|
SELECT "yacht_type" FROM "handicap_results_top_10" WHERE "corrected_time_d_hh_mm_ss"='2:13:04:48'; |
## Task
Generate a SQL query to answer the following question:
`WHICH Yacht type has a Corrected time 2:13:04:48?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" real,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHICH Yacht type has a Corrected time 2:13:04:48?`:
```sql
|
SELECT AVG("loa_metres") FROM "handicap_results_top_10" WHERE "corrected_time_d_hh_mm_ss"='3:12:07:43'; |
## Task
Generate a SQL query to answer the following question:
`WHICH LOA (Metres) has a Corrected time d:hh:mm:ss of 3:12:07:43?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" real,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHICH LOA (Metres) has a Corrected time d:hh:mm:ss of 3:12:07:43?`:
```sql
|
SELECT "surface" FROM "singles_titles_10" WHERE "tournament"='kuwait'; |
## Task
Generate a SQL query to answer the following question:
`What surface did Smeets play on during the Kuwait tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_titles_10" (
"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 `What surface did Smeets play on during the Kuwait tournament?`:
```sql
|
SELECT "tournament" FROM "singles_titles_10" WHERE "opponent_in_the_final"='mark nielsen'; |
## Task
Generate a SQL query to answer the following question:
`What tournament did Smeets play against Mark nielsen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_titles_10" (
"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 `What tournament did Smeets play against Mark nielsen?`:
```sql
|
SELECT "opponent_in_the_final" FROM "singles_titles_10" WHERE "tournament"='kuwait'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent during the tournament in Kuwait?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_titles_10" (
"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 `Who was the opponent during the tournament in Kuwait?`:
```sql
|
SELECT "weight" FROM "men_s_tournament" WHERE "club"='vk primorac kotor'; |
## Task
Generate a SQL query to answer the following question:
`What is the weight of the player from the vk primorac kotor club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_tournament" (
"name_v_t_e" text,
"pos" text,
"height" text,
"weight" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the weight of the player from the vk primorac kotor club?`:
```sql
|
SELECT "weight" FROM "men_s_tournament" WHERE "club"='pvk jadran'; |
## Task
Generate a SQL query to answer the following question:
`What is the weight of the player from pvk jadran club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_tournament" (
"name_v_t_e" text,
"pos" text,
"height" text,
"weight" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the weight of the player from pvk jadran club?`:
```sql
|
SELECT "name_v_t_e" FROM "men_s_tournament" WHERE "club"='pro recco'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the player from club pro recco?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_tournament" (
"name_v_t_e" text,
"pos" text,
"height" text,
"weight" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the player from club pro recco?`:
```sql
|
SELECT "height" FROM "men_s_tournament" WHERE "pos"='gk' AND "club"='vk primorac kotor'; |
## Task
Generate a SQL query to answer the following question:
`What is the height of the player from club vk primorac kotor who plays gk?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_tournament" (
"name_v_t_e" text,
"pos" text,
"height" text,
"weight" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of the player from club vk primorac kotor who plays gk?`:
```sql
|
SELECT "team_1" FROM "first_round_1_16_finals" WHERE "team_2"='gombe united f.c.'; |
## Task
Generate a SQL query to answer the following question:
`What is Team 1 where Team 2 is gombe united f.c.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_1_16_finals" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team 1 where Team 2 is gombe united f.c.?`:
```sql
|
SELECT "team_1" FROM "first_round_1_16_finals" WHERE "team_2"='al tahrir'; |
## Task
Generate a SQL query to answer the following question:
`What is Team 1 where Team 2 is al tahrir?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_1_16_finals" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team 1 where Team 2 is al tahrir?`:
```sql
|
SELECT "2nd_leg" FROM "first_round_1_16_finals" WHERE "team_2"='fc 105 libreville'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg where Team 2 is fc 105 libreville?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_1_16_finals" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd leg where Team 2 is fc 105 libreville?`:
```sql
|
SELECT "course" FROM "future_sites" WHERE "edition"='117th'; |
## Task
Generate a SQL query to answer the following question:
`What was the course called that had an Edition of 117th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "future_sites" (
"year" real,
"edition" text,
"course" text,
"location" text,
"dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the course called that had an Edition of 117th?`:
```sql
|
SELECT MIN("year") FROM "future_sites" WHERE "location"='brookline, massachusetts'; |
## Task
Generate a SQL query to answer the following question:
`What was the earliest year that had a location of Brookline, Massachusetts?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "future_sites" (
"year" real,
"edition" text,
"course" text,
"location" text,
"dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest year that had a location of Brookline, Massachusetts?`:
```sql
|
SELECT AVG("year") FROM "future_sites" WHERE "edition"='115th'; |
## Task
Generate a SQL query to answer the following question:
`What year had an edition of 115th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "future_sites" (
"year" real,
"edition" text,
"course" text,
"location" text,
"dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had an edition of 115th?`:
```sql
|
SELECT COUNT("points") FROM "grand_prix_motorcycle_racing_results" WHERE "class"='350cc' AND "rank"='5th'; |
## Task
Generate a SQL query to answer the following question:
`How many points did ginger have when she was ranked 5th on a 350cc class bike?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did ginger have when she was ranked 5th on a 350cc class bike?`:
```sql
|
SELECT COUNT("year") FROM "grand_prix_motorcycle_racing_results" WHERE "rank"='16th' AND "points">12; |
## Task
Generate a SQL query to answer the following question:
`What year was she ranked 16th with over 12 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year was she ranked 16th with over 12 points?`:
```sql
|
SELECT SUM("year") FROM "grand_prix_motorcycle_racing_results" WHERE "class"='350cc' AND "rank"='16th' AND "wins">0; |
## Task
Generate a SQL query to answer the following question:
`What year was she on a 350cc class bike, ranked 16th, with over 0 wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year was she on a 350cc class bike, ranked 16th, with over 0 wins?`:
```sql
|
SELECT SUM("points") FROM "grand_prix_motorcycle_racing_results" WHERE "team"='bultaco' AND "rank"='6th'; |
## Task
Generate a SQL query to answer the following question:
`How many points did she have with team bultaco, ranked 6th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did she have with team bultaco, ranked 6th?`:
```sql
|
SELECT "kashmiri" FROM "days_of_the_week" WHERE "indonesian"='senin'; |
## Task
Generate a SQL query to answer the following question:
`What is the Kashmiri word for the Indonesian word senin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "days_of_the_week" (
"arabic" text,
"english" text,
"maltese" text,
"turkish" text,
"somali" text,
"persian" text,
"urdu" text,
"hindi" text,
"punjabi_india" text,
"punjabi_pakistan" text,
"malayalam" text,
"bangla" text,
"hebrew" text,
"indonesian" text,
"malay" text,
"filipino" text,
"pashto" text,
"tamil" text,
"telugu" text,
"kashmiri" text,
"hausa" text,
"yor_b" text,
"kurdish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Kashmiri word for the Indonesian word senin?`:
```sql
|
SELECT "turkish" FROM "days_of_the_week" WHERE "bangla"='shombar সোমবার'; |
## Task
Generate a SQL query to answer the following question:
`What is the Turkish word for the Bangla word shombar সোমবার?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "days_of_the_week" (
"arabic" text,
"english" text,
"maltese" text,
"turkish" text,
"somali" text,
"persian" text,
"urdu" text,
"hindi" text,
"punjabi_india" text,
"punjabi_pakistan" text,
"malayalam" text,
"bangla" text,
"hebrew" text,
"indonesian" text,
"malay" text,
"filipino" text,
"pashto" text,
"tamil" text,
"telugu" text,
"kashmiri" text,
"hausa" text,
"yor_b" text,
"kurdish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Turkish word for the Bangla word shombar সোমবার?`:
```sql
|
SELECT "pashto" FROM "days_of_the_week" WHERE "somali"='talaado'; |
## Task
Generate a SQL query to answer the following question:
`What is the Pashto word for the Somali word talaado?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "days_of_the_week" (
"arabic" text,
"english" text,
"maltese" text,
"turkish" text,
"somali" text,
"persian" text,
"urdu" text,
"hindi" text,
"punjabi_india" text,
"punjabi_pakistan" text,
"malayalam" text,
"bangla" text,
"hebrew" text,
"indonesian" text,
"malay" text,
"filipino" text,
"pashto" text,
"tamil" text,
"telugu" text,
"kashmiri" text,
"hausa" text,
"yor_b" text,
"kurdish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Pashto word for the Somali word talaado?`:
```sql
|
SELECT "punjabi_pakistan" FROM "days_of_the_week" WHERE "kurdish"='یـــەک شـەمـمـە yak sham'; |
## Task
Generate a SQL query to answer the following question:
`What is the Punjabi (Pakistan) word for the Kurdish word یـــەک شـەمـمـە yak sham?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "days_of_the_week" (
"arabic" text,
"english" text,
"maltese" text,
"turkish" text,
"somali" text,
"persian" text,
"urdu" text,
"hindi" text,
"punjabi_india" text,
"punjabi_pakistan" text,
"malayalam" text,
"bangla" text,
"hebrew" text,
"indonesian" text,
"malay" text,
"filipino" text,
"pashto" text,
"tamil" text,
"telugu" text,
"kashmiri" text,
"hausa" text,
"yor_b" text,
"kurdish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Punjabi (Pakistan) word for the Kurdish word یـــەک شـەمـمـە yak sham?`:
```sql
|
SELECT "maltese" FROM "days_of_the_week" WHERE "malay"='rabu'; |
## Task
Generate a SQL query to answer the following question:
`What is the Maltese word for the Malay word rabu?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "days_of_the_week" (
"arabic" text,
"english" text,
"maltese" text,
"turkish" text,
"somali" text,
"persian" text,
"urdu" text,
"hindi" text,
"punjabi_india" text,
"punjabi_pakistan" text,
"malayalam" text,
"bangla" text,
"hebrew" text,
"indonesian" text,
"malay" text,
"filipino" text,
"pashto" text,
"tamil" text,
"telugu" text,
"kashmiri" text,
"hausa" text,
"yor_b" text,
"kurdish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Maltese word for the Malay word rabu?`:
```sql
|
SELECT "pashto" FROM "days_of_the_week" WHERE "malayalam"='വ്യാഴം vyazham'; |
## Task
Generate a SQL query to answer the following question:
`What is the Pashto word for the Malayalam word വ്യാഴം vyazham?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "days_of_the_week" (
"arabic" text,
"english" text,
"maltese" text,
"turkish" text,
"somali" text,
"persian" text,
"urdu" text,
"hindi" text,
"punjabi_india" text,
"punjabi_pakistan" text,
"malayalam" text,
"bangla" text,
"hebrew" text,
"indonesian" text,
"malay" text,
"filipino" text,
"pashto" text,
"tamil" text,
"telugu" text,
"kashmiri" text,
"hausa" text,
"yor_b" text,
"kurdish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Pashto word for the Malayalam word വ്യാഴം vyazham?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "date"='june 22'; |
## Task
Generate a SQL query to answer the following question:
`Which Score has a Date of june 22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a Date of june 22?`:
```sql
|
SELECT SUM("attendance") FROM "game_log" WHERE "opponent"='rockies' AND "record"='32-30'; |
## Task
Generate a SQL query to answer the following question:
`How much Attendance has an Opponent of rockies, and a Record of 32-30?`
### 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 `How much Attendance has an Opponent of rockies, and a Record of 32-30?`:
```sql
|
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "round"=2; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in which the bout ended in round 2?`
### 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 `Who was the opponent in which the bout ended in round 2?`:
```sql
|
SELECT "method" FROM "mixed_martial_arts_record" WHERE "time"='4:15'; |
## Task
Generate a SQL query to answer the following question:
`What was the method of the bout lasting 4:15?`
### 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 was the method of the bout lasting 4:15?`:
```sql
|
SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='4:15'; |
## Task
Generate a SQL query to answer the following question:
`What was the record after the bout lasting 4:15?`
### 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 was the record after the bout lasting 4:15?`:
```sql
|
SELECT COUNT("pick") FROM "nfl_draft" WHERE "round"<13 AND "position"='fullback'; |
## Task
Generate a SQL query to answer the following question:
`How many Pick has a Round smaller than 13, and a Position of fullback?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Pick has a Round smaller than 13, and a Position of fullback?`:
```sql
|
SELECT "player" FROM "nfl_draft" WHERE "position"='end' AND "school_club_team"='oregon state'; |
## Task
Generate a SQL query to answer the following question:
`WHo has a Position of end and a School/Club Team of oregon state?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHo has a Position of end and a School/Club Team of oregon state?`:
```sql
|
SELECT MIN("round") FROM "nfl_draft" WHERE "player"='brunel christensen' AND "pick"<293; |
## Task
Generate a SQL query to answer the following question:
`Which Round has a Player of brunel christensen and a Pick smaller than 293?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Round has a Player of brunel christensen and a Pick smaller than 293?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "date"='july 25'; |
## Task
Generate a SQL query to answer the following question:
`What score was on July 25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score was on July 25?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "attendance">'39,290' AND "date"='july 2'; |
## Task
Generate a SQL query to answer the following question:
`Who is the opponent on July 2 with more than 39,290 attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent on July 2 with more than 39,290 attendance?`:
```sql
|
SELECT "rules" FROM "partial_kickboxing_record" WHERE "event"='n/a' AND "result"='loss' AND "location"='winsford england'; |
## Task
Generate a SQL query to answer the following question:
`Which rule has The Event of n/a, The Result of loss, and The Location of winsford england?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "partial_kickboxing_record" (
"result" text,
"opponent" text,
"method" text,
"event" text,
"date" text,
"round" text,
"time" text,
"location" text,
"rules" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which rule has The Event of n/a, The Result of loss, and The Location of winsford england?`:
```sql
|
SELECT "opponent" FROM "partial_kickboxing_record" WHERE "round"='4' AND "rules"='thai boxing'; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Round of 4, and a Rules of thai boxing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "partial_kickboxing_record" (
"result" text,
"opponent" text,
"method" text,
"event" text,
"date" text,
"round" text,
"time" text,
"location" text,
"rules" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Round of 4, and a Rules of thai boxing?`:
```sql
|
SELECT "opponent" FROM "partial_kickboxing_record" WHERE "round"='3' AND "time"='n/a' AND "rules"='n/a'; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Round of 3, a Time of n/a, and a Rules of n/a?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "partial_kickboxing_record" (
"result" text,
"opponent" text,
"method" text,
"event" text,
"date" text,
"round" text,
"time" text,
"location" text,
"rules" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Round of 3, a Time of n/a, and a Rules of n/a?`:
```sql
|
SELECT "location" FROM "partial_kickboxing_record" WHERE "rules"='thai boxing' AND "round"='n/a' AND "opponent"='everton crawford'; |
## Task
Generate a SQL query to answer the following question:
`Where has a Rules of thai boxing, and a Round of n/a, and an Opponent of everton crawford?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "partial_kickboxing_record" (
"result" text,
"opponent" text,
"method" text,
"event" text,
"date" text,
"round" text,
"time" text,
"location" text,
"rules" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where has a Rules of thai boxing, and a Round of n/a, and an Opponent of everton crawford?`:
```sql
|
SELECT "rules" FROM "partial_kickboxing_record" WHERE "method"='ko (punch)'; |
## Task
Generate a SQL query to answer the following question:
`WHich Rules has a Method of ko (punch)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "partial_kickboxing_record" (
"result" text,
"opponent" text,
"method" text,
"event" text,
"date" text,
"round" text,
"time" text,
"location" text,
"rules" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich Rules has a Method of ko (punch)?`:
```sql
|
SELECT "torque" FROM "engines" WHERE "capacity"='1905 cc'; |
## Task
Generate a SQL query to answer the following question:
`What torque does a 1905 cc capacity have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"name" text,
"capacity" text,
"type" text,
"power" text,
"torque" text
);
### SQL
Given the database schema, here is the SQL query that answers `What torque does a 1905 cc capacity have?`:
```sql
|
SELECT "torque" FROM "engines" WHERE "name"='1.9 diesel' AND "capacity"='1905 cc'; |
## Task
Generate a SQL query to answer the following question:
`What torque does 1.9 diesel with 1905 cc have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"name" text,
"capacity" text,
"type" text,
"power" text,
"torque" text
);
### SQL
Given the database schema, here is the SQL query that answers `What torque does 1.9 diesel with 1905 cc have?`:
```sql
|
SELECT "torque" FROM "engines" WHERE "type"='daewoo'; |
## Task
Generate a SQL query to answer the following question:
`What torque does daewoo have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"name" text,
"capacity" text,
"type" text,
"power" text,
"torque" text
);
### SQL
Given the database schema, here is the SQL query that answers `What torque does daewoo have?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "score"='3–4' AND "attendance">'34,609'; |
## Task
Generate a SQL query to answer the following question:
`Score of 3–4, and a Attendance larger than 34,609 happened on what date?`
### 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 `Score of 3–4, and a Attendance larger than 34,609 happened on what date?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "record"='12–15'; |
## Task
Generate a SQL query to answer the following question:
`Record of 12–15 happened on what date?`
### 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 `Record of 12–15 happened on what date?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.