output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT COUNT("master_recording") FROM "table1_12588029_3" WHERE "song_title"='\"Famous For Nothing\"'; |
## Task
Generate a SQL query to answer the following question:
`How many master recordings are there for "Famous for Nothing"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12588029_3" (
"year" real,
"song_title" text,
"artist" text,
"... |
SELECT MAX("num") FROM "full_time_teams" WHERE "owner_s"='Jeff Gordon'; |
## Task
Generate a SQL query to answer the following question:
`What is the biggest number of the team who's owned by Jeff Gordon?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_time_teams" (
"team" text,
"car_s" text,
"num" real,
"driver... |
SELECT "driver_s" FROM "full_time_teams" WHERE "primary_sponsor_s"='Quicken Loans / Haas Automation'; |
## Task
Generate a SQL query to answer the following question:
`What is the driver for the team whose primary sponsor is Quicken Loans / Haas Automation?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_time_teams" (
"team" text,
"car_s" text,
... |
SELECT COUNT("crew_chief") FROM "full_time_teams" WHERE "team"='FAS Lane Racing'; |
## Task
Generate a SQL query to answer the following question:
`What's the total number of crew chiefs of the Fas Lane Racing team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_time_teams" (
"team" text,
"car_s" text,
"num" real,
"drive... |
SELECT "started" FROM "loans" WHERE "name"='de Vries'; |
## Task
Generate a SQL query to answer the following question:
`What date did De Vries start?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loans" (
"no" real,
"p" text,
"name" text,
"country" text,
"age" real,
"loan_club" text,
"starte... |
SELECT MIN("no") FROM "loans" WHERE "name"='de Vries'; |
## Task
Generate a SQL query to answer the following question:
`What is the number for De Vries?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loans" (
"no" real,
"p" text,
"name" text,
"country" text,
"age" real,
"loan_club" text,
"sta... |
SELECT "loan_club" FROM "loans" WHERE "name"='Derry'; |
## Task
Generate a SQL query to answer the following question:
`What was the loan club when Derry played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loans" (
"no" real,
"p" text,
"name" text,
"country" text,
"age" real,
"loan_club" tex... |
SELECT "loan_club" FROM "loans" WHERE "name"='Westlake'; |
## Task
Generate a SQL query to answer the following question:
`Who was the loan club for the Westlake game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loans" (
"no" real,
"p" text,
"name" text,
"country" text,
"age" real,
"loan_club" ... |
SELECT "p" FROM "loans" WHERE "name"='Clapham'; |
## Task
Generate a SQL query to answer the following question:
`What was the position (P) for Clapham?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loans" (
"no" real,
"p" text,
"name" text,
"country" text,
"age" real,
"loan_club" text,
... |
SELECT "district" FROM "current_members_of_the_baltimore_county_" WHERE "party"='Republican' AND "committee"='Appropriations'; |
## Task
Generate a SQL query to answer the following question:
`What district is represented by a Republican Appropriations Committee?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members_of_the_baltimore_county_" (
"district" text,
"cou... |
SELECT "district" FROM "current_members_of_the_baltimore_county_" WHERE "committee"='Economic Matters' AND "party"='Democratic'; |
## Task
Generate a SQL query to answer the following question:
`What are the districts represented by the Democratic Party and a Committee in Economic Matters?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members_of_the_baltimore_county_" (
... |
SELECT COUNT("constr") FROM "table1_12707313_2" WHERE "first_win"='1978 Brazilian Grand Prix'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of constr with the first win at the 1978 brazilian grand prix`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12707313_2" (
"pos" real,
"manufacturer" text,
"s... |
SELECT "first_win" FROM "table1_12707313_2" WHERE "pos"=6; |
## Task
Generate a SQL query to answer the following question:
`What was the first win for pos 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12707313_2" (
"pos" real,
"manufacturer" text,
"seasons" text,
"starts" real,
"wins" real... |
SELECT "molecular_target" FROM "clinical_pipeline_of_marine_pharmacology" WHERE "compound_name"='Hemiasterlin (E7974)'; |
## Task
Generate a SQL query to answer the following question:
`What is the molecular target listed under the compounded name of hemiasterlin (e7974)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "clinical_pipeline_of_marine_pharmacology" (
"clinica... |
SELECT "molecular_target" FROM "clinical_pipeline_of_marine_pharmacology" WHERE "trademark"='Irvalec ®'; |
## Task
Generate a SQL query to answer the following question:
`What is the molecular target listed under the trademark of irvalec ®`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "clinical_pipeline_of_marine_pharmacology" (
"clinical_status" text,
... |
SELECT "compound_name" FROM "clinical_pipeline_of_marine_pharmacology" WHERE "marine_organism"='Worm'; |
## Task
Generate a SQL query to answer the following question:
`What is the compound name listed where marine organism α is worm`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "clinical_pipeline_of_marine_pharmacology" (
"clinical_status" text,
"co... |
SELECT COUNT("compound_name") FROM "clinical_pipeline_of_marine_pharmacology" WHERE "chemical_class"='Depsipeptide' AND "clinical_trials"='1/7'; |
## Task
Generate a SQL query to answer the following question:
`How many compound names list a chemical class of depsipeptide and a clinical trials β value of 1/7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "clinical_pipeline_of_marine_pharmacology... |
SELECT "trademark" FROM "clinical_pipeline_of_marine_pharmacology" WHERE "molecular_target"='DNA-Binding'; |
## Task
Generate a SQL query to answer the following question:
`What is the trademark listed for the molecular target : dna-binding?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "clinical_pipeline_of_marine_pharmacology" (
"clinical_status" text,
... |
SELECT COUNT("trademark") FROM "clinical_pipeline_of_marine_pharmacology" WHERE "molecular_target"='Minor Groove of DNA' AND "clinical_status"='Phase I'; |
## Task
Generate a SQL query to answer the following question:
`How many trademarks list a molecular target of minor groove of dna and a clinical status value of phase i?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "clinical_pipeline_of_marine_pharm... |
SELECT "no" FROM "table1_12722302_3" WHERE "directed_by"='Tucker Gates'; |
## Task
Generate a SQL query to answer the following question:
`What's the number of the episode directed by Tucker Gates?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12722302_3" (
"no" real,
"num" real,
"title" text,
"directed_by" t... |
SELECT "directed_by" FROM "table1_12722302_3" WHERE "title"='\"Cheyenne, WY\"'; |
## Task
Generate a SQL query to answer the following question:
`Who is the director of the episode titled "Cheyenne, WY"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12722302_3" (
"no" real,
"num" real,
"title" text,
"directed_by" te... |
SELECT "original_air_date" FROM "table1_12722302_2" WHERE "u_s_viewers_million"='3.90'; |
## Task
Generate a SQL query to answer the following question:
`What was the original air date for the episode with 3.90 u.s. viewers (millions)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12722302_2" (
"no" real,
"title" text,
"direc... |
SELECT "original_air_date" FROM "table1_12722302_2" WHERE "no"=2; |
## Task
Generate a SQL query to answer the following question:
`What is the original air date for no. 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12722302_2" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"ben... |
SELECT "directed_by" FROM "table1_12722302_2" WHERE "title"='\"Hot and Bothered\"'; |
## Task
Generate a SQL query to answer the following question:
`Who directed "hot and bothered"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12722302_2" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"bens_locati... |
SELECT "directed_by" FROM "table1_12722302_2" WHERE "u_s_viewers_million"='3.19'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode with 3.19 million u.s. viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12722302_2" (
"no" real,
"title" text,
"directed_by" text,
"written_... |
SELECT "price_usd" FROM "table1_12740151_8" WHERE "l3"='18 MB'; |
## Task
Generate a SQL query to answer the following question:
`What's the price (in USD) of the model whose L3 is 18 mb?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12740151_8" (
"model_number" text,
"clock_speed" text,
"l2" text,
"... |
SELECT "clock_speed" FROM "table1_12740151_8" WHERE "price_usd"='$910'; |
## Task
Generate a SQL query to answer the following question:
`What's the clock speed of the model that costs $910?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12740151_8" (
"model_number" text,
"clock_speed" text,
"l2" text,
"l3" t... |
SELECT MIN("league_cup") FROM "goalscorers"; |
## Task
Generate a SQL query to answer the following question:
`what is the least amount in the tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalscorers" (
"player" text,
"league" real,
"scottish_cup" real,
"league_cup" real,
"... |
SELECT "league_cup" FROM "goalscorers" WHERE "player"='Kevin McKinlay'; |
## Task
Generate a SQL query to answer the following question:
`what is the tourney where the winner is kevin mckinlay?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalscorers" (
"player" text,
"league" real,
"scottish_cup" real,
"league_cu... |
SELECT "thursday_iuppiter_jupiter" FROM "greco_roman_tradition" WHERE "tuesday_mars_mars"='Marterì'; |
## Task
Generate a SQL query to answer the following question:
`what's the thursday iuppiter (jupiter) with tuesday mars (mars) being marterì`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "greco_roman_tradition" (
"day_see_irregularities" text,
"s... |
SELECT "sunday_s_l_sun" FROM "greco_roman_tradition" WHERE "friday_venus_venus"='vernes'; |
## Task
Generate a SQL query to answer the following question:
`what's the sunday sōl (sun) with friday venus (venus) being vernes`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "greco_roman_tradition" (
"day_see_irregularities" text,
"sunday_s_l_s... |
SELECT "thursday_iuppiter_jupiter" FROM "greco_roman_tradition" WHERE "friday_venus_venus"='vendredi'; |
## Task
Generate a SQL query to answer the following question:
`what's the thursday iuppiter (jupiter) with friday venus (venus) being vendredi`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "greco_roman_tradition" (
"day_see_irregularities" text,
... |
SELECT "tuesday_mars_mars" FROM "greco_roman_tradition" WHERE "day_see_irregularities"='Ancient Greek'; |
## Task
Generate a SQL query to answer the following question:
`what's the tuesday mars (mars) with day: (see irregularities ) being ancient greek`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "greco_roman_tradition" (
"day_see_irregularities" text,... |
SELECT "saturday_saturnus_saturn" FROM "greco_roman_tradition" WHERE "wednesday_mercurius_mercury"='Mercuridi'; |
## Task
Generate a SQL query to answer the following question:
`what's the saturday saturnus ( saturn) with wednesday mercurius (mercury) being mercuridi`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "greco_roman_tradition" (
"day_see_irregularities... |
SELECT "thursday_iuppiter_jupiter" FROM "greco_roman_tradition" WHERE "saturday_saturnus_saturn"='Jesarn'; |
## Task
Generate a SQL query to answer the following question:
`what's the thursday iuppiter (jupiter) with saturday saturnus ( saturn) being jesarn`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "greco_roman_tradition" (
"day_see_irregularities" tex... |
SELECT "sequencer" FROM "comparison" WHERE "ion_torrent_pgm"='200-400 bp'; |
## Task
Generate a SQL query to answer the following question:
`What is the sequencer when ion torrent pgm is 200-400 bp?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison" (
"sequencer" text,
"ion_torrent_pgm" text,
"454_gs_flx" text,
... |
SELECT COUNT("ion_torrent_pgm") FROM "comparison" WHERE "sanger_3730xl"='$2400 USD'; |
## Task
Generate a SQL query to answer the following question:
`How many times was Sanger 3730xl $2400 usd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison" (
"sequencer" text,
"ion_torrent_pgm" text,
"454_gs_flx" text,
"hi_seq_2000"... |
SELECT "so_li_dv4" FROM "comparison" WHERE "pac_bio"='$300 USD'; |
## Task
Generate a SQL query to answer the following question:
`How much was solidv4 when pacbio is $300 usd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison" (
"sequencer" text,
"ion_torrent_pgm" text,
"454_gs_flx" text,
"hi_seq_200... |
SELECT "so_li_dv4" FROM "comparison" WHERE "sequencer"='Data output per run'; |
## Task
Generate a SQL query to answer the following question:
`What is solidv4 when sequencer is data output per run?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison" (
"sequencer" text,
"ion_torrent_pgm" text,
"454_gs_flx" text,
"h... |
SELECT "hi_seq_2000" FROM "comparison" WHERE "454_gs_flx"='700 bp'; |
## Task
Generate a SQL query to answer the following question:
`WHat is hiseq 2000 when 454 gs flx is 700 bp?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison" (
"sequencer" text,
"ion_torrent_pgm" text,
"454_gs_flx" text,
"hi_seq_200... |
SELECT "454_gs_flx" FROM "comparison" WHERE "pac_bio"='100-500 Mb'; |
## Task
Generate a SQL query to answer the following question:
`What is 454 gs flx when pacbio is 100-500 mb?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison" (
"sequencer" text,
"ion_torrent_pgm" text,
"454_gs_flx" text,
"hi_seq_200... |
SELECT COUNT("phillips") FROM "table1_1276219_1" WHERE "dance"='Jive' AND "week_num"='10'; |
## Task
Generate a SQL query to answer the following question:
`How was times was the dance the jive and the week # was 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1276219_1" (
"year" real,
"celebrity_partner" text,
"week_num" text... |
SELECT "thursday_fourth_day" FROM "days_numbered_from_monday" WHERE "day_see_irregularities"='Slovene'; |
## Task
Generate a SQL query to answer the following question:
`What's the Slovene word for Thursday?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "days_numbered_from_monday" (
"day_see_irregularities" text,
"monday_first_day" text,
"tuesday_se... |
SELECT "friday_fifth_day" FROM "days_numbered_from_monday" WHERE "day_see_irregularities"='Polish'; |
## Task
Generate a SQL query to answer the following question:
`How do you say Friday in Polish?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "days_numbered_from_monday" (
"day_see_irregularities" text,
"monday_first_day" text,
"tuesday_second_... |
SELECT "saturday_sixth_day" FROM "days_numbered_from_monday" WHERE "day_see_irregularities"='Croatian'; |
## Task
Generate a SQL query to answer the following question:
`What's the Croatian word for Saturday?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "days_numbered_from_monday" (
"day_see_irregularities" text,
"monday_first_day" text,
"tuesday_s... |
SELECT "saturday_shani_saturn" FROM "indian_astrology" WHERE "sunday_surya_the_sun"='ஞாயிற்று கிழமை Nyāyitru kizhamai'; |
## Task
Generate a SQL query to answer the following question:
`In the system where Sunday is ஞாயிற்று கிழமை nyāyitru kizhamai, what is Saturday?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indian_astrology" (
"day" text,
"sunday_surya_the_sun"... |
SELECT "thursday_guru_jupiter" FROM "indian_astrology" WHERE "wednesday_budha_mercury"='বুধবার Budhbar'; |
## Task
Generate a SQL query to answer the following question:
`In language where Wednesday is বুধবার budhbar, what is Thursday?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indian_astrology" (
"day" text,
"sunday_surya_the_sun" text,
"monday_... |
SELECT "tuesday_mangala_mars" FROM "indian_astrology" WHERE "saturday_shani_saturn"='සෙනසුරාදා Senasuraadaa'; |
## Task
Generate a SQL query to answer the following question:
`In language where Saturday is සෙනසුරාදා senasuraadaa, what is Tuesday?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indian_astrology" (
"day" text,
"sunday_surya_the_sun" text,
"m... |
SELECT "sunday_surya_the_sun" FROM "indian_astrology" WHERE "thursday_guru_jupiter"='برس وار Bres''var'; |
## Task
Generate a SQL query to answer the following question:
`In language where Thursday is برس وار bres'var, what is Sunday?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indian_astrology" (
"day" text,
"sunday_surya_the_sun" text,
"monday_s... |
SELECT "saturday_shani_saturn" FROM "indian_astrology" WHERE "wednesday_budha_mercury"='برھ وار Budh''var'; |
## Task
Generate a SQL query to answer the following question:
`In language where Wednesday is برھ وار budh'var, what is Saturday?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indian_astrology" (
"day" text,
"sunday_surya_the_sun" text,
"monda... |
SELECT "saturday_day_seven" FROM "table1_1277350_7" WHERE "thursday_day_five"='ሐሙስ hamus'; |
## Task
Generate a SQL query to answer the following question:
`What is saturday day seven when thursday day five is ሐሙስ hamus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1277350_7" (
"day_see_irregularities" text,
"sunday_day_one" text... |
SELECT "thursday_day_five" FROM "table1_1277350_7" WHERE "friday_day_six"='პარასკევი p''arask''evi'; |
## Task
Generate a SQL query to answer the following question:
`What is thursday day five when friday day six is პარასკევი p'arask'evi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1277350_7" (
"day_see_irregularities" text,
"sunday_day_o... |
SELECT "tuesday_day_three" FROM "table1_1277350_7" WHERE "thursday_day_five"='Kamis'; |
## Task
Generate a SQL query to answer the following question:
`What is tuesday day three when thursday day five is kamis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1277350_7" (
"day_see_irregularities" text,
"sunday_day_one" text,
"... |
SELECT "friday_day_six" FROM "table1_1277350_7" WHERE "thursday_day_five"='پچھمبے pachhambey'; |
## Task
Generate a SQL query to answer the following question:
`What is friday day six when thursday day five is پچھمبے pachhambey?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1277350_7" (
"day_see_irregularities" text,
"sunday_day_one" ... |
SELECT "friday_day_six" FROM "table1_1277350_7" WHERE "monday_day_two"='Isnin'; |
## Task
Generate a SQL query to answer the following question:
`What is friday day six when monday day two is isnin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1277350_7" (
"day_see_irregularities" text,
"sunday_day_one" text,
"monday... |
SELECT COUNT("thursday_day_five") FROM "table1_1277350_7" WHERE "sunday_day_one"='Ahad'; |
## Task
Generate a SQL query to answer the following question:
`How many time is sunday day one is ahad?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1277350_7" (
"day_see_irregularities" text,
"sunday_day_one" text,
"monday_day_two" te... |
SELECT MIN("freight_carried_s_tonne") FROM "statistics" WHERE "super_b_capacity_reached_citation_needed"='February 26'; |
## Task
Generate a SQL query to answer the following question:
`What is the least amount of freight carried when the super b capacity reached was February 26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"year" real,
"road_opened" ... |
SELECT MAX("number_of_truck_loads_north") FROM "statistics"; |
## Task
Generate a SQL query to answer the following question:
`What is the most number of truck loads north?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"year" real,
"road_opened" text,
"road_closed" text,
"freight_carried_s_... |
SELECT MAX("year") FROM "statistics" WHERE "road_closed"='April 13'; |
## Task
Generate a SQL query to answer the following question:
`What is thea year the road closed April 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"year" real,
"road_opened" text,
"road_closed" text,
"freight_carried_s_to... |
SELECT "super_b_capacity_reached_citation_needed" FROM "statistics" WHERE "number_of_truck_loads_north"=7735; |
## Task
Generate a SQL query to answer the following question:
`When was the Super B capacity reached when the number of truck loads north was 7735?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"year" real,
"road_opened" text,
"r... |
SELECT "super_b_capacity_reached_citation_needed" FROM "statistics" WHERE "freight_carried_s_tonne"=198818; |
## Task
Generate a SQL query to answer the following question:
`When was the super b capacity reached when the freight carried s tonne was 198818?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"year" real,
"road_opened" text,
"roa... |
SELECT "lost" FROM "2010_2011_table" WHERE "points_against"='714'; |
## Task
Generate a SQL query to answer the following question:
`How many loses corresponded to giving up 714 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"los... |
SELECT "drawn" FROM "2010_2011_table" WHERE "tries_against"='30'; |
## Task
Generate a SQL query to answer the following question:
`How many draws were there when there were 30 tries against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,... |
SELECT "try_bonus" FROM "2010_2011_table" WHERE "tries_for"='64'; |
## Task
Generate a SQL query to answer the following question:
`How many try bonuses were there when there were 64 tries for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"won" text,
"drawn" tex... |
SELECT "club" FROM "2010_2011_table" WHERE "points_against"='714'; |
## Task
Generate a SQL query to answer the following question:
`Which club gave up 714 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for... |
SELECT "won" FROM "2010_2011_table" WHERE "club"='Club'; |
## Task
Generate a SQL query to answer the following question:
`What is the third entry in the row with a first entry of "club"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"won" text,
"drawn" ... |
SELECT "tries_for" FROM "2010_2011_table" WHERE "club"='Club'; |
## Task
Generate a SQL query to answer the following question:
`What is the 8th entry in the row with a first entry of "club"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"won" text,
"drawn" te... |
SELECT COUNT("won") FROM "2009_2010_table" WHERE "points_against"='450'; |
## Task
Generate a SQL query to answer the following question:
`How many were won with the points against was 450?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost"... |
SELECT "drawn" FROM "2009_2010_table" WHERE "tries_for"='46'; |
## Task
Generate a SQL query to answer the following question:
` what was the drawn when the tries for was 46?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" tex... |
SELECT "won" FROM "2009_2010_table" WHERE "points_for"='496'; |
## Task
Generate a SQL query to answer the following question:
`What was the won when the points for was 496?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text... |
SELECT "losing_bonus" FROM "2009_2010_table" WHERE "points_against"='445'; |
## Task
Generate a SQL query to answer the following question:
`What was the losing bonus when the points against was 445?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
... |
SELECT "tries_against" FROM "2009_2010_table" WHERE "drawn"='2'; |
## Task
Generate a SQL query to answer the following question:
`What was the tries against when the drawn was 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" t... |
SELECT "drawn" FROM "2009_2010_table" WHERE "tries_against"='89'; |
## Task
Generate a SQL query to answer the following question:
`What was the drawn when the tries against was 89?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" ... |
SELECT COUNT("name") FROM "list_of_daimy" WHERE "num"=4; |
## Task
Generate a SQL query to answer the following question:
`What is the number of the name for number 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_daimy" (
"num" real,
"name" text,
"tenure" text,
"courtesy_title" text,
"cour... |
SELECT MAX("num") FROM "list_of_daimy"; |
## Task
Generate a SQL query to answer the following question:
`What is the most number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_daimy" (
"num" real,
"name" text,
"tenure" text,
"courtesy_title" text,
"court_rank" text,
"rev... |
SELECT COUNT("played") FROM "2007_2008_table" WHERE "tries_for"='60'; |
## Task
Generate a SQL query to answer the following question:
`what amount played tried for 60? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_2008_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_... |
SELECT "played" FROM "2007_2008_table" WHERE "points"='80'; |
## Task
Generate a SQL query to answer the following question:
`How many played where the points were 80?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_2008_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
... |
SELECT "points" FROM "2007_2008_table" WHERE "lost"='13'; |
## Task
Generate a SQL query to answer the following question:
`what amount of points were lost by 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_2008_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"po... |
SELECT "points_against" FROM "2007_2008_table" WHERE "points"='63'; |
## Task
Generate a SQL query to answer the following question:
`what are the total points agains the score of 63?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_2008_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" ... |
SELECT COUNT("points") FROM "2007_2008_table" WHERE "points_against"='389'; |
## Task
Generate a SQL query to answer the following question:
`What amount of points where points were 389?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_2008_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text... |
SELECT "played" FROM "2009_2010_table" WHERE "points_for"='438'; |
## Task
Generate a SQL query to answer the following question:
`HOW MANY PLAYERS PLAYED IN THE GAME THAT WON WITH 438 POINTS`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text... |
SELECT "won" FROM "2009_2010_table" WHERE "try_bonus"='11'; |
## Task
Generate a SQL query to answer the following question:
`HOW MANY GAMES HAD A WIN WITH A BONUS OF 11`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
... |
SELECT "tries_for" FROM "2009_2010_table" WHERE "drawn"='3'; |
## Task
Generate a SQL query to answer the following question:
`HOW MANY GAMES WERE TIED AT 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for... |
SELECT "points_for" FROM "2009_2010_table" WHERE "try_bonus"='6'; |
## Task
Generate a SQL query to answer the following question:
`HOW MANY GAMES HAD BONUS POINTS OF 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"poi... |
SELECT "drawn" FROM "2009_2010_table" WHERE "points"='76'; |
## Task
Generate a SQL query to answer the following question:
`HOW MANY GAMES WERE TIED AT 76?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_fo... |
SELECT COUNT("points_for") FROM "2009_2010_table" WHERE "lost"='12'; |
## Task
Generate a SQL query to answer the following question:
`HOW MANY GAMES WERE LOST BY 12 POINTS?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"po... |
SELECT "earnings" FROM "european_tour_professional_career_summar" WHERE "cuts_made"=19 AND "money_list_rank"=3; |
## Task
Generate a SQL query to answer the following question:
`What was the number of earnings were cuts made are 19 and money list rank is 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_tour_professional_career_summar" (
"year" real,
... |
SELECT COUNT("money_list_rank") FROM "european_tour_professional_career_summar" WHERE "2nd">2.0; |
## Task
Generate a SQL query to answer the following question:
`How many listings are under money list rank wher 2nd' value is larger than 2.0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_tour_professional_career_summar" (
"year" real,
... |
SELECT "barrel_length" FROM "r_series_models" WHERE "name"='AR-15A3 Competition HBAR'; |
## Task
Generate a SQL query to answer the following question:
`what are all the barrel lengths whith the name ar-15a3 competition hbar`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "r_series_models" (
"colt_model_no" text,
"name" text,
"stock"... |
SELECT "fire_control" FROM "r_series_models" WHERE "name"='Sporter Target'; |
## Task
Generate a SQL query to answer the following question:
`What is the fire control for the sporter target`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "r_series_models" (
"colt_model_no" text,
"name" text,
"stock" text,
"fire_control" t... |
SELECT "days_with_rain_year_summer" FROM "climate" WHERE "city_town"='Santiago de Compostela'; |
## Task
Generate a SQL query to answer the following question:
`What is the days with rain figure for the city of Santiago de Compostela?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "climate" (
"city_town" text,
"july_av_t" text,
"rain" text,
... |
SELECT COUNT("rain") FROM "climate" WHERE "sunlight_hours"=1966; |
## Task
Generate a SQL query to answer the following question:
`How many rain figures are provided for sunlight hours in 1966?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "climate" (
"city_town" text,
"july_av_t" text,
"rain" text,
"days_wit... |
SELECT "barrel_twist" FROM "diemaco_colt_canada_models" WHERE "barrel_profile"='SFW'; |
## Task
Generate a SQL query to answer the following question:
`What is the value of barrel twist when the barrel profile is SFW?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "diemaco_colt_canada_models" (
"colt_model_no" text,
"diemaco_model" te... |
SELECT "hand_guards" FROM "diemaco_colt_canada_models" WHERE "rear_sight"='A1' AND "stock"='A2'; |
## Task
Generate a SQL query to answer the following question:
`What kind of hand guards are associated with a rear sight of A1 and stock of A2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "diemaco_colt_canada_models" (
"colt_model_no" text,
"di... |
SELECT "barrel_length" FROM "diemaco_colt_canada_models" WHERE "rear_sight"='Weaver' AND "barrel_profile"='A2'; |
## Task
Generate a SQL query to answer the following question:
`How many inches is the barrel length when the rear sight is weaver and the barrel profile is A2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "diemaco_colt_canada_models" (
"colt_model... |
SELECT "muzzle_device" FROM "le_series_models" WHERE "colt_model_no"='LE1020'; |
## Task
Generate a SQL query to answer the following question:
`What is the muzzle device on the colt model le1020?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "le_series_models" (
"colt_model_no" text,
"name" text,
"stock" text,
"fire_contr... |
SELECT "barrel_profile" FROM "le_series_models" WHERE "name"='Gas Piston Carbine'; |
## Task
Generate a SQL query to answer the following question:
`What is the barrell profile that goes with the gas piston carbine?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "le_series_models" (
"colt_model_no" text,
"name" text,
"stock" text... |
SELECT "name" FROM "le_series_models" WHERE "barrel_profile"='A2'; |
## Task
Generate a SQL query to answer the following question:
`What models have an a2 barrel profile?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "le_series_models" (
"colt_model_no" text,
"name" text,
"stock" text,
"fire_control" text,
"... |
SELECT "hand_guards" FROM "le_series_models" WHERE "name"='Gas Piston Commando'; |
## Task
Generate a SQL query to answer the following question:
`What hand guard system is used with a gas piston commando?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "le_series_models" (
"colt_model_no" text,
"name" text,
"stock" text,
"fir... |
SELECT "bayonet_lug" FROM "le_series_models" WHERE "barrel_profile"='M4 HBAR' AND "name"='M4LE Carbine'; |
## Task
Generate a SQL query to answer the following question:
`What is the bayonet lug status for a m4 hbar and m4le carbine equipped?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "le_series_models" (
"colt_model_no" text,
"name" text,
"stock"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.