output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT COUNT("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "num_county"='49 marion' AND "mascot"='warriors'; |
## Task
Generate a SQL query to answer the following question:
`How many are enrolled at 49 Marion with the Warriors as their mascot?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"mascot... |
SELECT "location" FROM "indiana_high_school_athletics_conference" WHERE "school"='terre haute north'; |
## Task
Generate a SQL query to answer the following question:
`Where is Terre Haute North located?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"mascot" text,
"location" text,
"enro... |
SELECT AVG("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "num_county"='41 johnson'; |
## Task
Generate a SQL query to answer the following question:
`What's the enrollment at 41 Johnson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"mascot" text,
"location" text,
"enr... |
SELECT "ihsaa_football_class" FROM "indiana_high_school_athletics_conference" WHERE "enrollment">'1,829' AND "school"='indianapolis north central'; |
## Task
Generate a SQL query to answer the following question:
`At Indianapolis North Central that has greater than 1,829 enrolled, what is the IHSAA Football Class?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indiana_high_school_athletics_conferen... |
SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='greyhounds'; |
## Task
Generate a SQL query to answer the following question:
`What school has the greyhounds as mascots?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"mascot" text,
"location" text,
... |
SELECT "status" FROM "locomotive_collection" WHERE "configuration"='b-b' AND "type"='diesel-mechanical'; |
## Task
Generate a SQL query to answer the following question:
`for type diesel-mechanical and configuration b-b, what is the status?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locomotive_collection" (
"name" text,
"livery" text,
"arrival" r... |
SELECT "origin" FROM "aircraft_inventory" WHERE "versions"='tth'; |
## Task
Generate a SQL query to answer the following question:
`Where is the origin of the tth version?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "aircraft_inventory" (
"aircraft" text,
"origin" text,
"type" text,
"versions" text,
"in_se... |
SELECT "record" FROM "regular_season" WHERE "game"=7; |
## Task
Generate a SQL query to answer the following question:
`What is the record of game 7?`
### 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,
"poin... |
SELECT MIN("points") FROM "regular_season" WHERE "october"<10 AND "game"<2; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of points of the game before game 2 before October 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"oppon... |
SELECT "opponent" FROM "game_log" WHERE "date"='july 9'; |
## Task
Generate a SQL query to answer the following question:
`what team played on july 9`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text... |
SELECT "party" FROM "ohio" WHERE "result"='re-elected' AND "first_elected"<1894 AND "incumbent"='charles h. grosvenor'; |
## Task
Generate a SQL query to answer the following question:
`What is the party of re-elected, incumbent Charles H. Grosvenor, who was first elected before 1894?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ohio" (
"district" text,
"incumbent"... |
SELECT "incumbent" FROM "ohio" WHERE "district"='ohio 13'; |
## Task
Generate a SQL query to answer the following question:
`Who was the incumbent from the Ohio 13 district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ohio" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"r... |
SELECT "party" FROM "ohio" WHERE "first_elected"=1894 AND "district"='ohio 16'; |
## Task
Generate a SQL query to answer the following question:
`What is the party of the representative first elected in 1894 from the Ohio 16 district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ohio" (
"district" text,
"incumbent" text,
"p... |
SELECT "score" FROM "narrowest_margin_of_runs_victory" WHERE "opposition"='leicestershire' AND "year">1906; |
## Task
Generate a SQL query to answer the following question:
`What score has Leicestershire as the opponent after 1906?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "narrowest_margin_of_runs_victory" (
"score" text,
"opposition" text,
"venue"... |
SELECT "venue" FROM "narrowest_margin_of_runs_victory" WHERE "score"='3 runs' AND "city"='buxton'; |
## Task
Generate a SQL query to answer the following question:
`Where in Buxton has 3 runs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "narrowest_margin_of_runs_victory" (
"score" text,
"opposition" text,
"venue" text,
"city" text,
"year"... |
SELECT "city" FROM "narrowest_margin_of_runs_victory" WHERE "year"=1889; |
## Task
Generate a SQL query to answer the following question:
`What city was in 1889?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "narrowest_margin_of_runs_victory" (
"score" text,
"opposition" text,
"venue" text,
"city" text,
"year" real... |
SELECT "score" FROM "narrowest_margin_of_runs_victory" WHERE "city"='leicester'; |
## Task
Generate a SQL query to answer the following question:
`What is the score in Leicester?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "narrowest_margin_of_runs_victory" (
"score" text,
"opposition" text,
"venue" text,
"city" text,
"y... |
SELECT COUNT("year") FROM "narrowest_margin_of_runs_victory" WHERE "score"='1 run'; |
## Task
Generate a SQL query to answer the following question:
`How many years has 1 run?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "narrowest_margin_of_runs_victory" (
"score" text,
"opposition" text,
"venue" text,
"city" text,
"year" r... |
SELECT MAX("year") FROM "narrowest_margin_of_runs_victory" WHERE "venue"='aigburth'; |
## Task
Generate a SQL query to answer the following question:
`What year was in Aigburth?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "narrowest_margin_of_runs_victory" (
"score" text,
"opposition" text,
"venue" text,
"city" text,
"year" ... |
SELECT MIN("season_num") FROM "season_8" WHERE "format_num"='q145'; |
## Task
Generate a SQL query to answer the following question:
`Which season has q145 as its format?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_8" (
"episode_num" real,
"season_num" real,
"format_num" text,
"title" text,
"original... |
SELECT AVG("episode_num") FROM "season_8" WHERE "format_num"='q146'; |
## Task
Generate a SQL query to answer the following question:
`What is the average episode number with q146 format?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_8" (
"episode_num" real,
"season_num" real,
"format_num" text,
"title" t... |
SELECT "opponent" FROM "schedule_and_results" WHERE "game">1 AND "record"='3-2-0'; |
## Task
Generate a SQL query to answer the following question:
`Who is the opponent of Game 1 with a 3-2-0 record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"october" real,
"opponent" text,
"score" tex... |
SELECT "record" FROM "schedule_and_results" WHERE "game"=9; |
## Task
Generate a SQL query to answer the following question:
`What is game 9's record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text
);
### ... |
SELECT "opponent" FROM "schedule_and_results" WHERE "record"='1-1-0'; |
## Task
Generate a SQL query to answer the following question:
`Who is the opponent of the team with a 1-1-0 record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"october" real,
"opponent" text,
"score" t... |
SELECT "date" FROM "3rd_liga_promotion_round" WHERE "3rd_liga_3rd"='dynamo dresden'; |
## Task
Generate a SQL query to answer the following question:
`What date has Liga 3rd of Dynamo Dresden?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "3rd_liga_promotion_round" (
"date" text,
"2nd_bundesliga_16th" text,
"3rd_liga_3rd" text,
... |
SELECT "3rd_liga_3rd" FROM "3rd_liga_promotion_round" WHERE "date"='2010-11'; |
## Task
Generate a SQL query to answer the following question:
`What is the 3rd Liga from 2010-11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "3rd_liga_promotion_round" (
"date" text,
"2nd_bundesliga_16th" text,
"3rd_liga_3rd" text,
"game_1... |
SELECT "3rd_liga_3rd" FROM "3rd_liga_promotion_round" WHERE "game_1"='0-1' AND "date"='2008-09'; |
## Task
Generate a SQL query to answer the following question:
`What is the 3rd Liga from Game 1 of 0-1 between the years 2008-09?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "3rd_liga_promotion_round" (
"date" text,
"2nd_bundesliga_16th" text,
... |
SELECT "score_in_the_final" FROM "doubles_15_9_6" WHERE "outcome"='winner' AND "surface"='hard (i)'; |
## Task
Generate a SQL query to answer the following question:
`Which Score in the final has an Outcome of winner, and a Surface of hard (i)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_15_9_6" (
"outcome" text,
"date" real,
"surface"... |
SELECT "surface" FROM "doubles_15_9_6" WHERE "partner"='jim thomas' AND "date"=2007; |
## Task
Generate a SQL query to answer the following question:
`Which Surface has a Partner of jim thomas, and a Date of 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_15_9_6" (
"outcome" text,
"date" real,
"surface" text,
"partn... |
SELECT "attendance" FROM "november" WHERE "result"='won 5-2'; |
## Task
Generate a SQL query to answer the following question:
`What was the Attendance in the game with a Result of won 5-2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "november" (
"date" real,
"opponent" text,
"venue" text,
"result" text,... |
SELECT "competition" FROM "november" WHERE "venue"='home' AND "attendance"='1,268'; |
## Task
Generate a SQL query to answer the following question:
`What was the home Competition with Attendance of 1,268?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "november" (
"date" real,
"opponent" text,
"venue" text,
"result" text,
"at... |
SELECT "school_club_team" FROM "round_1" WHERE "wnba_team"='sacramento monarchs'; |
## Task
Generate a SQL query to answer the following question:
`What school or club team did the player chosen for the Sacramento Monarchs play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"nationali... |
SELECT "player" FROM "round_1" WHERE "wnba_team"='chicago sky'; |
## Task
Generate a SQL query to answer the following question:
`What player was chosen for the Chicago Sky?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"nationality" text,
"wnba_team" text,
"school_c... |
SELECT "player" FROM "round_1" WHERE "wnba_team"='chicago sky'; |
## Task
Generate a SQL query to answer the following question:
`Which player was picked for the Chicago Sky?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"nationality" text,
"wnba_team" text,
"school_... |
SELECT "position" FROM "team_roster_season_2009_10" WHERE "height"=205 AND "shirt_no"=8; |
## Task
Generate a SQL query to answer the following question:
`What is the position of the player with a height of 205 and shirt no 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_roster_season_2009_10" (
"shirt_no" real,
"nationality" tex... |
SELECT "player" FROM "team_roster_season_2009_10" WHERE "height"=182; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the player who is a height of 182?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_roster_season_2009_10" (
"shirt_no" real,
"nationality" text,
"player" tex... |
SELECT SUM("gold") FROM "medal_tally" WHERE "participants"=4 AND "silver"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Gold with Participants that are 4 and a Silver that is smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_tally" (
"rank" real,
"gold" real,
"si... |
SELECT "opponent" FROM "season_schedule" WHERE "score"='141–102'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent with a score of 141–102?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"recor... |
SELECT "opponent" FROM "season_schedule" WHERE "score"='109–108'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent with a score of 109–108?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"recor... |
SELECT "result" FROM "season_schedule" WHERE "record"='62–12'; |
## Task
Generate a SQL query to answer the following question:
`What was the result when the record was 62–12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"reco... |
SELECT "result" FROM "season_schedule" WHERE "record"='58–11'; |
## Task
Generate a SQL query to answer the following question:
`What was the result with a record of 58–11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record"... |
SELECT MIN("number") FROM "game_log" WHERE "date"='january 2, 1936'; |
## Task
Generate a SQL query to answer the following question:
`What's the number of the game played on January 2, 1936?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"number" real,
"result" text,
"date" text,
"score" text,
"opp... |
SELECT "record" FROM "game_log" WHERE "number"=23; |
## Task
Generate a SQL query to answer the following question:
`What's the record of game number 23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"number" real,
"result" text,
"date" text,
"score" text,
"opponent" text,
"reco... |
SELECT MIN("points") FROM "regular_season" WHERE "february"<1; |
## Task
Generate a SQL query to answer the following question:
`How many Points a February smaller than 1 have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"re... |
SELECT COUNT("february") FROM "regular_season" WHERE "points"=63 AND "score"='1–2'; |
## Task
Generate a SQL query to answer the following question:
`How many February days have Points of 63 and a Score of 1–2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"february" real,
"opponent" text,
"score... |
SELECT "player" FROM "leaders" WHERE "wins"<2; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the player with less than 2 wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"eve... |
SELECT SUM("earnings") FROM "leaders" WHERE "wins">2 AND "events"<25; |
## Task
Generate a SQL query to answer the following question:
`What is the number of earning for more than 2 wins and less than 25 events?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"... |
SELECT MAX("events") FROM "leaders" WHERE "wins">2 AND "earnings"<'446,893'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest events number for more than 2 wins and less than $446,893 in earnings?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"cou... |
SELECT MAX("events") FROM "leaders" WHERE "earnings"<'384,489' AND "rank">4 AND "wins"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the largest events with earning less than $384,489 ranked more than 4 with less than 1 win?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "leaders" (
"rank" real,
"player" tex... |
SELECT "visitor" FROM "pre_season" WHERE "time"='5:00 pm'; |
## Task
Generate a SQL query to answer the following question:
`Who was the visitor at 5:00 pm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season" (
"date" text,
"time" text,
"visitor" text,
"score" text,
"home" text,
"location_att... |
SELECT "visitor" FROM "pre_season" WHERE "home"='pittsburgh penguins' AND "time"='7:00 pm' AND "record"='0-2-2'; |
## Task
Generate a SQL query to answer the following question:
`Who was the visitor at the pittsburgh penguins at 7:00 pm that had a record of 0-2-2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season" (
"date" text,
"time" text,
"visitor... |
SELECT "home" FROM "pre_season" WHERE "time"='7:30 pm' AND "location_attendance"='mellon arena' AND "record"='2-5-2'; |
## Task
Generate a SQL query to answer the following question:
`What is the home in mellon arena at 7:30 pm with a record o 2-5-2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season" (
"date" text,
"time" text,
"visitor" text,
"score" t... |
SELECT AVG("drawn") FROM "world_championship_group_b_norway" WHERE "games">7; |
## Task
Generate a SQL query to answer the following question:
`Which average Drawn has Games larger than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "world_championship_group_b_norway" (
"games" real,
"drawn" real,
"lost" real,
"points_d... |
SELECT "make" FROM "american_commercial_lines_200" WHERE "pos"=3; |
## Task
Generate a SQL query to answer the following question:
`Which Make has a Pos of 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "american_commercial_lines_200" (
"pos" real,
"car_num" real,
"driver" text,
"make" text,
"team" text
);... |
SELECT MAX("car_num") FROM "american_commercial_lines_200" WHERE "make"='toyota' AND "driver"='mike skinner' AND "pos">3; |
## Task
Generate a SQL query to answer the following question:
`Which Car # has a Make of toyota, and a Driver of mike skinner, and a Pos larger than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "american_commercial_lines_200" (
"pos" real,
"c... |
SELECT "make" FROM "american_commercial_lines_200" WHERE "car_num">59; |
## Task
Generate a SQL query to answer the following question:
`Which Make has a Car # larger than 59?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "american_commercial_lines_200" (
"pos" real,
"car_num" real,
"driver" text,
"make" text,
"t... |
SELECT "results" FROM "1962" WHERE "type_of_game"='euro ''64 qualifying'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the Euro '64 qualifying game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1962" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_g... |
SELECT "date" FROM "1962" WHERE "type_of_game"='euro ''64 qualifying'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the Euro '64 qualifying game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1962" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game... |
SELECT "title" FROM "television" WHERE "year"='1996'; |
## Task
Generate a SQL query to answer the following question:
`What was the title in 1996?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television" (
"year" text,
"title" text,
"role" text,
"language" text,
"notes" text
);
### SQL
Given t... |
SELECT "role" FROM "television" WHERE "year"='2001'; |
## Task
Generate a SQL query to answer the following question:
`What was the role in 2001?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television" (
"year" text,
"title" text,
"role" text,
"language" text,
"notes" text
);
### SQL
Given th... |
SELECT "language" FROM "television" WHERE "title"='taken'; |
## Task
Generate a SQL query to answer the following question:
`What language was Taken in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television" (
"year" text,
"title" text,
"role" text,
"language" text,
"notes" text
);
### SQL
Given t... |
SELECT "title" FROM "television" WHERE "notes"='8 episodes'; |
## Task
Generate a SQL query to answer the following question:
`Which title had Notes of 8 episodes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television" (
"year" text,
"title" text,
"role" text,
"language" text,
"notes" text
);
### SQ... |
SELECT "title" FROM "television" WHERE "language"='portuguese'; |
## Task
Generate a SQL query to answer the following question:
`Which title is in Portuguese?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television" (
"year" text,
"title" text,
"role" text,
"language" text,
"notes" text
);
### SQL
Given... |
SELECT "role" FROM "television" WHERE "year"='1996'; |
## Task
Generate a SQL query to answer the following question:
`What was the role in 1996?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television" (
"year" text,
"title" text,
"role" text,
"language" text,
"notes" text
);
### SQL
Given th... |
SELECT "dates_active" FROM "2011_pacific_hurricane_statistics" WHERE "storm_name"='irwin'; |
## Task
Generate a SQL query to answer the following question:
`what date did the irwin storm take place`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_pacific_hurricane_statistics" (
"storm_name" text,
"dates_active" text,
"max_1_min_wind_... |
SELECT "min_press_mbar" FROM "2011_pacific_hurricane_statistics" WHERE "storm_name"='adrian'; |
## Task
Generate a SQL query to answer the following question:
`what is the minimum force of storm Adrian`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_pacific_hurricane_statistics" (
"storm_name" text,
"dates_active" text,
"max_1_min_wind... |
SELECT AVG("number_of_households") FROM "florida_counties_ranked_by_per_capita_in" WHERE "county"='highlands'; |
## Task
Generate a SQL query to answer the following question:
`How many households are in highlands county?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "florida_counties_ranked_by_per_capita_in" (
"county" text,
"per_capita_income" text,
"med... |
SELECT "median_household_income" FROM "florida_counties_ranked_by_per_capita_in" WHERE "median_family_income"='$46,616'; |
## Task
Generate a SQL query to answer the following question:
`What is the Median household income associated with a median family income of $46,616?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "florida_counties_ranked_by_per_capita_in" (
"county... |
SELECT "time_et" FROM "schedule" WHERE "location"='memorial stadium'; |
## Task
Generate a SQL query to answer the following question:
`What time did the game at memorial stadium take place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"ti... |
SELECT COUNT("bronze") FROM "medal_table" WHERE "total"=64 AND "silver">16; |
## Task
Generate a SQL query to answer the following question:
`What is the number of Bronze medals of the Nation with 64 total and silver greater than 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
... |
SELECT AVG("bronze") FROM "medal_table" WHERE "nation"='kyrgyzstan' AND "silver">0; |
## Task
Generate a SQL query to answer the following question:
`What is the bronze for Kyrgyzstan nation with a silver record of greater than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" rea... |
SELECT AVG("gold") FROM "medal_table" WHERE "bronze"=1 AND "nation"='syria' AND "total"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the gold for the nation with a record of bronze 1, Syria nation with a grand total less than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nat... |
SELECT "date" FROM "schedule" WHERE "result"='w 27-24 (ot)'; |
## Task
Generate a SQL query to answer the following question:
`When was the game with a result of w 27-24 (ot)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"game_... |
SELECT "date" FROM "schedule" WHERE "record"='9-3'; |
## Task
Generate a SQL query to answer the following question:
`When was the game with a record of 9-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"game_time" tex... |
SELECT "game_time" FROM "schedule" WHERE "record"='7-3'; |
## Task
Generate a SQL query to answer the following question:
`What time was the game with a record of 7-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"game_time... |
SELECT COUNT("week") FROM "schedule" WHERE "venue"='memorial stadium' AND "attendance"<'41,252'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of weeks where the venue was memorial stadium and the attendance was less than 41,252?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date... |
SELECT SUM("week") FROM "schedule" WHERE "date"='october 21, 1974' AND "attendance"<'50,623'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the weeks that games occured on october 21, 1974 and less than 50,623 fans attended?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" ... |
SELECT "frequency" FROM "stations" WHERE "launched"='21 august 1994'; |
## Task
Generate a SQL query to answer the following question:
`What is the frequency of the station that was launched on 21 August 1994?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"call_sign" text,
"launched" text,
"transmitting... |
SELECT "launched" FROM "stations" WHERE "languages"='cora huichol tepehuano nahuatl'; |
## Task
Generate a SQL query to answer the following question:
`What is the launched date of the station in cora huichol tepehuano nahuatl language?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"call_sign" text,
"launched" text,
"t... |
SELECT "transmitting_from" FROM "stations" WHERE "coverage"='yucatán quintana roo campeche'; |
## Task
Generate a SQL query to answer the following question:
`Where is the station with a coverage of yucatán quintana roo campeche transmitting from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"call_sign" text,
"launched" text,
... |
SELECT "frequency" FROM "stations" WHERE "coverage"='oaxaca guerrero puebla'; |
## Task
Generate a SQL query to answer the following question:
`What is the frequency of the station with a coverage of oaxaca guerrero puebla?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"call_sign" text,
"launched" text,
"transm... |
SELECT "transmitting_from" FROM "stations" WHERE "launched"='17 july 1997'; |
## Task
Generate a SQL query to answer the following question:
`Where is the station that was launched on 17 July 1997 transmitting from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"call_sign" text,
"launched" text,
"transmitting... |
SELECT "coverage" FROM "stations" WHERE "launched"='22 january 1996'; |
## Task
Generate a SQL query to answer the following question:
`What is the coverage of the station that was launched on 22 January 1996?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"call_sign" text,
"launched" text,
"transmitting... |
SELECT COUNT("bronze") FROM "all_time_medal_table" WHERE "gold">14 AND "rank"='14' AND "silver">25; |
## Task
Generate a SQL query to answer the following question:
`How many bronzes for the nation ranked 14th, with over 14 golds and over 25 silvers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "all_time_medal_table" (
"rank" text,
"nation" text,... |
SELECT SUM("total") FROM "all_time_medal_table" WHERE "nation"='germany' AND "bronze"<56; |
## Task
Generate a SQL query to answer the following question:
`How many total medals for germany with under 56 bronzes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "all_time_medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" r... |
SELECT COUNT("total") FROM "all_time_medal_table" WHERE "gold"=1 AND "bronze"=6; |
## Task
Generate a SQL query to answer the following question:
`How many total medals for the nation with 1 gold and 6 bronzes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "all_time_medal_table" (
"rank" text,
"nation" text,
"gold" real,
"si... |
SELECT "loss" FROM "game_log" WHERE "record"='32–34'; |
## Task
Generate a SQL query to answer the following question:
`What was the loss of the game when the record was 32–34?`
### 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,
"att... |
SELECT "date" FROM "game_log" WHERE "score"='15–6'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the game with a score of 15–6?`
### 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,
"attendan... |
SELECT "frequency" FROM "newspapers_and_news_sites" WHERE "website"='elmanana.com.mx'; |
## Task
Generate a SQL query to answer the following question:
`what is the frequency of visits to elmanana.com.mx`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "newspapers_and_news_sites" (
"name" text,
"frequency" text,
"language" text,
"cit... |
SELECT "result" FROM "schedule" WHERE "opponent"='minnesota vikings'; |
## Task
Generate a SQL query to answer the following question:
`What was the game result against the minnesota vikings?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"att... |
SELECT COUNT("week") FROM "schedule" WHERE "date"='december 31, 1993'; |
## Task
Generate a SQL query to answer the following question:
`What week shows for december 31, 1993?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
... |
SELECT "result" FROM "schedule" WHERE "date"='october 4, 1993'; |
## Task
Generate a SQL query to answer the following question:
`What was the result on October 4, 1993?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);... |
SELECT SUM("week") FROM "schedule" WHERE "result"='l 17-14'; |
## Task
Generate a SQL query to answer the following question:
`What Week has a Result of l 17-14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
### ... |
SELECT COUNT("year") FROM "achievemens" WHERE "position"='2nd'; |
## Task
Generate a SQL query to answer the following question:
`How many years have a position of 2nd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievemens" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text... |
SELECT "event" FROM "achievemens" WHERE "year"=2000; |
## Task
Generate a SQL query to answer the following question:
`Which event has a year of 2000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievemens" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"no... |
SELECT "position" FROM "achievemens" WHERE "notes"='2:12:53'; |
## Task
Generate a SQL query to answer the following question:
`What position has notes of 2:12:53?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievemens" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
... |
SELECT AVG("round") FROM "1978_pittsburgh_steelers_draft_selection" WHERE "college"='notre dame' AND "pick_num"='49'; |
## Task
Generate a SQL query to answer the following question:
`What is the average round for draft pick #49 from Notre Dame?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1978_pittsburgh_steelers_draft_selection" (
"round" real,
"pick_num" text,... |
SELECT "college" FROM "1978_pittsburgh_steelers_draft_selection" WHERE "pick_num"='327'; |
## Task
Generate a SQL query to answer the following question:
`What college is draft pick #327 from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1978_pittsburgh_steelers_draft_selection" (
"round" real,
"pick_num" text,
"player" text,
"pos... |
SELECT "college" FROM "1978_pittsburgh_steelers_draft_selection" WHERE "pick_num"='268'; |
## Task
Generate a SQL query to answer the following question:
`What college is pick number 268 from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1978_pittsburgh_steelers_draft_selection" (
"round" real,
"pick_num" text,
"player" text,
"pos... |
SELECT "round" FROM "1978_pittsburgh_steelers_draft_selection" WHERE "position"='defensive back' AND "pick_num"='101'; |
## Task
Generate a SQL query to answer the following question:
`What round pick was pick number 101 who plays defensive back?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1978_pittsburgh_steelers_draft_selection" (
"round" real,
"pick_num" text,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.