output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "second" FROM "teams" WHERE "third"='mikkel krause'; |
## Task
Generate a SQL query to answer the following question:
`Who is the second when Mikkel Krause is the third?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the second when Mikkel Krause is the third?`:
```sql
|
SELECT "skip" FROM "teams" WHERE "third"='alasdair guthrie'; |
## Task
Generate a SQL query to answer the following question:
`Who is the Skip when Alasdair Guthrie is the third?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Skip when Alasdair Guthrie is the third?`:
```sql
|
SELECT "second" FROM "teams" WHERE "lead"='michel gribi'; |
## Task
Generate a SQL query to answer the following question:
`Who is the Second when Michel Gribi is the lead?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Second when Michel Gribi is the lead?`:
```sql
|
SELECT MAX("position") FROM "torneio_rio_s_o_paulo" WHERE "against"=12 AND "points"<11 AND "drawn">2 AND "played">9; |
## Task
Generate a SQL query to answer the following question:
`What is the highest position of the team with an against of 12, less than 11 points, more than 2 drawn, and more than 9 played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest position of the team with an against of 12, less than 11 points, more than 2 drawn, and more than 9 played?`:
```sql
|
SELECT "difference" FROM "torneio_rio_s_o_paulo" WHERE "points"=12; |
## Task
Generate a SQL query to answer the following question:
`What is the difference of the team with 12 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the difference of the team with 12 points?`:
```sql
|
SELECT AVG("played") FROM "torneio_rio_s_o_paulo" WHERE "lost"=3 AND "points">9 AND "position"=5 AND "against"<12; |
## Task
Generate a SQL query to answer the following question:
`What is the average number of played of the team with 3 losses, more than 9 points, a position of 5, and less than 12 against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of played of the team with 3 losses, more than 9 points, a position of 5, and less than 12 against?`:
```sql
|
SELECT "rating_pct" FROM "most_viewed_channels" WHERE "channel"='anhui satellite tv'; |
## Task
Generate a SQL query to answer the following question:
`Name the rating % for channel of anhui satellite tv`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_viewed_channels" (
"position" real,
"channel" text,
"owner" text,
"share_pct" real,
"rating_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rating % for channel of anhui satellite tv`:
```sql
|
SELECT MAX("share_pct") FROM "most_viewed_channels" WHERE "channel"='anhui satellite tv'; |
## Task
Generate a SQL query to answer the following question:
`Name the most share for anhui satellite tv`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_viewed_channels" (
"position" real,
"channel" text,
"owner" text,
"share_pct" real,
"rating_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most share for anhui satellite tv`:
```sql
|
SELECT SUM("rating_pct") FROM "most_viewed_channels" WHERE "owner"='cctv' AND "position">7; |
## Task
Generate a SQL query to answer the following question:
`Name the sum of rating % for cctv and position more than 7`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_viewed_channels" (
"position" real,
"channel" text,
"owner" text,
"share_pct" real,
"rating_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of rating % for cctv and position more than 7`:
```sql
|
SELECT AVG("rating_pct") FROM "most_viewed_channels" WHERE "channel"='shandong satellite tv' AND "share_pct"<1.74; |
## Task
Generate a SQL query to answer the following question:
`Name the average rating % for shandong satellite tv and share % less than 1.74`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_viewed_channels" (
"position" real,
"channel" text,
"owner" text,
"share_pct" real,
"rating_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average rating % for shandong satellite tv and share % less than 1.74`:
```sql
|
SELECT "2005_06" FROM "performance_and_ranking_timeline" WHERE "2010_11"='dnq'; |
## Task
Generate a SQL query to answer the following question:
`what year had a dnq of 11`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_and_ranking_timeline" (
"2004_05" text,
"2005_06" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text,
"2011_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `what year had a dnq of 11`:
```sql
|
SELECT "date" FROM "regular_season" WHERE "visitor"='montreal'; |
## Task
Generate a SQL query to answer the following question:
`What date was Montreal the visitor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was Montreal the visitor?`:
```sql
|
SELECT "record" FROM "regular_season" WHERE "home"='ny rangers'; |
## Task
Generate a SQL query to answer the following question:
`What is the record for the NY Rangers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for the NY Rangers?`:
```sql
|
SELECT SUM("round") FROM "nhl_draft" WHERE "pick"=169; |
## Task
Generate a SQL query to answer the following question:
`Name the sum of round for pick of 169`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nhl_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of round for pick of 169`:
```sql
|
SELECT "nationality" FROM "nhl_draft" WHERE "pick"=16; |
## Task
Generate a SQL query to answer the following question:
`Name the nationality for pick of 16`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nhl_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the nationality for pick of 16`:
```sql
|
SELECT "lead" FROM "group_b2" WHERE "skip"='pavol pitonak'; |
## Task
Generate a SQL query to answer the following question:
`Which Lead has a Skip of pavol pitonak?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Lead has a Skip of pavol pitonak?`:
```sql
|
SELECT "skip" FROM "group_b2" WHERE "nation"='wales'; |
## Task
Generate a SQL query to answer the following question:
`What is the skip in Wales?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the skip in Wales?`:
```sql
|
SELECT "nation" FROM "group_b2" WHERE "second"='tomas pitonak'; |
## Task
Generate a SQL query to answer the following question:
`Which Nation has a Second of tomas pitonak?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nation has a Second of tomas pitonak?`:
```sql
|
SELECT "second" FROM "group_b2" WHERE "third"='athanassios pantios'; |
## Task
Generate a SQL query to answer the following question:
`Which Second has a Third of athanassios pantios?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Second has a Third of athanassios pantios?`:
```sql
|
SELECT "lead" FROM "group_b2" WHERE "nation"='croatia'; |
## Task
Generate a SQL query to answer the following question:
`Where did Croatia lead?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Croatia lead?`:
```sql
|
SELECT "skip" FROM "group_b2" WHERE "third"='carlo alessandro zisa'; |
## Task
Generate a SQL query to answer the following question:
`Which Skip has a Third of carlo alessandro zisa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Skip has a Third of carlo alessandro zisa?`:
```sql
|
SELECT "nationality" FROM "draft_picks" WHERE "player"='shaun sabol'; |
## Task
Generate a SQL query to answer the following question:
`What is the nationality of Shaun Sabol?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of Shaun Sabol?`:
```sql
|
SELECT "position" FROM "draft_picks" WHERE "nationality"='united states' AND "player"='brett lawrence'; |
## Task
Generate a SQL query to answer the following question:
`What is the position of United States' player Brett Lawrence?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of United States' player Brett Lawrence?`:
```sql
|
SELECT "dx_10_name" FROM "s3_tc_format_comparison" WHERE "alpha_premultiplied"='no' AND "description"='explicit alpha'; |
## Task
Generate a SQL query to answer the following question:
`Which DX 10 Name that has a No Alpha premultiplied and a Description of explicit alpha?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s3_tc_format_comparison" (
"fourcc" text,
"dx_10_name" text,
"description" text,
"alpha_premultiplied" text,
"compression_ratio" text,
"texture_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which DX 10 Name that has a No Alpha premultiplied and a Description of explicit alpha?`:
```sql
|
SELECT "compression_ratio" FROM "s3_tc_format_comparison" WHERE "dx_10_name"='(none)' AND "fourcc"='dxt4'; |
## Task
Generate a SQL query to answer the following question:
`Which Compression ratio has a (none) DX 10 Name and a FOURCC of dxt4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s3_tc_format_comparison" (
"fourcc" text,
"dx_10_name" text,
"description" text,
"alpha_premultiplied" text,
"compression_ratio" text,
"texture_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Compression ratio has a (none) DX 10 Name and a FOURCC of dxt4?`:
```sql
|
SELECT "alpha_premultiplied" FROM "s3_tc_format_comparison" WHERE "compression_ratio"='4:1' AND "fourcc"='dxt3'; |
## Task
Generate a SQL query to answer the following question:
`Which Alpha premultiplied has a 4:1 Compression ratio and a dxt3 FOURCC?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s3_tc_format_comparison" (
"fourcc" text,
"dx_10_name" text,
"description" text,
"alpha_premultiplied" text,
"compression_ratio" text,
"texture_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Alpha premultiplied has a 4:1 Compression ratio and a dxt3 FOURCC?`:
```sql
|
SELECT "venue" FROM "schedule" WHERE "radio"='mrn' AND "race"='napa auto parts 200'; |
## Task
Generate a SQL query to answer the following question:
`What is the venue of the napa auto parts 200 race with a mrn radio?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"race" text,
"distance" text,
"venue" text,
"radio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue of the napa auto parts 200 race with a mrn radio?`:
```sql
|
SELECT "race" FROM "schedule" WHERE "date"='10/10/2008'; |
## Task
Generate a SQL query to answer the following question:
`What is the race on 10/10/2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"race" text,
"distance" text,
"venue" text,
"radio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the race on 10/10/2008?`:
```sql
|
SELECT "race" FROM "schedule" WHERE "distance"='201.44 miles'; |
## Task
Generate a SQL query to answer the following question:
`Which race has a distance of 201.44 miles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"race" text,
"distance" text,
"venue" text,
"radio" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which race has a distance of 201.44 miles?`:
```sql
|
SELECT "distance" FROM "schedule" WHERE "venue"='atlanta motor speedway'; |
## Task
Generate a SQL query to answer the following question:
`What is the distance of the race at the Atlanta Motor Speedway?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"race" text,
"distance" text,
"venue" text,
"radio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the distance of the race at the Atlanta Motor Speedway?`:
```sql
|
SELECT "distance" FROM "schedule" WHERE "race"='sam''s town 250'; |
## Task
Generate a SQL query to answer the following question:
`What is the distance of the Sam's town 250 race?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"race" text,
"distance" text,
"venue" text,
"radio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the distance of the Sam's town 250 race?`:
```sql
|
SELECT "venue" FROM "schedule" WHERE "race"='carfax 250'; |
## Task
Generate a SQL query to answer the following question:
`What is the venue of teh carfax 250 race?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"race" text,
"distance" text,
"venue" text,
"radio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue of teh carfax 250 race?`:
```sql
|
SELECT "name" FROM "football_rivalries" WHERE "teams"='cornell-penn'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the event where Cornell-Penn played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "football_rivalries" (
"teams" text,
"name" text,
"trophy" text,
"first_met" real,
"games_played" text,
"series_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the event where Cornell-Penn played?`:
```sql
|
SELECT "games_played" FROM "football_rivalries" WHERE "trophy"='sawhorse dollar'; |
## Task
Generate a SQL query to answer the following question:
`Who many games were played for the series with the Sawhorse Dollar trophy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "football_rivalries" (
"teams" text,
"name" text,
"trophy" text,
"first_met" real,
"games_played" text,
"series_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who many games were played for the series with the Sawhorse Dollar trophy?`:
```sql
|
SELECT COUNT("game") FROM "regular_season" WHERE "points"<4 AND "october"<5; |
## Task
Generate a SQL query to answer the following question:
`How many games have Points smaller than 4, and an October smaller than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games have Points smaller than 4, and an October smaller than 5?`:
```sql
|
SELECT SUM("game") FROM "regular_season" WHERE "record"='8–2–0' AND "points">16; |
## Task
Generate a SQL query to answer the following question:
`Which Game has a Record of 8–2–0, and Points larger than 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game has a Record of 8–2–0, and Points larger than 16?`:
```sql
|
SELECT "score" FROM "regular_season" WHERE "october"<15 AND "record"='2–0–0'; |
## Task
Generate a SQL query to answer the following question:
`Which Score has an October smaller than 15, and a Record of 2–0–0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has an October smaller than 15, and a Record of 2–0–0?`:
```sql
|
SELECT COUNT("game") FROM "regular_season" WHERE "november"=7 AND "points">17; |
## Task
Generate a SQL query to answer the following question:
`How many games have November 7 as the date, and points greater than 17?`
### 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 `How many games have November 7 as the date, and points greater than 17?`:
```sql
|
SELECT SUM("points") FROM "regular_season" WHERE "november"=15; |
## Task
Generate a SQL query to answer the following question:
`How many points have November of 15?`
### 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 `How many points have November of 15?`:
```sql
|
SELECT "men_s_doubles" FROM "past_winners" WHERE "year"=2003; |
## Task
Generate a SQL query to answer the following question:
`What is the men's doubles for 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the men's doubles for 2003?`:
```sql
|
SELECT "mixed_doubles" FROM "past_winners" WHERE "year">2007 AND "men_s_singles"='eduards loze'; |
## Task
Generate a SQL query to answer the following question:
`What is the mixed doubles in the year 2007 when the men's singles is eduards loze?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mixed doubles in the year 2007 when the men's singles is eduards loze?`:
```sql
|
SELECT "winning_score" FROM "wins_11" WHERE "54_holes"='5 shot deficit'; |
## Task
Generate a SQL query to answer the following question:
`Name the winning score for 54 holes of 5 shot deficit`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wins_11" (
"year" real,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin" text,
"runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winning score for 54 holes of 5 shot deficit`:
```sql
|
SELECT "winning_score" FROM "wins_11" WHERE "runner_up"='jim barnes' AND "year"=1924; |
## Task
Generate a SQL query to answer the following question:
`Name the winning score for jim barnes and year of 1924`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wins_11" (
"year" real,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin" text,
"runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winning score for jim barnes and year of 1924`:
```sql
|
SELECT "rider" FROM "2008_race_a_tt_final_standings" WHERE "team"='lcr honda 600cc' AND "time"='59’ 22.80'; |
## Task
Generate a SQL query to answer the following question:
`What was the Rider of the LCR Honda 600CC Team with a Time of 59’ 22.80?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_race_a_tt_final_standings" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Rider of the LCR Honda 600CC Team with a Time of 59’ 22.80?`:
```sql
|
SELECT "rider" FROM "2008_race_a_tt_final_standings" WHERE "speed"='108.347mph' AND "time"='1:02.40.93'; |
## Task
Generate a SQL query to answer the following question:
`What Rider had a Speed of 108.347mph and Time of 1:02.40.93?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_race_a_tt_final_standings" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Rider had a Speed of 108.347mph and Time of 1:02.40.93?`:
```sql
|
SELECT "rider" FROM "2008_race_a_tt_final_standings" WHERE "time"='1:01.50.57'; |
## Task
Generate a SQL query to answer the following question:
`What Rider had a Time of 1:01.50.57?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_race_a_tt_final_standings" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Rider had a Time of 1:01.50.57?`:
```sql
|
SELECT AVG("attendance") FROM "game_log" WHERE "date"='june 24'; |
## Task
Generate a SQL query to answer the following question:
`What is the average attendance that has june 24 as the 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,
"time" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average attendance that has june 24 as the date?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "time"='2:59'; |
## Task
Generate a SQL query to answer the following question:
`What date has 2:59 as the time?`
### 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,
"time" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has 2:59 as the time?`:
```sql
|
SELECT "surface" FROM "singles_7" WHERE "tournament"='manta, ecuador'; |
## Task
Generate a SQL query to answer the following question:
`What is the surface when the tournament is manta, ecuador?`
### 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" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the surface when the tournament is manta, ecuador?`:
```sql
|
SELECT "surface" FROM "singles_7" WHERE "tournament"='manta, ecuador'; |
## Task
Generate a SQL query to answer the following question:
`What is the surface for the tournament of manta, ecuador?`
### 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" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the surface for the tournament of manta, ecuador?`:
```sql
|
SELECT "tournament" FROM "singles_7" WHERE "opponent"='lesley joseph'; |
## Task
Generate a SQL query to answer the following question:
`What tournament is lesley joseph the opponent?`
### 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" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament is lesley joseph the opponent?`:
```sql
|
SELECT "date" FROM "singles_7" WHERE "opponent"='marcos daniel'; |
## Task
Generate a SQL query to answer the following question:
`What date was marcos daniel the opponent?`
### 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" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was marcos daniel the opponent?`:
```sql
|
SELECT "copa_libertadores_1999" FROM "brazilian_clubs_in_international_competi" WHERE "copa_conmebol_1999"='did not qualify' AND "team"='grêmio'; |
## Task
Generate a SQL query to answer the following question:
`What is the Copa Libertadores 1999 result for team grêmio, who did not qualify for Copa Conmebol 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1999" text,
"copa_mercosur_1999" text,
"copa_conmebol_1999" text,
"intercontinental_cup_1999" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Copa Libertadores 1999 result for team grêmio, who did not qualify for Copa Conmebol 1999?`:
```sql
|
SELECT "copa_mercosur_1999" FROM "brazilian_clubs_in_international_competi" WHERE "copa_libertadores_1999"='did not qualify' AND "copa_conmebol_1999"='did not qualify' AND "team"='grêmio'; |
## Task
Generate a SQL query to answer the following question:
`What is the copa mercosur 1999 result for team grêmio, who did not qualify for the Copa Libertadores 1999 and Copa Conmebol 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1999" text,
"copa_mercosur_1999" text,
"copa_conmebol_1999" text,
"intercontinental_cup_1999" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the copa mercosur 1999 result for team grêmio, who did not qualify for the Copa Libertadores 1999 and Copa Conmebol 1999?`:
```sql
|
SELECT "intercontinental_cup_1999" FROM "brazilian_clubs_in_international_competi" WHERE "copa_libertadores_1999"='did not qualify' AND "copa_mercosur_1999"='quarterfinals'; |
## Task
Generate a SQL query to answer the following question:
`What is the intercontinental cup 1999 result of the team who did not qualify for the Copa Libertadores 1999 and made quarterfinals in the Copa Mercosur 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1999" text,
"copa_mercosur_1999" text,
"copa_conmebol_1999" text,
"intercontinental_cup_1999" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the intercontinental cup 1999 result of the team who did not qualify for the Copa Libertadores 1999 and made quarterfinals in the Copa Mercosur 1999?`:
```sql
|
SELECT "copa_libertadores_1999" FROM "brazilian_clubs_in_international_competi" WHERE "copa_mercosur_1999"='group stage' AND "team"='vasco'; |
## Task
Generate a SQL query to answer the following question:
`What is the Copa Libertadores 1999 result for team vasco, which made the group stage in the Copa Mercosur 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1999" text,
"copa_mercosur_1999" text,
"copa_conmebol_1999" text,
"intercontinental_cup_1999" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Copa Libertadores 1999 result for team vasco, which made the group stage in the Copa Mercosur 1999?`:
```sql
|
SELECT "intercontinental_cup_1999" FROM "brazilian_clubs_in_international_competi" WHERE "copa_conmebol_1999"='runner-up'; |
## Task
Generate a SQL query to answer the following question:
`What is the Intercontinental Cup 1999 result for the team with a Copa Conmebol 1999 result of runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1999" text,
"copa_mercosur_1999" text,
"copa_conmebol_1999" text,
"intercontinental_cup_1999" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Intercontinental Cup 1999 result for the team with a Copa Conmebol 1999 result of runner-up?`:
```sql
|
SELECT "copa_conmebol_1999" FROM "brazilian_clubs_in_international_competi" WHERE "copa_libertadores_1999"='did not qualify' AND "team"='cruzeiro'; |
## Task
Generate a SQL query to answer the following question:
`What is the Copa Conmebol 1999 result of team cruzeiro, which did not qualify for the Copa Libertadores 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1999" text,
"copa_mercosur_1999" text,
"copa_conmebol_1999" text,
"intercontinental_cup_1999" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Copa Conmebol 1999 result of team cruzeiro, which did not qualify for the Copa Libertadores 1999?`:
```sql
|
SELECT COUNT("attendance") FROM "september" WHERE "result"='lost 2-4' AND "date">15; |
## Task
Generate a SQL query to answer the following question:
`How many people attended the game that lost 2-4 and the date was higher than 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "september" (
"date" real,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the game that lost 2-4 and the date was higher than 15?`:
```sql
|
SELECT "competition" FROM "september" WHERE "attendance">914 AND "opponent"='wightlink raiders'; |
## Task
Generate a SQL query to answer the following question:
`What kind of competition had an attendance of more than 914 people and the Wightlink Raiders as an opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "september" (
"date" real,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of competition had an attendance of more than 914 people and the Wightlink Raiders as an opponent?`:
```sql
|
SELECT "attendance" FROM "september" WHERE "competition"='league' AND "venue"='away' AND "date"=22; |
## Task
Generate a SQL query to answer the following question:
`How many people attended the away league competition with a date of 22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "september" (
"date" real,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the away league competition with a date of 22?`:
```sql
|
SELECT "series" FROM "playoffs" WHERE "date"='may 2'; |
## Task
Generate a SQL query to answer the following question:
`Which Series has a Date of may 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Series has a Date of may 2?`:
```sql
|
SELECT SUM("game") FROM "playoffs" WHERE "series"='bruins lead 3–1'; |
## Task
Generate a SQL query to answer the following question:
`Which Game has a Series of bruins lead 3–1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game has a Series of bruins lead 3–1?`:
```sql
|
SELECT "opponent" FROM "playoffs" WHERE "series"='bruins lead 2–1'; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Series of bruins lead 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,
"opponent" text,
"score" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Series of bruins lead 2–1?`:
```sql
|
SELECT "date" FROM "playoffs" WHERE "game"=4; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Game of 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Game of 4?`:
```sql
|
SELECT SUM("game") FROM "playoffs" WHERE "score"='3–6'; |
## Task
Generate a SQL query to answer the following question:
`Which Game has a Score of 3–6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game has a Score of 3–6?`:
```sql
|
SELECT "rank" FROM "2008" WHERE "first_quarter"='industrial and commercial bank of china 277,236'; |
## Task
Generate a SQL query to answer the following question:
`What is the Rank of industrial and commercial bank of china 277,236?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008" (
"rank" real,
"first_quarter" text,
"second_quarter" text,
"third_quarter" text,
"fourth_quarter" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Rank of industrial and commercial bank of china 277,236?`:
```sql
|
SELECT "result" FROM "international_goals" WHERE "goal"=4; |
## Task
Generate a SQL query to answer the following question:
`What was result of goal 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was result of goal 4?`:
```sql
|
SELECT "player" FROM "draft_picks" WHERE "college_junior_club_team_league"='shawinigan dynamos (qmjhl)'; |
## Task
Generate a SQL query to answer the following question:
`Who is the player that is part of the team Shawinigan Dynamos (Qmjhl)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player that is part of the team Shawinigan Dynamos (Qmjhl)?`:
```sql
|
SELECT MAX("round") FROM "draft_picks" WHERE "college_junior_club_team_league"='minnesota junior stars (mjhl)'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest round for the Minnesota Junior Stars (Mjhl)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest round for the Minnesota Junior Stars (Mjhl)?`:
```sql
|
SELECT "date" FROM "setanta_shield" WHERE "opponent"='woking'; |
## Task
Generate a SQL query to answer the following question:
`When did woking compete?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "setanta_shield" (
"round" text,
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did woking compete?`:
```sql
|
SELECT "opponent" FROM "setanta_shield" WHERE "attendance"=375; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent has an Attendance of 375?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "setanta_shield" (
"round" text,
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has an Attendance of 375?`:
```sql
|
SELECT SUM("attendance") FROM "setanta_shield" WHERE "opponent"='oxford united'; |
## Task
Generate a SQL query to answer the following question:
`How much Attendance has an Opponent of oxford united?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "setanta_shield" (
"round" text,
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Attendance has an Opponent of oxford united?`:
```sql
|
SELECT "attendance" FROM "setanta_shield" WHERE "opponent"='crawley town'; |
## Task
Generate a SQL query to answer the following question:
`Which Attendance has an Opponent of crawley town?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "setanta_shield" (
"round" text,
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Attendance has an Opponent of crawley town?`:
```sql
|
SELECT SUM("podiums") FROM "career_summary" WHERE "series"='macau grand prix' AND "season"<2008; |
## Task
Generate a SQL query to answer the following question:
`How many Podiums where their total for the Series of Macau grand prix, as well as being a season before 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"podiums" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Podiums where their total for the Series of Macau grand prix, as well as being a season before 2008?`:
```sql
|
SELECT COUNT("wins") FROM "career_summary" WHERE "series"='formula 3 euro series' AND "podiums">2; |
## Task
Generate a SQL query to answer the following question:
`How many wins where there total for Series named formula 3 euro series as well as having more than 2 Podiums?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"podiums" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins where there total for Series named formula 3 euro series as well as having more than 2 Podiums?`:
```sql
|
SELECT MAX("wins") FROM "career_summary" WHERE "season"<2007 AND "team"='silverstone motorsport academy'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest amount of wins that was before the 2007 season, as well as the Team being silverstone motorsport academy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"podiums" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest amount of wins that was before the 2007 season, as well as the Team being silverstone motorsport academy?`:
```sql
|
SELECT MAX("season") FROM "career_summary" WHERE "podiums"=0 AND "races"=1 AND "wins">0; |
## Task
Generate a SQL query to answer the following question:
`What is the newest Season in which had 0 Podiums, and having 1 total of Races, as well as total wins larger than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"podiums" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the newest Season in which had 0 Podiums, and having 1 total of Races, as well as total wins larger than 0?`:
```sql
|
SELECT "week" FROM "2009_season" WHERE "date"='december 4, 2009'; |
## Task
Generate a SQL query to answer the following question:
`Name the week for december 4, 2009`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_season" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the week for december 4, 2009`:
```sql
|
SELECT "opponent" FROM "2009_season" WHERE "record"='6-2'; |
## Task
Generate a SQL query to answer the following question:
`Name the opponent with record of 6-2`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_season" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent with record of 6-2`:
```sql
|
SELECT "opponent" FROM "2009_season" WHERE "result"='w 35-21'; |
## Task
Generate a SQL query to answer the following question:
`Name the opponent with result of w 35-21`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_season" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent with result of w 35-21`:
```sql
|
SELECT "date" FROM "2009_season" WHERE "result"='w 35-7'; |
## Task
Generate a SQL query to answer the following question:
`Name the date with resultof w 35-7`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_season" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date with resultof w 35-7`:
```sql
|
SELECT "date" FROM "2009_season" WHERE "record"='3-1'; |
## Task
Generate a SQL query to answer the following question:
`Name the date with record of 3-1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_season" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date with record of 3-1`:
```sql
|
SELECT "week" FROM "2009_season" WHERE "date"='bye'; |
## Task
Generate a SQL query to answer the following question:
`Name the week for date of bye`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_season" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the week for date of bye`:
```sql
|
SELECT "friendly" FROM "2004" WHERE "germany"='france'; |
## Task
Generate a SQL query to answer the following question:
`What is the friendly game for Germany of France?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2004" (
"136" real,
"18_february" text,
"friendly" text,
"croatia" text,
"germany" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the friendly game for Germany of France?`:
```sql
|
SELECT "company" FROM "acquisition_table" WHERE "number">5 AND "price"='$389m'; |
## Task
Generate a SQL query to answer the following question:
`What company is numbered larger than 5 and priced at $389M?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "acquisition_table" (
"number" real,
"company" text,
"business" text,
"country" text,
"price" text,
"used_as_or_integrated_with" text
);
### SQL
Given the database schema, here is the SQL query that answers `What company is numbered larger than 5 and priced at $389M?`:
```sql
|
SELECT "category" FROM "los_angeles_try_out" WHERE "result"='nominated' AND "nominee"='william ivey long'; |
## Task
Generate a SQL query to answer the following question:
`Which category was william ivey long a nominee and nominated in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "los_angeles_try_out" (
"year" real,
"award_ceremony" text,
"category" text,
"nominee" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which category was william ivey long a nominee and nominated in?`:
```sql
|
SELECT "half_life" FROM "list_of_hassium_isotopes" WHERE "discovery_year"='2003'; |
## Task
Generate a SQL query to answer the following question:
`What is the half-life discovered in 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_hassium_isotopes" (
"isotope" text,
"half_life" text,
"decay_mode" text,
"discovery_year" text,
"reaction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the half-life discovered in 2003?`:
```sql
|
SELECT "decay_mode" FROM "list_of_hassium_isotopes" WHERE "discovery_year"='1984' AND "isotope"='265m hs'; |
## Task
Generate a SQL query to answer the following question:
`What is the decay mode of the 265m hs isotope discovered in 1984?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_hassium_isotopes" (
"isotope" text,
"half_life" text,
"decay_mode" text,
"discovery_year" text,
"reaction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the decay mode of the 265m hs isotope discovered in 1984?`:
```sql
|
SELECT "frequency_m_hz" FROM "network" WHERE "city_of_license"='trinidad, colorado'; |
## Task
Generate a SQL query to answer the following question:
`What is the Frequency MHz of Trinidad, Colorado?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "network" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"height_m_ft" text,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Frequency MHz of Trinidad, Colorado?`:
```sql
|
SELECT "city_of_license" FROM "network" WHERE "erp_w"<500 AND "class"='a' AND "frequency_m_hz">89.7; |
## Task
Generate a SQL query to answer the following question:
`What city of license has an ERP W smaller than 500, Class A, and Frequency MHz larger than 89.7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "network" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"height_m_ft" text,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city of license has an ERP W smaller than 500, Class A, and Frequency MHz larger than 89.7?`:
```sql
|
SELECT "venue" FROM "teams_and_venues" WHERE "capacity">'5,000' AND "team"='molodechno'; |
## Task
Generate a SQL query to answer the following question:
`Which venue has a capacity larger than 5,000 for Molodechno team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams_and_venues" (
"team" text,
"location" text,
"venue" text,
"capacity" real,
"position_in_1992_93" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue has a capacity larger than 5,000 for Molodechno team?`:
```sql
|
SELECT MIN("capacity") FROM "teams_and_venues" WHERE "team"='fandok'; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest capacity for Fandok?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams_and_venues" (
"team" text,
"location" text,
"venue" text,
"capacity" real,
"position_in_1992_93" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest capacity for Fandok?`:
```sql
|
SELECT MAX("pick_num") FROM "atlanta_falcons_draft_history" WHERE "overall"<136 AND "position"='defensive back'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest pick number of a defensive back with less than 136 overall points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest pick number of a defensive back with less than 136 overall points?`:
```sql
|
SELECT MIN("pick_num") FROM "atlanta_falcons_draft_history" WHERE "name"='john scully'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest pick number of John Scully?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest pick number of John Scully?`:
```sql
|
SELECT COUNT("points") FROM "consolation_round_7_12_place" WHERE "games"<5; |
## Task
Generate a SQL query to answer the following question:
`What is the total points with less than 5 games?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "consolation_round_7_12_place" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total points with less than 5 games?`:
```sql
|
SELECT "outcome" FROM "doubles" WHERE "venue"='india open'; |
## Task
Generate a SQL query to answer the following question:
`What was the outcome for the India Open?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles" (
"outcome" text,
"event" text,
"year" text,
"venue" text,
"partner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome for the India Open?`:
```sql
|
SELECT "outcome" FROM "doubles" WHERE "year"='1985' AND "venue"='india open'; |
## Task
Generate a SQL query to answer the following question:
`What was the Outcome at the 1985 India Open?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles" (
"outcome" text,
"event" text,
"year" text,
"venue" text,
"partner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Outcome at the 1985 India Open?`:
```sql
|
SELECT "outcome" FROM "doubles" WHERE "partner"='kang haeng-suk' AND "year"='1982'; |
## Task
Generate a SQL query to answer the following question:
`What was the outcome in 1982 with Kang Haeng-Suk as partner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles" (
"outcome" text,
"event" text,
"year" text,
"venue" text,
"partner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome in 1982 with Kang Haeng-Suk as partner?`:
```sql
|
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "first_elected"<1878 AND "district"='south carolina 3'; |
## Task
Generate a SQL query to answer the following question:
`Which Party has a First elected smaller than 1878, and a District of south carolina 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Party has a First elected smaller than 1878, and a District of south carolina 3?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.