output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "blank_ends" FROM "standings" WHERE "ends_won"<39 AND "ends_lost">35 AND "stolen_ends"=4; |
## Task
Generate a SQL query to answer the following question:
`What is the Blank Ends when there are less than 39 ends won and, more than 35 ends lost, and 4 stolen ends.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"nation" text,
... |
SELECT "20_questions" FROM "1995" WHERE "interview_subject"='camille paglia'; |
## Task
Generate a SQL query to answer the following question:
`Who was the 20 Questions section aimed at when the Interview Subject was Camille Paglia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1995" (
"date" text,
"cover_model" text,
"cen... |
SELECT "centerfold_model" FROM "1995" WHERE "date"='5-95'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Centerfold Model on 5-95?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1995" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
... |
SELECT "20_questions" FROM "1995" WHERE "cover_model"='kimberley conrad hefner'; |
## Task
Generate a SQL query to answer the following question:
`Who was the 20 Questions section aimed at when Cover Model was Kimberley Conrad Hefner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1995" (
"date" text,
"cover_model" text,
"cent... |
SELECT "centerfold_model" FROM "1995" WHERE "cover_model"='julie lynn cialini'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Centerfold Model when the Cover Model was Julie Lynn Cialini?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1995" (
"date" text,
"cover_model" text,
"centerfold_model" ... |
SELECT "interview_subject" FROM "1995" WHERE "centerfold_model"='melissa deanne holliday'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Interview Subject when the Centerfold Model was Melissa Deanne Holliday?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1995" (
"date" text,
"cover_model" text,
"centerf... |
SELECT "20_questions" FROM "1995" WHERE "centerfold_model"='rachel jeán marteen'; |
## Task
Generate a SQL query to answer the following question:
`Who was the 20 Questions section aimed at when Centerfold Model was Rachel Jeán Marteen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1995" (
"date" text,
"cover_model" text,
"cen... |
SELECT AVG("jersey_num") FROM "list_of_united_states_national_ice_hocke" WHERE "name"='steve griffith' AND "weight_kg"<84; |
## Task
Generate a SQL query to answer the following question:
`What was the average Jersey # of Steve Griffith, when his Weight (kg) was less than 84?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"posit... |
SELECT MIN("weight_kg") FROM "list_of_united_states_national_ice_hocke" WHERE "jersey_num"=10; |
## Task
Generate a SQL query to answer the following question:
`What was the lowest Weight (kg) for a player that had Jersey #10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_n... |
SELECT COUNT("height_cm") FROM "list_of_united_states_national_ice_hocke" WHERE "jersey_num"<16 AND "name"='mark fusco'; |
## Task
Generate a SQL query to answer the following question:
`How many different Heights (cm) did Mark Fusco have, when his Jersey # was less than 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"posi... |
SELECT "title" FROM "series_4" WHERE "story"='martin worth'; |
## Task
Generate a SQL query to answer the following question:
`What was the title of the episode that martin worth wrote the story for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_4" (
"episode" real,
"title" text,
"story" text,
"ad... |
SELECT "year" FROM "doubles_13_9_titles_4_runners_up" WHERE "outcome"='runner-up' AND "score"='4–6, 6–4, [8–10]'; |
## Task
Generate a SQL query to answer the following question:
`In what year was Xavier Malisse the runner-up with scores of 4–6, 6–4, [8–10]?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_13_9_titles_4_runners_up" (
"outcome" text,
"year... |
SELECT "surface" FROM "doubles_13_9_titles_4_runners_up" WHERE "score"='4–6, 6–4, [8–10]'; |
## Task
Generate a SQL query to answer the following question:
`On what surface was the game played that had a score of 4–6, 6–4, [8–10]?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_13_9_titles_4_runners_up" (
"outcome" text,
"year" tex... |
SELECT "caps" FROM "players" WHERE "province_club"='example' AND "position"='prop' AND "player"='sam walters'; |
## Task
Generate a SQL query to answer the following question:
`What is Caps, when Province / Club is Example, when Position is Prop, and when Player is Sam Walters?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players" (
"player" text,
"positio... |
SELECT "position" FROM "players" WHERE "date_of_birth_age"='example' AND "player"='mark spencer'; |
## Task
Generate a SQL query to answer the following question:
`What is Postition, when Date of Birth (Age) is Example, and when Player is Mark Spencer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players" (
"player" text,
"position" text,
"d... |
SELECT "player" FROM "players" WHERE "caps"='example' AND "position"='center'; |
## Task
Generate a SQL query to answer the following question:
`What is Player, when Caps is Example, and when Position is Center?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players" (
"player" text,
"position" text,
"date_of_birth_age" text... |
SELECT "caps" FROM "players" WHERE "province_club"='drfc' AND "position"='center'; |
## Task
Generate a SQL query to answer the following question:
`What is Caps, when Province / Club is DRFC, and when Position is Center?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players" (
"player" text,
"position" text,
"date_of_birth_age... |
SELECT "position" FROM "players" WHERE "caps"='example' AND "player"='shane kelly'; |
## Task
Generate a SQL query to answer the following question:
`What is Position, when Caps is Example, and When Player is Shane Kelly?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players" (
"player" text,
"position" text,
"date_of_birth_age"... |
SELECT "position" FROM "players" WHERE "province_club"='example' AND "date_of_birth_age"='example' AND "player"='michael elumeze'; |
## Task
Generate a SQL query to answer the following question:
`What is Position, when Province / Club is Example, when Date of Birth (Age) is Example, and when Player is Michael Elumeze?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players" (
"pl... |
SELECT AVG("played") FROM "campeonato_paulista" WHERE "drawn"=1 AND "against"=24; |
## Task
Generate a SQL query to answer the following question:
`What is the average number played of the team with 1 drawn and 24 against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"point... |
SELECT MAX("lost") FROM "campeonato_paulista" WHERE "points"<14 AND "played"<18; |
## Task
Generate a SQL query to answer the following question:
`What is the highest lost number of the team with less than 14 points and less than 18 played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"t... |
SELECT "team" FROM "campeonato_paulista" WHERE "position"=1; |
## Task
Generate a SQL query to answer the following question:
`Which team had 1 position?`
### 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" real,
"played" real,
"drawn" real,
"los... |
SELECT MIN("played") FROM "campeonato_paulista" WHERE "points"=18 AND "position">5; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of played of the team with 18 points and a position greater than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"t... |
SELECT COUNT("points") FROM "campeonato_paulista" WHERE "drawn"<4 AND "against"=34; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of points of the team with less than 4 drawn and an against of 34?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"tea... |
SELECT AVG("drawn") FROM "campeonato_paulista" WHERE "difference"='17' AND "points"=22; |
## Task
Generate a SQL query to answer the following question:
`What is the average number of drawn with a difference of 17 and 22 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"point... |
SELECT "school_club_team" FROM "s" WHERE "position"='forward-center'; |
## Task
Generate a SQL query to answer the following question:
`What is the team that has forward-center as a position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" ... |
SELECT "school_club_team" FROM "s" WHERE "player"='kenny smith'; |
## Task
Generate a SQL query to answer the following question:
`What team does Kenny Smith play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_clu... |
SELECT "years_in_orlando" FROM "s" WHERE "nationality"='lebanon'; |
## Task
Generate a SQL query to answer the following question:
`What years was Lebanon the nationality?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_... |
SELECT "margin_of_victory" FROM "lpga_of_japan_tour_5" WHERE "tournament"='cyber agent ladies'; |
## Task
Generate a SQL query to answer the following question:
`Which margin of victory has cyber agent ladies as the tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_of_japan_tour_5" (
"date" text,
"tournament" text,
"winning_sco... |
SELECT "date" FROM "lpga_of_japan_tour_5" WHERE "runner_s_up"='yani tseng'; |
## Task
Generate a SQL query to answer the following question:
`What date has yani tseng as the runner (s)-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_of_japan_tour_5" (
"date" text,
"tournament" text,
"winning_score" text,
"margin... |
SELECT "margin_of_victory" FROM "lpga_of_japan_tour_5" WHERE "tournament"='masters gc ladies'; |
## Task
Generate a SQL query to answer the following question:
`What is the margin of victory that has masters gc ladies as the tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_of_japan_tour_5" (
"date" text,
"tournament" text,
"w... |
SELECT "date" FROM "lpga_of_japan_tour_5" WHERE "runner_s_up"='yani tseng'; |
## Task
Generate a SQL query to answer the following question:
`What is the date that has yani tseng as the runner (s)-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_of_japan_tour_5" (
"date" text,
"tournament" text,
"winning_score" tex... |
SELECT "winning_score" FROM "lpga_of_japan_tour_5" WHERE "margin_of_victory"='2 strokes' AND "tournament"='cyber agent ladies'; |
## Task
Generate a SQL query to answer the following question:
`What is the winning score that has victory of 2 strokes for the margin, and cyber agent ladies for the tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_of_japan_tour_5" (
... |
SELECT MAX("poles") FROM "career_results" WHERE "wins"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Poles with a win that is smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_results" (
"season" text,
"series" text,
"team" text,
"races" re... |
SELECT "headphone_model" FROM "past_production" WHERE "construction"='plastic' AND "headphone_class"='prestige'; |
## Task
Generate a SQL query to answer the following question:
`What is the headphone model with a plastic construction and a prestige headphone class?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_production" (
"headphone_model" text,
"head... |
SELECT "earpads" FROM "past_production" WHERE "construction"='plastic' AND "succeeded_by"='igrado'; |
## Task
Generate a SQL query to answer the following question:
`What earpads does the headphone with plastic contruction and was succeeded by igrado have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_production" (
"headphone_model" text,
"h... |
SELECT "earpads" FROM "past_production" WHERE "construction"='plastic' AND "sensitivity_d_b"='unknown' AND "succeeded_by"='sr325'; |
## Task
Generate a SQL query to answer the following question:
`What are the earpads of the headphone with a plastic construction, an unknown sensitivity, and was succeeded by sr325?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_production" (
... |
SELECT "headphone_model" FROM "past_production" WHERE "succeeded_by"='sr325'; |
## Task
Generate a SQL query to answer the following question:
`What is the headphone model which was succeeded by sr325?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_production" (
"headphone_model" text,
"headphone_class" text,
"sensitiv... |
SELECT "regulations" FROM "results" WHERE "winning_constructor"='hudson'; |
## Task
Generate a SQL query to answer the following question:
`What regulations have hudson as the winning constructor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" real,
"circuit" text,
"winning_drivers" text,
"winning_co... |
SELECT "regulations" FROM "results" WHERE "winning_drivers"='carlos arzani'; |
## Task
Generate a SQL query to answer the following question:
`What regulations have carlos arzani as the winning driver?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" real,
"circuit" text,
"winning_drivers" text,
"winning_... |
SELECT MAX("year") FROM "results" WHERE "winning_constructor"='ferrari 166 fl'; |
## Task
Generate a SQL query to answer the following question:
`What is the latest year that has ferrari 166 fl as the winning constructor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" real,
"circuit" text,
"winning_drivers" ... |
SELECT "city_of_license" FROM "s_rebroadcaster_of_cbcs_fm" WHERE "class"='lp'; |
## Task
Generate a SQL query to answer the following question:
`What is the city of license that has lp as the class?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s_rebroadcaster_of_cbcs_fm" (
"city_of_license" text,
"identifier" text,
"freque... |
SELECT "identifier" FROM "s_rebroadcaster_of_cbcs_fm" WHERE "power"='50,000 watts'; |
## Task
Generate a SQL query to answer the following question:
`What is the identifier that has 50,000 watts of power?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s_rebroadcaster_of_cbcs_fm" (
"city_of_license" text,
"identifier" text,
"frequ... |
SELECT "rec_net" FROM "s_rebroadcaster_of_cbcs_fm" WHERE "power"='40 watts' AND "city_of_license"='temagami'; |
## Task
Generate a SQL query to answer the following question:
`What RECNet has 40 watts of power and temagami as the city of license?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s_rebroadcaster_of_cbcs_fm" (
"city_of_license" text,
"identifier... |
SELECT "city_of_license" FROM "s_rebroadcaster_of_cbcs_fm" WHERE "class"='a' AND "identifier"='cbec-fm'; |
## Task
Generate a SQL query to answer the following question:
`What city of license has A as a class, and cbec-fm as the identifier?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s_rebroadcaster_of_cbcs_fm" (
"city_of_license" text,
"identifier"... |
SELECT "rec_net" FROM "s_rebroadcaster_of_cbcs_fm" WHERE "city_of_license"='elk lake'; |
## Task
Generate a SQL query to answer the following question:
`What RECNet has elk lake as the city of license?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s_rebroadcaster_of_cbcs_fm" (
"city_of_license" text,
"identifier" text,
"frequency" ... |
SELECT "frequency" FROM "s_rebroadcaster_of_cbcs_fm" WHERE "city_of_license"='temagami'; |
## Task
Generate a SQL query to answer the following question:
`What frequency has temagami as the city of license?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s_rebroadcaster_of_cbcs_fm" (
"city_of_license" text,
"identifier" text,
"frequenc... |
SELECT MAX("current_branch_opened") FROM "smaller_branches" WHERE "neighborhood"='w. portland park'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Current Branch Opened, when Neighborhood is W. Portland Park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "smaller_branches" (
"branch" text,
"address" text,
"... |
SELECT "first_branch_opened" FROM "smaller_branches" WHERE "branch"='belmont library'; |
## Task
Generate a SQL query to answer the following question:
`What is the First Branch Opened, when Branch is Belmont Library?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "smaller_branches" (
"branch" text,
"address" text,
"neighborhood" tex... |
SELECT "neighborhood" FROM "smaller_branches" WHERE "branch"='hollywood library'; |
## Task
Generate a SQL query to answer the following question:
`What is Neighborhood, when Branch is Hollywood Library?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "smaller_branches" (
"branch" text,
"address" text,
"neighborhood" text,
"fir... |
SELECT "current_branch_opened" FROM "smaller_branches" WHERE "branch"='midland library'; |
## Task
Generate a SQL query to answer the following question:
`What is Current Branch Opened, when Branch is Midland Library?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "smaller_branches" (
"branch" text,
"address" text,
"neighborhood" text,... |
SELECT MIN("assists") FROM "assists" WHERE "games"<2; |
## Task
Generate a SQL query to answer the following question:
`Which player has the fewest assists and played 2 games or fewer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assists" (
"rank" real,
"name" text,
"team" text,
"games" real,
"... |
SELECT COUNT("march") FROM "monthly_mobile_subscriber_additions" WHERE "january"<8.77 AND "december">1.69 AND "average_monthly_additions_in_millions"<5.35 AND "year"<2004; |
## Task
Generate a SQL query to answer the following question:
`What was the total number for March with less than 8.77 in January, more than 1.69 in December, an average monthly addition less than 5.35, and before 2004?`
### Database Schema
This query will run on a database whose schema is represented in this string... |
SELECT COUNT("november") FROM "monthly_mobile_subscriber_additions" WHERE "february">8.53 AND "march"=20.21 AND "september"<7.9; |
## Task
Generate a SQL query to answer the following question:
`What is the total number for November, larger than 8.53 in February, 20.21 in March, and less than 7.9 in September?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "monthly_mobile_subscrib... |
SELECT SUM("december") FROM "monthly_mobile_subscriber_additions" WHERE "july"=0.36 AND "february">0.35000000000000003; |
## Task
Generate a SQL query to answer the following question:
`What is the sum for December that has 0.36 in July, and lager than 0.35000000000000003 in February?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "monthly_mobile_subscriber_additions" (
... |
SELECT COUNT("july") FROM "monthly_mobile_subscriber_additions" WHERE "october"<8.05 AND "december">4.46 AND "november">6.79; |
## Task
Generate a SQL query to answer the following question:
`What is the total number for July with less than 8.05 in October, more than 4.46 in December, and more than 6.79 in November?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "monthly_mobile... |
SELECT COUNT("october") FROM "monthly_mobile_subscriber_additions" WHERE "september"<2.48 AND "year">2002 AND "june">1.42 AND "february"<7.44; |
## Task
Generate a SQL query to answer the following question:
`What is the total number in October with less than 2.48 in September, after 2002, more than 1.42 in June, and smaller than 7.44 in February?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE ... |
SELECT "catalog" FROM "release_history" WHERE "region"='europe'; |
## Task
Generate a SQL query to answer the following question:
`What is the Catalog with a Region that is europe?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"cat... |
SELECT MAX("sfc_in_g_k_n_s") FROM "specific_fuel_consumption_sfc_specific_i" WHERE "engine_type"='rolls-royce/snecma olympus 593' AND "sfc_in_lb_lbf_h"<1.195; |
## Task
Generate a SQL query to answer the following question:
`What is the highest SFC in g/(kN*s) for Rolls-Royce/Snecma Olympus 593 engines and SFCs under 1.195 lb/(lbf*h)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "specific_fuel_consumption_sf... |
SELECT "winner" FROM "may" WHERE "week_of"='8 may' AND "semi_finalists"='helena suková mary pierce' AND "runner_up"='conchita martínez patricia tarabini'; |
## Task
Generate a SQL query to answer the following question:
`What is Winner, when Week is 8 May, when Semi Finalists is Helena Suková Mary Pierce, and when Runner-Up is Conchita Martínez Patricia Tarabini?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TA... |
SELECT "week_of" FROM "may" WHERE "semi_finalists"='sandrine testud yone kamio'; |
## Task
Generate a SQL query to answer the following question:
`What is Week, when Semi Finalists is Sandrine Testud Yone Kamio?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "may" (
"week_of" text,
"tier" text,
"winner" text,
"runner_up" text... |
SELECT "season" FROM "most_wickets_in_a_season" WHERE "player"='colin miller (tas)'; |
## Task
Generate a SQL query to answer the following question:
`In what Season was Colin Miller (TAS) the Player?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_wickets_in_a_season" (
"rank" text,
"s_wicket" text,
"player" text,
"matches"... |
SELECT "rank" FROM "most_wickets_in_a_season" WHERE "s_wicket"='65'; |
## Task
Generate a SQL query to answer the following question:
`What Rank has a 65 s Wicket?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_wickets_in_a_season" (
"rank" text,
"s_wicket" text,
"player" text,
"matches" text,
"season" tex... |
SELECT "result" FROM "schedule" WHERE "opponent"='indianapolis colts'; |
## Task
Generate a SQL query to answer the following question:
`Which result featured the Indianapolis Colts as opponents?`
### 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,
"... |
SELECT "name" FROM "former_special_cities_now_core_or_design" WHERE "date_of_reclassification"='2003-04-01 (merge into shizuoka )'; |
## Task
Generate a SQL query to answer the following question:
`Whose Name has a Date of reclassification of 2003-04-01 (merge into shizuoka )?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_special_cities_now_core_or_design" (
"name" text,
... |
SELECT "japanese" FROM "former_special_cities_now_core_or_design" WHERE "prefecture"='iwate'; |
## Task
Generate a SQL query to answer the following question:
`WHich Japanese has a Prefecture of iwate?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_special_cities_now_core_or_design" (
"name" text,
"japanese" text,
"date_of_designati... |
SELECT "date_of_designation" FROM "former_special_cities_now_core_or_design" WHERE "name"='kurume'; |
## Task
Generate a SQL query to answer the following question:
`Which Date of designation has a Name of kurume?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_special_cities_now_core_or_design" (
"name" text,
"japanese" text,
"date_of_des... |
SELECT "japanese" FROM "former_special_cities_now_core_or_design" WHERE "region"='tōhoku'; |
## Task
Generate a SQL query to answer the following question:
`What kind of Japanese has a Region of tōhoku?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_special_cities_now_core_or_design" (
"name" text,
"japanese" text,
"date_of_desig... |
SELECT "name" FROM "former_special_cities_now_core_or_design" WHERE "region"='kansai' AND "date_of_reclassification"='2012-04-01 ( core city )'; |
## Task
Generate a SQL query to answer the following question:
`WHose Name has a Region of kansai on 2012-04-01 ( core city )?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_special_cities_now_core_or_design" (
"name" text,
"japanese" text,... |
SELECT "position" FROM "list_of_united_states_national_ice_hocke" WHERE "birthdate"='august 17, 1980'; |
## Task
Generate a SQL query to answer the following question:
`What is the Position with a Birthdate that is august 17, 1980?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"name" text,... |
SELECT "capacity" FROM "references" WHERE "colors"='purple and white'; |
## Task
Generate a SQL query to answer the following question:
`Which capacity has a purple and white colors?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"residence_hall" text,
"established" real,
"rector" text,
"campus" text,... |
SELECT "number_of_households" FROM "virginia_counties_and_cities_ranked_by_p" WHERE "median_family_income"='$60,400'; |
## Task
Generate a SQL query to answer the following question:
`How many households have a median family income of $60,400?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "virginia_counties_and_cities_ranked_by_p" (
"county_or_city" text,
"per_capi... |
SELECT "county_or_city" FROM "virginia_counties_and_cities_ranked_by_p" WHERE "number_of_households">'9,505' AND "median_household_income"='$94,880'; |
## Task
Generate a SQL query to answer the following question:
`What county of city has more than 9,505 households with a median household income greater than $94,880?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "virginia_counties_and_cities_ranked_... |
SELECT AVG("weight_kg") FROM "list_of_united_states_national_ice_hocke" WHERE "height_cm"=180 AND "position"='d'; |
## Task
Generate a SQL query to answer the following question:
`What is the average weight of the player with a height of 180 cm and plays the d position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"po... |
SELECT "birthplace" FROM "list_of_united_states_national_ice_hocke" WHERE "position"='f' AND "height_cm">175 AND "nhl_rights_if_any"='calgary flames'; |
## Task
Generate a SQL query to answer the following question:
`What is the birthplace of the player with Calgary Flames NHL rights, plays the f position, and has a height taller than 175 cm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_unit... |
SELECT "2008_09_team" FROM "list_of_united_states_national_ice_hocke" WHERE "position"='f' AND "nhl_rights_if_any"='new jersey devils'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2008-09 team of the player who plays the f position and has NHL rights with the New Jersey Devils?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_united_states_nationa... |
SELECT "resting_potential_m_v" FROM "comparison_of_action_potentials_a_ps_fro" WHERE "ap_duration_ms"='1.0' AND "cell_type"='median giant fiber'; |
## Task
Generate a SQL query to answer the following question:
`What was the resting potential with an AP duration of 1.0 and a median giant fiber cell type?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_of_action_potentials_a_ps_fro" (
... |
SELECT "animal" FROM "comparison_of_action_potentials_a_ps_fro" WHERE "resting_potential_m_v"='−60'; |
## Task
Generate a SQL query to answer the following question:
`Which animal has a resting potential of −60?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_of_action_potentials_a_ps_fro" (
"animal" text,
"cell_type" text,
"resting_pot... |
SELECT "animal" FROM "comparison_of_action_potentials_a_ps_fro" WHERE "ap_duration_ms"='1.0' AND "conduction_speed_m_s"='7–30'; |
## Task
Generate a SQL query to answer the following question:
`Which animal has an AP duration of 1.0 and a conduction speed of 7–30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_of_action_potentials_a_ps_fro" (
"animal" text,
"cell_... |
SELECT "ap_increase_m_v" FROM "comparison_of_action_potentials_a_ps_fro" WHERE "ap_duration_ms"='0.75'; |
## Task
Generate a SQL query to answer the following question:
`What AP increase has an AP duration of 0.75?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_of_action_potentials_a_ps_fro" (
"animal" text,
"cell_type" text,
"resting_pot... |
SELECT "cell_type" FROM "comparison_of_action_potentials_a_ps_fro" WHERE "conduction_speed_m_s"='35'; |
## Task
Generate a SQL query to answer the following question:
`Which cell type has a conduction speed of 35?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_of_action_potentials_a_ps_fro" (
"animal" text,
"cell_type" text,
"resting_po... |
SELECT SUM("matches") FROM "england" WHERE "rank">10; |
## Task
Generate a SQL query to answer the following question:
`What was the total matches that ranked above 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "england" (
"rank" real,
"name" text,
"years" text,
"matches" real,
"goals" real
)... |
SELECT COUNT("matches") FROM "england" WHERE "name"='alan shearer'; |
## Task
Generate a SQL query to answer the following question:
`What was the total amount of matches for Alan Shearer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "england" (
"rank" real,
"name" text,
"years" text,
"matches" real,
"goals" ... |
SELECT AVG("goals") FROM "england" WHERE "name"='jimmy greaves' AND "matches">516; |
## Task
Generate a SQL query to answer the following question:
`What is the average goals for Jimmy Greaves, and matches more than 516?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "england" (
"rank" real,
"name" text,
"years" text,
"matches"... |
SELECT COUNT("matches") FROM "england" WHERE "name"='nat lofthouse' AND "rank">7; |
## Task
Generate a SQL query to answer the following question:
`What was the total number of matches for Nat Lofthouse, ranking higher than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "england" (
"rank" real,
"name" text,
"years" text,
"m... |
SELECT MAX("rank") FROM "england" WHERE "name"='nat lofthouse' AND "goals">255; |
## Task
Generate a SQL query to answer the following question:
`What is the highest rank for Nat Lofthouse, and goals more than 255?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "england" (
"rank" real,
"name" text,
"years" text,
"matches" re... |
SELECT "location_state" FROM "calendar" WHERE "circuit"='adelaide international raceway'; |
## Task
Generate a SQL query to answer the following question:
`What is the location/state that has adelaide international raceway as the circuit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"round" text,
"circuit" text,
"location... |
SELECT "directed_by" FROM "episodes" WHERE "title"='\"homewrecker for the holidays\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the director for the episode titled "homewrecker for the holidays"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episodes" (
"title" text,
"directed_by" text,
... |
SELECT "original_air_date" FROM "episodes" WHERE "production_code"='07-00-107'; |
## Task
Generate a SQL query to answer the following question:
`What is the Original air date for the episode with a Production code of 07-00-107?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episodes" (
"title" text,
"directed_by" text,
"writ... |
SELECT "directed_by" FROM "episodes" WHERE "written_by"='robin schwartz & robert tarlow'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the director of the episode written by robin schwartz & robert tarlow?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episodes" (
"title" text,
"directed_by" text,... |
SELECT "original_air_date" FROM "episodes" WHERE "directed_by"='lev l. spiro' AND "production_code"='07-00-109'; |
## Task
Generate a SQL query to answer the following question:
`What is the Original air date for the episode directed by lev l. spiro, with a Production code of 07-00-109?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episodes" (
"title" text,
"... |
SELECT "written_by" FROM "episodes" WHERE "original_air_date"='october 9, 2000'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the writer for the episode with an Original air date of october 9, 2000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episodes" (
"title" text,
"directed_by" tex... |
SELECT "title" FROM "episodes" WHERE "written_by"='terri hughes & ron milbauer' AND "original_air_date"='march 6, 2001'; |
## Task
Generate a SQL query to answer the following question:
`What is the Title written by Terri Hughes & Ron Milbauer, and an Original air date of march 6, 2001?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episodes" (
"title" text,
"directed... |
SELECT "time_retired" FROM "race" WHERE "driver"='scott dixon'; |
## Task
Generate a SQL query to answer the following question:
`What time or retired does Scott Dixon have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
);
#... |
SELECT "driver" FROM "race" WHERE "grid">3 AND "time_retired"='+62.6 secs'; |
## Task
Generate a SQL query to answer the following question:
`Which driver has a grid bigger than 3 and a time of +62.6 secs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text... |
SELECT "driver" FROM "race" WHERE "team"='newman-haas racing' AND "time_retired"='1:51:47.260'; |
## Task
Generate a SQL query to answer the following question:
`Who drives for Newman-Haas Racing with a time of 1:51:47.260?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
... |
SELECT "driver" FROM "race" WHERE "laps"<65 AND "team"='sigma autosport'; |
## Task
Generate a SQL query to answer the following question:
`Which driver had less than 65 laps for Sigma Autosport?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"gri... |
SELECT "game_modes" FROM "i_que_game_boy_advance" WHERE "pinyin"='chāojí mǎlìōu shìjiè'; |
## Task
Generate a SQL query to answer the following question:
`Which game modes have Pinyin of chāojí mǎlìōu shìjiè?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "i_que_game_boy_advance" (
"chinese_title" text,
"pinyin" text,
"released_date" r... |
SELECT SUM("population_1_july_2005_est") FROM "sovereign_states" WHERE "area_km"<'5,131' AND "population_density_per_km"<180 AND "subdivisions"='parishes' AND "capital"='roseau'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Population (1 July 2005 est.), when Area (km²) is less than 5,131, when Population density (per km²) is less than 180, when Subdivisions is Parishes, and when Capital is Roseau?`
### Database Schema
This query will run on a database wh... |
SELECT MIN("population_1_july_2005_est") FROM "sovereign_states" WHERE "population_density_per_km"=0; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Population (1 July 2005 est.), when Population density (per km²) is 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sovereign_states" (
"name" text,
"subdivisions... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.