output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "attendance" FROM "december" WHERE "score"='75-90'; |
## Task
Generate a SQL query to answer the following question:
`How many people attended the game with a final score of 75-90?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
... |
SELECT "to_par" FROM "final_round_sunday" WHERE "player"='mike weir'; |
## Task
Generate a SQL query to answer the following question:
`What is Mike Weir's To par?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round_sunday" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"mon... |
SELECT "country" FROM "final_round_sunday" WHERE "player"='vijay singh'; |
## Task
Generate a SQL query to answer the following question:
`From Country is Vijay Singh?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round_sunday" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"mo... |
SELECT "player" FROM "final_round_sunday" WHERE "place"='t5'; |
## Task
Generate a SQL query to answer the following question:
`What is the Player in T5 Place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round_sunday" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
... |
SELECT "place" FROM "final_round_sunday" WHERE "score"='73-73-65-73=284'; |
## Task
Generate a SQL query to answer the following question:
`What is the Place of the Player with a Score of 73-73-65-73=284?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round_sunday" (
"place" text,
"player" text,
"country" text,
... |
SELECT "home_captain" FROM "australia_in_england_1902" WHERE "venue"='oval'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Home captain that played at the venue Oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia_in_england_1902" (
"date" text,
"home_captain" text,
"away_captain" ... |
SELECT "away_captain" FROM "australia_in_england_1902" WHERE "result"='draw' AND "date"='12,13,14 jun 1902'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Away captain that played on 12,13,14 Jun 1902 which resulted in a draw?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia_in_england_1902" (
"date" text,
"home_capt... |
SELECT "away_captain" FROM "australia_in_england_1902" WHERE "date"='11,12,13 aug 1902'; |
## Task
Generate a SQL query to answer the following question:
`Who is the Away captain that played on 11,12,13 Aug 1902?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia_in_england_1902" (
"date" text,
"home_captain" text,
"away_captain... |
SELECT "result" FROM "australia_in_england_1902" WHERE "date"='29,30β31 may 1902'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game that was played on 29,30β31 May 1902?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia_in_england_1902" (
"date" text,
"home_captain" text,
"... |
SELECT "result" FROM "australia_in_england_1902" WHERE "date"='3,4,5 jul 1902'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game that was played on 3,4,5 Jul 1902?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia_in_england_1902" (
"date" text,
"home_captain" text,
"awa... |
SELECT COUNT("ends_lost") FROM "standings" WHERE "blank_ends"=15 AND "stolen_ends"<14; |
## Task
Generate a SQL query to answer the following question:
`What is the number of ends lost when there are 15 blank ends, less than 14 stolen ends?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"locale" text,
"skip" text,
"ends... |
SELECT COUNT("blank_ends") FROM "standings" WHERE "stolen_ends"=17 AND "skip"='jennifer jones' AND "shot_pct">83; |
## Task
Generate a SQL query to answer the following question:
`What is the number of blank ends when the stolen ends were 17 and Jennifer Jones was skipped with a more than 83 shot pct?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"l... |
SELECT AVG("wins") FROM "career_summary" WHERE "f_laps">1 AND "points"='80'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Wins, when F/Laps is greater than 1, and when Points is 80?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"races... |
SELECT SUM("races") FROM "career_summary" WHERE "podiums"<3 AND "wins"=0 AND "season">2001 AND "points"='32'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Races, when Podiums is less than 3, when Wins is 0, when Season is after 2001, and when Points is 32?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
... |
SELECT AVG("season") FROM "career_summary" WHERE "f_laps"=1 AND "poles"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the average Season, when F/Laps is 1, and when Poles is less 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,
"races" r... |
SELECT MAX("poles") FROM "career_summary" WHERE "series"='ginetta championship' AND "season"<2007; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Poles, when Series is Ginetta Championship, and when Season is before 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series... |
SELECT MIN("wk_7") FROM "ranking_movement" WHERE "wk_3"=12 AND "wk_4"<9 AND "wk_2">11; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest wk 7 with a wk 3 value of 12, a wk 4 less than 9, and a wk 2 greater than 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ranking_movement" (
"poll" text,
"wk_2"... |
SELECT MIN("wk_3") FROM "ranking_movement" WHERE "wk_14"='n/r' AND "wk_2"=7 AND "wk_11">18; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest wk 3 value with an n/r in wk 14, a wk 2 value of 7, and a wk 11 value greater than 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ranking_movement" (
"poll" text,... |
SELECT "date" FROM "1980s" WHERE "actual_title"='archie bunker''s place'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date for the actual title archie bunker's place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1980s" (
"spoofed_title" text,
"actual_title" text,
"writer" text,
"art... |
SELECT "artist" FROM "1980s" WHERE "spoofed_title"='the moron downer jr. show'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the Artist for the Spoofed Title of the moron downer jr. show?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1980s" (
"spoofed_title" text,
"actual_title" text,
... |
SELECT "issue" FROM "1980s" WHERE "spoofed_title"='the crockford files'; |
## Task
Generate a SQL query to answer the following question:
`What issue was the Spoofed Title of the crockford files in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1980s" (
"spoofed_title" text,
"actual_title" text,
"writer" text,
"arti... |
SELECT "writer" FROM "1980s" WHERE "issue"=224; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the writer for issue 224?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1980s" (
"spoofed_title" text,
"actual_title" text,
"writer" text,
"artist" text,
"i... |
SELECT MIN("points") FROM "campeonato_paulista" WHERE "lost"=2 AND "position"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest amount of points had a lost number of 2 when the position was less than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
... |
SELECT AVG("against") FROM "campeonato_paulista" WHERE "position"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the mean number of against when the position is less than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" rea... |
SELECT AVG("played") FROM "campeonato_paulista" WHERE "points"<18 AND "position"<8; |
## Task
Generate a SQL query to answer the following question:
`What is the mean number of played when there are less than 18 points and the position is less than 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" re... |
SELECT COUNT("lost") FROM "campeonato_paulista" WHERE "against"<37 AND "drawn">2 AND "played">20; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of lost when against is less than 37, drawn is more than 2, and played is more than 20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" ... |
SELECT COUNT("area_km_2") FROM "geography" WHERE "name"='drakenstein' AND "population_2011"<'251,262'; |
## Task
Generate a SQL query to answer the following question:
`What is the total area of drakenstein and a population less than 251,262?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "geography" (
"name" text,
"seat" text,
"population_2011" rea... |
SELECT AVG("area_km_2") FROM "geography" WHERE "name"='stellenbosch' AND "population_2011">'155,733'; |
## Task
Generate a SQL query to answer the following question:
`For Stellenbosch, which has a population larger than 155,733, what is the average area?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "geography" (
"name" text,
"seat" text,
"popula... |
SELECT MIN("population_2011") FROM "geography" WHERE "density_inhabitants_km_2"=36.7; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest population for the area that has a density of 36.7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "geography" (
"name" text,
"seat" text,
"population_2011" real,
... |
SELECT COUNT("points_against") FROM "pool_4" WHERE "team"='cardiff' AND "tries_against"<7; |
## Task
Generate a SQL query to answer the following question:
`How many points against has team Cardiff had when there were less than 7 tries?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_4" (
"team" text,
"tries_for" real,
"tries_agains... |
SELECT SUM("fog_days_year") FROM "comparison_of_meteorological_data_at_for" WHERE "rain_mm_year"='1 109'; |
## Task
Generate a SQL query to answer the following question:
`What is the amount of fog where the rain is 1 109?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_of_meteorological_data_at_for" (
"sunshine_hrs_year" text,
"rain_mm_year" ... |
SELECT SUM("snow_days_year") FROM "comparison_of_meteorological_data_at_for" WHERE "storms_days_year"=31; |
## Task
Generate a SQL query to answer the following question:
`What is the amount of snow where the days for storms are 31?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_of_meteorological_data_at_for" (
"sunshine_hrs_year" text,
"rain... |
SELECT AVG("snow_days_year") FROM "comparison_of_meteorological_data_at_for" WHERE "sunshine_hrs_year"='1 633' AND "storms_days_year"<29; |
## Task
Generate a SQL query to answer the following question:
`What is the amount of snow where the sunshine is 1 633, and storms are lower than 29?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_of_meteorological_data_at_for" (
"sunshin... |
SELECT COUNT("storms_days_year") FROM "comparison_of_meteorological_data_at_for" WHERE "fog_days_year"<74 AND "sunshine_hrs_year"='2 668'; |
## Task
Generate a SQL query to answer the following question:
`What are the number of storms where fog is lower than 74, and sunshine is 2 668?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_of_meteorological_data_at_for" (
"sunshine_hrs... |
SELECT "away_team" FROM "last_five_head_to_head_fixtures" WHERE "home_team"='leeds united' AND "competition"='league cup'; |
## Task
Generate a SQL query to answer the following question:
`Who is the away team for the tome team Leeds United, at the League Cup Competition?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "last_five_head_to_head_fixtures" (
"date" text,
"hom... |
SELECT "chassis" FROM "indianapolis_500" WHERE "entrant"='patrick racing' AND "start">6; |
## Task
Generate a SQL query to answer the following question:
`What chassis has patrick racing as an entrant, with a start greater than 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indianapolis_500" (
"year" real,
"chassis" text,
"engine" ... |
SELECT AVG("finish") FROM "indianapolis_500" WHERE "start"=24 AND "year">1987; |
## Task
Generate a SQL query to answer the following question:
`What is the average finish that has 24 as the start, with a year after 1987?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indianapolis_500" (
"year" real,
"chassis" text,
"engine"... |
SELECT MIN("year") FROM "indianapolis_500" WHERE "chassis"='lola t93/00' AND "start"<14; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest year that has lola t93/00 as the chassis with a start leas than 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indianapolis_500" (
"year" real,
"chassis" text,
... |
SELECT MIN("finish") FROM "indianapolis_500" WHERE "start">27 AND "year">1985; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest finish that has a start greater than 27, with a year after 1985?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indianapolis_500" (
"year" real,
"chassis" text,
"... |
SELECT "start" FROM "indianapolis_500" WHERE "engine"='ford cosworth dfx' AND "year">1981 AND "entrant"='kraco enterprises'; |
## Task
Generate a SQL query to answer the following question:
`What start has a ford cosworth dfx as the engine, a year later than 1981, and kraco enterprises as the entrant?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indianapolis_500" (
"year"... |
SELECT "date" FROM "season_schedule" WHERE "team_record"='2-0'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date, when the Team Record is 2-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"atten... |
SELECT "team_record" FROM "season_schedule" WHERE "result"='l 0β24'; |
## Task
Generate a SQL query to answer the following question:
`What is the Team Record, when the Result is l 0β24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"... |
SELECT "team_record" FROM "season_schedule" WHERE "attendance"='16,151'; |
## Task
Generate a SQL query to answer the following question:
`What is Team Record, when Attendance is 16,151?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"atte... |
SELECT MAX("draw") FROM "first_league" WHERE "points">4 AND "match">5; |
## Task
Generate a SQL query to answer the following question:
`What is the highest draw that has points greater than 4, with a match greater than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_league" (
"team" text,
"match" real,
"poin... |
SELECT AVG("draw") FROM "first_league" WHERE "lost"<4 AND "team"='gwardia bydgoszcz' AND "match">5; |
## Task
Generate a SQL query to answer the following question:
`What is the average draw that has a lost less than 4, gwardia bydgoszcz as the team, with a match greater than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_league" (
"team" t... |
SELECT MIN("match") FROM "first_league" WHERE "lost">3 AND "team"='kolejarz rawicz'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest match that has a lost greater than 3, and kolejarz rawicz as the team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_league" (
"team" text,
"match" real,
"... |
SELECT COUNT("match") FROM "first_league" WHERE "lost"=0; |
## Task
Generate a SQL query to answer the following question:
`How many matches have 0 as the lost?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_league" (
"team" text,
"match" real,
"points" real,
"draw" real,
"lost" real
);
### SQL... |
SELECT SUM("game") FROM "game_log" WHERE "score"='w 104β90 (ot)'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Game with a Score that is w 104β90 (ot)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high... |
SELECT "high_rebounds" FROM "game_log" WHERE "game"=56; |
## Task
Generate a SQL query to answer the following question:
`What is the High rebounds of a Game with 56?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
... |
SELECT "package_option" FROM "entertainment" WHERE "country"='italy' AND "content"='general television' AND "television_service"='cielo'; |
## Task
Generate a SQL query to answer the following question:
`What was the option from Italy with general television content, and the Cielo television service?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entertainment" (
"television_service" te... |
SELECT "country" FROM "entertainment" WHERE "content"='tematico' AND "package_option"='sky tv' AND "television_service"='lei'; |
## Task
Generate a SQL query to answer the following question:
`What country has Tematico Content, and a package with sky TV and the Lei television service?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entertainment" (
"television_service" text,
... |
SELECT "television_service" FROM "entertainment" WHERE "package_option"='sky tv' AND "language"='italian english'; |
## Task
Generate a SQL query to answer the following question:
`What is the television service that has package with sky tv, and it in Italian English?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entertainment" (
"television_service" text,
"cou... |
SELECT "language" FROM "entertainment" WHERE "content"='tematico' AND "package_option"='sky tv' AND "television_service"='fox crime'; |
## Task
Generate a SQL query to answer the following question:
`What language is the Tematico content with a sky tv package, and Fox Crime television service?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entertainment" (
"television_service" text,... |
SELECT "country" FROM "entertainment" WHERE "television_service"='cartello promozionale sky hd'; |
## Task
Generate a SQL query to answer the following question:
`What country has a television service with Cartello Promozionale sky hd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entertainment" (
"television_service" text,
"country" text,
"... |
SELECT "country" FROM "entertainment" WHERE "television_service"='fox'; |
## Task
Generate a SQL query to answer the following question:
`What country has a Fox television service?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entertainment" (
"television_service" text,
"country" text,
"language" text,
"content" te... |
SELECT "winning_driver" FROM "full_series_results" WHERE "winning_team"='mathiasen motorsports' AND "pole_position"='dane cameron'; |
## Task
Generate a SQL query to answer the following question:
`Who drove for Mathiasen Motorsports with dane cameron as pole position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_series_results" (
"pole_position" text,
"fastest_lap" text,... |
SELECT "winning_team" FROM "full_series_results" WHERE "winning_driver"='jonathan bomarito' AND "fastest_lap"='jonathan summerton'; |
## Task
Generate a SQL query to answer the following question:
`What winning team did Jonathan bomarito drive for when jonathan summerton had the fastest lap?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_series_results" (
"pole_position" text... |
SELECT "report" FROM "full_series_results" WHERE "fastest_lap"='douglas soares'; |
## Task
Generate a SQL query to answer the following question:
`When Douglas Soares had the fastest lap, what was the report?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_series_results" (
"pole_position" text,
"fastest_lap" text,
"winnin... |
SELECT "fastest_lap" FROM "full_series_results" WHERE "winning_team"='mathiasen motorsports' AND "pole_position"='jonathan bomarito'; |
## Task
Generate a SQL query to answer the following question:
`When the winning team of mathiasen motorsports has a pole position of jonathan bomarito, who has the fastest lap?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_series_results" (
"... |
SELECT "report" FROM "full_series_results" WHERE "winning_driver"='jonathan summerton' AND "fastest_lap"='dane cameron'; |
## Task
Generate a SQL query to answer the following question:
`When the driver jonathan summerton won and dane cameron had the fastest lap, what was the report?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_series_results" (
"pole_position" t... |
SELECT AVG("year") FROM "achievements" WHERE "competition"='olympic games' AND "venue"='atlanta, united states'; |
## Task
Generate a SQL query to answer the following question:
`Which Year has a Competition of olympic games, and a Venue of atlanta, united states?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
... |
SELECT "competition" FROM "achievements" WHERE "year"=1993; |
## Task
Generate a SQL query to answer the following question:
`Which Competition has a Year of 1993?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text... |
SELECT "notes" FROM "achievements" WHERE "competition"='venice marathon'; |
## Task
Generate a SQL query to answer the following question:
`Which Notes has a Competition of venice marathon?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
... |
SELECT "year" FROM "achievements" WHERE "venue"='atlanta, united states'; |
## Task
Generate a SQL query to answer the following question:
`Which Year has a Venue of atlanta, united states?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
... |
SELECT "notes" FROM "achievements" WHERE "venue"='barcelona, spain'; |
## Task
Generate a SQL query to answer the following question:
`Which Notes has a Venue of barcelona, spain?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"even... |
SELECT "event" FROM "achievements" WHERE "year"=1986; |
## Task
Generate a SQL query to answer the following question:
`Which Event has a Year of 1986?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"n... |
SELECT AVG("share") FROM "u_s_nielsen_ratings" WHERE "viewers_millions">7.82 AND "rank_timeslot"='3' AND "rank_week"='54'; |
## Task
Generate a SQL query to answer the following question:
`What is the average share for episodes with over 7.82 viewers, ranks of 3 and a weekly rank of 54?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_nielsen_ratings" (
"episode" text,
... |
SELECT "rank_week" FROM "u_s_nielsen_ratings" WHERE "share">7 AND "rating_share_18_49"='2.3/7'; |
## Task
Generate a SQL query to answer the following question:
`What is the weekly rank for the episode with a share over 7 and a rating/share of 2.3/7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_nielsen_ratings" (
"episode" text,
"rating"... |
SELECT "rank_week" FROM "u_s_nielsen_ratings" WHERE "viewers_millions">7.14 AND "rank_night"='5' AND "rating_share_18_49"='2.9/10'; |
## Task
Generate a SQL query to answer the following question:
`What is the weekly rank of the episode with more than 7.14mil viewers, a nightly rank of 5, and a rating/share of 2.9/10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_nielsen_rating... |
SELECT COUNT("gain") FROM "rushing" WHERE "long"<4 AND "name"='brandon mcrae' AND "avg_g"<-0.1; |
## Task
Generate a SQL query to answer the following question:
`What is the total gain for Brandon Mcrae with a loss less than 4, and an Avg/g less than -0.1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rushing" (
"name" text,
"gp_gs" text,
"... |
SELECT MIN("long") FROM "rushing" WHERE "gp_gs"='11-8' AND "gain"<228; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest long with a Gp-GS of 11-8, and a gain less than 228?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rushing" (
"name" text,
"gp_gs" text,
"gain" real,
"loss" re... |
SELECT MIN("gain") FROM "rushing" WHERE "long"=18 AND "loss"<191; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest gain with an 18 long, and a loss less than 191?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rushing" (
"name" text,
"gp_gs" text,
"gain" real,
"loss" real,
... |
SELECT SUM("1938") FROM "relief" WHERE "1933"<68.3 AND "1940"<4.02; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of 1938 values where 1933 values are under 68.3 and 1940 valures are under 4.02?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relief" (
"table_2_depression_data" text,... |
SELECT AVG("1940") FROM "relief" WHERE "1929"=101.4 AND "1933">68.3; |
## Task
Generate a SQL query to answer the following question:
`What is the average 1940 value where 1929 values are 101.4 and 1933 values are over 68.3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relief" (
"table_2_depression_data" text,
"192... |
SELECT MAX("1937") FROM "relief" WHERE "1940">126; |
## Task
Generate a SQL query to answer the following question:
`What is the highest 1937 value that has a 1940 value over 126?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relief" (
"table_2_depression_data" text,
"1929" real,
"1931" real,
"... |
SELECT "timeslot" FROM "telenovelas_currently_broadcasting" WHERE "translation"='αα ααααααα‘ α£αααα'; |
## Task
Generate a SQL query to answer the following question:
`At what time is the αα ααααααα‘ α£αααα shown?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "telenovelas_currently_broadcasting" (
"country" text,
"telenovela" text,
"translation" text... |
SELECT "country" FROM "telenovelas_currently_broadcasting" WHERE "series_finale"='present' AND "weekly_schedule"='monday to sunday' AND "timeslot"='18:45-21:00'; |
## Task
Generate a SQL query to answer the following question:
`What country was the series finale present and was shown Monday to Sunday at 18:45-21:00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "telenovelas_currently_broadcasting" (
"country" ... |
SELECT "series_finale" FROM "telenovelas_currently_broadcasting" WHERE "translation"='αα° αα‘ αͺα αααααα / ααα ααααα£α α α‘αααα£ααα'; |
## Task
Generate a SQL query to answer the following question:
`What series finale has the translation αα° αα‘ αͺα αααααα / ααα ααααα£α α α‘αααα£ααα?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "telenovelas_currently_broadcasting" (
"country" text,
"tele... |
SELECT "weekly_schedule" FROM "telenovelas_currently_broadcasting" WHERE "timeslot"='16:45'; |
## Task
Generate a SQL query to answer the following question:
`What days of the week is the show aired on that runs at 16:45?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "telenovelas_currently_broadcasting" (
"country" text,
"telenovela" text,
... |
SELECT "weekly_schedule" FROM "telenovelas_currently_broadcasting" WHERE "timeslot"='11:00'; |
## Task
Generate a SQL query to answer the following question:
`Which days of the week does the telenovela play that is aired at 11:00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "telenovelas_currently_broadcasting" (
"country" text,
"telenovel... |
SELECT "tournament" FROM "runners_up" WHERE "date"='2 october 2006'; |
## Task
Generate a SQL query to answer the following question:
`Which Tournament was on 2 October 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "runners_up" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
... |
SELECT "opponent_in_the_final" FROM "runners_up" WHERE "date"='4 april 2011'; |
## Task
Generate a SQL query to answer the following question:
`Who is the Opponent in the final on 4 April 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "runners_up" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_fin... |
SELECT "surface" FROM "runners_up" WHERE "date"='2 june 2003'; |
## Task
Generate a SQL query to answer the following question:
`What Surface was used on 2 June 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "runners_up" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
... |
SELECT "award" FROM "awards_and_nominations" WHERE "category"='teen pick show: comedy'; |
## Task
Generate a SQL query to answer the following question:
`Which award show nominated The Suite Life on Deck for the Teen Pick Show: Comedy category?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"award... |
SELECT "award" FROM "awards_and_nominations" WHERE "category"='favorite tv actor' AND "recipient"='cole sprouse'; |
## Task
Generate a SQL query to answer the following question:
`Which award show nominated Cole Sprouse for the Favorite TV Actor category?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"cate... |
SELECT "category" FROM "awards_and_nominations" WHERE "recipient"='the suite life on deck' AND "year">2010; |
## Task
Generate a SQL query to answer the following question:
`What category was The Suite Life on Deck nominated for later than 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category... |
SELECT "recipient" FROM "awards_and_nominations" WHERE "award"='2010 kids'' choice awards' AND "result"='won'; |
## Task
Generate a SQL query to answer the following question:
`Who won the 2010 Kids' Choice Awards?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"recipient" text,
"res... |
SELECT "rd_time" FROM "boxing_record" WHERE "date"='october 3, 2009'; |
## Task
Generate a SQL query to answer the following question:
`What was the Rd. Time for October 3, 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "boxing_record" (
"result" text,
"opponent" text,
"type" text,
"rd_time" text,
"date" te... |
SELECT "date" FROM "boxing_record" WHERE "rd_time"='12 (12), 1:24'; |
## Task
Generate a SQL query to answer the following question:
`When was the Rd., Time 12 (12), 1:24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "boxing_record" (
"result" text,
"opponent" text,
"type" text,
"rd_time" text,
"date" text,
... |
SELECT MAX("lost") FROM "apea_s_campeonato_paulista" WHERE "played"<9; |
## Task
Generate a SQL query to answer the following question:
`What is the greatest lost where played is less than 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "apea_s_campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"p... |
SELECT MAX("played") FROM "apea_s_campeonato_paulista" WHERE "drawn"<1 AND "position"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the greatest played with a drawn less than 1 and a position of less than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "apea_s_campeonato_paulista" (
"position" real,
"team... |
SELECT MIN("drawn") FROM "apea_s_campeonato_paulista" WHERE "points"<7 AND "against">31; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest drawn when the points are less than 7 and the against greater than 31?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "apea_s_campeonato_paulista" (
"position" real,... |
SELECT "team" FROM "apea_s_campeonato_paulista" WHERE "points"=13; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the team that has 13 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "apea_s_campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played"... |
SELECT "nominated_work" FROM "awards_and_nominations" WHERE "year"<2003; |
## Task
Generate a SQL query to answer the following question:
`What was the Nominated Work earlier than 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nominated_work... |
SELECT "nominated_work" FROM "awards_and_nominations" WHERE "year"<2003; |
## Task
Generate a SQL query to answer the following question:
`What was the Nominated Work earlier than 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nominated_work... |
SELECT "nominated_work" FROM "awards_and_nominations" WHERE "year"<2003; |
## Task
Generate a SQL query to answer the following question:
`What was the Nominated Work earlier than 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nominated_work... |
SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='flawless fighting championship 1: the beginning'; |
## Task
Generate a SQL query to answer the following question:
`Which method's event was flawless fighting championship 1: the beginning?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opp... |
SELECT "method" FROM "mixed_martial_arts_record" WHERE "opponent"='chris clark'; |
## Task
Generate a SQL query to answer the following question:
`Which method's opponent was chris clark?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"... |
SELECT "record" FROM "mixed_martial_arts_record" WHERE "round"=3 AND "event"='fight festival 27'; |
## Task
Generate a SQL query to answer the following question:
`Which record's round was 3 when the event was fight festival 27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" te... |
SELECT "fourth_place" FROM "yearly_results" WHERE "year"=1978; |
## Task
Generate a SQL query to answer the following question:
`What is the Fourth place with a Year that is 1978?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "yearly_results" (
"year" real,
"champion" text,
"runner_up" text,
"third_place" t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.