instruction
stringlengths 5
766
| input
stringlengths 38
5.51k
| response
stringlengths 4
3.91k
|
---|---|---|
What driver has a ime/Retired of +1 lap, and a Constructor of bar - honda? | CREATE TABLE table_name_35 (
driver VARCHAR,
time_retired VARCHAR,
constructor VARCHAR
) | SELECT driver FROM table_name_35 WHERE time_retired = "+1 lap" AND constructor = "bar - honda" |
What is the format of the date February 14, 2002? | CREATE TABLE table_name_53 (
format VARCHAR,
date VARCHAR
) | SELECT format FROM table_name_53 WHERE date = "february 14, 2002" |
what was the lowest numbers for the winner gregory w. meeks | CREATE TABLE table_894 (
"District" real,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text,
"Opponent" text
) | SELECT MIN("Elected") FROM table_894 WHERE "Incumbent" = 'Gregory W. Meeks' |
What is the total number of Score, when Country is 'United States', and when Player is 'Lee Trevino'? | CREATE TABLE table_77402 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT COUNT("Score") FROM table_77402 WHERE "Country" = 'united states' AND "Player" = 'lee trevino' |
Name the year for victoria hristova neli nedialkova | CREATE TABLE table_14903491_1 (
year VARCHAR,
womens_doubles VARCHAR
) | SELECT year FROM table_14903491_1 WHERE womens_doubles = "Victoria Hristova Neli Nedialkova" |
Find the last names of the members of the club 'Bootup Baltimore'. | CREATE TABLE club (
clubid number,
clubname text,
clubdesc text,
clublocation text
)
CREATE TABLE member_of_club (
stuid number,
clubid number,
position text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
) | SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore" |
What position did the person finish in with a notes of junior men individual 5.64km? | CREATE TABLE table_name_95 (
position VARCHAR,
notes VARCHAR
) | SELECT position FROM table_name_95 WHERE notes = "junior men individual 5.64km" |
What is the Team in Game 38? | CREATE TABLE table_name_46 (
team VARCHAR,
game VARCHAR
) | SELECT team FROM table_name_46 WHERE game = 38 |
what was the total number of wins ? | CREATE TABLE table_203_689 (
id number,
"date" text,
"opponent" text,
"score" text,
"result" text,
"record" text
) | SELECT COUNT(*) FROM table_203_689 WHERE "result" = 'win' |
What is the time of the rider with a 398cc yamaha? | CREATE TABLE table_77585 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
) | SELECT "Time" FROM table_77585 WHERE "Team" = '398cc yamaha' |
Which Round is the highest one that has an Overall of 32, and a Pick # smaller than 4? | CREATE TABLE table_38343 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT MAX("Round") FROM table_38343 WHERE "Overall" = '32' AND "Pick #" < '4' |
What is the Chinese name for the English name Andy Lau? | CREATE TABLE table_name_58 (
chinese_name VARCHAR,
english_name VARCHAR
) | SELECT chinese_name FROM table_name_58 WHERE english_name = "andy lau" |
which is the only defendant who was tried and found not guilty ? | CREATE TABLE table_204_479 (
id number,
"defendant" text,
"arrested" text,
"charge" text,
"result" text,
"sentence" text
) | SELECT "defendant" FROM table_204_479 WHERE "result" = 'tried, found not guilty' |
Which game number was played against Georgia? | CREATE TABLE table_20928682_1 (
game INTEGER,
opponent VARCHAR
) | SELECT MIN(game) FROM table_20928682_1 WHERE opponent = "Georgia" |
What is the series number for Season #18? | CREATE TABLE table_12564633_1 (
series__number INTEGER,
season__number VARCHAR
) | SELECT MIN(series__number) FROM table_12564633_1 WHERE season__number = 18 |
Give a me a bar graph to show the friends's name, and ages of all people who are older than the average age of a person, show by the X-axis in desc please. | 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 T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT AVG(age) FROM Person) ORDER BY T1.name DESC |
What was the score for a no. 21 tie? | CREATE TABLE table_51039 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Score" FROM table_51039 WHERE "Tie no" = '21' |
I want the D 40 with D 44 of d 15 | CREATE TABLE table_name_17 (
d_40 VARCHAR,
d_44 VARCHAR
) | SELECT d_40 FROM table_name_17 WHERE d_44 = "d 15" |
Who is the runner(s)-up for a winning score of 3 (71-74-66-66=277)? | CREATE TABLE table_54299 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Runner(s)-up" FROM table_54299 WHERE "Winning score" = '−3 (71-74-66-66=277)' |
What is the low lap total for henri pescarolo with a grad larger than 6? | CREATE TABLE table_name_20 (
laps INTEGER,
grid VARCHAR,
driver VARCHAR
) | SELECT MIN(laps) FROM table_name_20 WHERE grid > 6 AND driver = "henri pescarolo" |
WHAT IS THE APPOINTMENT DATE FOR AC HORSENS? | CREATE TABLE table_name_33 (
date_of_appointment VARCHAR,
team VARCHAR
) | SELECT date_of_appointment FROM table_name_33 WHERE team = "ac horsens" |
What is the lengtho f track 16? | CREATE TABLE table_name_88 (
length VARCHAR,
track VARCHAR
) | SELECT length FROM table_name_88 WHERE track = "16" |
What is the Location when the name is telmatosaurus? | CREATE TABLE table_name_23 (
location VARCHAR,
name VARCHAR
) | SELECT location FROM table_name_23 WHERE name = "telmatosaurus" |
Find the names of users who did not leave any review. | CREATE TABLE review (
name VARCHAR,
u_id VARCHAR
)
CREATE TABLE useracct (
name VARCHAR,
u_id VARCHAR
) | SELECT name FROM useracct WHERE NOT u_id IN (SELECT u_id FROM review) |
What was the final record for the game in which Dirk Nowitzki (19) had the high points? | CREATE TABLE table_21474 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Record" FROM table_21474 WHERE "High points" = 'Dirk Nowitzki (19)' |
What is the largest 2000 GDP when the 2008 GDP is smaller than 3,632, 2010 GDP is 2,558 and 2009 GDP is larger than 2,239? | CREATE TABLE table_52806 (
"Year" text,
"2010" real,
"2009" real,
"2008" real,
"2005" real,
"2000" real,
"1995" real,
"1990" real,
"1985" real
) | SELECT MAX("2000") FROM table_52806 WHERE "2008" < '3,632' AND "2010" = '2,558' AND "2009" > '2,239' |
What is the number in season of the episode whose production code is pabf05? | CREATE TABLE table_28194879_1 (
_number VARCHAR,
production_code VARCHAR
) | SELECT _number FROM table_28194879_1 WHERE production_code = "PABF05" |
What year had 32 moves? | CREATE TABLE table_8509 (
"White" text,
"Black" text,
"Year" real,
"Result" text,
"Moves" real,
"Tournament" text,
"Opening" text
) | SELECT SUM("Year") FROM table_8509 WHERE "Moves" = '32' |
Robert S. Flanzer was the Free Libertarian ticket with who listed as the Liberal Ticket? | CREATE TABLE table_6924 (
"Office" text,
"Democratic ticket" text,
"Republican ticket" text,
"Conservative ticket" text,
"Liberal ticket" text,
"Free Libertarian ticket" text,
"Socialist Labor ticket" text
) | SELECT "Liberal ticket" FROM table_6924 WHERE "Free Libertarian ticket" = 'robert s. flanzer' |
What was the name of the show that had 10.47 million total viewers? | CREATE TABLE table_26325 (
"Episode number Production number" text,
"Title" text,
"Original airing" text,
"Rating" text,
"Share" real,
"Rating/share (18\u201349)" text,
"Total viewers (in millions)" text
) | SELECT "Title" FROM table_26325 WHERE "Total viewers (in millions)" = '10.47' |
what is the total number of pick # where nhl team is philadelphia flyers | CREATE TABLE table_1213511_7 (
pick__number VARCHAR,
nhl_team VARCHAR
) | SELECT COUNT(pick__number) FROM table_1213511_7 WHERE nhl_team = "Philadelphia Flyers" |
What are the transit connections from Pioneer Square U? | CREATE TABLE table_22771048_2 (
transit_connections VARCHAR,
station VARCHAR
) | SELECT transit_connections FROM table_22771048_2 WHERE station = "Pioneer Square U" |
which location has the best time other than brussels ? | CREATE TABLE table_204_576 (
id number,
"year" number,
"best" text,
"location" text,
"date" text,
"world rank" text
) | SELECT "location" FROM table_204_576 WHERE "location" <> 'brussels' ORDER BY "best" LIMIT 1 |
What teams has a home of 5-0? | CREATE TABLE table_13059 (
"Season" text,
"League" text,
"Teams" text,
"Home" text,
"Away" text
) | SELECT "Teams" FROM table_13059 WHERE "Home" = '5-0' |
what is the side-chain polarity for the amino acid with the 1-letter v? | CREATE TABLE table_55835 (
"Amino Acid" text,
"3-Letter" text,
"1-Letter" text,
"Side-chain polarity" text,
"Side-chain charge (pH 7.4)" text,
"Hydropathy index" text
) | SELECT "Side-chain polarity" FROM table_55835 WHERE "1-Letter" = 'v' |
which jurisdiction has the most courthouses ? | CREATE TABLE table_204_87 (
id number,
"courthouse" text,
"city" text,
"street address" text,
"jurisdiction" text,
"dates of use" text,
"named for" text
) | SELECT "jurisdiction" FROM table_204_87 GROUP BY "jurisdiction" ORDER BY COUNT("courthouse") DESC LIMIT 1 |
What are the weights of entrepreneurs in descending order of money requested? | CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
date_of_birth text
)
CREATE TABLE entrepreneur (
entrepreneur_id number,
people_id number,
company text,
money_requested number,
investor text
) | SELECT T2.weight FROM entrepreneur AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id ORDER BY T1.money_requested DESC |
Can you tell me the Record that has the Game of 19? | CREATE TABLE table_46830 (
"Game" real,
"November" real,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT "Record" FROM table_46830 WHERE "Game" = '19' |
Who was performer 3 with karen maruyama as performer 2? | CREATE TABLE table_6207 (
"Date" text,
"Episode" real,
"Performer 1" text,
"Performer 2" text,
"Performer 3" text,
"Performer 4" text
) | SELECT "Performer 3" FROM table_6207 WHERE "Performer 2" = 'karen maruyama' |
Who is the Elector with a Cardinalatial title of Priest of S. Sabina and Archbishop of Reims? | CREATE TABLE table_78930 (
"Elector" text,
"Place of birth" text,
"Cardinalatial title" text,
"Elevated" text,
"Elevator" text
) | SELECT "Elector" FROM table_78930 WHERE "Cardinalatial title" = 'priest of s. sabina and archbishop of reims' |
Which section is in the 6th position? | CREATE TABLE table_72013 (
"Season" text,
"Level" text,
"Division" text,
"Section" text,
"Position" text
) | SELECT "Section" FROM table_72013 WHERE "Position" = '6th' |
Tell me the result of july 16, 2000 | CREATE TABLE table_name_68 (
result VARCHAR,
date VARCHAR
) | SELECT result FROM table_name_68 WHERE date = "july 16, 2000" |
Which Week has an Opponent of pittsburgh steelers, and an Attendance larger than 47,727? | CREATE TABLE table_name_69 (
week INTEGER,
opponent VARCHAR,
attendance VARCHAR
) | SELECT MIN(week) FROM table_name_69 WHERE opponent = "pittsburgh steelers" AND attendance > 47 OFFSET 727 |
Can you tell me the highest Against that has the Losses larger than 9, and the Byes of 2, and the Draws larger than 0? | CREATE TABLE table_name_56 (
against INTEGER,
draws VARCHAR,
losses VARCHAR,
byes VARCHAR
) | SELECT MAX(against) FROM table_name_56 WHERE losses > 9 AND byes = 2 AND draws > 0 |
What is the score for Ky Laffoon? | CREATE TABLE table_name_22 (
score VARCHAR,
player VARCHAR
) | SELECT score FROM table_name_22 WHERE player = "ky laffoon" |
Which locomotives 12' x 17' are both ex-industrial and built by Manning Wardle? | CREATE TABLE table_1157867_2 (
name VARCHAR,
notes VARCHAR,
builder VARCHAR
) | SELECT name FROM table_1157867_2 WHERE notes = "Ex-industrial" AND builder = "Manning Wardle" |
Name the team for susan bates | CREATE TABLE table_26893 (
"Team" text,
"Truck(s)" text,
"#" real,
"Driver(s)" text,
"Primary Sponsor(s)" text,
"Listed Owner(s)" text,
"Crew Chief" text
) | SELECT "Team" FROM table_26893 WHERE "Listed Owner(s)" = 'Susan Bates' |
Who was the winner from the United States the year Kimberly Kim was runner-up? | CREATE TABLE table_name_59 (
winner VARCHAR,
runner_up VARCHAR,
country VARCHAR
) | SELECT winner FROM table_name_59 WHERE runner_up = "kimberly kim" AND country = "united states" |
What is the total number of Silver, when Gold is '1', and when Bronze is less than 0? | CREATE TABLE table_name_35 (
silver VARCHAR,
gold VARCHAR,
bronze VARCHAR
) | SELECT COUNT(silver) FROM table_name_35 WHERE gold = 1 AND bronze < 0 |
What is the L2 cache with ec number of slbmm(c2)slbsr(k0)? | CREATE TABLE table_13612 (
"Model number" text,
"sSpec number" text,
"Frequency" text,
"Turbo" text,
"GPU frequency" text,
"Cores" text,
"L2 cache" text,
"L3 cache" text,
"I/O bus" text,
"Mult." text,
"Memory" text,
"Voltage" text,
"Socket" text,
"Release date" text,
"Part number(s)" text,
"Release price ( USD )" text
) | SELECT "L2 cache" FROM table_13612 WHERE "sSpec number" = 'slbmm(c2)slbsr(k0)' |
Find the names of all swimmers, sorted by their 100 meter scores in ascending order. | CREATE TABLE swimmer (
id number,
name text,
nationality text,
meter_100 number,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
time text
)
CREATE TABLE stadium (
id number,
name text,
capacity number,
city text,
country text,
opening_year number
)
CREATE TABLE record (
id number,
result text,
swimmer_id number,
event_id number
)
CREATE TABLE event (
id number,
name text,
stadium_id number,
year text
) | SELECT name FROM swimmer ORDER BY meter_100 |
what title is listed next in the table after autumn beds ? | CREATE TABLE table_203_123 (
id number,
"year" number,
"title" text,
"b-side" text,
"mediums" text,
"label (catalog)" text
) | SELECT "title" FROM table_203_123 WHERE id = (SELECT id FROM table_203_123 WHERE "title" = '"autumn beds"') + 1 |
What type of formula did Stirling Moss drive? | CREATE TABLE table_23548160_1 (
formula VARCHAR,
driver VARCHAR
) | SELECT formula FROM table_23548160_1 WHERE driver = "Stirling Moss" |
Name the opponent that has attendance of 76,965 | CREATE TABLE table_52629 (
"Week" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Time" text,
"Attendance" text
) | SELECT "Opponent" FROM table_52629 WHERE "Attendance" = '76,965' |
What was the record in the game against Eskimos? | CREATE TABLE table_23685152_2 (
record VARCHAR,
opponent VARCHAR
) | SELECT record FROM table_23685152_2 WHERE opponent = "Eskimos" |
What is the lowest Loss number when the Gain is less than 61 and the Avg/G is 6? | CREATE TABLE table_name_94 (
loss INTEGER,
gain VARCHAR,
avg_g VARCHAR
) | SELECT MIN(loss) FROM table_name_94 WHERE gain < 61 AND avg_g = 6 |
What's the try bonus that had 423 points? | CREATE TABLE table_75124 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Try bonus" FROM table_75124 WHERE "Points for" = '423' |
Find the name of the project for which a scientist whose name contains Smith is assigned to, and count them by a bar chart, could you order by the x-axis in descending? | CREATE TABLE Projects (
Code Char(4),
Name Char(50),
Hours int
)
CREATE TABLE Scientists (
SSN int,
Name Char(30)
)
CREATE TABLE AssignedTo (
Scientist int,
Project char(4)
) | SELECT T2.Name, COUNT(T2.Name) FROM AssignedTo AS T1 JOIN Projects AS T2 ON T1.Project = T2.Code JOIN Scientists AS T3 ON T1.Scientist = T3.SSN WHERE T3.Name LIKE '%Smith%' GROUP BY T2.Name ORDER BY T2.Name DESC |
Which award was won when the nomination was Senses Around? | CREATE TABLE table_48348 (
"Year" real,
"Award" text,
"Category" text,
"Nomination" text,
"Result" text
) | SELECT "Award" FROM table_48348 WHERE "Result" = 'won' AND "Nomination" = 'senses around' |
What is the least number of assists among players ranked 2? | CREATE TABLE table_name_53 (
assists INTEGER,
rank VARCHAR
) | SELECT MIN(assists) FROM table_name_53 WHERE rank = 2 |
Who was champion in 2005 where the semi-finalist was #1 in western Carolina? | CREATE TABLE table_56693 (
"Year" real,
"Champion" text,
"Score" text,
"Runner-Up" text,
"Location" text,
"Semi-Finalist #1" text,
"Semi-Finalist #2" text
) | SELECT "Champion" FROM table_56693 WHERE "Year" = '2005' AND "Semi-Finalist #1" = 'western carolina' |
Name march 27-29 where january 15-16 is january 15, 1991 | CREATE TABLE table_21287 (
"June 10-11" text,
"March 27-29" text,
"January 15-16" text,
"November 3" text,
"August 21-22" text
) | SELECT "March 27-29" FROM table_21287 WHERE "January 15-16" = 'January 15, 1991' |
what is the date when the competition is 1996 tiger cup and the result is drew? | CREATE TABLE table_63979 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Date" FROM table_63979 WHERE "Competition" = '1996 tiger cup' AND "Result" = 'drew' |
Which Date has a Time of 12:00? | CREATE TABLE table_name_80 (
date VARCHAR,
time VARCHAR
) | SELECT date FROM table_name_80 WHERE time = "12:00" |
What record has loss as the res., 1 for the round, and akira maeda as the opponent? | CREATE TABLE table_name_9 (
record VARCHAR,
opponent VARCHAR,
res VARCHAR,
round VARCHAR
) | SELECT record FROM table_name_9 WHERE res = "loss" AND round = "1" AND opponent = "akira maeda" |
A bar chart about how many students are affected by each allergy type?, show by the y axis in asc. | CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
) | SELECT AllergyType, COUNT(*) FROM Has_Allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy GROUP BY T2.AllergyType ORDER BY COUNT(*) |
Name the market value for rhb capital | CREATE TABLE table_73087 (
"World Rank" real,
"Company" text,
"Industry" text,
"Revenue (billion $)" text,
"Profits (billion $)" text,
"Assets (billion $)" text,
"Market Value (billion $)" text
) | SELECT "Market Value (billion $)" FROM table_73087 WHERE "Company" = 'RHB Capital' |
Who is the candidate in the 2008 (2) election? | CREATE TABLE table_47452 (
"Election" text,
"Candidate" text,
"Number of votes" text,
"Share of votes" text,
"Outcome of election" text
) | SELECT "Candidate" FROM table_47452 WHERE "Election" = '2008 (2)' |
What Position has a Super League 1 Competition? | CREATE TABLE table_name_85 (
position VARCHAR,
competition VARCHAR
) | SELECT position FROM table_name_85 WHERE competition = "super league 1" |
Return the unique name for stations that have ever had 7 bikes available. | CREATE TABLE status (
station_id VARCHAR,
bikes_available VARCHAR
)
CREATE TABLE station (
name VARCHAR,
id VARCHAR
) | SELECT DISTINCT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available = 7 |
uncontrolled high blood pressure ( >= 140 / 90 mmhg ) | CREATE TABLE table_train_259 (
"id" int,
"systolic_blood_pressure_sbp" int,
"hiv_infection" bool,
"hemoglobin_a1c_hba1c" float,
"hearing_problem" bool,
"heart_disease" bool,
"high_blood_pressure" bool,
"diabetic" string,
"immune_deficiency_disorder" bool,
"visual_impairment" bool,
"diastolic_blood_pressure_dbp" int,
"NOUSE" float
) | SELECT * FROM table_train_259 WHERE high_blood_pressure = 1 OR systolic_blood_pressure_sbp > 140 OR diastolic_blood_pressure_dbp > 90 |
what is the total number of 2nd leg where aggregate is 7-2 | CREATE TABLE table_1061075_1 (
aggregate VARCHAR
) | SELECT COUNT(2 AS nd_leg) FROM table_1061075_1 WHERE aggregate = "7-2" |
When dwhr-tv is the call sign how many station types are there? | CREATE TABLE table_23394920_1 (
station_type VARCHAR,
callsign VARCHAR
) | SELECT COUNT(station_type) FROM table_23394920_1 WHERE callsign = "DWHR-TV" |
What is the 2nd (m) value for Gregor Schlierenzauer? | CREATE TABLE table_34345 (
"Rank" real,
"Name" text,
"Nationality" text,
"1st (m)" real,
"2nd (m)" real,
"Points" real,
"Overall WC points (Rank)" text
) | SELECT MIN("2nd (m)") FROM table_34345 WHERE "Name" = 'gregor schlierenzauer' |
Name the average zone for waddon railway station and has more than 2 platforms | CREATE TABLE table_name_54 (
zone INTEGER,
stations VARCHAR,
platforms VARCHAR
) | SELECT AVG(zone) FROM table_name_54 WHERE stations = "waddon railway station" AND platforms > 2 |
When troy is the regular season winner what is the conference tournament? | CREATE TABLE table_3002 (
"Conference" text,
"Regular Season Winner" text,
"Conference Player of the Year" text,
"Conference Tournament" text,
"Tournament Venue (City)" text,
"Tournament Winner" text
) | SELECT "Conference Tournament" FROM table_3002 WHERE "Regular Season Winner" = 'Troy' |
Name the first elected for hosea moffitt (f) 57.9% josiah masters (dr) 42.1% | CREATE TABLE table_74004 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "First elected" FROM table_74004 WHERE "Candidates" = 'Hosea Moffitt (F) 57.9% Josiah Masters (DR) 42.1%' |
What was the bleeding time for the factor x deficiency as seen in amyloid purpura | CREATE TABLE table_1099080_1 (
bleeding_time VARCHAR,
condition VARCHAR
) | SELECT bleeding_time FROM table_1099080_1 WHERE condition = "Factor X deficiency as seen in amyloid purpura" |
Who was the away team when Footscray scored 11.14 (80)? | CREATE TABLE table_58326 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_58326 WHERE "Home team score" = '11.14 (80)' |
Which sum of # 100 has a Season of 1990, and an Against of warwickshire? | CREATE TABLE table_5482 (
"# 100" real,
"Season" text,
"Playing For" text,
"Against" text,
"Score" text
) | SELECT SUM("# 100") FROM table_5482 WHERE "Season" = '1990' AND "Against" = 'warwickshire' |
What school had an enrollment in 2005 of 69? | CREATE TABLE table_2334 (
"School" text,
"Location(s)" text,
"Control" text,
"Type" text,
"Enrollment (2005)" text,
"Founded" real
) | SELECT "School" FROM table_2334 WHERE "Enrollment (2005)" = '69' |
If the third name is Bruno Bonifacio, what is the champion? | CREATE TABLE table_25563779_4 (
champion VARCHAR,
third VARCHAR
) | SELECT champion FROM table_25563779_4 WHERE third = "Bruno Bonifacio" |
What was the average number of laps completed by KTM riders, with times of +56.440 and grid values under 11? | CREATE TABLE table_name_92 (
laps INTEGER,
grid VARCHAR,
manufacturer VARCHAR,
time_retired VARCHAR
) | SELECT AVG(laps) FROM table_name_92 WHERE manufacturer = "ktm" AND time_retired = "+56.440" AND grid < 11 |
Find the customer name and date of the orders that have the status 'Delivered'. | CREATE TABLE customer_orders (
order_date VARCHAR,
customer_id VARCHAR
)
CREATE TABLE customers (
customer_name VARCHAR,
customer_id VARCHAR
) | SELECT t1.customer_name, t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = "Delivered" |
What was the date of the game when the record was 53 104? | CREATE TABLE table_name_89 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_name_89 WHERE record = "53–104" |
sepsis induced immunosuppression | CREATE TABLE table_train_27 (
"id" int,
"bone_marrow_transplant" bool,
"antimicrobial_therapy" bool,
"immune_suppression" bool,
"hiv_infection" bool,
"autoimmune_disease" bool,
"hepatitis_b_infection" bool,
"renal_disease" bool,
"total_parenteral_nutrition" bool,
"surgery" bool,
"hepatitis_c_infection" bool,
"invasive_candida_infection" bool,
"NOUSE" float
) | SELECT * FROM table_train_27 WHERE immune_suppression = 1 |
Name the total number of average for wickets less than 265, runs less than 4564 and matches less than 52 | CREATE TABLE table_name_99 (
average VARCHAR,
wickets VARCHAR,
matches VARCHAR,
runs VARCHAR
) | SELECT COUNT(average) FROM table_name_99 WHERE matches < 52 AND runs < 4564 AND wickets < 265 |
What is the enrollment for the institution nicknamed the panthers that left in 2012? | CREATE TABLE table_3521 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" text,
"Left" text,
"Current Conference" text
) | SELECT "Enrollment" FROM table_3521 WHERE "Left" = '2012' AND "Nickname" = 'Panthers' |
What is the verb meaning for Saugen in part 1? | CREATE TABLE table_44583 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Verb meaning" text
) | SELECT "Verb meaning" FROM table_44583 WHERE "Part 1" = 'saugen' |
Name the aircraft type for jagdgeschwader 6 | CREATE TABLE table_30482 (
"Parent unit" text,
"Geschwader Base" text,
"Unit (Gruppe/Staffel)" text,
"Aircraft Type" text,
"Commanding Officer" text
) | SELECT "Aircraft Type" FROM table_30482 WHERE "Parent unit" = 'Jagdgeschwader 6' |
What is the venue for the match on 30/03/1985? | CREATE TABLE table_61134 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) | SELECT "Venue" FROM table_61134 WHERE "Date" = '30/03/1985' |
Who is the builder with a works number of 2534? | CREATE TABLE table_name_16 (
builder VARCHAR,
works_number VARCHAR
) | SELECT builder FROM table_name_16 WHERE works_number = "2534" |
active renal disease. | CREATE TABLE table_train_89 (
"id" int,
"chronically_uncontrolled_hypertension" bool,
"uncontrolled_diabetes" bool,
"hemoglobin_a1c_hba1c" float,
"body_weight" float,
"renal_disease" bool,
"creatinine_clearance_cl" float,
"geriatric_depression_scale_gds" int,
"major_depression" bool,
"NOUSE" float
) | SELECT * FROM table_train_89 WHERE renal_disease = 1 |
If the height is 185cm and the home team is Heaton Mersey, what is the date of birth? | CREATE TABLE table_24928 (
"Name" text,
"Position" text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Home Team" text
) | SELECT "Date of Birth" FROM table_24928 WHERE "Height" = '185cm' AND "Home Team" = 'Heaton Mersey' |
What clubs had 608 points against? | CREATE TABLE table_1676073_12 (
club VARCHAR,
points_against VARCHAR
) | SELECT club FROM table_1676073_12 WHERE points_against = "608" |
What was the highest amount of laps when the class was v8 and the entrant was diet-coke racing? | CREATE TABLE table_name_13 (
laps INTEGER,
class VARCHAR,
entrant VARCHAR
) | SELECT MAX(laps) FROM table_name_13 WHERE class = "v8" AND entrant = "diet-coke racing" |
known allergy or contraindication to fibrinolytics or aspirin or heparin or clopidogrel | CREATE TABLE table_dev_60 (
"id" int,
"systolic_blood_pressure_sbp" int,
"body_weight" float,
"renal_disease" bool,
"allergy_to_aspirin" bool,
"creatinine_clearance_cl" float,
"allergy_to_clopidogrel" bool,
"allergy_to_heparin" bool,
"platelet_count" float,
"thrombocytopenia" float,
"diastolic_blood_pressure_dbp" int,
"allergy_to_fibrinolytics" bool,
"hypertension" bool,
"NOUSE" float
) | SELECT * FROM table_dev_60 WHERE allergy_to_fibrinolytics = 1 OR allergy_to_aspirin = 1 OR allergy_to_heparin = 1 OR allergy_to_clopidogrel = 1 |
At what Location was the match against Opponent of Mostapha Al-Turk lasting less than 2 Rounds? | CREATE TABLE table_7287 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Location" FROM table_7287 WHERE "Round" < '2' AND "Opponent" = 'mostapha al-turk' |
How many games had 22 points? | CREATE TABLE table_18018214_4 (
games_played VARCHAR,
points VARCHAR
) | SELECT COUNT(games_played) FROM table_18018214_4 WHERE points = 22 |
What is the average year for Faces? | CREATE TABLE table_13598 (
"Year" real,
"Title" text,
"Singapore 987FM Top Position" text,
"Singapore Power98 Top Position" text,
"Album" text
) | SELECT AVG("Year") FROM table_13598 WHERE "Title" = 'faces' |
Subsets and Splits