answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT engine FROM table_name_28 WHERE rounds = "all" AND entrant = "scuderia ferrari" | What kind of engine is in the car for Scuderia Ferrari that went all rounds? | CREATE TABLE table_name_28 (engine VARCHAR, rounds VARCHAR, entrant VARCHAR) |
SELECT party AS a FROM table_22754310_1 WHERE runner_up_a = "M. S. K. Sathiyendran" | Name the party a for m. s. k. sathiyendran runner up | CREATE TABLE table_22754310_1 (party VARCHAR, runner_up_a VARCHAR) |
SELECT power_capacity__gw_ FROM table_11456251_5 WHERE number_of_generators = 781 | What is the power capacity when the generators were 781? | CREATE TABLE table_11456251_5 (
power_capacity__gw_ VARCHAR,
number_of_generators VARCHAR
) |
SELECT constructor FROM table_name_50 WHERE chassis = "196" | Who is the constructor of the 196 chassis? | CREATE TABLE table_name_50 (constructor VARCHAR, chassis VARCHAR) |
SELECT party AS a FROM table_22754310_1 WHERE constituency = "Sriperumbudur" | Name the party a for sriperumbudur | CREATE TABLE table_22754310_1 (party VARCHAR, constituency VARCHAR) |
SELECT T2.Name, COUNT(*) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name DESC | How many products are there for each manufacturer Visualize by bar chart, list in desc by the X. | 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 FROM table_name_81 WHERE visitor = "kings" | Name the home with visitor of kings | CREATE TABLE table_name_81 (home VARCHAR, visitor VARCHAR) |
SELECT COUNT(runner_up_a) FROM table_22754310_1 WHERE constituency = "Perambalur" | Name the total number of runner up a for perambalur | CREATE TABLE table_22754310_1 (runner_up_a VARCHAR, constituency VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service, city, flight WHERE (((flight.arrival_time <= 1600 AND flight.arrival_time >= 1200) AND city.city_code = airport_service.city_code AND city.city_name = 'PITTSBURGH' AND flight.to_airport = airport_service.airport_code) OR ((flight.departure_time <= 1600 AND flight.d... | show me all the DL flights leaving or arriving at PITTSBURGH between 1200 and 1600 in the afternoon | CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time... |
SELECT COUNT(attendance) FROM table_name_84 WHERE visitor = "cavaliers" | Name the total number of attendance when the cavaliers visited | CREATE TABLE table_name_84 (attendance VARCHAR, visitor VARCHAR) |
SELECT constituency FROM table_22754310_1 WHERE margin = 175130 | Name the constituency for 175130 | CREATE TABLE table_22754310_1 (constituency VARCHAR, margin VARCHAR) |
SELECT SUM("Lane") FROM table_69881 WHERE "Nationality" = 'iceland' | How many lanes have a Nationality of iceland? | CREATE TABLE table_69881 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) |
SELECT mixed_doubles FROM table_name_93 WHERE year = 2006 | Which mixed doubles was featured in 2006? | CREATE TABLE table_name_93 (mixed_doubles VARCHAR, year VARCHAR) |
SELECT COUNT(margin) FROM table_22753439_1 WHERE winner = "S. Singaravadivel" | How many margins have a winner of S. Singaravadivel? | CREATE TABLE table_22753439_1 (margin VARCHAR, winner VARCHAR) |
SELECT AVG(score) FROM table_name_35 WHERE place = "t1" AND player = "hubert green" | Which Score has a Place of t1, and a Player of hubert green? | CREATE TABLE table_name_35 (
score INTEGER,
place VARCHAR,
player VARCHAR
) |
SELECT MAX(crowd) FROM table_name_62 WHERE venue = "corio oval" | In the games at corio oval, what was the highest crowd? | CREATE TABLE table_name_62 (crowd INTEGER, venue VARCHAR) |
SELECT COUNT(winner) FROM table_22753439_1 WHERE runner_up_a = "A. Karthikeyan" | How many winners have a runner-up of A. Karthikeyan? | CREATE TABLE table_22753439_1 (winner VARCHAR, runner_up_a VARCHAR) |
SELECT MAX(games_played) FROM table_18018214_4 | What is the highest number of games played? | CREATE TABLE table_18018214_4 (
games_played INTEGER
) |
SELECT away_team FROM table_name_29 WHERE venue = "corio oval" | In the match as corio oval, who was the away team? | CREATE TABLE table_name_29 (away_team VARCHAR, venue VARCHAR) |
SELECT party AS a FROM table_22753439_1 WHERE winner = "P. Chidambaram" | What is every party with a winner of P. Chidambaram? | CREATE TABLE table_22753439_1 (party VARCHAR, winner VARCHAR) |
SELECT score FROM table_name_19 WHERE visitor = "ny rangers" AND record = "19–28–15" | Which Score has a Visitor of ny rangers, and a Record of 19 28 15? | CREATE TABLE table_name_19 (
score VARCHAR,
visitor VARCHAR,
record VARCHAR
) |
SELECT AVG(communes) FROM table_name_83 WHERE cantons > 10 AND area__square_km_ = 1 OFFSET 589 | How many communes associated with over 10 cantons and an area (Square km) of 1,589? | CREATE TABLE table_name_83 (communes INTEGER, cantons VARCHAR, area__square_km_ VARCHAR) |
SELECT party AS a FROM table_22753439_1 WHERE constituency = "Tiruchendur" | What is every party A with a constituency of Tiruchendur? | CREATE TABLE table_22753439_1 (party VARCHAR, constituency VARCHAR) |
SELECT "Venue" FROM table_1207 WHERE "Champion" = 'Lorena Ochoa' | At what venues did Lorena Ochoa win the championship? | CREATE TABLE table_1207 (
"Year" real,
"Dates" text,
"Venue" text,
"Champion" text,
"Country" text,
"Score" real,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text,
"Purse ( $ )" real,
"Winners share ($)" real
) |
SELECT decision FROM table_name_83 WHERE date = "january 12" | Which team won the game on January 12? | CREATE TABLE table_name_83 (decision VARCHAR, date VARCHAR) |
SELECT constituency FROM table_22753245_1 WHERE runner_up_a = "D. Venugopal" | Who is the constituency when the runner-up was d. Venugopal? | CREATE TABLE table_22753245_1 (constituency VARCHAR, runner_up_a VARCHAR) |
SELECT "Tournament Winner" FROM table_73442 WHERE "Conference" = 'Atlantic Coast Conference' | Who is the tournament winner in the Atlantic Coast Conference? | CREATE TABLE table_73442 (
"Conference" text,
"Regular Season Winner" text,
"Conference Player of the Year" text,
"Conference Tournament" text,
"Tournament Venue (City)" text,
"Tournament Winner" text
) |
SELECT home_team AS score FROM table_name_70 WHERE away_team = "geelong" | Who was the home team against Geelong? | CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR) |
SELECT party FROM table_22753245_1 WHERE constituency = "10. Tindivanam" | What is the party where the constituency is 10. Tindivanam? | CREATE TABLE table_22753245_1 (party VARCHAR, constituency VARCHAR) |
SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Actuarial Math%' OR name LIKE '%Actuarial Math%') AND credits = 7 | Let 's see Actuarial Math courses with 7 credits . | CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE semester (
... |
SELECT COUNT(crowd) FROM table_name_70 WHERE venue = "mcg" | What was the attendance when the VFL played MCG? | CREATE TABLE table_name_70 (crowd VARCHAR, venue VARCHAR) |
SELECT party FROM table_22753245_1 WHERE constituency = "1. Chennai North" | What is the party when the constituency is 1. Chennai North? | CREATE TABLE table_22753245_1 (party VARCHAR, constituency VARCHAR) |
SELECT MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.admission_location = "EMERGENCY ROOM ADMIT" | what is minimum age of patients whose marital status is single and admission location is emergency room admit? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... |
SELECT security_forces FROM table_name_15 WHERE civilians = "67" | Name the security forces with civilians of 67 | CREATE TABLE table_name_15 (security_forces VARCHAR, civilians VARCHAR) |
SELECT COUNT(margin) FROM table_22753245_1 WHERE party = "Indian National Congress" AND winner = "L. Adaikalaraj c" | How many margin results are listed in the election that was won by L. Adaikalaraj C and the party was the Indian national congress? | CREATE TABLE table_22753245_1 (margin VARCHAR, party VARCHAR, winner VARCHAR) |
SELECT Id, Reputation FROM Users WHERE DisplayName = 'HyperNeutrino' LIMIT 1 | Get user id and rep by name. | CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId nu... |
SELECT insurgents FROM table_name_75 WHERE civilians = "49" | Name the insurgents for civilians being 49 | CREATE TABLE table_name_75 (insurgents VARCHAR, civilians VARCHAR) |
SELECT MAX(margin) FROM table_22754491_1 WHERE winner = "K. Balathandayutham" | What is the margin when k. balathandayutham is the winner? | CREATE TABLE table_22754491_1 (margin INTEGER, winner VARCHAR) |
SELECT MAX("Round") FROM table_65059 WHERE "Away Team" = 'pohang steelers' | What is the latest round for Pohang Steelers as the away team? | CREATE TABLE table_65059 (
"Round" real,
"Date" text,
"Home Team" text,
"Score" text,
"Away Team" text,
"Attendance" real,
"Stadium" text
) |
SELECT security_forces FROM table_name_81 WHERE civilians = "67" | Name the security forces with civilians being 67 | CREATE TABLE table_name_81 (security_forces VARCHAR, civilians VARCHAR) |
SELECT margin FROM table_22754491_1 WHERE constituency = "Periyakulam" | What is the margin when periyakulam is the constituency? | CREATE TABLE table_22754491_1 (margin VARCHAR, constituency VARCHAR) |
SELECT "Sub-Parish (Sogn)" FROM table_59789 WHERE "Year Built" < '1883' AND "Parish (Prestegjeld)" = 'jostedal parish' AND "Location of the Church" = 'gaupne' | Which Sub-Parish (Sogn) was built before 1883 in the Parish (Prestegjeld) of jostedal parish and is located in the Church of Gaupne? | CREATE TABLE table_59789 (
"Parish (Prestegjeld)" text,
"Sub-Parish (Sogn)" text,
"Church Name" text,
"Year Built" real,
"Location of the Church" text
) |
SELECT security_forces FROM table_name_82 WHERE year = "2009" | Name the security forces for 2009 | CREATE TABLE table_name_82 (security_forces VARCHAR, year VARCHAR) |
SELECT pole_position FROM table_22765887_1 WHERE date = "August 15, 1981" | Who had the pole position in the August 15, 1981 race? | CREATE TABLE table_22765887_1 (pole_position VARCHAR, date VARCHAR) |
SELECT "parish" FROM table_203_36 WHERE NOT "closed" IS NULL | which parish is the only one to have closed ? | CREATE TABLE table_203_36 (
id number,
"parish" text,
"locality" text,
"parish priest" text,
"founded" number,
"closed" number
) |
SELECT tyre FROM table_name_85 WHERE chassis = "p57 p61" | What tyre has a chassis of p57 p61? | CREATE TABLE table_name_85 (tyre VARCHAR, chassis VARCHAR) |
SELECT track FROM table_22765887_1 WHERE date = "September 12, 1981" | Which track was used on September 12, 1981? | CREATE TABLE table_22765887_1 (track VARCHAR, date VARCHAR) |
SELECT "Bike" FROM table_47540 WHERE "Grid" < '9' AND "Time" = '+7.764' | What is the name of the bike that has a grid number smaller than 9 with a time of +7.764? | CREATE TABLE table_47540 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
) |
SELECT MAX(laps) FROM table_name_94 WHERE grid = 1 | what is the highest laps when the grid is 1? | CREATE TABLE table_name_94 (laps INTEGER, grid VARCHAR) |
SELECT extension FROM table_22771048_3 WHERE city_neighborhood = "University of Washington" | Name the extension for university of washington | CREATE TABLE table_22771048_3 (extension VARCHAR, city_neighborhood VARCHAR) |
SELECT "diagonal (mm)" FROM table_203_356 WHERE "type" = '1/10"' | how long is the diagonal size of a 1/10 sensor ? | CREATE TABLE table_203_356 (
id number,
"type" text,
"diagonal (mm)" text,
"width (mm)" text,
"height (mm)" text,
"area (mm2)" text,
"stops (area)" number,
"crop factor" text
) |
SELECT COUNT(total) FROM table_name_92 WHERE swimming_time__pts_ = "2:20.93 (1232)" | How many athletes had a Swimming Time (pts) of 2:20.93 (1232)? | CREATE TABLE table_name_92 (total VARCHAR, swimming_time__pts_ VARCHAR) |
SELECT MIN(projected_opening) FROM table_22771048_3 | Name the least projected opening | CREATE TABLE table_22771048_3 (projected_opening INTEGER) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "5" AND prescriptions.drug = "Promethazine HCl" | what is the number of patients on promethazine hcl drug prescription who stayed in hospital for more than 5 days? | CREATE TABLE diagnoses (
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 prescriptions... |
SELECT riding_penalties__pts_ FROM table_name_83 WHERE swimming_time__pts_ = "2:18.16 (1264)" | What is the riding penaltie (pts) for the athlete that has a Swimming Time (pts) of 2:18.16 (1264)? | CREATE TABLE table_name_83 (riding_penalties__pts_ VARCHAR, swimming_time__pts_ VARCHAR) |
SELECT transit_connections FROM table_22771048_3 WHERE station = "Capitol Hill U" | Name the transit connections for capitol hill u | CREATE TABLE table_22771048_3 (transit_connections VARCHAR, station VARCHAR) |
SELECT AVG("Top-10") FROM table_41861 WHERE "Wins" < '0' | What is average Top 10 with 0 wins? | CREATE TABLE table_41861 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) |
SELECT owner_s_ FROM table_name_18 WHERE date = 1956 AND description = "mark 1 pos" | Which owner has a description of Mark 1 pos and is dated 1956? | CREATE TABLE table_name_18 (owner_s_ VARCHAR, date VARCHAR, description VARCHAR) |
SELECT COUNT(city_neighborhood) FROM table_22771048_4 WHERE station = "Hospital" | How many neighborhoods have a station proposed at a Hospital? | CREATE TABLE table_22771048_4 (city_neighborhood VARCHAR, station VARCHAR) |
SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '021-155303' AND patient.hospitalid <> (SELECT DISTINCT patient.hospitalid FROM patient WHERE patient.uniquepid = '021-155303' AND patient.hospitaldischargetime IS NULL)) AND ... | had patient 021-155303 been under any analgesics - bolus parenteral analgesics procedure at other hospitals? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... |
SELECT owner_s_ FROM table_name_30 WHERE date = 1953 AND description = "mark 1 ck" | Which owner has a description of Mark 1 CK and is dated 1953? | CREATE TABLE table_name_30 (owner_s_ VARCHAR, date VARCHAR, description VARCHAR) |
SELECT transit_connections FROM table_22771048_2 WHERE station = "Pioneer Square U" | What are the transit connections from Pioneer Square U? | CREATE TABLE table_22771048_2 (transit_connections VARCHAR, station VARCHAR) |
SELECT "Originalairdate" FROM table_29369 WHERE "Written by" = 'Fintan Ryan' | What date did the episode that was written by Fintan Ryan originally air? | CREATE TABLE table_29369 (
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Originalairdate" text,
"Ratings" text
) |
SELECT name_athlete FROM table_name_97 WHERE semi = "1:43.79" | Who was the athlete who had SEMI of 1:43.79? | CREATE TABLE table_name_97 (name_athlete VARCHAR, semi VARCHAR) |
SELECT transit_connections FROM table_22771048_2 WHERE city_neighborhood = "Columbia City, Seattle" | What's the transit connection in Columbia City, Seattle? | CREATE TABLE table_22771048_2 (transit_connections VARCHAR, city_neighborhood VARCHAR) |
SELECT MIN("Total") FROM table_12869 WHERE "Nationality" = 'italy' AND "Latest win" = '1950' | What was the lowest total for Italy when the latest win is 1950? | CREATE TABLE table_12869 (
"Cyclist" text,
"Nationality" text,
"First win" real,
"Latest win" real,
"Total" real
) |
SELECT final FROM table_name_1 WHERE lane = 4 | What were the final time for the swimmer on lane 4? | CREATE TABLE table_name_1 (final VARCHAR, lane VARCHAR) |
SELECT pct_route_available FROM table_2279413_1 WHERE type_of_protection = "small patent" | For small patent type of protections, what type of PCT route is available? | CREATE TABLE table_2279413_1 (pct_route_available VARCHAR, type_of_protection VARCHAR) |
SELECT COUNT(*) FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355' AND patient.hospitaldischargetime IS NULL)) AND microlab.culturesite = '... | is there any results from a microbiology test in patient 031-3355's other in the current hospital encounter? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospita... |
SELECT final_score FROM table_name_21 WHERE stadium = "lambeau field" | What is the final score of the game at lambeau field? | CREATE TABLE table_name_21 (final_score VARCHAR, stadium VARCHAR) |
SELECT conversion_from_patent_application FROM table_2279413_1 WHERE country = "Tonga" | In Tonga, what is the conversion from patent application? | CREATE TABLE table_2279413_1 (conversion_from_patent_application VARCHAR, country 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, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SEATTLE' AND date_day.day_number = 1 AND date_day.month_number = 6 AND d... | i would like to book a flight from CHICAGO into SEATTLE on 6 1 on CO | CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
flight_number int,
from_airport varchar,
meal_code text,
stops int,... |
SELECT MIN(rank) FROM table_name_73 WHERE candidate_name = "aliyya qadi" AND votes < 1421 | What rank is aliyya qadi with less than 1421 votes? | CREATE TABLE table_name_73 (rank INTEGER, candidate_name VARCHAR, votes VARCHAR) |
SELECT pct_route_available FROM table_2279413_1 WHERE type_of_protection = "short patent" | For short patent type of protections, what type of PCT route is available? | CREATE TABLE table_2279413_1 (pct_route_available VARCHAR, type_of_protection VARCHAR) |
SELECT "English" FROM table_19820 WHERE "Russian" = 'loshad, kobyla (лошадь, кобыла)' | What is the English word for the Russian words loshad, kobyla ( , )? | CREATE TABLE table_19820 (
"Ido" text,
"English" text,
"Italian" text,
"French" text,
"German" text,
"Russian" text,
"Spanish" text
) |
SELECT candidate_name FROM table_name_61 WHERE votes > 279 AND rank < 50 AND gender = "♀" AND list = "al-ahd" | Which candidate has more than 279 votes, rank less than 50, is ♀ and al-ahd? | CREATE TABLE table_name_61 (candidate_name VARCHAR, list VARCHAR, gender VARCHAR, votes VARCHAR, rank VARCHAR) |
SELECT pct_route_available FROM table_2279413_1 WHERE country = "Tangier Zone" | In Tangier Zone, what is the PCT route availibility? | CREATE TABLE table_2279413_1 (pct_route_available VARCHAR, country VARCHAR) |
SELECT Sex, AVG(Weight) FROM people GROUP BY Sex | Give me the comparison about the average of Weight over the Sex , and group by attribute Sex by a bar chart. | 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 MIN(year) FROM table_name_48 WHERE category = "favorite male replacement" AND nominee = "ben vereen" | What is the first year that the Favorite Male Replacement category had Ben Vereen as a nominee? | CREATE TABLE table_name_48 (year INTEGER, category VARCHAR, nominee VARCHAR) |
SELECT conversion_from_patent_application FROM table_2279413_1 WHERE maximum_term = "10 years" AND pct_route_available = "Yes" | When the PCT route available is yes and the maximum term is 10 years, what are the available conversions from patent applications? | CREATE TABLE table_2279413_1 (conversion_from_patent_application VARCHAR, maximum_term VARCHAR, pct_route_available VARCHAR) |
SELECT affiliation FROM table_28211213_1 WHERE institution = "Davenport University" | What is the affiliation of Davenport University? | CREATE TABLE table_28211213_1 (
affiliation VARCHAR,
institution VARCHAR
) |
SELECT award_ceremony FROM table_name_52 WHERE category = "outstanding actress in a musical" AND nominee = "kristin chenoweth" | What year was Kristin Chenoweth nominated in the category of outstanding actress in a musical? | CREATE TABLE table_name_52 (award_ceremony VARCHAR, category VARCHAR, nominee VARCHAR) |
SELECT result FROM table_22801331_1 WHERE record = "6-2" | What was the result against the team which the Cowboys have a 6-2 record against? | CREATE TABLE table_22801331_1 (result VARCHAR, record VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "M" AND procedures.long_title = "Insertion of non-drug-eluting coronary artery stent(s)" | give the number of male patients who had the procedure for insertion of non-drug-eluting coronaryartery stent(s). | 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 demographic ... |
SELECT AVG(year) FROM table_name_87 WHERE result = "nominated" AND category = "favorite male replacement" AND nominee = "aaron tveit" | What year was Aaron Tveit nominated in the Favorite Male Replacement category? | CREATE TABLE table_name_87 (year INTEGER, nominee VARCHAR, result VARCHAR, category VARCHAR) |
SELECT MIN(opponents) FROM table_22801331_1 WHERE cowboys_points = 36 | What is the fewest points opponents have scored when the Cowboys score 36? | CREATE TABLE table_22801331_1 (opponents INTEGER, cowboys_points VARCHAR) |
SELECT model_number FROM table_name_19 WHERE frequency = "750 mhz" AND socket = "bga2μpga2" | Which model has a frequency of 750 mhz and a socket of bga2 pga2? | CREATE TABLE table_name_19 (
model_number VARCHAR,
frequency VARCHAR,
socket VARCHAR
) |
SELECT SUM(rank) FROM table_name_39 WHERE placings = 58 | Tell me the sum of rank for placings of 58 | CREATE TABLE table_name_39 (rank INTEGER, placings VARCHAR) |
SELECT opponents FROM table_22801331_1 WHERE record = "1-0" | How many opponents have a 1-0 record against the Cowboys? | CREATE TABLE table_22801331_1 (opponents VARCHAR, record VARCHAR) |
SELECT viewers__in_millions_ FROM table_1849243_1 WHERE archive = "16mm t/r" | How many viewers watched the 16mm t/r episode? | CREATE TABLE table_1849243_1 (
viewers__in_millions_ VARCHAR,
archive VARCHAR
) |
SELECT MIN(placings) FROM table_name_30 WHERE nation = "united kingdom" AND rank < 13 | Tell me the lowest placings for United Kingdom and rank less than 13 | CREATE TABLE table_name_30 (placings INTEGER, nation VARCHAR, rank VARCHAR) |
SELECT game FROM table_22801331_1 WHERE record = "6-3" | What game was held against a team with a 6-3 record against the Cowboys? | CREATE TABLE table_22801331_1 (game VARCHAR, record VARCHAR) |
WITH data(f) AS (SELECT 'abc' UNION ALL SELECT 'def' UNION ALL SELECT 'abc') SELECT DISTINCT f, ROW_NUMBER() OVER (ORDER BY f) FROM data GROUP BY f | WITH data (f) AS ( SELECT 'abc' UNION ALL. | CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDa... |
SELECT MAX(rank) FROM table_name_75 WHERE placings > 123 AND points > 88.06 | I want to know the highest rank with placings more than 123 and points greater than 88.06 | CREATE TABLE table_name_75 (rank INTEGER, placings VARCHAR, points VARCHAR) |
SELECT COUnT AS name FROM table_22810095_8 WHERE country = "CIV" | How many names have a country of civ? | CREATE TABLE table_22810095_8 (COUnT VARCHAR, country VARCHAR) |
SELECT Building, COUNT(*) FROM Faculty GROUP BY Building | How many faculty members does each building have? List the result with the name of the building with a bar chart. | CREATE TABLE Faculty_Participates_in (
FacID INTEGER,
actid INTEGER
)
CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Rank VARCHAR(15),
Sex VARCHAR(1),
Phone INTEGER,
Room VARCHAR(5),
... |
SELECT driver FROM table_name_65 WHERE entrant = "scuderia ambrosiana" | Who is the drive for an Entrant of Scuderia Ambrosiana? | CREATE TABLE table_name_65 (driver VARCHAR, entrant VARCHAR) |
SELECT name FROM table_22810095_8 WHERE moving_from = "northampton Town" | Who moved from Northampton Town? | CREATE TABLE table_22810095_8 (name VARCHAR, moving_from VARCHAR) |
SELECT surface FROM table_name_34 WHERE date = "november 28, 2010" | Tell me the surface for november 28, 2010 | CREATE TABLE table_name_34 (
surface VARCHAR,
date VARCHAR
) |
SELECT rounds FROM table_name_72 WHERE entrant = "automobiles talbot-darracq" AND driver = "pierre levegh" | Which of the Rounds has an Entrant of automobiles Talbot-Darracq, and Pierre Levegh as the driver? | CREATE TABLE table_name_72 (rounds VARCHAR, entrant VARCHAR, driver VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.