answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT directed_by FROM table_16471432_4 WHERE series__number = 50
Who was the director for the episode in season #50?
CREATE TABLE table_16471432_4 (directed_by VARCHAR, series__number VARCHAR)
SELECT MIN("Election") FROM table_44642 WHERE "Outcome of election" = 'minority in parliament' AND "Seats" = '2'
What is the earliest election with 2 seats and the outcome of the election of minority in parliament?
CREATE TABLE table_44642 ( "Election" real, "Number of PNC votes" text, "Share of votes" text, "Seats" text, "Outcome of election" text )
SELECT SUM(crowd) FROM table_name_34 WHERE venue = "victoria park"
In the game at Victoria Park, what was the number of people in the crowd?
CREATE TABLE table_name_34 (crowd INTEGER, venue VARCHAR)
SELECT COUNT(directed_by) FROM table_16471432_4 WHERE series__number = 62
How many directors were there in total for the episode with series #62?
CREATE TABLE table_16471432_4 (directed_by VARCHAR, series__number VARCHAR)
SELECT CASE WHEN PostTypeId = 1 THEN 'Questions' ELSE 'Answers' END, MAX(CAST(Score AS FLOAT) / DATEDIFF(DAY, CreationDate, GETDATE())) AS Score FROM Posts WHERE DATEDIFF(DAY, CreationDate, GETDATE()) > 0 AND PostTypeId IN (1, 2) GROUP BY PostTypeId
Maximum score per day per post type.
CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE Tags ( Id number, TagName text, ...
SELECT tournament FROM table_name_84 WHERE year = 1974 AND venue = "gothenburg , sweden"
What was the tournament that happened in 1974 in gothenburg , sweden?
CREATE TABLE table_name_84 (tournament VARCHAR, year VARCHAR, venue VARCHAR)
SELECT COUNT(nationality) FROM table_16494599_10 WHERE school_club_team = "Duke"
What are the nationalities of players who attended duke?
CREATE TABLE table_16494599_10 (nationality VARCHAR, school_club_team VARCHAR)
SELECT AVG(tonnage) FROM table_name_81 WHERE name_of_ship = "proletarij"
What is the average tonnage of the ship named proletarij?
CREATE TABLE table_name_81 ( tonnage INTEGER, name_of_ship VARCHAR )
SELECT division FROM table_name_26 WHERE wins = "76"
Which MLB division has a win record of 76?
CREATE TABLE table_name_26 (division VARCHAR, wins VARCHAR)
SELECT COUNT(nationality) FROM table_16494599_10 WHERE player = "Casey Jacobsen"
How many nationalities does athlete Casey Jacobsen have?
CREATE TABLE table_16494599_10 (nationality VARCHAR, player VARCHAR)
SELECT "Transfer fee" FROM table_67298 WHERE "Transfer window" = 'winter' AND "Moving to" = 'northwich victoria'
What is the Transfer fee, when the Transfer window is 'winter', and when the item 'Moving to' is Northwich Victoria?
CREATE TABLE table_67298 ( "Name" text, "Country" text, "Status" text, "Moving to" text, "Transfer window" text, "Transfer fee" text )
SELECT finish FROM table_name_63 WHERE team_season = "1980"
What was the final rank of the Brewers in 1980?
CREATE TABLE table_name_63 (finish VARCHAR, team_season VARCHAR)
SELECT player FROM table_16494599_10 WHERE school_club_team = "Stanford"
Who are the players that have attended Stanford?
CREATE TABLE table_16494599_10 (player VARCHAR, school_club_team VARCHAR)
SELECT written_by FROM table_12419515_5 WHERE series__number = 67
Name the people who wrote number 67
CREATE TABLE table_12419515_5 ( written_by VARCHAR, series__number VARCHAR )
SELECT finish FROM table_name_79 WHERE win__percentage = ".585"
What was the final rank of the Brewers when they achieved a win percentage of .585?
CREATE TABLE table_name_79 (finish VARCHAR, win__percentage VARCHAR)
SELECT COUNT(player) FROM table_16494599_10 WHERE position = "Guard"
How many athletes play the position of guard?
CREATE TABLE table_16494599_10 (player VARCHAR, position VARCHAR)
SELECT COUNT(*) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 82235)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'or urine' AND d_it...
how many time did patient 82235 produce a or urine output until 11/2103?
CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_labi...
SELECT division FROM table_name_23 WHERE team_season = "1987"
Which division were the Brewers a part of in the 1987 season?
CREATE TABLE table_name_23 (division VARCHAR, team_season VARCHAR)
SELECT years_for_grizzlies FROM table_16494599_10 WHERE school_club_team = "Minnesota"
During what years did athletes who attended school in Minnesota play for the Grizzlies?
CREATE TABLE table_16494599_10 (years_for_grizzlies VARCHAR, school_club_team VARCHAR)
SELECT "Location" FROM table_28357 WHERE "Road race" = 'Istanbul Marathon'
Where was the istanbul marathon?
CREATE TABLE table_28357 ( "Road race" text, "Distance" text, "Location" text, "Country" text, "Month held" text )
SELECT division FROM table_name_98 WHERE finish = "5th" AND losses = "87"
Which division of the Brewers had a 5th place ranking and a loss record of 87?
CREATE TABLE table_name_98 (division VARCHAR, finish VARCHAR, losses VARCHAR)
SELECT COUNT(player) FROM table_16494599_2 WHERE school_club_team = "DePaul"
How many players went to depaul?
CREATE TABLE table_16494599_2 (player VARCHAR, school_club_team VARCHAR)
SELECT MAX(top_10s) FROM table_name_30 WHERE wins < 0
What is the best top 10 when there are fewer than 0 wins?
CREATE TABLE table_name_30 ( top_10s INTEGER, wins INTEGER )
SELECT game_site FROM table_name_52 WHERE opponent = "san diego chargers"
where was the game site when the opponent was san diego chargers?
CREATE TABLE table_name_52 (game_site VARCHAR, opponent VARCHAR)
SELECT school_club_team FROM table_16494599_3 WHERE years_for_grizzlies = "2011"
What school did the player who was with the grizzles in 2011 attend?
CREATE TABLE table_16494599_3 (school_club_team VARCHAR, years_for_grizzlies VARCHAR)
SELECT MIN(age) FROM table_1859855_2 WHERE hometown = "Austin, Texas"
When austin, texas is the hometown what is the lowest age?
CREATE TABLE table_1859855_2 ( age INTEGER, hometown VARCHAR )
SELECT opponent FROM table_name_44 WHERE week = "9"
who was the opponent when the week was 9?
CREATE TABLE table_name_44 (opponent VARCHAR, week VARCHAR)
SELECT player FROM table_16494599_3 WHERE school_club_team = "Missouri"
What players attended missouri?
CREATE TABLE table_16494599_3 (player VARCHAR, school_club_team VARCHAR)
SELECT content FROM table_15887683_1 WHERE television_service = "Rai 1"
What is the content of the rai 1 television service?
CREATE TABLE table_15887683_1 ( content VARCHAR, television_service VARCHAR )
SELECT venue FROM table_name_29 WHERE away_team = "geelong"
What venue features geelong as the away side?
CREATE TABLE table_name_29 (venue VARCHAR, away_team VARCHAR)
SELECT position FROM table_16494599_4 WHERE school_club_team = "Seton Hall"
What position(s) does the player from seton hall play?
CREATE TABLE table_16494599_4 (position VARCHAR, school_club_team VARCHAR)
SELECT COUNT(gold) FROM table_name_79 WHERE bronze = 3 AND rank > 7 AND total < 5
How many golds for teams ranking below 7 with 3 bronze and less than 5 total medals?
CREATE TABLE table_name_79 ( gold VARCHAR, total VARCHAR, bronze VARCHAR, rank VARCHAR )
SELECT venue FROM table_name_65 WHERE home_team = "essendon"
What venue features essendon at home?
CREATE TABLE table_name_65 (venue VARCHAR, home_team VARCHAR)
SELECT MIN(no) FROM table_16494599_4 WHERE years_for_grizzlies = "1999"
What number does the player who was with the grizzles in 1999 wear?
CREATE TABLE table_16494599_4 (no INTEGER, years_for_grizzlies VARCHAR)
SELECT COUNT(*) FROM table_203_481 WHERE "position" = 's'
how many had position s ?
CREATE TABLE table_203_481 ( id number, "n\u00b0" number, "name" text, "position" text, "date of birth" text, "nationality" text )
SELECT nominee FROM table_name_86 WHERE category = "best director"
Who is the nominee for best director?
CREATE TABLE table_name_86 (nominee VARCHAR, category VARCHAR)
SELECT player FROM table_16494599_4 WHERE position = "Guard"
What players play guard?
CREATE TABLE table_16494599_4 (player VARCHAR, position VARCHAR)
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%Iran%' ORDER BY Reputation DESC LIMIT 1000
Top 100 Reputation in Iran.
CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number,...
SELECT ceremony FROM table_name_45 WHERE outcome = "nominated" AND nominee = "leela chitnis"
What ceremony was leela chitnis nominated at?
CREATE TABLE table_name_45 (ceremony VARCHAR, outcome VARCHAR, nominee VARCHAR)
SELECT position FROM table_16494599_4 WHERE school_club_team = "Bowling Green"
What position(s) do players from bowling green play?
CREATE TABLE table_16494599_4 (position VARCHAR, school_club_team VARCHAR)
SELECT name FROM table_name_8 WHERE total = "8 (24)"
Which player has a total of 8 (24)?
CREATE TABLE table_name_8 ( name VARCHAR, total VARCHAR )
SELECT MAX(pick__number) FROM table_name_42 WHERE cfl_team = "winnipeg blue bombers"
what is the highest pick number of the CFL team, the winnipeg blue bombers?
CREATE TABLE table_name_42 (pick__number INTEGER, cfl_team VARCHAR)
SELECT MAX(losses) FROM table_16512618_1 WHERE manager = "Leslie Mann"
Name the most losses for leslie mann
CREATE TABLE table_16512618_1 (losses INTEGER, manager VARCHAR)
SELECT area__km_2__ FROM table_name_1 WHERE telephone__052_ = "3862279"
Which area has a telephone of (052) of 3862279?
CREATE TABLE table_name_1 ( area__km_2__ VARCHAR, telephone__052_ VARCHAR )
SELECT college FROM table_name_86 WHERE pick__number = 41
Which college has 41 picks?
CREATE TABLE table_name_86 (college VARCHAR, pick__number VARCHAR)
SELECT vacator FROM table_1651764_3 WHERE district = "New Jersey 2nd"
who is the vacator whre the district is new jersey 2nd?
CREATE TABLE table_1651764_3 (vacator VARCHAR, district VARCHAR)
SELECT "Score" FROM table_53791 WHERE "Record" = '8–11–1'
What was the score of the Kings game when they had a record of 8 11 1?
CREATE TABLE table_53791 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text )
SELECT player FROM table_name_96 WHERE college = "manitoba"
Which player plays for the college of manitoba?
CREATE TABLE table_name_96 (player VARCHAR, college VARCHAR)
SELECT date_successor_seated FROM table_1652224_5 WHERE reason_for_change = "Died August 17, 1954"
what is the date the successor seated because the person died august 17, 1954?
CREATE TABLE table_1652224_5 (date_successor_seated VARCHAR, reason_for_change VARCHAR)
SELECT job, MIN(age) FROM Person GROUP BY job ORDER BY job DESC
Show minimal age from each job, I want to show by the bars in descending.
CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER ) CREATE TABLE Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT )
SELECT unami_delaware FROM table_name_18 WHERE thomas__1698_ = "nacha"
What is the Unami Delaware value for a Thomas value of nacha?
CREATE TABLE table_name_18 (unami_delaware VARCHAR, thomas__1698_ VARCHAR)
SELECT successor FROM table_1652224_5 WHERE district = "Ohio 15th"
who was the successor for district ohio 15th?
CREATE TABLE table_1652224_5 (successor VARCHAR, district VARCHAR)
SELECT launched FROM table_name_14 WHERE laid_down = "february 1819"
What was launched and laid down in February 1819?
CREATE TABLE table_name_14 ( launched VARCHAR, laid_down VARCHAR )
SELECT campanius__ca_1645_ FROM table_name_43 WHERE unami_delaware = "palé·naxk"
What is the Campanius term for an Unami Delaware term of palé·naxk?
CREATE TABLE table_name_43 (campanius__ca_1645_ VARCHAR, unami_delaware VARCHAR)
SELECT COUNT(reason_for_change) FROM table_1652224_5 WHERE district = "Michigan 3rd"
what is the total number for reason for change is district michigan 3rd?
CREATE TABLE table_1652224_5 (reason_for_change VARCHAR, district VARCHAR)
SELECT "Giant Slalom" FROM table_40854 WHERE "Super G" = '37'
What is the giant slalom with a 37 super g?
CREATE TABLE table_40854 ( "Season" real, "Overall" text, "Slalom" text, "Giant Slalom" text, "Super G" text, "Downhill" text, "Combined" text )
SELECT de_laet__1633_ FROM table_name_12 WHERE munsee_delaware = "ní·ša"
What is the De Laet term for a Munsee Delaware term of ní·ša?
CREATE TABLE table_name_12 (de_laet__1633_ VARCHAR, munsee_delaware VARCHAR)
SELECT date_of_death FROM table_16527640_3 WHERE player = "Archie Roberts"
What day did ARchie Roberts die?
CREATE TABLE table_16527640_3 (date_of_death VARCHAR, player VARCHAR)
SELECT "Style" FROM table_30665 WHERE "Total" = '27'
Name the style for 27
CREATE TABLE table_30665 ( "Couple" text, "Style" text, "Music" text, "Trine Dehli Cleve" real, "Tor Fl\u00f8ysvik" real, "Karianne Gulliksen" real, "Christer Tornell" real, "Total" real )
SELECT player FROM table_name_75 WHERE round < 2
What is the name of the player picked before round 2?
CREATE TABLE table_name_75 (player VARCHAR, round INTEGER)
SELECT location FROM table_16527640_3 WHERE vfl_games = 9
What location had a VFL Game number of 9?
CREATE TABLE table_16527640_3 (location VARCHAR, vfl_games VARCHAR)
SELECT name FROM table_name_67 WHERE games > 1 AND order = 907
Who had an order of 907 and more than 1 game?
CREATE TABLE table_name_67 ( name VARCHAR, games VARCHAR, order VARCHAR )
SELECT player FROM table_name_85 WHERE overall < 209 AND club_team = "victoriaville tigres (qmjhl)" AND round = 1
What is the name of the player with an overall less than 209 for the Victoriaville tigres (qmjhl), and a Round of 1?
CREATE TABLE table_name_85 (player VARCHAR, round VARCHAR, overall VARCHAR, club_team VARCHAR)
SELECT vfl_games FROM table_16527640_3 WHERE location = "off Goodenough Island Milne Bay"
How many VFL games were located off Goodenough Island Milne Bay?
CREATE TABLE table_16527640_3 (vfl_games VARCHAR, location VARCHAR)
SELECT COUNT("name") FROM table_203_375
what is the total number of pylons listed ?
CREATE TABLE table_203_375 ( id number, "name" text, "year built" text, "country" text, "town" text, "height" text, "remarks" text )
SELECT player FROM table_name_14 WHERE overall > 227
What is the name of the player with an Overall larger than 227?
CREATE TABLE table_name_14 (player VARCHAR, overall INTEGER)
SELECT 3 AS rd_stage FROM table_16537783_2 WHERE parameter = "Thrust"
Name the 3rd stage for parameter of thrust
CREATE TABLE table_16537783_2 (parameter VARCHAR)
WITH USER_BY_TAG AS (SELECT ROW_NUMBER() OVER (ORDER BY COUNT(*) DESC) AS Rank, u.Id AS "user_link", COUNT(*) AS UpVotes FROM Tags AS t INNER JOIN PostTags AS pt ON pt.TagId = t.Id INNER JOIN Posts AS p ON p.ParentId = pt.PostId INNER JOIN Votes AS v ON v.PostId = p.Id AND VoteTypeId = 2 INNER JOIN Users AS u ON u.Id =...
Top uses from France in tag 'elixir' or 'phoenix-framework'.
CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAd...
SELECT MAX(overall) FROM table_name_40 WHERE round > 8 AND player = "pavol demitra"
What is the highest overall for a round larger than 8 for pavol demitra?
CREATE TABLE table_name_40 (overall INTEGER, round VARCHAR, player VARCHAR)
SELECT 1 AS st_stage FROM table_16537783_2 WHERE parameter = "Diameter"
Name the 1st stage for parameter being diameter
CREATE TABLE table_16537783_2 (parameter VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND procedures.long_title = "Temporary colostomy"
provide the number of patients whose admission location is transfer from hosp/extram and procedure long title is temporary colostomy?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) C...
SELECT description FROM table_name_61 WHERE livery = "ews"
What description does Livery of ews have?
CREATE TABLE table_name_61 (description VARCHAR, livery VARCHAR)
SELECT archbishop FROM table_1656555_1 WHERE ordained_bishop = "November 30, 1925"
Which archbishop was ordained as bishop November 30, 1925?
CREATE TABLE table_1656555_1 (archbishop VARCHAR, ordained_bishop VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Sarcoidosis" AND prescriptions.route = "NG"
count the number of patients whose diagnoses is sarcoidosis and drug route is ng.
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( ...
SELECT position FROM table_name_85 WHERE competition = "super league 1"
What Position has a Super League 1 Competition?
CREATE TABLE table_name_85 (position VARCHAR, competition VARCHAR)
SELECT died FROM table_1656555_1 WHERE ordained_bishop = "April 26, 1927"
What is the death date of the archbishop who was ordained as bishop April 26, 1927?
CREATE TABLE table_1656555_1 (died VARCHAR, ordained_bishop VARCHAR)
SELECT bedType, AVG(basePrice) FROM Rooms GROUP BY bedType
what is the average base price of different bed type? List bed type and average base price.
CREATE TABLE Reservations ( Code INTEGER, Room TEXT, CheckIn TEXT, CheckOut TEXT, Rate REAL, LastName TEXT, FirstName TEXT, Adults INTEGER, Kids INTEGER ) CREATE TABLE Rooms ( RoomId TEXT, roomName TEXT, beds INTEGER, bedType TEXT, maxOccupancy INTEGER, baseP...
SELECT competition FROM table_name_54 WHERE captain = "robbie paul" AND lost < 5 AND main_article = "bradford bulls 1997"
What Competition in Main Article of Bradford Bulls 1997 have Robbie Paul as Captain with less than 5 Lost?
CREATE TABLE table_name_54 (competition VARCHAR, main_article VARCHAR, captain VARCHAR, lost VARCHAR)
SELECT COUNT(Appointed) AS archbishop FROM table_1656555_1 WHERE ordained_priest = "December 20, 1959"
How many appointed archbishops were ordained as priests on December 20, 1959
CREATE TABLE table_1656555_1 (Appointed VARCHAR, ordained_priest VARCHAR)
SELECT school FROM table_name_37 WHERE location = "peru"
Which School has a Location of peru?
CREATE TABLE table_name_37 ( school VARCHAR, location VARCHAR )
SELECT captain FROM table_name_28 WHERE lost = 13
What Captain has Lost 13?
CREATE TABLE table_name_28 (captain VARCHAR, lost VARCHAR)
SELECT ordained_bishop FROM table_1656555_1 WHERE ordained_priest = "December 1838"
What date was the person ordained as a priest in December 1838 ordained as a bishop?
CREATE TABLE table_1656555_1 (ordained_bishop VARCHAR, ordained_priest VARCHAR)
SELECT "Ship Type" FROM table_62121 WHERE "Disposition of Ship" = 'prize' AND "Tonnage" < '151'
What is the Ship Type of the Prize Disposition of ship and a tonnage less than 151?
CREATE TABLE table_62121 ( "Date" text, "Ship Name" text, "Tonnage" real, "Ship Type" text, "Location" text, "Disposition of Ship" text )
SELECT SUM(drawn) FROM table_name_99 WHERE lost < 4 AND coach = "francis cummins"
How many Drawn did Coach Francis Cummins have with less than 4 Lost?
CREATE TABLE table_name_99 (drawn INTEGER, lost VARCHAR, coach VARCHAR)
SELECT ordained_priest FROM table_1656555_1 WHERE vacated_throne = "August 18, 1885"
When was the archbishop who vacated the throne on August 18, 1885 ordained as a priest?
CREATE TABLE table_1656555_1 (ordained_priest VARCHAR, vacated_throne VARCHAR)
SELECT clubname FROM club
What are the names of all clubs?
CREATE TABLE club ( clubname VARCHAR )
SELECT horse FROM table_name_10 WHERE faults = "did not start" AND total > 16.16
What horse did not start and had a total of over 16.16?
CREATE TABLE table_name_10 (horse VARCHAR, faults VARCHAR, total VARCHAR)
SELECT COUNT(player) FROM table_16570286_4 WHERE best_bowling = "4/125"
How many players Bowled 4/125?
CREATE TABLE table_16570286_4 (player VARCHAR, best_bowling VARCHAR)
SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY AVG(DEPARTMENT_ID) DESC
For those employees who did not have any job in the past, visualize a bar chart about the distribution of hire_date and the average of department_id bin hire_date by weekday, and sort by the the average of department id from high to low.
CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE T...
SELECT MIN(total) FROM table_name_4 WHERE rider = "christina liebherr"
What was the total for christina liebherr?
CREATE TABLE table_name_4 (total INTEGER, rider VARCHAR)
SELECT MAX(wickets) FROM table_16570286_4 WHERE average = "22.66"
What number of wickets were there when the average was 22.66?
CREATE TABLE table_16570286_4 (wickets INTEGER, average VARCHAR)
SELECT T1.order_date FROM customer_orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id JOIN products AS T3 ON T2.product_id = T3.product_id WHERE T3.product_price > 1000
Find the order dates of the orders with price above 1000.
CREATE TABLE ref_service_types ( service_type_code text, parent_service_type_code text, service_type_description text ) CREATE TABLE services ( service_id number, service_type_code text, workshop_group_id number, product_description text, product_name text, product_price number, ...
SELECT population FROM table_name_51 WHERE germans = "87.5%"
What is the population of the year featuring an 87.5% German population?
CREATE TABLE table_name_51 (population VARCHAR, germans VARCHAR)
SELECT wickets FROM table_16570286_4 WHERE average = "22.66"
How many wickets were there when average was 22.66?
CREATE TABLE table_16570286_4 (wickets VARCHAR, average VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.age < "70"
what is the number of patients under the age of 70 who were admitted in emergency?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) ...
SELECT height FROM table_name_48 WHERE hometown = "chicago, il"
How tall is the player from Chicago, IL?
CREATE TABLE table_name_48 (height VARCHAR, hometown VARCHAR)
SELECT best_bowling FROM table_16570286_4 WHERE average = "23.33"
What was the best bowling score when the average was 23.33?
CREATE TABLE table_16570286_4 (best_bowling VARCHAR, average VARCHAR)
SELECT bedType, AVG(basePrice) FROM Rooms GROUP BY bedType ORDER BY AVG(basePrice) DESC
For each bed type, find the average base price of different bed type Show bar chart, and show by the Y from high to low.
CREATE TABLE Reservations ( Code INTEGER, Room TEXT, CheckIn TEXT, CheckOut TEXT, Rate REAL, LastName TEXT, FirstName TEXT, Adults INTEGER, Kids INTEGER ) CREATE TABLE Rooms ( RoomId TEXT, roomName TEXT, beds INTEGER, bedType TEXT, maxOccupancy INTEGER, baseP...
SELECT college FROM table_name_26 WHERE player = "dennis scott"
What college does Dennis Scott attend?
CREATE TABLE table_name_26 (college VARCHAR, player VARCHAR)
SELECT MAX(matches) FROM table_16570286_4 WHERE wickets = 11
How many matches had 11 wickets?
CREATE TABLE table_16570286_4 (matches INTEGER, wickets VARCHAR)