output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT MIN("ru") FROM "table1_10818465_1"; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest ru?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10818465_1" (
"model" text,
"ru" real,
"max_processors" text,
"processor_frequency" text,
"max_memor... |
SELECT "ga_date" FROM "table1_10818465_1" WHERE "processor_frequency"='1.0, 1.2, 1.4GHz'; |
## Task
Generate a SQL query to answer the following question:
`What ga date do the models with 1.0, 1.2, 1.4ghz processor frequencies have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10818465_1" (
"model" text,
"ru" real,
"max_proces... |
SELECT "ga_date" FROM "table1_10818465_1" WHERE "model"='T5120'; |
## Task
Generate a SQL query to answer the following question:
`What is the ga date of the t5120 model?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10818465_1" (
"model" text,
"ru" real,
"max_processors" text,
"processor_frequency" t... |
SELECT "sport" FROM "top_10_in_total_attendance" WHERE "league"='La Liga'; |
## Task
Generate a SQL query to answer the following question:
`What is the sport of the La Liga league?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_in_total_attendance" (
"league" text,
"sport" text,
"country" text,
"season" text,
... |
SELECT MIN("total_attendance") FROM "top_10_in_total_attendance" WHERE "sport"='Association football' AND "league"='Premier League'; |
## Task
Generate a SQL query to answer the following question:
`What's the minimum total attendance of the Premier League association football?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_in_total_attendance" (
"league" text,
"sport" tex... |
SELECT MIN("average_attendance") FROM "top_10_in_total_attendance" WHERE "season"='2013'; |
## Task
Generate a SQL query to answer the following question:
`What's the average attendance of the leagues in the season of 2013?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_in_total_attendance" (
"league" text,
"sport" text,
"countr... |
SELECT COUNT("total_attendance") FROM "top_10_in_total_attendance" WHERE "season"='2010'; |
## Task
Generate a SQL query to answer the following question:
`What's the total attendance of the leagues in season of 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_in_total_attendance" (
"league" text,
"sport" text,
"country" tex... |
SELECT "director" FROM "table1_10874596_1" WHERE "film_title_used_in_nomination"='Young Törless'; |
## Task
Generate a SQL query to answer the following question:
`Who were the directors of the film submitted with the title Young Törless?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10874596_1" (
"year_e_ceremony" text,
"film_title_used... |
SELECT "original_title" FROM "table1_10874596_1" WHERE "film_title_used_in_nomination"='A Woman in Flames'; |
## Task
Generate a SQL query to answer the following question:
`What was the original title of the film submitted with the title A Woman in Flames?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10874596_1" (
"year_e_ceremony" text,
"film_t... |
SELECT "year_e_ceremony" FROM "table1_10874596_1" WHERE "film_title_used_in_nomination"='The Enigma of Kaspar Hauser'; |
## Task
Generate a SQL query to answer the following question:
`In what years was a film submitted with the title The Enigma of Kaspar Hauser?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10874596_1" (
"year_e_ceremony" text,
"film_title_... |
SELECT "director" FROM "table1_10874596_1" WHERE "original_title"='o.k.'; |
## Task
Generate a SQL query to answer the following question:
`Who were the directors of the film with the original title o.k.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10874596_1" (
"year_e_ceremony" text,
"film_title_used_in_nomina... |
SELECT "division" FROM "kansas_city_comets" WHERE "playoffs"='Division Semifinals'; |
## Task
Generate a SQL query to answer the following question:
`What is the division for the division semifinals playoffs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kansas_city_comets" (
"year" text,
"division" text,
"league" text,
"reg_s... |
SELECT "no_in_series" FROM "table1_10908676_7" WHERE "title"='\"Say Uncle\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the number in series of "say uncle"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10908676_7" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_... |
SELECT "title" FROM "table1_10908676_7" WHERE "written_by"='David Mamet'; |
## Task
Generate a SQL query to answer the following question:
`What is the title written by David Mamet?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10908676_7" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by"... |
SELECT "finale" FROM "highest_rating_drama_series_of_2006" WHERE "chinese_title"='潮爆大狀'; |
## Task
Generate a SQL query to answer the following question:
`What was the finale for 潮爆大狀`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_rating_drama_series_of_2006" (
"rank" real,
"english_title" text,
"chinese_title" text,
"averag... |
SELECT "finale" FROM "highest_rating_drama_series_of_2006" WHERE "chinese_title"='潮爆大狀'; |
## Task
Generate a SQL query to answer the following question:
`What was the finale for 潮爆大狀`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_rating_drama_series_of_2006" (
"rank" real,
"english_title" text,
"chinese_title" text,
"avera... |
SELECT "hk_viewers" FROM "highest_rating_drama_series_of_2006" WHERE "premiere"=34; |
## Task
Generate a SQL query to answer the following question:
`How many viewers were there for the premier with 34`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_rating_drama_series_of_2006" (
"rank" real,
"english_title" text,
"chinese... |
SELECT COUNT("peak") FROM "highest_rating_drama_series_of_2006" WHERE "chinese_title"='潮爆大狀'; |
## Task
Generate a SQL query to answer the following question:
`How many are listed under 潮爆大狀`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_rating_drama_series_of_2006" (
"rank" real,
"english_title" text,
"chinese_title" text,
"aver... |
SELECT "director" FROM "season_2_1993_1994" WHERE "production_code"='2393059'; |
## Task
Generate a SQL query to answer the following question:
`Who was the director of the episode with a production code of 2393059?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2_1993_1994" (
"no_in_series" real,
"no_in_season" real,
... |
SELECT COUNT("writer_s") FROM "season_2_1993_1994" WHERE "title"='\"Michael''s Game\"'; |
## Task
Generate a SQL query to answer the following question:
`How many people wrote "Michael's Game"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2_1993_1994" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" tex... |
SELECT "original_air_date" FROM "season_2_1993_1994" WHERE "title"='\"Duet for One\"'; |
## Task
Generate a SQL query to answer the following question:
`When did the episode title "Duet For One" air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2_1993_1994" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"direct... |
SELECT "title" FROM "table1_10935548_1" WHERE "u_s_viewers_millions"='16.38'; |
## Task
Generate a SQL query to answer the following question:
`Which episode had 16.38 million U.S. viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10935548_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed... |
SELECT "production_code" FROM "table1_10935548_1" WHERE "written_by"='José Molina' AND "original_air_date"='October 12, 2004'; |
## Task
Generate a SQL query to answer the following question:
`What is the production code of the episode written by José Molina that aired on October 12, 2004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10935548_1" (
"no_in_series" real... |
SELECT "original_air_date" FROM "table1_10935548_1" WHERE "title"='\"Quarry\"'; |
## Task
Generate a SQL query to answer the following question:
`What was the original air date of the episode "Quarry"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10935548_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
... |
SELECT "title" FROM "table1_10935548_1" WHERE "directed_by"='Jean de Segonzac'; |
## Task
Generate a SQL query to answer the following question:
`Which episode was directed by Jean de Segonzac?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10935548_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"direct... |
SELECT "original_air_date" FROM "table1_10953197_3" WHERE "production_code"='2394087'; |
## Task
Generate a SQL query to answer the following question:
`what are the original air dates with a production code of 2394087`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10953197_3" (
"no_in_series" real,
"no_in_season" real,
"titl... |
SELECT "writer_s" FROM "table1_10953197_3" WHERE "title"='\"Boxing Sydney\"'; |
## Task
Generate a SQL query to answer the following question:
`Who are the writers for the title "boxing sydney"`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10953197_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"dire... |
SELECT "production_code" FROM "table1_10953197_3" WHERE "title"='\"All About Brooke\"'; |
## Task
Generate a SQL query to answer the following question:
`What are the production codes for the title "all about brooke"`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10953197_3" (
"no_in_series" real,
"no_in_season" real,
"title" ... |
SELECT "writer_s" FROM "table1_10953197_3" WHERE "production_code"='2394084'; |
## Task
Generate a SQL query to answer the following question:
`Who are the writer(s) for the production code 2394084`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10953197_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"... |
SELECT COUNT("title") FROM "season_4_1995_1996" WHERE "production_code"='2395113A'; |
## Task
Generate a SQL query to answer the following question:
`What's the total number of episodes with the production code 2395113A?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_4_1995_1996" (
"no_in_series" real,
"no_in_season" real,
... |
SELECT MAX("no_in_series") FROM "season_4_1995_1996" WHERE "title"='\"Melrose Unglued\"'; |
## Task
Generate a SQL query to answer the following question:
`What's the number of the episode called "Melrose Unglued"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_4_1995_1996" (
"no_in_series" real,
"no_in_season" real,
"title" tex... |
SELECT "writer_s" FROM "season_4_1995_1996" WHERE "production_code"='2395114'; |
## Task
Generate a SQL query to answer the following question:
`Who's the writer for the episode with a production code 2395114?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_4_1995_1996" (
"no_in_series" real,
"no_in_season" real,
"titl... |
SELECT "director" FROM "season_4_1995_1996" WHERE "title"='\"Full Metal Betsy\"'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode titled "Full Metal Betsy"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_4_1995_1996" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"d... |
SELECT "no_in_season" FROM "season_4_1995_1996" WHERE "production_code"='2395118'; |
## Task
Generate a SQL query to answer the following question:
`What's the number of the episode with production code 2395118?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_4_1995_1996" (
"no_in_series" real,
"no_in_season" real,
"title"... |
SELECT "writer_s" FROM "season_4_1995_1996" WHERE "production_code"='2395096'; |
## Task
Generate a SQL query to answer the following question:
`Who was the writer for the episode with production code 2395096?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_4_1995_1996" (
"no_in_series" real,
"no_in_season" real,
"titl... |
SELECT "detectable_by" FROM "planets" WHERE "radial_velocity_m_s"='0.089'; |
## Task
Generate a SQL query to answer the following question:
`What generation of spectrograph is most likely to detect a planet with a radial velocity of 0.089 m/s?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "planets" (
"planet" text,
"planet... |
SELECT "orbital_period" FROM "planets" WHERE "semimajor_axis_au"='5.20'; |
## Task
Generate a SQL query to answer the following question:
`How long is the orbital period for the planet that has a semimajor axis of 5.20 au?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "planets" (
"planet" text,
"planet_type" text,
"sem... |
SELECT "detectable_by" FROM "planets" WHERE "planet"='Jupiter'; |
## Task
Generate a SQL query to answer the following question:
`What generation of spectrograph is Jupiter detected by?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "planets" (
"planet" text,
"planet_type" text,
"semimajor_axis_au" text,
"orb... |
SELECT "planet" FROM "planets" WHERE "orbital_period"='11.86 years'; |
## Task
Generate a SQL query to answer the following question:
`Which planet has an orbital period of 11.86 years?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "planets" (
"planet" text,
"planet_type" text,
"semimajor_axis_au" text,
"orbital_... |
SELECT "director" FROM "season_7_1998_1999" WHERE "production_code"='2398204'; |
## Task
Generate a SQL query to answer the following question:
`who directed the production code 2398204`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_7_1998_1999" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" te... |
SELECT "original_air_date" FROM "season_7_1998_1999" WHERE "title"='\"Unpleasantville\"'; |
## Task
Generate a SQL query to answer the following question:
`when did "unpleasantville" air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_7_1998_1999" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"wr... |
SELECT "pick_num" FROM "table1_10960039_1" WHERE "player"='Alexis Bwenge'; |
## Task
Generate a SQL query to answer the following question:
`What is player Alexis Bwenge's pick number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10960039_1" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
... |
SELECT "player" FROM "table1_10960039_1" WHERE "pick_num"=2; |
## Task
Generate a SQL query to answer the following question:
`What player is pick #2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10960039_1" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
#... |
SELECT "player" FROM "table1_10960039_1" WHERE "college"='Saskatchewan'; |
## Task
Generate a SQL query to answer the following question:
`Which player's college is Saskatchewan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10960039_1" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"co... |
SELECT MIN("pick_num") FROM "table1_10960039_1" WHERE "college"='McMaster'; |
## Task
Generate a SQL query to answer the following question:
`What is McMaster College's pick number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10960039_1" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"co... |
SELECT MIN("no_in_season") FROM "season_6_1997_1998"; |
## Task
Generate a SQL query to answer the following question:
`give the least number of times an episode was shown from 1997-1998`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_6_1997_1998" (
"no_in_series" real,
"no_in_season" real,
"ti... |
SELECT "original_air_date" FROM "season_6_1997_1998" WHERE "title"='\"The Doctor Is In... Deep\"'; |
## Task
Generate a SQL query to answer the following question:
`when was the episode named "the doctor is in... deep" first broadcast `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_6_1997_1998" (
"no_in_series" real,
"no_in_season" real,
... |
SELECT COUNT("no_in_series") FROM "season_6_1997_1998" WHERE "title"='\"Coop de Grace\"'; |
## Task
Generate a SQL query to answer the following question:
`how many times does the episode called "coop de grace" appear `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_6_1997_1998" (
"no_in_series" real,
"no_in_season" real,
"title"... |
SELECT MAX("no_in_season") FROM "season_6_1997_1998" WHERE "director"='Chip Chalmers' AND "production_code"='2397162'; |
## Task
Generate a SQL query to answer the following question:
`what is season 6 sum of both the number of times processing ID 2397162 was assigned and the number of times chip chalmers managed an episode `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE... |
SELECT "player_name" FROM "table1_10966926_2" WHERE "college"='Michigan State'; |
## Task
Generate a SQL query to answer the following question:
`Which player went to Michigan State?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10966926_2" (
"round" real,
"choice" real,
"player_name" text,
"position" text,
"heigh... |
SELECT "player_name" FROM "table1_10966926_2" WHERE "college"='Oklahoma'; |
## Task
Generate a SQL query to answer the following question:
`Which player went to college in Oklahoma?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10966926_2" (
"round" real,
"choice" real,
"player_name" text,
"position" text,
"... |
SELECT "position" FROM "table1_10966926_2" WHERE "player_name"='Colt Brennan'; |
## Task
Generate a SQL query to answer the following question:
`Which position does Colt Brennan play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10966926_2" (
"round" real,
"choice" real,
"player_name" text,
"position" text,
"hei... |
SELECT "height" FROM "table1_10966926_2" WHERE "weight"=320; |
## Task
Generate a SQL query to answer the following question:
`What is the height of the person that weighs 320 pounds?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10966926_2" (
"round" real,
"choice" real,
"player_name" text,
"posi... |
SELECT COUNT("college") FROM "round_four" WHERE "position"='DB'; |
## Task
Generate a SQL query to answer the following question:
`How many colleges have a DB position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" te... |
SELECT MAX("pick_num") FROM "round_four" WHERE "cfl_team"='Calgary Stampeders'; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of picks for the CFL team Calgary Stampeders?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text... |
SELECT COUNT("cfl_team") FROM "round_four" WHERE "college"='York'; |
## Task
Generate a SQL query to answer the following question:
`How many CFL teams are from York college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college... |
SELECT "cfl_team" FROM "round_four" WHERE "college"='Simon Fraser'; |
## Task
Generate a SQL query to answer the following question:
`What CFL teams are part of Simon Fraser college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"... |
SELECT "player" FROM "round_four" WHERE "pick_num"=27; |
## Task
Generate a SQL query to answer the following question:
`Which players have a pick number of 27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" ... |
SELECT COUNT("pick_num") FROM "round_six" WHERE "player"='Brett Ralph'; |
## Task
Generate a SQL query to answer the following question:
`How many times were players named brett ralph were selected?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position... |
SELECT "college" FROM "round_six" WHERE "player"='Lenard Semajuste'; |
## Task
Generate a SQL query to answer the following question:
`What schools did lenard semajuste play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"colleg... |
SELECT MAX("pick_num") FROM "round_six" WHERE "cfl_team"='Saskatchewan Roughriders'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest selection number for the saskatchewan roughriders team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" te... |
SELECT COUNT("pick_num") FROM "round_six" WHERE "position"='FB'; |
## Task
Generate a SQL query to answer the following question:
`How many fb players were drafted?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);... |
SELECT COUNT("player") FROM "round_six" WHERE "college"='Adams State'; |
## Task
Generate a SQL query to answer the following question:
`How many players played for adams state school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"co... |
SELECT "cfl_team" FROM "round_six" WHERE "college"='Northwood'; |
## Task
Generate a SQL query to answer the following question:
`What teams drafted players that played for northwood school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position... |
SELECT "college" FROM "round_five" WHERE "player"='Craig Zimmer'; |
## Task
Generate a SQL query to answer the following question:
`What college did Craig Zimmer go to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" tex... |
SELECT "pick_num" FROM "round_five" WHERE "college"='Regina'; |
## Task
Generate a SQL query to answer the following question:
`What is the pick number of regina?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
... |
SELECT "player" FROM "round_five" WHERE "position"='LB' AND "cfl_team"='Saskatchewan Roughriders'; |
## Task
Generate a SQL query to answer the following question:
`What is the player who is lb and cfl team is saskatchewan roughriders?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
... |
SELECT "cfl_team" FROM "round_five" WHERE "position"='OL'; |
## Task
Generate a SQL query to answer the following question:
`What is the cfl team that has a position of ol?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"c... |
SELECT COUNT("position") FROM "round_five" WHERE "pick_num"=43; |
## Task
Generate a SQL query to answer the following question:
`What is the number of position where the pick number is 43?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position... |
SELECT "cfl_team" FROM "round_five" WHERE "player"='Ryan Folk'; |
## Task
Generate a SQL query to answer the following question:
`What is the cfl team with ryan folk?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" tex... |
SELECT "release_date" FROM "singles" WHERE "reference"='KIDS-270'; |
## Task
Generate a SQL query to answer the following question:
`What release date is when kids-270 is a reference? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"romaji_title" text,
"japanese_title" text,
"release_date" text,
"ref... |
SELECT "japanese_title" FROM "singles" WHERE "romaji_title"='Da.i.su.ki'; |
## Task
Generate a SQL query to answer the following question:
`what is the title where romaji is titles da.i.su.ki`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"romaji_title" text,
"japanese_title" text,
"release_date" text,
"ref... |
SELECT "japanese_title" FROM "singles" WHERE "reference"='KIDS-430'; |
## Task
Generate a SQL query to answer the following question:
`what are the title in japanese where the reference is kids-430?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"romaji_title" text,
"japanese_title" text,
"release_date" ... |
SELECT "reference" FROM "singles" WHERE "romaji_title"='Heartbreak Sniper'; |
## Task
Generate a SQL query to answer the following question:
`who is the reference when romaji title is heartbreak sniper?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"romaji_title" text,
"japanese_title" text,
"release_date" tex... |
SELECT COUNT("oricon") FROM "albums" WHERE "japanese_title"='愛のバカ'; |
## Task
Generate a SQL query to answer the following question:
`What rank is 愛のバカ on the Japanese singles chart?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "albums" (
"romaji_title" text,
"japanese_title" text,
"release_date" text,
"referen... |
SELECT COUNT("romaji_title") FROM "albums" WHERE "japanese_title"='Mi-Chemin'; |
## Task
Generate a SQL query to answer the following question:
`How many songs have mi-chemin as their Japanese name and romanji name?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "albums" (
"romaji_title" text,
"japanese_title" text,
"release_... |
SELECT "partial_thromboplastin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Factor X deficiency as seen in amyloid purpura'; |
## Task
Generate a SQL query to answer the following question:
`What was the partial thromboplastin time for factor x deficiency as seen in amyloid purpura`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"... |
SELECT COUNT("condition") FROM "laboratory_findings_in_various_platelet_" WHERE "prothrombin_time"='Unaffected' AND "bleeding_time"='Prolonged'; |
## Task
Generate a SQL query to answer the following question:
`How many conditions have an unaffected prothrombin time and a prolonged bleeding time`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"conditi... |
SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Factor X deficiency as seen in amyloid purpura'; |
## Task
Generate a SQL query to answer the following question:
`What was the bleeding time for the factor x deficiency as seen in amyloid purpura`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" ... |
SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='Prolonged' AND "bleeding_time"='Prolonged'; |
## Task
Generate a SQL query to answer the following question:
`What conditions had both prolonged bleeding times and prolonged partial thromboplastin times`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"... |
SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Factor XII deficiency'; |
## Task
Generate a SQL query to answer the following question:
`What was the bleeding time for factor xii deficiency`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" t... |
SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='Unaffected' AND "platelet_count"='Unaffected'; |
## Task
Generate a SQL query to answer the following question:
`What were the bleeding times when both the platelet count was unaffected and the partial thromboplastin time was unaffected`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laboratory_findi... |
SELECT "tuesday" FROM "locations" WHERE "location"='Millhopper'; |
## Task
Generate a SQL query to answer the following question:
`what's the tuesday time with location being millhopper`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locations" (
"location" text,
"monday" text,
"tuesday" text,
"wednesday" text... |
SELECT "wednesday" FROM "locations" WHERE "monday"='10:00-8:00'; |
## Task
Generate a SQL query to answer the following question:
`what's the wednesday time with monday being 10:00-8:00`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locations" (
"location" text,
"monday" text,
"tuesday" text,
"wednesday" text... |
SELECT "thursday" FROM "locations" WHERE "location"='Hawthorne'; |
## Task
Generate a SQL query to answer the following question:
`what's the thursday time with location being hawthorne`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locations" (
"location" text,
"monday" text,
"tuesday" text,
"wednesday" text... |
SELECT "saturday" FROM "locations" WHERE "wednesday"='10:00-5:00'; |
## Task
Generate a SQL query to answer the following question:
`what's the saturday time with wednesday being 10:00-5:00`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locations" (
"location" text,
"monday" text,
"tuesday" text,
"wednesday" te... |
SELECT "thursday" FROM "locations" WHERE "sunday"='1:00-5:00' AND "tuesday"='1:00-7:00'; |
## Task
Generate a SQL query to answer the following question:
`what's the thursday time with sunday being 1:00-5:00 and tuesday being 1:00-7:00`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locations" (
"location" text,
"monday" text,
"tuesday... |
SELECT "monday" FROM "locations" WHERE "tuesday"='9:00-6:00'; |
## Task
Generate a SQL query to answer the following question:
`what's the monday time with tuesday being 9:00-6:00`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locations" (
"location" text,
"monday" text,
"tuesday" text,
"wednesday" text,
... |
SELECT "report" FROM "race_results" WHERE "fastest_lap"='Paul Tracy'; |
## Task
Generate a SQL query to answer the following question:
`What are all the reports where Paul Tracy had the fastest lap?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"rnd" real,
"race_name" text,
"pole_position" text,
"... |
SELECT "fastest_lap" FROM "race_results" WHERE "race_name"='Tenneco Automotive Grand Prix of Detroit'; |
## Task
Generate a SQL query to answer the following question:
`Who drove the fastest lap at the Tenneco Automotive Grand Prix of Detroit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"rnd" real,
"race_name" text,
"pole_positio... |
SELECT "fastest_lap" FROM "race_results" WHERE "winning_driver"='Max Papis'; |
## Task
Generate a SQL query to answer the following question:
`Who had the fastest lap in the races won by Max Papis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"rnd" real,
"race_name" text,
"pole_position" text,
"fastest_... |
SELECT COUNT("winning_driver") FROM "race_results" WHERE "rnd"=6; |
## Task
Generate a SQL query to answer the following question:
`In Round 6, how many winning drivers were there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"rnd" real,
"race_name" text,
"pole_position" text,
"fastest_lap" t... |
SELECT "original_name" FROM "districts_of_bogor_city" WHERE "population_at_2010_census"=210450; |
## Task
Generate a SQL query to answer the following question:
`What are the original names of the districts where the population in the 2010 census was 210450?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "districts_of_bogor_city" (
"english_name"... |
SELECT "original_name" FROM "districts_of_bogor_city" WHERE "english_name"='South Bogor'; |
## Task
Generate a SQL query to answer the following question:
`What is the original name of the district with the current English name of South Bogor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "districts_of_bogor_city" (
"english_name" text,
... |
SELECT MIN("population_at_2010_census") FROM "districts_of_bogor_city" WHERE "english_name"='West Bogor'; |
## Task
Generate a SQL query to answer the following question:
`What is the listed population from the 2010 census of West Bogor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "districts_of_bogor_city" (
"english_name" text,
"original_name" text,
... |
SELECT COUNT("english_name") FROM "districts_of_bogor_city" WHERE "area_in_km"='17.72'; |
## Task
Generate a SQL query to answer the following question:
`How many districts have an area of 17.72 KM2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "districts_of_bogor_city" (
"english_name" text,
"original_name" text,
"area_in_km" text,... |
SELECT "area_in_km" FROM "districts_of_bogor_city" WHERE "original_name"='Kecamatan Bogor Timur'; |
## Task
Generate a SQL query to answer the following question:
`What is the area in km2 for the district whose original name was Kecamatan Bogor Timur?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "districts_of_bogor_city" (
"english_name" text,
... |
SELECT COUNT("colour") FROM "production_overview" WHERE "registration_no"='MG-509'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of colour with the regisration number of mg-509?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "production_overview" (
"pilot_car_no" real,
"colour" text,
"serial... |
SELECT "title" FROM "table1_11058032_1" WHERE "directed_by"='Mark Tinker'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode directed by Mark Tinker?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11058032_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,... |
SELECT MIN("no_in_season") FROM "table1_11058032_1" WHERE "directed_by"='Jeff Melman'; |
## Task
Generate a SQL query to answer the following question:
`What episode in the season was directed by Jeff Melman?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11058032_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.