answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT er FROM table_15700367_6 WHERE runs_conceded = 368 | What was the ER average for the player that conceded 368 runs? | CREATE TABLE table_15700367_6 (er VARCHAR, runs_conceded VARCHAR) |
SELECT first_name, last_name FROM Maintenance_Engineers WHERE NOT engineer_id IN (SELECT engineer_id FROM Engineer_Visits) | Which engineers have never visited to maintain the assets? List the engineer first name and last name. | CREATE TABLE Engineer_Visits (first_name VARCHAR, last_name VARCHAR, engineer_id VARCHAR); CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, engineer_id VARCHAR) |
SELECT AVG("Laps") FROM table_55351 WHERE "Driver" = 'peter gethin' AND "Grid" < '25' | When the driver peter gethin has a grid less than 25, what is the average number of laps? | CREATE TABLE table_55351 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) |
SELECT MIN(wickets) FROM table_15700367_6 WHERE name = "Farveez Maharoof" | What is the lowest number of wickets for farveez maharoof? | CREATE TABLE table_15700367_6 (wickets INTEGER, name VARCHAR) |
SELECT asset_id, asset_details, asset_make, asset_model FROM Assets | List the asset id, details, make and model for every asset. | CREATE TABLE Assets (asset_id VARCHAR, asset_details VARCHAR, asset_make VARCHAR, asset_model VARCHAR) |
SELECT SUM("Attendance") FROM table_35910 WHERE "Visitor" = 'cleveland' AND "Leading scorer" = 'larry hughes(33)' | How many people attended the game when Larry Hughes(33) was the leading scorer and cleveland was visiting? | CREATE TABLE table_35910 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
) |
SELECT airdate FROM table_15739098_2 WHERE story = "Hugh Leonard" | What is the airdate when the story is listed as hugh leonard? | CREATE TABLE table_15739098_2 (airdate VARCHAR, story VARCHAR) |
SELECT asset_acquired_date FROM Assets ORDER BY asset_acquired_date LIMIT 1 | When was the first asset acquired? | CREATE TABLE Assets (asset_acquired_date VARCHAR) |
SELECT "Original Team" FROM table_489 WHERE "Result" = '08 Fired in week 10 (2008-03-06)' | What is the original team of the celebrity who had the result 08 fired in week 10 (2008-03-06) | CREATE TABLE table_489 (
"Celebrity" text,
"Background" text,
"Original Team" text,
"Age" real,
"Hometown" text,
"Charity" text,
"Result" text,
"Raised" text
) |
SELECT kansas_state_vs FROM table_15740666_6 WHERE last_meeting = "11/26/1988" | who won the kansas state game on 11/26/1988 | CREATE TABLE table_15740666_6 (kansas_state_vs VARCHAR, last_meeting VARCHAR) |
SELECT T1.part_id, T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id = T3.part_fault_id GROUP BY T1.part_id ORDER BY COUNT(*) DESC LIMIT 1 | Which part fault requires the most number of skills to fix? List part id and name. | CREATE TABLE Part_Faults (part_id VARCHAR, part_fault_id VARCHAR); CREATE TABLE Skills_Required_To_Fix (part_fault_id VARCHAR); CREATE TABLE Parts (part_id VARCHAR, part_name VARCHAR) |
SELECT COUNT("subject") FROM table_204_265 | what is the total number of title ? | CREATE TABLE table_204_265 (
id number,
"no." number,
"title (latin)" text,
"title (english translation)" text,
"subject" text,
"date" text
) |
SELECT COUNT(games_played) FROM table_15740666_6 WHERE kansas_state_vs = "DePaul" | how many games has kansas state and depaul played against each other | CREATE TABLE table_15740666_6 (games_played VARCHAR, kansas_state_vs VARCHAR) |
SELECT T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name ORDER BY COUNT(*) LIMIT 1 | Which kind of part has the least number of faults? List the part name. | CREATE TABLE Parts (part_name VARCHAR, part_id VARCHAR); CREATE TABLE Part_Faults (part_id VARCHAR) |
SELECT "south" FROM table_204_1 WHERE id = (SELECT id FROM table_204_1 WHERE "south" = 'esc geretsried') + 1 | who won the south after esc geretsried did during the 2006-07 season ? | CREATE TABLE table_204_1 (
id number,
"season" text,
"north" text,
"south" text,
"east" text,
"west" text
) |
SELECT current_streak FROM table_15740666_6 WHERE last_meeting = "12/5/1987" | if they played last on 12/5/1987 what is their record | CREATE TABLE table_15740666_6 (current_streak VARCHAR, last_meeting VARCHAR) |
SELECT T1.engineer_id, T1.first_name, T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 ON T1.engineer_id = T2.engineer_id GROUP BY T1.engineer_id ORDER BY COUNT(*) LIMIT 1 | Among those engineers who have visited, which engineer makes the least number of visits? List the engineer id, first name and last name. | CREATE TABLE Engineer_Visits (engineer_id VARCHAR); CREATE TABLE Maintenance_Engineers (engineer_id VARCHAR, first_name VARCHAR, last_name VARCHAR) |
SELECT "Home Ground" FROM table_44900 WHERE "Founded" < '1946' AND "Coach" = 'nick pantsaras' | Where is the home ground for the club coached by nick pantsaras and founded before 1946? | CREATE TABLE table_44900 (
"Team" text,
"Coach" text,
"Home Ground" text,
"Location" text,
"Founded" real
) |
SELECT high_points FROM table_15780049_8 WHERE date = "March 7" | Name the high points for march 7 | CREATE TABLE table_15780049_8 (high_points VARCHAR, date VARCHAR) |
SELECT T1.staff_name, T3.first_name, T3.last_name FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id = T3.engineer_id | Which staff have contacted which engineers? List the staff name and the engineer first name and last name. | CREATE TABLE Engineer_Visits (contact_staff_id VARCHAR, engineer_id VARCHAR); CREATE TABLE Staff (staff_name VARCHAR, staff_id VARCHAR); CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, engineer_id VARCHAR) |
SELECT AVG(year) FROM table_name_82 WHERE tyres = "g" AND chassis = "minardi m187" | How many years were g Tyres and Minardi m187 used? | CREATE TABLE table_name_82 (
year INTEGER,
tyres VARCHAR,
chassis VARCHAR
) |
SELECT date FROM table_15780049_8 WHERE team = "Sacramento" | Name the date for sacramento | CREATE TABLE table_15780049_8 (date VARCHAR, team VARCHAR) |
SELECT T1.fault_log_entry_id, T1.fault_description, T1.fault_log_entry_datetime FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY COUNT(*) DESC LIMIT 1 | Which fault log included the most number of faulty parts? List the fault log id, description and record time. | CREATE TABLE Fault_Log (fault_log_entry_id VARCHAR, fault_description VARCHAR, fault_log_entry_datetime VARCHAR); CREATE TABLE Fault_Log_Parts (fault_log_entry_id VARCHAR) |
SELECT "Result" FROM table_78664 WHERE "Location" = 'riverfront stadium' AND "Opponent" = 'miami dolphins' | What was the result of the game against the Miami Dolphins held at the Riverfront Stadium? | CREATE TABLE table_78664 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Location" text
) |
SELECT high_rebounds FROM table_15780049_8 WHERE date = "March 17" | Name the high rebounds for march 17 | CREATE TABLE table_15780049_8 (high_rebounds VARCHAR, date VARCHAR) |
SELECT T1.skill_id, T1.skill_description FROM Skills AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.skill_id = T2.skill_id GROUP BY T1.skill_id ORDER BY COUNT(*) DESC LIMIT 1 | Which skill is used in fixing the most number of faults? List the skill id and description. | CREATE TABLE Skills (skill_id VARCHAR, skill_description VARCHAR); CREATE TABLE Skills_Required_To_Fix (skill_id VARCHAR) |
SELECT "Directed by" FROM table_20709 WHERE "Title" = 'Tjockare än vatten' | Who directed the totle 'tjockare n vatten'? | CREATE TABLE table_20709 (
"Number in series" real,
"Broadcast Order" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text,
"Production Code" real
) |
SELECT location_attendance FROM table_15780049_8 WHERE team = "Philadelphia" | Name the location attendance for philadelphia | CREATE TABLE table_15780049_8 (location_attendance VARCHAR, team VARCHAR) |
SELECT DISTINCT asset_model FROM Assets | What are all the distinct asset models? | CREATE TABLE Assets (asset_model VARCHAR) |
SELECT "Died" FROM table_44491 WHERE "Ordained Bishop" = 'july 25, 1902' | When did the archbishop that was ordained a bishop on July 25, 1902 die? | CREATE TABLE table_44491 (
"Archbishop" text,
"Born" text,
"Ordained Priest" text,
"Ordained Bishop" text,
"Appointed Archbishop" text,
"Vacated throne" text,
"Died" text
) |
SELECT high_assists FROM table_15780718_8 WHERE game = 59 | Who scored the most assists in game 59? | CREATE TABLE table_15780718_8 (high_assists VARCHAR, game VARCHAR) |
SELECT asset_make, asset_model, asset_details FROM Assets ORDER BY asset_disposed_date | List the all the assets make, model, details by the disposed date ascendingly. | CREATE TABLE Assets (asset_make VARCHAR, asset_model VARCHAR, asset_details VARCHAR, asset_disposed_date VARCHAR) |
SELECT COUNT("Rain") FROM table_17829 WHERE "Sunlight hours" = '1966' | How many rain figures are provided for sunlight hours in 1966? | CREATE TABLE table_17829 (
"City/Town" text,
"July av. T" text,
"Rain" text,
"Days with rain (year/summer)" text,
"Days with frost" real,
"Sunlight hours" real
) |
SELECT record FROM table_15780718_8 WHERE team = "Boston" | What was the record against Boston? | CREATE TABLE table_15780718_8 (record VARCHAR, team VARCHAR) |
SELECT part_id, chargeable_amount FROM Parts ORDER BY chargeable_amount LIMIT 1 | Which part has the least chargeable amount? List the part id and amount. | CREATE TABLE Parts (part_id VARCHAR, chargeable_amount VARCHAR) |
SELECT Country, COUNT(*) FROM member GROUP BY Country ORDER BY Country | Show the different countries and the number of members from each with a bar chart, rank by the bar in ascending. | CREATE TABLE round (
Round_ID int,
Member_ID int,
Decoration_Theme text,
Rank_in_Round int
)
CREATE TABLE member (
Member_ID int,
Name text,
Country text,
College_ID int
)
CREATE TABLE college (
College_ID int,
Name text,
Leader_Name text,
College_Location text
) |
SELECT COUNT(poll_winner) FROM table_15781170_2 WHERE original_air_date = "March 19, 2008" | Name the poll winner for march 19, 2008 | CREATE TABLE table_15781170_2 (poll_winner VARCHAR, original_air_date VARCHAR) |
SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id ORDER BY T2.contract_start_date LIMIT 1 | Which company started the earliest the maintenance contract? Show the company name. | CREATE TABLE Third_Party_Companies (company_name VARCHAR, company_id VARCHAR); CREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR, contract_start_date VARCHAR) |
SELECT Sex, SUM(Height) FROM people GROUP BY Sex | Bar chart of total number of height from each sex | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... |
SELECT _number FROM table_15781170_2 WHERE poll_winner = "YouTube" | Name the # for youtube | CREATE TABLE table_15781170_2 (_number VARCHAR, poll_winner VARCHAR) |
SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id JOIN Ref_Company_Types AS T3 ON T1.company_type_code = T3.company_type_code ORDER BY T2.contract_end_date DESC LIMIT 1 | What is the description of the type of the company who concluded its contracts most recently? | CREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR, contract_end_date VARCHAR); CREATE TABLE Third_Party_Companies (company_name VARCHAR, company_id VARCHAR, company_type_code VARCHAR); CREATE TABLE Ref_Company_Types (company_type_code VARCHAR) |
SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-52932')) AND medication.routeadmin = 'misc' AND STRFTIME('... | what was the first time until 05/2100 patient 002-52932 was prescribed a medication via a misc route? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
la... |
SELECT original_air_date FROM table_15781170_3 WHERE poll_winner = "Scientology" | What are the original air dates when scientology isthe poll winner? | CREATE TABLE table_15781170_3 (original_air_date VARCHAR, poll_winner VARCHAR) |
SELECT gender FROM staff GROUP BY gender ORDER BY COUNT(*) DESC LIMIT 1 | Which gender makes up the majority of the staff? | CREATE TABLE staff (gender VARCHAR) |
SELECT COUNT("Record") FROM table_802 WHERE "High assists" = 'Damon Stoudamire (13)' | how many times have there been helps by damon stoudamire (13) | CREATE TABLE table_802 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT root_of_all_evil FROM table_15781170_3 WHERE poll_winner = "Bloggers" | When bloggers was the poll winner, who was the root of all evil? | CREATE TABLE table_15781170_3 (root_of_all_evil VARCHAR, poll_winner VARCHAR) |
SELECT T1.staff_name, COUNT(*) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id GROUP BY T1.staff_name | How many engineers did each staff contact? List both the contact staff name and number of engineers contacted. | CREATE TABLE Engineer_Visits (contact_staff_id VARCHAR); CREATE TABLE Staff (staff_name VARCHAR, staff_id VARCHAR) |
SELECT payment_method_code, COUNT(*) FROM Invoices GROUP BY payment_method_code | Show all payment method codes and the number of orders for each code. Visualize by pie chart. | CREATE TABLE Products (
Product_ID VARCHAR(100),
Product_Name VARCHAR(255),
Product_Price DECIMAL(20,4),
Product_Description VARCHAR(255),
Other_Product_Service_Details VARCHAR(255)
)
CREATE TABLE Customer_Orders (
Order_ID INTEGER,
Customer_ID INTEGER,
Store_ID INTEGER,
Order_Date ... |
SELECT COUNT(_number) FROM table_15781170_3 WHERE poll_winner = "Drinking Games" | How many times did drinking games win the poll? | CREATE TABLE table_15781170_3 (_number VARCHAR, poll_winner VARCHAR) |
SELECT asset_model FROM Assets WHERE NOT asset_id IN (SELECT asset_id FROM Fault_Log) | Which assets did not incur any fault log? List the asset model. | CREATE TABLE Fault_Log (asset_model VARCHAR, asset_id VARCHAR); CREATE TABLE Assets (asset_model VARCHAR, asset_id VARCHAR) |
SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY SUM(EMPLOYEE_ID) | For all employees who have the letters D or S in their first name, return a bar chart about the distribution of job_id and the sum of employee_id , and group by attribute job_id, and sort y axis in ascending order. | 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 broadcast_date FROM table_1579922_1 WHERE run_time = "24:30" | What date was an episode with a run time of 24:30 broadcasted? | CREATE TABLE table_1579922_1 (broadcast_date VARCHAR, run_time VARCHAR) |
SELECT local_authority, services FROM station | list the local authorities and services provided by all stations. | CREATE TABLE station (local_authority VARCHAR, services VARCHAR) |
SELECT date FROM table_name_13 WHERE director = "pen-ek ratanaruang" | When was the film directed by Pen-Ek Ratanaruang released? | CREATE TABLE table_name_13 (
date VARCHAR,
director VARCHAR
) |
SELECT episode FROM table_1579922_1 WHERE run_time = "24:25" | What episode had a run time of 24:25? | CREATE TABLE table_1579922_1 (episode VARCHAR, run_time VARCHAR) |
SELECT train_number, name FROM train ORDER BY TIME | show all train numbers and names ordered by their time from early to late. | CREATE TABLE train (train_number VARCHAR, name VARCHAR, TIME VARCHAR) |
SELECT "Rider" FROM table_52741 WHERE "Speed" = '104.630mph' | Which rider had a speed of 104.630mph? | CREATE TABLE table_52741 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
) |
SELECT original_artist FROM table_15796072_1 WHERE week__number = "Top 16 (8 Women)" | Who was the original artist for week number Top 16 (8 women)? | CREATE TABLE table_15796072_1 (original_artist VARCHAR, week__number VARCHAR) |
SELECT TIME, train_number FROM train WHERE destination = 'Chennai' ORDER BY TIME | Give me the times and numbers of all trains that go to Chennai, ordered by time. | CREATE TABLE train (TIME VARCHAR, train_number VARCHAR, destination VARCHAR) |
SELECT "apps" + "goals" FROM table_204_340 WHERE "name" = 'luther blissett' | what is the total number of apps and goals for luther blissett ? | CREATE TABLE table_204_340 (
id number,
"name" text,
"year inducted" number,
"position" text,
"apps" number,
"goals" number
) |
SELECT order__number FROM table_15796072_1 WHERE original_artist = "The Doors" | What was the order number where the original artist is The Doors? | CREATE TABLE table_15796072_1 (order__number VARCHAR, original_artist VARCHAR) |
SELECT COUNT(*) FROM train WHERE name LIKE "%Express%" | How many trains have 'Express' in their names? | CREATE TABLE train (name VARCHAR) |
SELECT driver_s_ FROM table_name_21 WHERE primary_sponsor_s_ = "parts plus" | Parts Plus sponsors what driver? | CREATE TABLE table_name_21 (
driver_s_ VARCHAR,
primary_sponsor_s_ VARCHAR
) |
SELECT theme FROM table_15796072_1 WHERE original_artist = "The Beatles" | What was the theme when the original artist was The Beatles? | CREATE TABLE table_15796072_1 (theme VARCHAR, original_artist VARCHAR) |
SELECT train_number, TIME FROM train WHERE origin = 'Chennai' AND destination = 'Guruvayur' | Find the number and time of the train that goes from Chennai to Guruvayur. | CREATE TABLE train (train_number VARCHAR, TIME VARCHAR, origin VARCHAR, destination VARCHAR) |
SELECT place FROM table_name_65 WHERE performance = "60.73m" | What is the place when the performance is 60.73m? | CREATE TABLE table_name_65 (
place VARCHAR,
performance VARCHAR
) |
SELECT original_artist FROM table_15796072_1 WHERE theme = "1980s" | Who was the original artist when the theme was 1980s? | CREATE TABLE table_15796072_1 (original_artist VARCHAR, theme VARCHAR) |
SELECT origin, COUNT(*) FROM train GROUP BY origin | Find the number of trains starting from each origin. | CREATE TABLE train (origin VARCHAR) |
SELECT year FROM table_name_35 WHERE producer = "sam kazman" | What year was Sam Kazman a producer? | CREATE TABLE table_name_35 (
year VARCHAR,
producer VARCHAR
) |
SELECT original_artist FROM table_15796072_1 WHERE order__number = "9" | Who was the original artist when the order number is 9? | CREATE TABLE table_15796072_1 (original_artist VARCHAR, order__number VARCHAR) |
SELECT t1.name FROM train AS t1 JOIN route AS t2 ON t1.id = t2.train_id GROUP BY t2.train_id ORDER BY COUNT(*) DESC LIMIT 1 | Find the name of the train whose route runs through greatest number of stations. | CREATE TABLE route (train_id VARCHAR); CREATE TABLE train (name VARCHAR, id VARCHAR) |
SELECT "team" FROM table_203_254 ORDER BY ABS("difference") DESC LIMIT 1 | which team had the largest goal difference ? | CREATE TABLE table_203_254 (
id number,
"position" number,
"team" text,
"points" number,
"played" number,
"won" number,
"drawn" number,
"lost" number,
"for" number,
"against" number,
"difference" number
) |
SELECT episodes FROM table_15823956_1 WHERE region_1 = "N/A" | Which episode was N/A in region 1 | CREATE TABLE table_15823956_1 (episodes VARCHAR, region_1 VARCHAR) |
SELECT COUNT(*), t1.network_name, t1.services FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id GROUP BY t2.station_id | Find the number of trains for each station, as well as the station network name and services. | CREATE TABLE route (station_id VARCHAR); CREATE TABLE station (network_name VARCHAR, services VARCHAR, id VARCHAR) |
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 30826 AND admissions.dischtime IS NULL)) AND transfers.... | how many days have elapsed since the first time patient 30826 stayed in the ward 12 during this hospital encounter? | CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
sh... |
SELECT series AS premiere FROM table_15823956_1 WHERE series = "Pilot" | When was series premiere on the pilot episode | CREATE TABLE table_15823956_1 (series VARCHAR) |
SELECT AVG(high_temperature), day_of_week FROM weekly_weather GROUP BY day_of_week | What is the average high temperature for each day of week? | CREATE TABLE weekly_weather (day_of_week VARCHAR, high_temperature INTEGER) |
SELECT "Loan expires" FROM table_13239 WHERE "Date" = '29 december 2003' | What loan expires date has a Date of 29 december 2003? | CREATE TABLE table_13239 (
"Position" text,
"Player" text,
"Loaned to" text,
"Date" text,
"Loan expires" text
) |
SELECT region_1 FROM table_15823956_1 WHERE series = "4" | What is the region 1 date for series 4 | CREATE TABLE table_15823956_1 (region_1 VARCHAR, series VARCHAR) |
SELECT MAX(t1.low_temperature), AVG(t1.precipitation) FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id WHERE t2.network_name = "Amersham" | Give me the maximum low temperature and average precipitation at the Amersham station. | CREATE TABLE weekly_weather (low_temperature INTEGER, precipitation INTEGER, station_id VARCHAR); CREATE TABLE station (id VARCHAR, network_name VARCHAR) |
SELECT "Partner" FROM table_9885 WHERE "Opponents in the final" = 'serena williams venus williams' | Who was the partner that played against Serena Williams Venus Williams? | CREATE TABLE table_9885 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
) |
SELECT MAX(season__number) FROM table_15824796_3 WHERE original_air_date = "December 5, 1953" | What season began on december 5, 1953? | CREATE TABLE table_15824796_3 (season__number INTEGER, original_air_date VARCHAR) |
SELECT t3.name, t3.time FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id JOIN train AS t3 ON t2.train_id = t3.id WHERE t1.local_authority = "Chiltern" | Find names and times of trains that run through stations for the local authority Chiltern. | CREATE TABLE station (id VARCHAR, local_authority VARCHAR); CREATE TABLE route (station_id VARCHAR, train_id VARCHAR); CREATE TABLE train (name VARCHAR, time VARCHAR, id VARCHAR) |
SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id ORDER BY COUNT(*) DESC LIMIT 1 | What is the name of party with most number of members? | CREATE TABLE party (
party_name VARCHAR,
party_id VARCHAR
)
CREATE TABLE Member (
party_id VARCHAR
) |
SELECT title FROM table_15824796_3 WHERE original_air_date = "February 27, 1954" | What is the title of the first episode of the season that begin on february 27, 1954? | CREATE TABLE table_15824796_3 (title VARCHAR, original_air_date VARCHAR) |
SELECT COUNT(DISTINCT services) FROM station | How many different services are provided by all stations? | CREATE TABLE station (services VARCHAR) |
SELECT "Callsign" FROM table_28631 WHERE "Channel" = '6' | What is the call sign for channel 6? | CREATE TABLE table_28631 (
"Channel" real,
"Channel name" text,
"Callsign" text,
"Signal power" text,
"Broadcast area" text
) |
SELECT title FROM table_15824796_3 WHERE original_air_date = "December 12, 1953" | What is the title of the episode that aired on december 12, 1953? | CREATE TABLE table_15824796_3 (title VARCHAR, original_air_date VARCHAR) |
SELECT t2.id, t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id ORDER BY AVG(high_temperature) DESC LIMIT 1 | Find the id and local authority of the station with has the highest average high temperature. | CREATE TABLE weekly_weather (station_id VARCHAR); CREATE TABLE station (id VARCHAR, local_authority VARCHAR) |
SELECT "Date" FROM table_42037 WHERE "Set 4" = '25-19' | What date has a set 4 of 25-19? | CREATE TABLE table_42037 (
"Date" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Set 4" text,
"Set 5" text,
"Total" text
) |
SELECT COUNT(title) FROM table_15824796_3 WHERE original_air_date = "February 13, 1954" | How many episodes aired on february 13, 1954? | CREATE TABLE table_15824796_3 (title VARCHAR, original_air_date VARCHAR) |
SELECT t2.id, t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id HAVING MAX(t1.precipitation) > 50 | Find the id and local authority of the station whose maximum precipitation is higher than 50. | CREATE TABLE weekly_weather (station_id VARCHAR, precipitation INTEGER); CREATE TABLE station (id VARCHAR, local_authority VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2135" AND procedures.icd9_code = "3893" | how many patients were admitted before the year 2135 under procedure icd9 code 3893? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... |
SELECT cfl_team FROM table_15817998_5 WHERE pick__number = 36 | What are all the CFL teams where the pick number is 36? | CREATE TABLE table_15817998_5 (cfl_team VARCHAR, pick__number VARCHAR) |
SELECT MIN(low_temperature), MAX(wind_speed_mph) FROM weekly_weather | show the lowest low temperature and highest wind speed in miles per hour. | CREATE TABLE weekly_weather (low_temperature INTEGER, wind_speed_mph INTEGER) |
SELECT MIN("Effic") FROM table_9027 WHERE "Name" = 'total' | What was the total effic for the quarterbacks? | CREATE TABLE table_9027 (
"Name" text,
"GP-GS" text,
"Effic" real,
"Att-Cmp-Int" text,
"Avg/G" real
) |
SELECT position FROM table_15817998_5 WHERE college = "Alberta" | What are the positions in the college of Alberta? | CREATE TABLE table_15817998_5 (position VARCHAR, college VARCHAR) |
SELECT origin FROM train GROUP BY origin HAVING COUNT(*) > 1 | Find the origins from which more than 1 train starts. | CREATE TABLE train (origin VARCHAR) |
SELECT SUM(civil_liberties) FROM table_name_78 WHERE political_rights = 6 AND president = "yoweri museveni" AND year = 1993 | When the president was Yoweri Museveni, and the year was 1993, with rank of 6 under political rights, what was the total of civil liberties? | CREATE TABLE table_name_78 (
civil_liberties INTEGER,
year VARCHAR,
political_rights VARCHAR,
president VARCHAR
) |
SELECT COUNT(cfl_team) FROM table_15817998_5 WHERE college = "Wilfrid Laurier" | What is the total number of CFL teams in the college Wilfrid Laurier | CREATE TABLE table_15817998_5 (cfl_team VARCHAR, college VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.