answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT m_r_romaja FROM table_160510_5 WHERE region = "Kwanbuk" | Name the m r romaja for kwanbuk | CREATE TABLE table_160510_5 (m_r_romaja VARCHAR, region VARCHAR) |
SELECT points_for FROM table_name_24 WHERE lost = "6" AND try_bonus = "9" | How many points is there when the lost is 6 and the try bonus is 9? | CREATE TABLE table_name_24 (
points_for VARCHAR,
lost VARCHAR,
try_bonus VARCHAR
) |
SELECT venue FROM table_name_92 WHERE away_team = "essendon" | At what venue did the Essendon team play as an away team? | CREATE TABLE table_name_92 (venue VARCHAR, away_team VARCHAR) |
SELECT pop_density_people_km_2 FROM table_1606824_1 WHERE population__percentage_of_eu = "1.1%" AND member_state = "Slovakia" | Name the population density where population % is 1.1% for slovakia | CREATE TABLE table_1606824_1 (pop_density_people_km_2 VARCHAR, population__percentage_of_eu VARCHAR, member_state VARCHAR) |
SELECT Founder, COUNT(Founder) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder | For those records from the products and each product's manufacturer, return a bar chart about the distribution of founder and the amount of founder , and group by attribute founder. | 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 home_team FROM table_name_98 WHERE venue = "junction oval" | Who was the home team for the game played at Junction Oval? | CREATE TABLE table_name_98 (home_team VARCHAR, venue VARCHAR) |
SELECT COUNT(pop_density_people_km_2) FROM table_1606824_1 WHERE population__percentage_of_eu = "1.7%" | Name the population density people where population % eu for 1.7% | CREATE TABLE table_1606824_1 (pop_density_people_km_2 VARCHAR, population__percentage_of_eu VARCHAR) |
SELECT AVG(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'intraaortic balloon pump removal')) AND DATE... | what is the average hospital cost for a procedure that involves intraaortic balloon pump removal this year? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime... |
SELECT home_team AS score FROM table_name_59 WHERE away_team = "geelong" | What was the score of the home team when the away team was Geelong? | CREATE TABLE table_name_59 (home_team VARCHAR, away_team VARCHAR) |
SELECT COUNT(area_km_2) FROM table_1606824_1 WHERE pop_density_people_km_2 = "87" | Name the number of area km 2 for population density is 87 | CREATE TABLE table_1606824_1 (area_km_2 VARCHAR, pop_density_people_km_2 VARCHAR) |
SELECT MIN("Silver") FROM table_2606 | What is the least number of silver medals won | CREATE TABLE table_2606 (
"Rank" real,
"Athlete" text,
"Nation" text,
"Olympics" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total(min. 2 medals)" real
) |
SELECT away_team FROM table_name_77 WHERE home_team = "south melbourne" | What was the away team when the home team was South Melbourne? | CREATE TABLE table_name_77 (away_team VARCHAR, home_team VARCHAR) |
SELECT population__percentage_of_eu FROM table_1606824_1 WHERE member_state = "Greece" | Name the population % of eu for greece | CREATE TABLE table_1606824_1 (population__percentage_of_eu VARCHAR, member_state VARCHAR) |
SELECT activity_name, COUNT(*) FROM Activity AS T1 JOIN Faculty_Participates_in AS T2 ON T1.actid = T2.actid GROUP BY T1.actid ORDER BY activity_name | Show all the activity names and the number of faculty involved in each activity in a bar chart, and I want to list bars in ascending order. | CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Rank VARCHAR(15),
Sex VARCHAR(1),
Phone INTEGER,
Room VARCHAR(5),
Building VARCHAR(13)
)
CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Faculty_Participates_in (
FacID IN... |
SELECT home_team FROM table_name_10 WHERE venue = "junction oval" | What was the name of the home team playing at the Junction Oval venue? | CREATE TABLE table_name_10 (home_team VARCHAR, venue VARCHAR) |
SELECT COUNT(network) FROM table_160728_4 WHERE channel = 7 | How many networks are there that have a channel number 7? | CREATE TABLE table_160728_4 (network VARCHAR, channel VARCHAR) |
SELECT "Loss" FROM table_57474 WHERE "Opponent" = 'coyotes' | What was the loss from the coyotes as opponents? | CREATE TABLE table_57474 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text,
"Arena" text,
"Points" real
) |
SELECT COUNT(established) FROM table_name_86 WHERE club = "lehigh valley storm" | What is the total number of the established club of Lehigh Valley Storm? | CREATE TABLE table_name_86 (established VARCHAR, club VARCHAR) |
SELECT network FROM table_160728_4 WHERE station = "TV3" | What station on the network is tv3? | CREATE TABLE table_160728_4 (network VARCHAR, station VARCHAR) |
SELECT Users.Id AS "user_link" FROM Posts INNER JOIN Users ON Users.Id = OwnerUserId WHERE PostTypeId = 1 GROUP BY Users.Id HAVING COUNT(Posts.Id) = 1 LIMIT 5000 | Users who posted only single questions. | CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name te... |
SELECT league FROM table_name_96 WHERE sport = "baseball" | What is the name of a league in the sport of baseball? | CREATE TABLE table_name_96 (league VARCHAR, sport VARCHAR) |
SELECT MAX(founded) FROM table_16078390_2 WHERE team_nickname = "Raiders" | What year was the team named the Raiders established? | CREATE TABLE table_16078390_2 (founded INTEGER, team_nickname VARCHAR) |
SELECT MIN("Crowd") FROM table_33771 WHERE "Venue" = 'mcg' | What is the lowest crowd size at MCG? | CREATE TABLE table_33771 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT venue FROM table_name_55 WHERE sport = "soccer" AND club = "pennsylvania stoners" | What venue does the soccer team Pennsylvania Stoners play in? | CREATE TABLE table_name_55 (venue VARCHAR, sport VARCHAR, club VARCHAR) |
SELECT primary_conference FROM table_16078390_2 WHERE institution = "Gonzaga University" | What conference does Gonzaga University play in? | CREATE TABLE table_16078390_2 (primary_conference VARCHAR, institution VARCHAR) |
SELECT film_title_used_in_nomination FROM table_name_5 WHERE original_title = "matrimonio all'italiana" | What title was used in the nomination of Matrimonio All'Italiana? | CREATE TABLE table_name_5 (
film_title_used_in_nomination VARCHAR,
original_title VARCHAR
) |
SELECT AVG(game__number) FROM table_name_67 WHERE date = "march 4" | What game number was played on March 4? | CREATE TABLE table_name_67 (game__number INTEGER, date VARCHAR) |
SELECT COUNT(founded) FROM table_16078390_2 WHERE location = "Tacoma, Washington" | How many Universities were founded in Tacoma, Washington? | CREATE TABLE table_16078390_2 (founded VARCHAR, location VARCHAR) |
SELECT artist FROM torrents GROUP BY artist ORDER BY COUNT(groupname) DESC LIMIT 1 | Which artist/group is most productive? | CREATE TABLE torrents (
groupname text,
totalsnatched number,
artist text,
groupyear number,
releasetype text,
groupid number,
id number
)
CREATE TABLE tags (
index number,
id number,
tag text
) |
SELECT record FROM table_name_69 WHERE visitor = "buffalo" | What is the record when the visitor is Buffalo? | CREATE TABLE table_name_69 (record VARCHAR, visitor VARCHAR) |
SELECT institution FROM table_16078390_2 WHERE team_nickname = "Wildcats" | Which school's team has the nickname of the Wildcats? | CREATE TABLE table_16078390_2 (institution VARCHAR, team_nickname VARCHAR) |
SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 95986) AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | did patient 95986 undergo surgery during this year? | CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
... |
SELECT COUNT(attendance) FROM table_name_4 WHERE result = "l 35-17" | Tell me the number of attendance that has a result of l 35-17 | CREATE TABLE table_name_4 (attendance VARCHAR, result VARCHAR) |
SELECT MIN(founded) FROM table_16078390_2 WHERE location = "Ellensburg, Washington" | What year was the university that is located in Ellensburg, Washington established? | CREATE TABLE table_16078390_2 (founded INTEGER, location VARCHAR) |
SELECT "Manufacturer" FROM table_24853 WHERE "Date" = 'June 22' | Who is the manufacturer for the date of June 22? | CREATE TABLE table_24853 (
"Year" text,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
) |
SELECT attendance FROM table_name_60 WHERE week > 10 AND result = "l 22-21" | I want the attendance for week larger than 10 and result of l 22-21 | CREATE TABLE table_name_60 (attendance VARCHAR, week VARCHAR, result VARCHAR) |
SELECT location FROM table_16078390_2 WHERE team_nickname = "Wolves" | Where is the university located that's nicknamed the Wolves? | CREATE TABLE table_16078390_2 (location VARCHAR, team_nickname VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, fare_basis, flight, flight_fare WHERE ((fare_basis.class_type = 'FIRST' AND fare.fare_basis_code = fare_basis.fare_basis_code) AND CITY_1.city_code = AIRPORT_SERVICE_1.... | please show me all one way FIRST class flights from INDIANAPOLIS to MEMPHIS | CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
a... |
SELECT COUNT(attendance) FROM table_name_60 WHERE result = "t 24-24" AND week < 2 | Name for me the total number in attendance for week before 2 and result of t 24-24 | CREATE TABLE table_name_60 (attendance VARCHAR, result VARCHAR, week VARCHAR) |
SELECT COUNT(viewers) FROM table_16072430_1 WHERE share = 7 AND weekly_rank = "64" | What is the total number of viewers where the share is 7 and the week rank is 64? | CREATE TABLE table_16072430_1 (viewers VARCHAR, share VARCHAR, weekly_rank VARCHAR) |
SELECT HIRE_DATE, SALARY FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY HIRE_DATE | For all employees who have the letters D or S in their first name, a line chart shows the trend of salary over hire_date , and I want to order HIRE_DATE from low to high order please. | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
... |
SELECT MAX(attendance) FROM table_name_64 WHERE opponent = "chicago bears" | I want the greatest attendance when the opponent is the chicago bears | CREATE TABLE table_name_64 (attendance INTEGER, opponent VARCHAR) |
SELECT COUNT(_number) FROM table_16072430_1 WHERE share > 7.0 | How many episodes have a share bigger than 7.0? | CREATE TABLE table_16072430_1 (_number VARCHAR, share INTEGER) |
SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY SUM(MANAGER_ID) | For all employees who have the letters D or S in their first name, show me about the distribution of job_id and the sum of manager_id , and group by attribute job_id in a bar chart, display from low to high by the y axis please. | 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 TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decima... |
SELECT AVG(attendance) FROM table_name_16 WHERE visitor = "phoenix" | What is the average attendance for a game against Phoenix? | CREATE TABLE table_name_16 (attendance INTEGER, visitor VARCHAR) |
SELECT COUNT(_number) FROM table_16072430_1 WHERE weekly_rank = "TBA" AND timeslot = "8:00 P.M." | How many episodes have a weekly rank tba and are broadcast at 8:00 p.m.? | CREATE TABLE table_16072430_1 (_number VARCHAR, weekly_rank VARCHAR, timeslot VARCHAR) |
SELECT russian FROM table_name_34 WHERE translation = "bucket" | What Russian word translates to bucket? | CREATE TABLE table_name_34 (
russian VARCHAR,
translation VARCHAR
) |
SELECT home FROM table_name_78 WHERE decision = "legace" AND visitor = "st. louis" AND date = "february 22" | What was the home team in the February 22 game that Legace played in for the St. Louis Blues? | CREATE TABLE table_name_78 (home VARCHAR, date VARCHAR, decision VARCHAR, visitor VARCHAR) |
SELECT timeslot FROM table_16072430_1 WHERE air_date = "February 22, 2008" | What are the timeslot(s) for broadcast on February 22, 2008? | CREATE TABLE table_16072430_1 (timeslot VARCHAR, air_date VARCHAR) |
SELECT "nation" FROM table_203_466 WHERE "nation" IN ('colombia', 'bahamas') ORDER BY "silver" DESC LIMIT 1 | who had more silvers ? colmbia or the bahamas | CREATE TABLE table_203_466 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) |
SELECT home_team FROM table_name_65 WHERE away_team = "carlton" | Who was Carlton's home team opponent? | CREATE TABLE table_name_65 (home_team VARCHAR, away_team VARCHAR) |
SELECT COUNT(air_date) FROM table_16072430_1 WHERE weekly_rank = "73" | What broadcast dates have a weekly rank of 73? | CREATE TABLE table_16072430_1 (air_date VARCHAR, weekly_rank VARCHAR) |
SELECT SUM(lost) FROM table_name_18 WHERE points > 16 AND drawn < 1 | What's the lost when there were more than 16 points and had a drawn less than 1? | CREATE TABLE table_name_18 (
lost INTEGER,
points VARCHAR,
drawn VARCHAR
) |
SELECT away_team AS score FROM table_name_68 WHERE venue = "lake oval" | Who was the away team at Lake Oval? | CREATE TABLE table_name_68 (away_team VARCHAR, venue VARCHAR) |
SELECT date_of_appointment FROM table_16075179_6 WHERE team = "St. Johnstone" | When was the date of appointment for St. Johnstone's manager? | CREATE TABLE table_16075179_6 (date_of_appointment VARCHAR, team VARCHAR) |
SELECT position FROM table_1473672_4 WHERE player = "Ron Lalonde" | Name the position for ron lalonde | CREATE TABLE table_1473672_4 (
position VARCHAR,
player VARCHAR
) |
SELECT away_team FROM table_name_8 WHERE home_team = "south melbourne" | Who was South Melbourne's away team opponent? | CREATE TABLE table_name_8 (away_team VARCHAR, home_team VARCHAR) |
SELECT outgoing_manager FROM table_16075179_6 WHERE team = "Aberdeen" | Who was the outgoing manager for Aberdeen? | CREATE TABLE table_16075179_6 (outgoing_manager VARCHAR, team VARCHAR) |
SELECT "Torque" FROM table_36521 WHERE "Name" = '1.9 diesel' AND "Capacity" = '1905 cc' | What torque does 1.9 diesel with 1905 cc have? | CREATE TABLE table_36521 (
"Name" text,
"Capacity" text,
"Type" text,
"Power" text,
"Torque" text
) |
SELECT MAX(grid) FROM table_name_89 WHERE laps = 27 | What is the high grid with 27 laps? | CREATE TABLE table_name_89 (grid INTEGER, laps VARCHAR) |
SELECT date_of_appointment FROM table_16075179_6 WHERE outgoing_manager = "Wim Jansen" | When was the date of appointment for the manager replacing Wim Jansen? | CREATE TABLE table_16075179_6 (date_of_appointment VARCHAR, outgoing_manager VARCHAR) |
SELECT DISTINCT compartment, meal_code, meal_description, meal_number FROM food_service WHERE meal_code = 'S/' | what does S/ designate as a meal | CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_code varchar,
minimum_connect_time int
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description... |
SELECT MAX(grid) FROM table_name_4 WHERE time_retired = "+6 laps" AND laps < 69 | What is the high grid that has a Time/Retired of +6 laps, and under 69 laps? | CREATE TABLE table_name_4 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) |
SELECT COUNT(citrate) FROM table_16083989_1 WHERE species = "Salmonella spp." | What is the result for salmonella spp. if you use citrate? | CREATE TABLE table_16083989_1 (citrate VARCHAR, species VARCHAR) |
SELECT Order_Date, COUNT(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, and count them by a bar chart | CREATE TABLE Services (
Service_ID INTEGER,
Service_Type_Code CHAR(15),
Workshop_Group_ID INTEGER,
Product_Description VARCHAR(255),
Product_Name VARCHAR(255),
Product_Price DECIMAL(20,4),
Other_Product_Service_Details VARCHAR(255)
)
CREATE TABLE Invoices (
Invoice_ID INTEGER,
Order... |
SELECT COUNT(copies_sold) FROM table_name_43 WHERE first_week_sales = 206 OFFSET 030 | What's the total number of copies sold for the single that sold 206,030 in the first week? | CREATE TABLE table_name_43 (copies_sold VARCHAR, first_week_sales VARCHAR) |
SELECT species FROM table_16083989_1 WHERE voges_proskauer = "Negative" AND indole = "Negative" | Which species show a negative result with both voges-proskauer and indole? | CREATE TABLE table_16083989_1 (species VARCHAR, voges_proskauer VARCHAR, indole VARCHAR) |
SELECT "Score" FROM table_21652 WHERE "Date" = 'December 11' | What was the score of the game on December 11? | CREATE TABLE table_21652 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
) |
SELECT MAX(release_date) FROM table_name_3 WHERE label = "ariola" AND country = "spain" | What was the latest release date for Ariola in Spain? | CREATE TABLE table_name_3 (release_date INTEGER, label VARCHAR, country VARCHAR) |
SELECT voges_proskauer FROM table_16083989_1 WHERE citrate = "Positive" | What are the results for testing the species with voges-proskauer when citrate yields a positive result? | CREATE TABLE table_16083989_1 (voges_proskauer VARCHAR, citrate VARCHAR) |
SELECT "Result" FROM table_75053 WHERE "Score" = '4-0' | What is the result when the score is 4-0? | CREATE TABLE table_75053 (
"Date" text,
"Result" text,
"Score" text,
"Brazil scorers" text,
"Competition" text
) |
SELECT release_format FROM table_name_48 WHERE release_date > 1979 | What type of format was released after 1979? | CREATE TABLE table_name_48 (release_format VARCHAR, release_date INTEGER) |
SELECT indole FROM table_16083989_1 WHERE species = "Proteus mirabilis" | What is the result of proteus mirabilis tested with indole? | CREATE TABLE table_16083989_1 (indole VARCHAR, species VARCHAR) |
SELECT "2010/11" FROM table_30617 WHERE "2007/08" = '772.6' | What is the 2010/11 number when the 2007/08 is 772.6? | CREATE TABLE table_30617 (
"IME Exchange (Including spot, credit and forward transactions)" text,
"2007/08" text,
"2008/09" text,
"2009/10" text,
"2010/11" text
) |
SELECT SUM(release_date) FROM table_name_3 WHERE label = "epic" | On what date did Epic label start its release? | CREATE TABLE table_name_3 (release_date INTEGER, label VARCHAR) |
SELECT originalairdate FROM table_16090262_1 WHERE tv_broadcast = "S07E04" | When was the show originally aired that had a TV broadcast of S07E04? | CREATE TABLE table_16090262_1 (originalairdate VARCHAR, tv_broadcast VARCHAR) |
SELECT years FROM table_name_30 WHERE ties > 1 AND wins < 311 AND losses = 174 | What years did the person coach who had more than 1 tie, mess than 311 wins and 174 losses? | CREATE TABLE table_name_30 (
years VARCHAR,
losses VARCHAR,
ties VARCHAR,
wins VARCHAR
) |
SELECT games FROM table_name_36 WHERE rebounds < 270 AND rank < 5 | Which game had less than 270 rebounds and a rank lower than 5? | CREATE TABLE table_name_36 (games VARCHAR, rebounds VARCHAR, rank VARCHAR) |
SELECT title FROM table_16090262_1 WHERE no_in_season = 4 | Which title was No. 4 in season? | CREATE TABLE table_16090262_1 (title VARCHAR, no_in_season VARCHAR) |
SELECT "Frequency" FROM table_37149 WHERE "Owner" = 'canadian broadcasting corporation' AND "Branding" = 'cbc radio one' | What is the frequency of the station owned by the Canadian Broadcasting Corporation and branded as CBC Radio One? | CREATE TABLE table_37149 (
"Frequency" text,
"Call sign" text,
"Branding" text,
"Format" text,
"Owner" text
) |
SELECT SUM(games) FROM table_name_20 WHERE name = "curtis borchardt" AND rebounds > 274 | Which game did Curtis Borchardt play with more than 274 rebounds? | CREATE TABLE table_name_20 (games INTEGER, name VARCHAR, rebounds VARCHAR) |
SELECT directed_by FROM table_16090262_1 WHERE tv_broadcast = "S07E04" | Who directed the show that had a TV broadcast of S07E04? | CREATE TABLE table_16090262_1 (directed_by VARCHAR, tv_broadcast VARCHAR) |
SELECT us_air_date FROM table_18424435_4 WHERE canadian_viewers__million_ = "1.452" | What was the air date in the U.S. for the episode that had 1.452 million Canadian viewers? | CREATE TABLE table_18424435_4 (
us_air_date VARCHAR,
canadian_viewers__million_ VARCHAR
) |
SELECT team FROM table_name_70 WHERE rebounds < 275 AND games < 34 AND name = "curtis borchardt" | In game 34 Curtis Borchardt played on which team with less than 275 rebounds? | CREATE TABLE table_name_70 (team VARCHAR, name VARCHAR, rebounds VARCHAR, games VARCHAR) |
SELECT mid_atlantic_south__washington, _dc_ FROM table_16105186_2 WHERE alaska___juneau__ = "90 g/mi (56 g/km)" AND california__san_francisco_ = "110 g/mi (68 g/km)" | What was the emission rating in Mid-Atlantic South for the vehicle that was rated 90 g/mi (56 g/km) in Alaska and 110 g/mi (68 g/km) in California? | CREATE TABLE table_16105186_2 (mid_atlantic_south__washington VARCHAR, _dc_ VARCHAR, alaska___juneau__ VARCHAR, california__san_francisco_ VARCHAR) |
SELECT director_s_ FROM table_name_45 WHERE rank = "nominated" AND film = "blood on his hands" | Who directed the nominated film 'blood on his hands'? | CREATE TABLE table_name_45 (
director_s_ VARCHAR,
rank VARCHAR,
film VARCHAR
) |
SELECT rebounds FROM table_name_73 WHERE rank = 4 | How many rebounds occurred in a rank 4 game? | CREATE TABLE table_name_73 (rebounds VARCHAR, rank VARCHAR) |
SELECT mid_atlantic_south__washington, _dc_ FROM table_16105186_2 WHERE midwest__des_moines_ = "300 g/mi (186 g/km)" | What was the emission rating in Mid-Atlantic South for the vehicle that was rated 300 g/mi (186 g/km) in the Midwest? | CREATE TABLE table_16105186_2 (mid_atlantic_south__washington VARCHAR, _dc_ VARCHAR, midwest__des_moines_ VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, fare, flight, flight_fare WHERE ((CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DALLAS FORT WOR... | what is the least expensive flight available from DALLAS FORT WORTH to SAN FRANCISCO | CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufac... |
SELECT games FROM table_name_88 WHERE name = "bud eley" | Which game did was Bud Eley a player in? | CREATE TABLE table_name_88 (games VARCHAR, name VARCHAR) |
SELECT us_national_average_electric_mix FROM table_16105186_2 WHERE midwest__des_moines_ = "280 g/mi (174 g/km)" | What was the US national average electric mix rating for the vehicle that was rated 280 g/mi (174 g/km) in the Midwest? | CREATE TABLE table_16105186_2 (us_national_average_electric_mix VARCHAR, midwest__des_moines_ VARCHAR) |
SELECT FLOOR(Users.Reputation / 10) * 10 AS "reputation_interval", COUNT(CAST(Votes.Id AS INT)) FROM Posts INNER JOIN Users ON Posts.OwnerUserId = Users.Id INNER JOIN Votes ON Votes.PostId = Posts.Id WHERE Posts.PostTypeId = @postType AND Users.Reputation <= @reputation AND Votes.VoteTypeId = @voteType GROUP BY FLOOR(U... | Number of [vote type] on [post type] posted by users under [reputation]. | CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
Creatio... |
SELECT SUM(games) FROM table_name_80 WHERE rank < 4 AND rebounds < 275 AND team = "bruesa gbc" | Which game did Bruesa GBC play in with fewer than 275 rebounds that is ranked less than 4? | CREATE TABLE table_name_80 (games INTEGER, team VARCHAR, rank VARCHAR, rebounds VARCHAR) |
SELECT COUNT(california__san_francisco_) FROM table_16105186_2 WHERE vehicle = "Ford Focus Electric" | How many Ford Focus electric vehicle emission test scores were recorded in California? | CREATE TABLE table_16105186_2 (california__san_francisco_ VARCHAR, vehicle VARCHAR) |
SELECT "Station Type" FROM table_28303 WHERE "Callsign" = 'DWMC-TV' | What is the station type of DWMC-TV? | CREATE TABLE table_28303 (
"Branding" text,
"Callsign" text,
"Ch. #" text,
"Station Type" text,
"Power kW (ERP)" text,
"Location (Transmitter Site)" text
) |
SELECT grid FROM table_name_6 WHERE driver = "johnny herbert" | What is the grid for johnny herbert? | CREATE TABLE table_name_6 (grid VARCHAR, driver VARCHAR) |
SELECT california__san_francisco_ FROM table_16105186_2 WHERE alaska___juneau__ = "80 g/mi (50 g/km)" AND southeast__atlanta_ = "250 g/mi (155 g/km)" | What was the emission rating in California for the vehicle that was rated 80 g/mi (50 g/km) in Alaska and 250 g/mi (155 g/km) in the Southeast ? | CREATE TABLE table_16105186_2 (california__san_francisco_ VARCHAR, alaska___juneau__ VARCHAR, southeast__atlanta_ VARCHAR) |
SELECT Id AS "post_link", Title, Score FROM Posts WHERE Posts.CreationDate > CURRENT_TIMESTAMP() - 7 ORDER BY Score DESC LIMIT 20 | Top 20 posts in a week. | CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
Cr... |
SELECT AVG(rank) FROM table_name_43 WHERE studio_s_ = "dharma productions" AND year < 2013 | Tell me the average rank for dharma productions before 2013 | CREATE TABLE table_name_43 (rank INTEGER, studio_s_ VARCHAR, year VARCHAR) |
SELECT MIN(attendance) FROM table_16119656_1 | What was the lowest no. of attendance on record? | CREATE TABLE table_16119656_1 (attendance INTEGER) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.