answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT date FROM table_1507431_1 WHERE tournament = "Buick Classic"
The tournament Buick Classic occured on what dates?
CREATE TABLE table_1507431_1 (date VARCHAR, tournament VARCHAR)
SELECT Founder, SUM(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY SUM(Manufacturer)
For those records from the products and each product's manufacturer, show me about the distribution of founder and the sum of manufacturer , and group by attribute founder in a bar chart, display by the total number of manufacturer in asc.
CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER )
SELECT MIN(wins) FROM table_name_46 WHERE rank > 6 AND first_win = "1950 british grand prix"
What is the rank 6 lowest win who's first win was at the 1950 British Grand Prix?
CREATE TABLE table_name_46 (wins INTEGER, rank VARCHAR, first_win VARCHAR)
SELECT runner_up FROM table_1507431_1 WHERE no = 2
Who are all runner-ups for No. 2?
CREATE TABLE table_1507431_1 (runner_up VARCHAR, no VARCHAR)
SELECT MAX("Tries against") FROM table_21064 WHERE "Team" = 'Bridgend'
What are the tries against when they played against Bridgend?
CREATE TABLE table_21064 ( "Team" text, "P" real, "W" real, "D" real, "L" real, "Tries for" real, "Tries against" real, "Try diff" text, "Points for" real, "Points against" real, "Points diff" text, "Pts" real )
SELECT wins FROM table_name_47 WHERE rank > 16 AND latest_win = "1967 belgian grand prix"
What is the rank 16 wins with the latest win at the 1967 Belgian Grand Prix?
CREATE TABLE table_name_47 (wins VARCHAR, rank VARCHAR, latest_win VARCHAR)
SELECT date_completed FROM table_15070195_1 WHERE nickname = "Halley"
when the nickname halley is used, what are the date completed
CREATE TABLE table_15070195_1 (date_completed VARCHAR, nickname VARCHAR)
SELECT "Res." FROM table_56025 WHERE "Round" = '3' AND "Opponent" = 'keith wisniewski'
What is the result with a Round of 3, and an Opponent of keith wisniewski?
CREATE TABLE table_56025 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" text, "Time" text )
SELECT MIN(pick) FROM table_name_99 WHERE position = "defensive back" AND school = "drake"
What's the lowest pick for a defensive back at Drake?
CREATE TABLE table_name_99 (pick INTEGER, position VARCHAR, school VARCHAR)
SELECT framed_size FROM table_15070195_1 WHERE date_completed = "02/91"
the date complted is 02/91, what framed size was used
CREATE TABLE table_15070195_1 (framed_size VARCHAR, date_completed VARCHAR)
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', lab.labresulttime)) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-123134' AND patient.hos...
what is the total number of hours that have passed since patient 006-123134's last pt lab test during the current hospital visit?
CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE intakeoutput ( i...
SELECT MIN(pick) FROM table_name_11 WHERE player = "terry jones"
What's terry jones' lowest pick?
CREATE TABLE table_name_11 (pick INTEGER, player VARCHAR)
SELECT framed_size FROM table_15070195_1 WHERE nickname = "Robot Black"
for the robot black nickname, what framed size is used
CREATE TABLE table_15070195_1 (framed_size VARCHAR, nickname VARCHAR)
SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Price DESC
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and the sum of price , and group by attribute name, I want to order by the total number of price in desc.
CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER )
SELECT position FROM table_name_52 WHERE player = "gerald carter"
What position does gerald carter play?
CREATE TABLE table_name_52 (position VARCHAR, player VARCHAR)
SELECT attribute FROM table_1507852_1 WHERE type = "DOMNodeRemoved"
What are the attributes when the type is "DOMNodeRemoved"?
CREATE TABLE table_1507852_1 (attribute VARCHAR, type VARCHAR)
SELECT sex, COUNT(*) FROM Faculty WHERE rank = "AsstProf" GROUP BY sex
Show the number of male and female assistant professors.
CREATE TABLE Faculty ( sex VARCHAR, rank VARCHAR )
SELECT player FROM table_name_44 WHERE position = "guard" AND school = "wisconsin"
Who is the guard for Wisconsin?
CREATE TABLE table_name_44 (player VARCHAR, position VARCHAR, school VARCHAR)
SELECT COUNT(category) FROM table_1507852_1 WHERE attribute = "onreset"
How many categories are there when the attribute is "onreset"?
CREATE TABLE table_1507852_1 (category VARCHAR, attribute VARCHAR)
SELECT score_in_the_final FROM table_name_70 WHERE surface = "clay" AND tournament = "dortmund"
Played on Clay Surface, what was the Score of the Dortmund Tournament?
CREATE TABLE table_name_70 ( score_in_the_final VARCHAR, surface VARCHAR, tournament VARCHAR )
SELECT player FROM table_name_31 WHERE nationality = "usa" AND pick = 33
Which player is Pick 33 and has a Nationality of USA?
CREATE TABLE table_name_31 (player VARCHAR, nationality VARCHAR, pick VARCHAR)
SELECT COUNT(description) FROM table_1507852_1 WHERE attribute = "ondragstart"
How many descriptions are there when the attribute is "ondragstart"?
CREATE TABLE table_1507852_1 (description VARCHAR, attribute VARCHAR)
SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'ATLANTA' AND ground_service.city_code = city.city_code
i will be staying downtown in ATLANTA for two hours could you tell me what the ground transportation is available
CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE flight ( aircraft_code_sequence text, airline_code varchar, airline_flight text, arrival_time int, connections int, departure_time...
SELECT nationality FROM table_name_94 WHERE pick < 33 AND school_club_team = "vanderbilt"
What is the nationality of the player who has a pick lower than 33 and a School/Club Team of Vanderbilt?
CREATE TABLE table_name_94 (nationality VARCHAR, pick VARCHAR, school_club_team VARCHAR)
SELECT description FROM table_1507852_1 WHERE type = "reset"
When the type is "reset" what is the description?
CREATE TABLE table_1507852_1 (description VARCHAR, type VARCHAR)
SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_...
what were the four most common drugs prescribed to patients aged 20s during the same hospital visit after they had been diagnosed with fx lumbar vertebra-close this year?
CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code te...
SELECT nationality FROM table_name_15 WHERE nba_team = "phoenix suns" AND pick = 52
What is the nationality of the player who had the pick of 52 and plays for the NBA team of Phoenix Suns?
CREATE TABLE table_name_15 (nationality VARCHAR, nba_team VARCHAR, pick VARCHAR)
SELECT team_classification FROM table_15088557_1 WHERE combination_classification = "Mederic Clain"
Name all the team clasification where the combination classification is mederic clain
CREATE TABLE table_15088557_1 (team_classification VARCHAR, combination_classification VARCHAR)
SELECT "Mens doubles" FROM table_17519 WHERE "Mens singles" = 'Flemming Delfs'
Who is themens doubles when the mens singles is flemming delfs?
CREATE TABLE table_17519 ( "Year" real, "Mens singles" text, "Womens singles" text, "Mens doubles" text, "Womens doubles" text, "Mixed doubles" text )
SELECT league_apps FROM table_name_61 WHERE fa_cup_apps = "1" AND flt_apps = "0 (1)"
How many leage apperances for the player with one FA cup, and a FLT Apps of 0 (1)?
CREATE TABLE table_name_61 (league_apps VARCHAR, fa_cup_apps VARCHAR, flt_apps VARCHAR)
SELECT COUNT(stage) FROM table_15088557_1 WHERE winner = "Jose Vicente Garcia Acosta"
In how many stages did Jose Vicente Garcia Acosta won?
CREATE TABLE table_15088557_1 (stage VARCHAR, winner VARCHAR)
SELECT "Outgoing manager" FROM table_29284 WHERE "Team" = 'Simurq PFC'
Who is the outgoing manager when the team is simurq pfc?
CREATE TABLE table_29284 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Replaced by" text, "Date of appointment" text )
SELECT date FROM table_name_53 WHERE away_team = "st kilda"
What day did St Kilda play as the away team?
CREATE TABLE table_name_53 (date VARCHAR, away_team VARCHAR)
SELECT MIN(stage) FROM table_15088557_1 WHERE winner = "Sergei Smetanine"
What is the minimum stage where Sergei Smetanine won?
CREATE TABLE table_15088557_1 (stage INTEGER, winner VARCHAR)
SELECT COUNT(*) FROM table_204_49 WHERE "commenced" = 2013
what are the number of times 2013 appears under the commenced column ?
CREATE TABLE table_204_49 ( id number, "city" text, "country" text, "iata" text, "icao" text, "airport" text, "commenced" number, "ended" text )
SELECT 2007 FROM table_name_12 WHERE 2011 = "a" AND 2009 = "q2"
What's the value for 2007 when 2011 is a and 2009 is q2?
CREATE TABLE table_name_12 (Id VARCHAR)
SELECT MIN(stage) FROM table_15088557_1 WHERE mountains_classification = "Aitor Osa" AND winner = "Aitor González"
what is the minimum stage where mountains classification is aitor osa and aitor gonzález won?
CREATE TABLE table_15088557_1 (stage INTEGER, mountains_classification VARCHAR, winner VARCHAR)
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN student_record ON student_record.course_id = course.course_id INNER JOIN area ON student_record.course_id = area.course_id WHERE area.area LIKE '%computing infrastructure%' AND student_record.student_id = 1
Are any of the courses I 've taken computing infrastructure courses ?
CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, internship varch...
SELECT MAX(league_goals) FROM table_name_67 WHERE total_goals < 1 AND fa_cup_goals > 0
Tell me the highest league goals with total goals less than 1 and FA cups more than 0
CREATE TABLE table_name_67 (league_goals INTEGER, total_goals VARCHAR, fa_cup_goals VARCHAR)
SELECT COUNT(number_of_seasons_in_top_division) FROM table_1510519_1 WHERE position_in_2012_13 = "005 5th"
How many seasons in the top division for the team that finished 005 5th in 2012-2013
CREATE TABLE table_1510519_1 (number_of_seasons_in_top_division VARCHAR, position_in_2012_13 VARCHAR)
SELECT treatment.treatmenttime FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-149778')) AND DATETIME(treatment.treatmenttime) >= DATETIME(C...
when patient 006-149778 since 6 years ago last received a procedure?
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugsto...
SELECT SUM(fa_cup_goals) FROM table_name_59 WHERE name = "david mirfin" AND total_goals < 1
I want to know the sum of fa cup goals for david mirfin and total goals less than 1
CREATE TABLE table_name_59 (fa_cup_goals INTEGER, name VARCHAR, total_goals VARCHAR)
SELECT COUNT(country) FROM table_1515346_2 WHERE honoree_s_ = "Roberto De Vicenzo"
How many countries does honoree Roberto de Vicenzo represent?
CREATE TABLE table_1515346_2 (country VARCHAR, honoree_s_ VARCHAR)
SELECT "Event" FROM table_71054 WHERE "City" = 'copenhagen'
What was the Event in the city of copenhagen?
CREATE TABLE table_71054 ( "Date" text, "City" text, "Event" text, "Winner" text, "Prize" text )
SELECT league_apps FROM table_name_35 WHERE league_goals < 2 AND position = "df" AND fa_cup_apps = "5"
Tell me the league apps with league goals less than 2 and position of df and FA cup apps of 5
CREATE TABLE table_name_35 (league_apps VARCHAR, fa_cup_apps VARCHAR, league_goals VARCHAR, position VARCHAR)
SELECT country FROM table_1515346_2 WHERE player = "Keith Fergus"
For which country does Keith Fergus play?
CREATE TABLE table_1515346_2 (country VARCHAR, player VARCHAR)
SELECT T1.product_name, SUM(SUM(T2.order_quantity)) FROM Products AS T1 JOIN Order_Items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name
Show the product name and total order quantity for each product. Visualize by pie chart.
CREATE TABLE Customer_Address_History ( customer_id INTEGER, address_id INTEGER, date_from DATETIME, date_to DATETIME ) CREATE TABLE Addresses ( address_id INTEGER, line_1_number_building VARCHAR(80), city VARCHAR(50), zip_postcode VARCHAR(20), state_province_county VARCHAR(50), ...
SELECT video FROM table_name_75 WHERE channel = 14.2
What is the video ratio on channel 14.2?
CREATE TABLE table_name_75 (video VARCHAR, channel VARCHAR)
SELECT player FROM table_1515346_2 WHERE country = "Australia" AND honoree_s_ = "Byron Nelson"
Who won the tournament for Australia in the year when Byron Nelson was Honoree?
CREATE TABLE table_1515346_2 (player VARCHAR, country VARCHAR, honoree_s_ VARCHAR)
SELECT COUNT(*) FROM table_203_231 WHERE "place" = 2
what were the number of times second place was earned ?
CREATE TABLE table_203_231 ( id number, "season" text, "tier" number, "division" text, "place" text )
SELECT network FROM table_name_80 WHERE aspect = "4:3" AND psip_short_name = "qvc"
What network has an aspect of 4:3 and a PSIP Short Name of qvc?
CREATE TABLE table_name_80 (network VARCHAR, aspect VARCHAR, psip_short_name VARCHAR)
SELECT margin_of_victory FROM table_1515346_2 WHERE honoree_s_ = "Tommy Armour"
What was the margin of victory in the year when the honoree was Tommy Armour?
CREATE TABLE table_1515346_2 (margin_of_victory VARCHAR, honoree_s_ VARCHAR)
SELECT "2009" FROM table_68542 WHERE "Total" = '1' AND "2004" = '7th'
Which 2009 year has a total of 1, and 2004 year of 7th?
CREATE TABLE table_68542 ( "2001" text, "2004" text, "2009" text, "2013" text, "Total" real )
SELECT psip_short_name FROM table_name_58 WHERE network = "ion life"
What is ion life network's PSIP Short Name?
CREATE TABLE table_name_58 (psip_short_name VARCHAR, network VARCHAR)
SELECT MAX(year) FROM table_1514559_1 WHERE championship = "US Open"
What year was the most recent US Open championship?
CREATE TABLE table_1514559_1 (year INTEGER, championship VARCHAR)
SELECT "Laps" FROM table_67520 WHERE "Time/Retired" = '+1:00.003'
How many laps were there when the Time/Retired was +1:00.003?
CREATE TABLE table_67520 ( "Driver" text, "Constructor" text, "Laps" text, "Time/Retired" text, "Grid" text )
SELECT SUM(channel) FROM table_name_65 WHERE network = "qubo"
What is the sum of channels for qubo network?
CREATE TABLE table_name_65 (channel INTEGER, network VARCHAR)
SELECT COUNT(nominee) FROM table_15162479_8 WHERE net_vote = "15.17%"
How many nominees had a net voice of 15.17%
CREATE TABLE table_15162479_8 (nominee VARCHAR, net_vote VARCHAR)
SELECT "Japanese Title" FROM table_13778 WHERE "Average Ratings" = '9.2%' AND "TV Station" = 'nhk'
What Japanese title had average ratings of 9.2% on the NHK station?
CREATE TABLE table_13778 ( "Japanese Title" text, "Romaji Title" text, "TV Station" text, "Episodes" text, "Average Ratings" text )
SELECT deaths FROM table_name_34 WHERE name = "eseta"
How many deaths did eseta cause?
CREATE TABLE table_name_34 (deaths VARCHAR, name VARCHAR)
SELECT nominee FROM table_15162479_8 WHERE net_vote = "34.46%"
What nominees had a net vote of 34.46%?
CREATE TABLE table_15162479_8 (nominee VARCHAR, net_vote VARCHAR)
SELECT HIRE_DATE, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY HIRE_DATE
For those employees who do not work in departments with managers that have ids between 100 and 200, show me the trend about manager_id over hire_date with a line chart, I want to sort from low to high by the x-axis.
CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25...
SELECT date FROM table_name_65 WHERE away_team = "carlton"
What was the date when the away team was Carlton?
CREATE TABLE table_name_65 (date VARCHAR, away_team VARCHAR)
SELECT COUNT(nominee) FROM table_15162479_8 WHERE vote_to_evict = "3.92%"
How many nominee's had a vote to evict percentage of 3.92%
CREATE TABLE table_15162479_8 (nominee VARCHAR, vote_to_evict VARCHAR)
SELECT "Institution" FROM table_23138 WHERE "Enrollment" = '10000'
Name the college that has 10000 enrolled
CREATE TABLE table_23138 ( "Institution" text, "Nickname" text, "Location" text, "Founded" real, "Type" text, "Enrollment" real, "Joined" real )
SELECT date FROM table_name_44 WHERE home_team = "hawthorn"
When the home team was hawthorn, what was the date?
CREATE TABLE table_name_44 (date VARCHAR, home_team VARCHAR)
SELECT COUNT(eviction_result) FROM table_15162479_8 WHERE eviction_no = 12 AND vote_to_save = "2.76%"
How many eviction results occurred with a eviction no. 12 and a vote to save of 2.76%?
CREATE TABLE table_15162479_8 (eviction_result VARCHAR, eviction_no VARCHAR, vote_to_save VARCHAR)
SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 8016 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1)) AND cha...
what difference in weight did patient 8016 have second measured on the last hospital visit compared to the value first measured on the last hospital visit?
CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE icustays ( row_id number, s...
SELECT away_team AS score FROM table_name_91 WHERE away_team = "geelong"
What did Geelong score as the away team?
CREATE TABLE table_name_91 (away_team VARCHAR)
SELECT result FROM table_15162503_1 WHERE viewers_selection = "Ejay"
What was the final result when the viewers selected ejay?
CREATE TABLE table_15162503_1 (result VARCHAR, viewers_selection VARCHAR)
SELECT team__number1 FROM table_21434618_1 WHERE team__number2 = "Chalkida"
which team #1 played again chalkida
CREATE TABLE table_21434618_1 ( team__number1 VARCHAR, team__number2 VARCHAR )
SELECT date FROM table_name_85 WHERE home_team = "footscray"
What date did the home team of footscray play?
CREATE TABLE table_name_85 (date VARCHAR, home_team VARCHAR)
SELECT description FROM table_15162503_1 WHERE viewers_selection = "Nan"
What was the description when the viewers selected Nan?
CREATE TABLE table_15162503_1 (description VARCHAR, viewers_selection VARCHAR)
SELECT class AS pos FROM table_name_53 WHERE year > 2002
For a year that is later than 2002 what is the class position?
CREATE TABLE table_name_53 ( class VARCHAR, year INTEGER )
SELECT club_team FROM table_name_72 WHERE nationality = "canada" AND overall = 188
Name the club team for overall of 188 for canada
CREATE TABLE table_name_72 (club_team VARCHAR, nationality VARCHAR, overall VARCHAR)
SELECT segment_c FROM table_15187735_11 WHERE series_ep = "11-02"
What is the name of series episode 11-02's segment c?
CREATE TABLE table_15187735_11 (segment_c VARCHAR, series_ep VARCHAR)
SELECT T2.Name, COUNT(T2.Name) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY COUNT(T2.Name)
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and the amount of name , and group by attribute name, rank by the y-axis from low to high.
CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER )
SELECT nationality FROM table_name_66 WHERE overall = 74
Name the nationality of the player with an overall of 74
CREATE TABLE table_name_66 (nationality VARCHAR, overall VARCHAR)
SELECT segment_d FROM table_15187735_11 WHERE series_ep = "11-05"
What is the title of series episode 11-05's segment d?
CREATE TABLE table_15187735_11 (segment_d VARCHAR, series_ep VARCHAR)
SELECT MIN("Podiums") FROM table_29379 WHERE "Season" = '2009'
Name the least podiums for 2009
CREATE TABLE table_29379 ( "Season" real, "Series" text, "Team" text, "Starts" real, "Wins" real, "Podiums" real, "Poles" real, "Fastest Laps" real, "Points" text, "Place" text )
SELECT MAX(aug_2013) FROM table_name_27 WHERE nov_2011 < 968 AND jul_2012 = 31 AND jun_2011 > 30
What is the highest Aug 2013 with a Nov 2011 smaller than 968, and a Jul 2012 with 31, and a Jun 2011 larger than 30?
CREATE TABLE table_name_27 (aug_2013 INTEGER, jun_2011 VARCHAR, nov_2011 VARCHAR, jul_2012 VARCHAR)
SELECT segment_b FROM table_15187735_11 WHERE series_ep = "11-04"
In seris episode 11-04, what is the B segment titled?
CREATE TABLE table_15187735_11 (segment_b VARCHAR, series_ep VARCHAR)
SELECT SUM("Lane") FROM table_48947 WHERE "Mark" = '47.02' AND "Heat" > '5'
What is the total Lane with a Mark of 47.02, and a Heat higher than 5?
CREATE TABLE table_48947 ( "Heat" real, "Lane" real, "Name" text, "Country" text, "Mark" text )
SELECT AVG(apr_2013) FROM table_name_76 WHERE jun_2011 < 14
What is the average Apr 2013 with a Jun 2011 less than 14?
CREATE TABLE table_name_76 (apr_2013 INTEGER, jun_2011 INTEGER)
SELECT segment_d FROM table_15187735_11 WHERE segment_a = "Microphones"
In the episode where segment a is microphones, what is segment d?
CREATE TABLE table_15187735_11 (segment_d VARCHAR, segment_a VARCHAR)
SELECT AVG(number) FROM table_name_54 WHERE pieces < 511 AND name = "chauchilla cemetery battle"
What is the number for Chauchilla Cemetery Battle with less than 511 pieces?
CREATE TABLE table_name_54 ( number INTEGER, pieces VARCHAR, name VARCHAR )
SELECT AVG(feb_2013) FROM table_name_31 WHERE feb_2010 = "37" AND nov_2012 < 32
What is the average Feb 2013 with a Feb 2010 with 37, and a Nov 2012 less than 32?
CREATE TABLE table_name_31 (feb_2013 INTEGER, feb_2010 VARCHAR, nov_2012 VARCHAR)
SELECT segment_b FROM table_15187735_12 WHERE series_ep = "12-08"
What is Segment B for series episode 12-08?
CREATE TABLE table_15187735_12 (segment_b VARCHAR, series_ep VARCHAR)
SELECT q.Id AS "post_link", q.Score, u.Id AS "user_link", u.Reputation FROM Posts AS q INNER JOIN Users AS u ON q.OwnerUserId = u.Id WHERE q.PostTypeId = 1 AND q.AcceptedAnswerId IS NULL AND q.ClosedDate IS NULL AND (SELECT COUNT(*) FROM PostHistory AS h WHERE h.PostId = q.Id AND h.PostHistoryTypeId = 14) > (SELECT COU...
Unlocked Questions From High Reputation Users Without Accepted Answers.
CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE Rev...
SELECT COUNT(nov_2012) FROM table_name_19 WHERE jun_2013 > 542 AND aug_2011 > 935
What is the total number with Nov 2012 with a Jun 2013 larger than 542, and a Aug 2011 more than 935?
CREATE TABLE table_name_19 (nov_2012 VARCHAR, jun_2013 VARCHAR, aug_2011 VARCHAR)
SELECT series_ep FROM table_15187735_12 WHERE segment_b = "Popcorn"
What is the series episode where Segment B is popcorn ?
CREATE TABLE table_15187735_12 (series_ep VARCHAR, segment_b VARCHAR)
SELECT "Tie no" FROM table_47603 WHERE "Away team" = 'barnsley'
What is the Tie Number when Barnsley was the away team?
CREATE TABLE table_47603 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text )
SELECT COUNT(grid) FROM table_name_71 WHERE time_retired = "+1:03.741" AND laps > 44
What's the total grid for a Time/Retired of +1:03.741, and Laps larger than 44?
CREATE TABLE table_name_71 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR)
SELECT netflix FROM table_15187735_12 WHERE segment_c = "Car Washes"
What is the Netflix where Segment C is car washes?
CREATE TABLE table_15187735_12 (netflix VARCHAR, segment_c VARCHAR)
SELECT "Pre-conversion" FROM table_34838 WHERE "Owner" = 'v/line passenger' AND "Re-entered service (P)" = '23 november 1984'
Which of V/Line Passenger's pre-conversions re-entered service on 23 November 1984?
CREATE TABLE table_34838 ( "Locomotive" text, "Pre-conversion" text, "Entered service (T)" text, "Re-entered service (P)" text, "Owner" text )
SELECT home_team AS score FROM table_name_89 WHERE venue = "brunswick street oval"
What did the home team at Brunswick Street Oval score?
CREATE TABLE table_name_89 (home_team VARCHAR, venue VARCHAR)
SELECT segment_b FROM table_15187735_12 WHERE series_ep = "12-02"
What is Segment B for series episode 12-02?
CREATE TABLE table_15187735_12 (segment_b VARCHAR, series_ep VARCHAR)
SELECT SUM("Total") FROM table_58732 WHERE "First" = 'november 1966'
What was the total when the first was November 1966?
CREATE TABLE table_58732 ( "Name" text, "Total" real, "First" text, "Last" text, "Highest rank" text )
SELECT high_rebounds FROM table_name_35 WHERE high_assists = "a. johnson (6)"
Who had the highest rebounds of the game with A. Johnson (6) as the highest assist?
CREATE TABLE table_name_35 (high_rebounds VARCHAR, high_assists VARCHAR)
SELECT segment_a FROM table_15187735_12 WHERE segment_b = "Kevlar s Canoe"
What is Segment A where Segment B is Kevlar S Canoe?
CREATE TABLE table_15187735_12 (segment_a VARCHAR, segment_b VARCHAR)