output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT MAX("pf") FROM "round_robin_standings" WHERE "ends_lost"=51; |
## Task
Generate a SQL query to answer the following question:
`What is the highest value of PF when Ends Lost is 51?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_robin_standings" (
"locale" text,
"skip" text,
"w" real,
"l" real,
"pf... |
SELECT COUNT("shot_pct") FROM "round_robin_standings" WHERE "blank_ends"=8; |
## Task
Generate a SQL query to answer the following question:
`What is the total of all Shot PCT occurrences when the value of Blank Ends is 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_robin_standings" (
"locale" text,
"skip" text,
... |
SELECT "locale" FROM "round_robin_standings" WHERE "l"=2; |
## Task
Generate a SQL query to answer the following question:
`Where is the Locale when L is 2.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_robin_standings" (
"locale" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
... |
SELECT MIN("blank_ends") FROM "round_robin_standings" WHERE "stolen_ends"=7; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest value of Blank Ends when Stolen Ends is 7. `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_robin_standings" (
"locale" text,
"skip" text,
"w" real,
"l" re... |
SELECT "ends_lost" FROM "round_robin_standings" WHERE "blank_ends"=9; |
## Task
Generate a SQL query to answer the following question:
`What is the value of Ends Lost when Blank Ends is 9.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_robin_standings" (
"locale" text,
"skip" text,
"w" real,
"l" real,
"pf"... |
SELECT COUNT("combination_classification") FROM "jersey_progress" WHERE "points_classification"='Alessandro Petacchi' AND "winner"='Erik Zabel'; |
## Task
Generate a SQL query to answer the following question:
`How many combination classifications have the winner as Erik Zabel and a points classification as Alessandro Petacchi`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress" (
"... |
SELECT "mountains_classification" FROM "jersey_progress" WHERE "winner"='Alejandro Valverde' AND "points_classification"='Erik Zabel'; |
## Task
Generate a SQL query to answer the following question:
`If winner is alejandro Valverde and the points Classification is by Erik Zabel, who is the mountain classification?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress" (
"st... |
SELECT COUNT("team_classification") FROM "jersey_progress" WHERE "combination_classification"='Alejandro Valverde' AND "points_classification"='Alessandro Petacchi'; |
## Task
Generate a SQL query to answer the following question:
`How many teams have a combination classification of Alejandro Valverde and a Points classification of Alessandro Petacchi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress" ... |
SELECT COUNT("avg_finish") FROM "nascar_sprint_cup_series" WHERE "winnings"='$3,816,362'; |
## Task
Generate a SQL query to answer the following question:
`How many times were the winnings $3,816,362?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"t... |
SELECT COUNT("wins") FROM "nascar_sprint_cup_series" WHERE "position"='26th'; |
## Task
Generate a SQL query to answer the following question:
`How many wins were there when the position was 26th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" re... |
SELECT "avg_finish" FROM "nascar_sprint_cup_series" WHERE "avg_start"='18.4'; |
## Task
Generate a SQL query to answer the following question:
`What was the average finish when the average start was 18.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"t... |
SELECT COUNT("team_s") FROM "nascar_sprint_cup_series" WHERE "position"='76th'; |
## Task
Generate a SQL query to answer the following question:
`How many teams had a 76th position finish?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top... |
SELECT MIN("wins") FROM "nascar_sprint_cup_series"; |
## Task
Generate a SQL query to answer the following question:
`What is the maximumum number of wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" ... |
SELECT "team_s" FROM "nascar_sprint_cup_series" WHERE "year"=2007; |
## Task
Generate a SQL query to answer the following question:
`What teams won in 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles... |
SELECT COUNT("top_10") FROM "nascar_nationwide_series" WHERE "position"='78th'; |
## Task
Generate a SQL query to answer the following question:
`How many entries arr there for the top 10 for the 78th position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
... |
SELECT MAX("top_10") FROM "nascar_nationwide_series" WHERE "team_s"='#55/#83 Robby Gordon Motorsports'; |
## Task
Generate a SQL query to answer the following question:
`Where does team #55/#83 robby gordon motorsports rank in the top 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" re... |
SELECT COUNT("winnings") FROM "nascar_nationwide_series" WHERE "team_s"='#07 Robby Gordon Motorsports'; |
## Task
Generate a SQL query to answer the following question:
`How many entries are shown for winnings for team #07 robby gordon motorsports?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
... |
SELECT "to_par" FROM "pga_tour_wins_8" WHERE "winning_score"='67-67-69-69=272'; |
## Task
Generate a SQL query to answer the following question:
`What are all values for 'to par' for the winning score of 67-67-69-69=272?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_8" (
"no" real,
"date" text,
"tournament" tex... |
SELECT "date" FROM "pga_tour_wins_8" WHERE "tournament"='Buick Classic'; |
## Task
Generate a SQL query to answer the following question:
`The tournament Buick Classic occured on what dates?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_8" (
"no" real,
"date" text,
"tournament" text,
"winning_score" te... |
SELECT "runner_up" FROM "pga_tour_wins_8" WHERE "no"=2; |
## Task
Generate a SQL query to answer the following question:
`Who are all runner-ups for No. 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_8" (
"no" real,
"date" text,
"tournament" text,
"winning_score" text,
"to_par" tex... |
SELECT "date_completed" FROM "portfolio" WHERE "nickname"='Halley'; |
## Task
Generate a SQL query to answer the following question:
`when the nickname halley is used, what are the date completed`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "portfolio" (
"print_name" text,
"nickname" text,
"number_of_colors" text... |
SELECT "framed_size" FROM "portfolio" WHERE "date_completed"='02/91'; |
## Task
Generate a SQL query to answer the following question:
`the date complted is 02/91, what framed size was used`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "portfolio" (
"print_name" text,
"nickname" text,
"number_of_colors" text,
"fra... |
SELECT "framed_size" FROM "portfolio" WHERE "nickname"='Robot Black'; |
## Task
Generate a SQL query to answer the following question:
`for the robot black nickname, what framed size is used`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "portfolio" (
"print_name" text,
"nickname" text,
"number_of_colors" text,
"fr... |
SELECT "attribute" FROM "common_w3_c_events" WHERE "type"='DOMNodeRemoved'; |
## Task
Generate a SQL query to answer the following question:
`What are the attributes when the type is "DOMNodeRemoved"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "common_w3_c_events" (
"category" text,
"type" text,
"attribute" text,
"de... |
SELECT COUNT("category") FROM "common_w3_c_events" WHERE "attribute"='onreset'; |
## Task
Generate a SQL query to answer the following question:
`How many categories are there when the attribute is "onreset"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "common_w3_c_events" (
"category" text,
"type" text,
"attribute" text,
... |
SELECT COUNT("description") FROM "common_w3_c_events" WHERE "attribute"='ondragstart'; |
## Task
Generate a SQL query to answer the following question:
`How many descriptions are there when the attribute is "ondragstart"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "common_w3_c_events" (
"category" text,
"type" text,
"attribute" t... |
SELECT "description" FROM "common_w3_c_events" WHERE "type"='reset'; |
## Task
Generate a SQL query to answer the following question:
`When the type is "reset" what is the description?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "common_w3_c_events" (
"category" text,
"type" text,
"attribute" text,
"description... |
SELECT "team_classification" FROM "jersey_progress" WHERE "combination_classification"='Mederic Clain'; |
## Task
Generate a SQL query to answer the following question:
`Name all the team clasification where the combination classification is mederic clain`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress" (
"stage" real,
"winner" text,
... |
SELECT COUNT("stage") FROM "jersey_progress" WHERE "winner"='Jose Vicente Garcia Acosta'; |
## Task
Generate a SQL query to answer the following question:
`In how many stages did Jose Vicente Garcia Acosta won?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress" (
"stage" real,
"winner" text,
"general_classification" text,
... |
SELECT MIN("stage") FROM "jersey_progress" WHERE "winner"='Sergei Smetanine'; |
## Task
Generate a SQL query to answer the following question:
`What is the minimum stage where Sergei Smetanine won?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress" (
"stage" real,
"winner" text,
"general_classification" text,
... |
SELECT MIN("stage") FROM "jersey_progress" WHERE "mountains_classification"='Aitor Osa' AND "winner"='Aitor González'; |
## Task
Generate a SQL query to answer the following question:
`what is the minimum stage where mountains classification is aitor osa and aitor gonzález won?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress" (
"stage" real,
"winner" ... |
SELECT COUNT("number_of_seasons_in_top_division") FROM "members_for_2013_14" WHERE "position_in_2012_13"='005 5th'; |
## Task
Generate a SQL query to answer the following question:
`How many seasons in the top division for the team that finished 005 5th in 2012-2013`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members_for_2013_14" (
"club" text,
"position_in_20... |
SELECT COUNT("country") FROM "winners_and_honorees" WHERE "honoree_s"='Roberto De Vicenzo'; |
## Task
Generate a SQL query to answer the following question:
`How many countries does honoree Roberto de Vicenzo represent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_and_honorees" (
"year" real,
"player" text,
"country" text,
"s... |
SELECT "country" FROM "winners_and_honorees" WHERE "player"='Keith Fergus'; |
## Task
Generate a SQL query to answer the following question:
`For which country does Keith Fergus play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_and_honorees" (
"year" real,
"player" text,
"country" text,
"score" text,
"margi... |
SELECT "player" FROM "winners_and_honorees" WHERE "country"='Australia' AND "honoree_s"='Byron Nelson'; |
## Task
Generate a SQL query to answer the following question:
`Who won the tournament for Australia in the year when Byron Nelson was Honoree?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_and_honorees" (
"year" real,
"player" text,
"c... |
SELECT "margin_of_victory" FROM "winners_and_honorees" WHERE "honoree_s"='Tommy Armour'; |
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory in the year when the honoree was Tommy Armour?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_and_honorees" (
"year" real,
"player" text,
"cou... |
SELECT MAX("year") FROM "women_s_doubles_10_finals_3_titles_7_run" WHERE "championship"='US Open'; |
## Task
Generate a SQL query to answer the following question:
`What year was the most recent US Open championship?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_s_doubles_10_finals_3_titles_7_run" (
"outcome" text,
"year" real,
"champion... |
SELECT "points_classification" FROM "classification_leadership" WHERE "stage_winner"='Li Fuyu'; |
## Task
Generate a SQL query to answer the following question:
`When li fuyu is the stage winner what is points classification?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" real,
"stage_winner" text,
"gener... |
SELECT "points_classification" FROM "classification_leadership" WHERE "malaysian_rider_classification"='Suhardi Hassan' AND "team_classification"='Japan' AND "stage_winner"='Anuar Manan'; |
## Task
Generate a SQL query to answer the following question:
`When anuar manan is the stage winner and the team classification is japan and suhardi hassan is the malaysian rider classification who is the points classification?`
### Database Schema
This query will run on a database whose schema is represented in t... |
SELECT "general_classification" FROM "classification_leadership" WHERE "stage_winner"='Li Fuyu'; |
## Task
Generate a SQL query to answer the following question:
`When li fuyu is the stage winner who is the general classification?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" real,
"stage_winner" text,
"g... |
SELECT "malaysian_rider_classification" FROM "classification_leadership" WHERE "stage_winner"='Hossein Askari'; |
## Task
Generate a SQL query to answer the following question:
`When hossein askari is the stage winner who is the malaysian rider classification ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" real,
"stage_wi... |
SELECT COUNT("nominee") FROM "s_e_voting_system_result" WHERE "net_vote"='15.17%'; |
## Task
Generate a SQL query to answer the following question:
`How many nominees had a net voice of 15.17%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s_e_voting_system_result" (
"eviction_no" real,
"nominee" text,
"vote_to_save" text,
"vo... |
SELECT "nominee" FROM "s_e_voting_system_result" WHERE "net_vote"='34.46%'; |
## Task
Generate a SQL query to answer the following question:
`What nominees had a net vote of 34.46%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s_e_voting_system_result" (
"eviction_no" real,
"nominee" text,
"vote_to_save" text,
"vote_t... |
SELECT COUNT("nominee") FROM "s_e_voting_system_result" WHERE "vote_to_evict"='3.92%'; |
## Task
Generate a SQL query to answer the following question:
`How many nominee's had a vote to evict percentage of 3.92%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s_e_voting_system_result" (
"eviction_no" real,
"nominee" text,
"vote_to_sa... |
SELECT COUNT("eviction_result") FROM "s_e_voting_system_result" WHERE "eviction_no"=12 AND "vote_to_save"='2.76%'; |
## Task
Generate a SQL query to answer the following question:
`How many eviction results occurred with a eviction no. 12 and a vote to save of 2.76%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s_e_voting_system_result" (
"eviction_no" real,
"... |
SELECT "result" FROM "house_players" WHERE "viewers_selection"='Ejay'; |
## Task
Generate a SQL query to answer the following question:
`What was the final result when the viewers selected ejay?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "house_players" (
"task_no" real,
"day_announced" text,
"description" text,
... |
SELECT "description" FROM "house_players" WHERE "viewers_selection"='Nan'; |
## Task
Generate a SQL query to answer the following question:
`What was the description when the viewers selected Nan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "house_players" (
"task_no" real,
"day_announced" text,
"description" text,
"... |
SELECT "segment_c" FROM "season_11_2008" WHERE "series_ep"='11-02'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of series episode 11-02's segment c?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_11_2008" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a... |
SELECT "segment_d" FROM "season_11_2008" WHERE "series_ep"='11-05'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of series episode 11-05's segment d?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_11_2008" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_... |
SELECT "segment_b" FROM "season_11_2008" WHERE "series_ep"='11-04'; |
## Task
Generate a SQL query to answer the following question:
`In seris episode 11-04, what is the B segment titled?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_11_2008" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a... |
SELECT "segment_d" FROM "season_11_2008" WHERE "segment_a"='Microphones'; |
## Task
Generate a SQL query to answer the following question:
`In the episode where segment a is microphones, what is segment d?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_11_2008" (
"series_ep" text,
"episode" real,
"netflix" text,
... |
SELECT "segment_b" FROM "season_12_2008_2009" WHERE "series_ep"='12-08'; |
## Task
Generate a SQL query to answer the following question:
`What is Segment B for series episode 12-08?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_12_2008_2009" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" tex... |
SELECT "series_ep" FROM "season_12_2008_2009" WHERE "segment_b"='Popcorn'; |
## Task
Generate a SQL query to answer the following question:
`What is the series episode where Segment B is popcorn ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_12_2008_2009" (
"series_ep" text,
"episode" real,
"netflix" text,
"se... |
SELECT "netflix" FROM "season_12_2008_2009" WHERE "segment_c"='Car Washes'; |
## Task
Generate a SQL query to answer the following question:
`What is the Netflix where Segment C is car washes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_12_2008_2009" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment... |
SELECT "segment_b" FROM "season_12_2008_2009" WHERE "series_ep"='12-02'; |
## Task
Generate a SQL query to answer the following question:
`What is Segment B for series episode 12-02?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_12_2008_2009" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" tex... |
SELECT "segment_a" FROM "season_12_2008_2009" WHERE "segment_b"='Kevlar s Canoe'; |
## Task
Generate a SQL query to answer the following question:
`What is Segment A where Segment B is Kevlar S Canoe?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_12_2008_2009" (
"series_ep" text,
"episode" real,
"netflix" text,
"segme... |
SELECT "netflix" FROM "season_12_2008_2009" WHERE "segment_d"='Pressure Gauges'; |
## Task
Generate a SQL query to answer the following question:
`What is the Netflix where Segment D is pressure gauges ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_12_2008_2009" (
"series_ep" text,
"episode" real,
"netflix" text,
"s... |
SELECT "segment_d" FROM "season_13_2009" WHERE "segment_a"='Bowling Balls'; |
## Task
Generate a SQL query to answer the following question:
`Name the segment d for bowling balls`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_13_2009" (
"series_ep" text,
"episode" real,
"segment_a" text,
"segment_b" text,
"segm... |
SELECT "segment_b" FROM "season_13_2009" WHERE "segment_a"='Pressure Cookers'; |
## Task
Generate a SQL query to answer the following question:
`Name the segment b for pressure cookers`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_13_2009" (
"series_ep" text,
"episode" real,
"segment_a" text,
"segment_b" text,
"s... |
SELECT "segment_b" FROM "season_13_2009" WHERE "episode"=167; |
## Task
Generate a SQL query to answer the following question:
`Name the segment b for 167`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_13_2009" (
"series_ep" text,
"episode" real,
"segment_a" text,
"segment_b" text,
"segment_c" tex... |
SELECT "segment_a" FROM "season_13_2009" WHERE "episode"=162; |
## Task
Generate a SQL query to answer the following question:
`Name the segment a for 162`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_13_2009" (
"series_ep" text,
"episode" real,
"segment_a" text,
"segment_b" text,
"segment_c" tex... |
SELECT COUNT("segment_c") FROM "season_13_2009" WHERE "segment_a"='Pressure Cookers'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of segment c for pressure cookers`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_13_2009" (
"series_ep" text,
"episode" real,
"segment_a" text,
"segme... |
SELECT "segment_c" FROM "season_1_2001" WHERE "segment_d"='Fluorescent Tubes'; |
## Task
Generate a SQL query to answer the following question:
`What was segment C when segment D was fluorescent tubes? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1_2001" (
"series_ep" text,
"episode" real,
"netflix" text,
"segmen... |
SELECT "segment_c" FROM "season_1_2001" WHERE "segment_b"='Package printing'; |
## Task
Generate a SQL query to answer the following question:
`What was segment C when segment B was package printing? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1_2001" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment... |
SELECT "segment_a" FROM "season_1_2001" WHERE "segment_b"='Snowboards'; |
## Task
Generate a SQL query to answer the following question:
`What was segment A when segment B was snowboards? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1_2001" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" te... |
SELECT "segment_d" FROM "season_1_2001" WHERE "segment_b"='Jeans'; |
## Task
Generate a SQL query to answer the following question:
`What was segment D when segment B was jeans? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1_2001" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
... |
SELECT MAX("episode") FROM "season_1_2001" WHERE "segment_d"='ned Can Corn'; |
## Task
Generate a SQL query to answer the following question:
`In what episode was segment D ned Can Corn? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1_2001" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
... |
SELECT COUNT("segment_c") FROM "season_10_2007_2008" WHERE "segment_d"='Crash Test Dummies'; |
## Task
Generate a SQL query to answer the following question:
`Name the segment c for crash test dummies`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_10_2007_2008" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,... |
SELECT "segment_b" FROM "season_10_2007_2008" WHERE "segment_a"='s Dress Form'; |
## Task
Generate a SQL query to answer the following question:
`Name the segment b for s dress form`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_10_2007_2008" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"se... |
SELECT "segment_a" FROM "season_10_2007_2008" WHERE "segment_c"='s Duvet'; |
## Task
Generate a SQL query to answer the following question:
`Name the segment a for s duvet`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_10_2007_2008" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment... |
SELECT COUNT("episode") FROM "season_10_2007_2008" WHERE "segment_a"='s Fire Extinguisher'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of episodes for s fire extinguisher`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_10_2007_2008" (
"series_ep" text,
"episode" real,
"netflix" text,
"... |
SELECT COUNT("segment_b") FROM "season_10_2007_2008" WHERE "segment_d"='s Banjo'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of segment b for s banjo`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_10_2007_2008" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" ... |
SELECT COUNT("segment_d") FROM "season_10_2007_2008" WHERE "segment_a"='Wooden s Barrel'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of segment d for wooden s barrel`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_10_2007_2008" (
"series_ep" text,
"episode" real,
"netflix" text,
"seg... |
SELECT COUNT("segment_a") FROM "season_14_2009_2010" WHERE "series_ep"='14-05'; |
## Task
Generate a SQL query to answer the following question:
`How many segment A were in series episode 14-05`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_14_2009_2010" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a"... |
SELECT "segment_c" FROM "season_14_2009_2010" WHERE "netflix"='S07E05'; |
## Task
Generate a SQL query to answer the following question:
`What is segment C in s07e05`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_14_2009_2010" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b"... |
SELECT "netflix" FROM "season_15_2010" WHERE "segment_d"='High-Performance Engines'; |
## Task
Generate a SQL query to answer the following question:
`What is the netflix episode number where Segment D is high-performance engines?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_15_2010" (
"series_ep" text,
"episode" real,
"n... |
SELECT "segment_d" FROM "season_15_2010" WHERE "episode"=183; |
## Task
Generate a SQL query to answer the following question:
`What was segment D for episode 183?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_15_2010" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment... |
SELECT "segment_a" FROM "season_15_2010" WHERE "segment_c"='Sushi (Part 1)'; |
## Task
Generate a SQL query to answer the following question:
`What is Segment A where Segment C is Sushi (part 1)? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_15_2010" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a... |
SELECT COUNT("episode") FROM "season_15_2010" WHERE "netflix"='S08E04'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes have the Netflix episode number S08E04?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_15_2010" (
"series_ep" text,
"episode" real,
"netflix" text,
"segme... |
SELECT "segment_a" FROM "season_15_2010" WHERE "segment_d"='Luxury Sports Cars'; |
## Task
Generate a SQL query to answer the following question:
`What is Segment A where Segment D is luxury sports cars?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_15_2010" (
"series_ep" text,
"episode" real,
"netflix" text,
"segmen... |
SELECT MIN("episode") FROM "season_20_2012_2013" WHERE "segment_a"='Thinning Shears'; |
## Task
Generate a SQL query to answer the following question:
`What episode number is the episode with a segment on thinning shears?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_20_2012_2013" (
"series_ep" text,
"episode" real,
"segmen... |
SELECT MIN("episode") FROM "season_20_2012_2013" WHERE "segment_d"='Custom Motorcycle Tanks'; |
## Task
Generate a SQL query to answer the following question:
`Which episode has segment D on custom motorcycle tanks?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_20_2012_2013" (
"series_ep" text,
"episode" real,
"segment_a" text,
"... |
SELECT COUNT("segment_c") FROM "season_20_2012_2013" WHERE "segment_d"='Bicycle Tires'; |
## Task
Generate a SQL query to answer the following question:
`How many segment C are there in the episode where segment D is bicycle tires?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_20_2012_2013" (
"series_ep" text,
"episode" real,
... |
SELECT MIN("episode") FROM "season_20_2012_2013"; |
## Task
Generate a SQL query to answer the following question:
`What is the first episode number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_20_2012_2013" (
"series_ep" text,
"episode" real,
"segment_a" text,
"segment_b" text,
"se... |
SELECT COUNT("segment_b") FROM "season_16_2010_2011" WHERE "segment_a"='Filigree Glass'; |
## Task
Generate a SQL query to answer the following question:
`How many segment b's when segment a is filigree glass`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_16_2010_2011" (
"series_ep" text,
"episode" real,
"netflix" text,
"segm... |
SELECT "segment_a" FROM "season_16_2010_2011" WHERE "netflix"='S08E21'; |
## Task
Generate a SQL query to answer the following question:
`Whats the name of segment in s08e21`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_16_2010_2011" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"se... |
SELECT "netflix" FROM "season_16_2010_2011" WHERE "segment_a"='Digital Dentistry'; |
## Task
Generate a SQL query to answer the following question:
`Whats the season/episode of segment a digital dentistry`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_16_2010_2011" (
"series_ep" text,
"episode" real,
"netflix" text,
"se... |
SELECT "segment_d" FROM "season_16_2010_2011" WHERE "segment_a"='Tequila'; |
## Task
Generate a SQL query to answer the following question:
`Whats the name of segment D in the episode where segment A is tequila`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_16_2010_2011" (
"series_ep" text,
"episode" real,
"netfli... |
SELECT "segment_d" FROM "season_16_2010_2011" WHERE "segment_a"='Tequila'; |
## Task
Generate a SQL query to answer the following question:
`Name the segment D of the episode where segment A is tequila`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_16_2010_2011" (
"series_ep" text,
"episode" real,
"netflix" text,
... |
SELECT COUNT("episode") FROM "season_18_2011_2012" WHERE "segment_c"='s Oyster'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of episods for segment c being s oyster`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_18_2011_2012" (
"series_ep" text,
"episode" real,
"segment_a" text,
"... |
SELECT MIN("episode") FROM "season_18_2011_2012" WHERE "segment_d"='Fibre Cement Siding'; |
## Task
Generate a SQL query to answer the following question:
`Name the least episode for fibre cement siding`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_18_2011_2012" (
"series_ep" text,
"episode" real,
"segment_a" text,
"segment_b... |
SELECT "segment_b" FROM "season_18_2011_2012" WHERE "episode"=226; |
## Task
Generate a SQL query to answer the following question:
`Name the segment b for 226 episode`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_18_2011_2012" (
"series_ep" text,
"episode" real,
"segment_a" text,
"segment_b" text,
"s... |
SELECT COUNT("segment_d") FROM "season_18_2011_2012" WHERE "segment_b"='Solar Water Heaters'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of sement d for solar water heaters `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_18_2011_2012" (
"series_ep" text,
"episode" real,
"segment_a" text,
"seg... |
SELECT "segment_d" FROM "season_18_2011_2012" WHERE "segment_a"='s Cufflink'; |
## Task
Generate a SQL query to answer the following question:
`Name the segment d for s cufflink`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_18_2011_2012" (
"series_ep" text,
"episode" real,
"segment_a" text,
"segment_b" text,
"se... |
SELECT "segment_b" FROM "season_19_2012" WHERE "episode"=242; |
## Task
Generate a SQL query to answer the following question:
`What is the segment B of episode 242?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_19_2012" (
"series_ep" text,
"episode" real,
"segment_a" text,
"segment_b" text,
"seg... |
SELECT "segment_c" FROM "season_19_2012" WHERE "segment_b"='Film Digitization'; |
## Task
Generate a SQL query to answer the following question:
`What is the segment C of the episode where segment B is Film Digitization?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_19_2012" (
"series_ep" text,
"episode" real,
"segmen... |
SELECT "segment_a" FROM "season_19_2012" WHERE "episode"=237; |
## Task
Generate a SQL query to answer the following question:
`What is the segment A on episode 237?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_19_2012" (
"series_ep" text,
"episode" real,
"segment_a" text,
"segment_b" text,
"seg... |
SELECT MAX("episode") FROM "season_4_2004" WHERE "segment_d"='Blown Glass'; |
## Task
Generate a SQL query to answer the following question:
`What is the last episode which has segment d as blown glass?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_4_2004" (
"series_ep" text,
"episode" real,
"netflix" text,
"seg... |
SELECT MIN("episode") FROM "season_4_2004" WHERE "netflix"='S02E20'; |
## Task
Generate a SQL query to answer the following question:
`What is the first episode with a netflix episode code of s02e20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_4_2004" (
"series_ep" text,
"episode" real,
"netflix" text,
... |
SELECT "netflix" FROM "season_4_2004" WHERE "episode"=46; |
## Task
Generate a SQL query to answer the following question:
`What is the netflix code for episode 46?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_4_2004" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"seg... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.